module Stratosphere.Route53.RecordSetGroup (
module Exports, RecordSetGroup(..), mkRecordSetGroup
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Route53.RecordSetGroup.RecordSetProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RecordSetGroup
=
RecordSetGroup {RecordSetGroup -> ()
haddock_workaround_ :: (),
:: (Prelude.Maybe (Value Prelude.Text)),
RecordSetGroup -> Maybe (Value Text)
hostedZoneId :: (Prelude.Maybe (Value Prelude.Text)),
RecordSetGroup -> Maybe (Value Text)
hostedZoneName :: (Prelude.Maybe (Value Prelude.Text)),
RecordSetGroup -> Maybe [RecordSetProperty]
recordSets :: (Prelude.Maybe [RecordSetProperty])}
deriving stock (RecordSetGroup -> RecordSetGroup -> Bool
(RecordSetGroup -> RecordSetGroup -> Bool)
-> (RecordSetGroup -> RecordSetGroup -> Bool) -> Eq RecordSetGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RecordSetGroup -> RecordSetGroup -> Bool
== :: RecordSetGroup -> RecordSetGroup -> Bool
$c/= :: RecordSetGroup -> RecordSetGroup -> Bool
/= :: RecordSetGroup -> RecordSetGroup -> Bool
Prelude.Eq, Int -> RecordSetGroup -> ShowS
[RecordSetGroup] -> ShowS
RecordSetGroup -> String
(Int -> RecordSetGroup -> ShowS)
-> (RecordSetGroup -> String)
-> ([RecordSetGroup] -> ShowS)
-> Show RecordSetGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RecordSetGroup -> ShowS
showsPrec :: Int -> RecordSetGroup -> ShowS
$cshow :: RecordSetGroup -> String
show :: RecordSetGroup -> String
$cshowList :: [RecordSetGroup] -> ShowS
showList :: [RecordSetGroup] -> ShowS
Prelude.Show)
mkRecordSetGroup :: RecordSetGroup
mkRecordSetGroup :: RecordSetGroup
mkRecordSetGroup
= RecordSetGroup
{haddock_workaround_ :: ()
haddock_workaround_ = (), comment :: Maybe (Value Text)
comment = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
hostedZoneId :: Maybe (Value Text)
hostedZoneId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, hostedZoneName :: Maybe (Value Text)
hostedZoneName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
recordSets :: Maybe [RecordSetProperty]
recordSets = Maybe [RecordSetProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RecordSetGroup where
toResourceProperties :: RecordSetGroup -> ResourceProperties
toResourceProperties RecordSetGroup {Maybe [RecordSetProperty]
Maybe (Value Text)
()
haddock_workaround_ :: RecordSetGroup -> ()
comment :: RecordSetGroup -> Maybe (Value Text)
hostedZoneId :: RecordSetGroup -> Maybe (Value Text)
hostedZoneName :: RecordSetGroup -> Maybe (Value Text)
recordSets :: RecordSetGroup -> Maybe [RecordSetProperty]
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
hostedZoneId :: Maybe (Value Text)
hostedZoneName :: Maybe (Value Text)
recordSets :: Maybe [RecordSetProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Route53::RecordSetGroup",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Comment" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
comment,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HostedZoneId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
hostedZoneId,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HostedZoneName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
hostedZoneName,
Key -> [RecordSetProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RecordSets" ([RecordSetProperty] -> (Key, Value))
-> Maybe [RecordSetProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RecordSetProperty]
recordSets])}
instance JSON.ToJSON RecordSetGroup where
toJSON :: RecordSetGroup -> Value
toJSON RecordSetGroup {Maybe [RecordSetProperty]
Maybe (Value Text)
()
haddock_workaround_ :: RecordSetGroup -> ()
comment :: RecordSetGroup -> Maybe (Value Text)
hostedZoneId :: RecordSetGroup -> Maybe (Value Text)
hostedZoneName :: RecordSetGroup -> Maybe (Value Text)
recordSets :: RecordSetGroup -> Maybe [RecordSetProperty]
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
hostedZoneId :: Maybe (Value Text)
hostedZoneName :: Maybe (Value Text)
recordSets :: Maybe [RecordSetProperty]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Comment" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
comment,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HostedZoneId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
hostedZoneId,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HostedZoneName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
hostedZoneName,
Key -> [RecordSetProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RecordSets" ([RecordSetProperty] -> (Key, Value))
-> Maybe [RecordSetProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RecordSetProperty]
recordSets]))
instance Property "Comment" RecordSetGroup where
type PropertyType "Comment" RecordSetGroup = Value Prelude.Text
set :: PropertyType "Comment" RecordSetGroup
-> RecordSetGroup -> RecordSetGroup
set PropertyType "Comment" RecordSetGroup
newValue RecordSetGroup {Maybe [RecordSetProperty]
Maybe (Value Text)
()
haddock_workaround_ :: RecordSetGroup -> ()
comment :: RecordSetGroup -> Maybe (Value Text)
hostedZoneId :: RecordSetGroup -> Maybe (Value Text)
hostedZoneName :: RecordSetGroup -> Maybe (Value Text)
recordSets :: RecordSetGroup -> Maybe [RecordSetProperty]
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
hostedZoneId :: Maybe (Value Text)
hostedZoneName :: Maybe (Value Text)
recordSets :: Maybe [RecordSetProperty]
..}
= RecordSetGroup {comment :: Maybe (Value Text)
comment = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Comment" RecordSetGroup
Value Text
newValue, Maybe [RecordSetProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
hostedZoneId :: Maybe (Value Text)
hostedZoneName :: Maybe (Value Text)
recordSets :: Maybe [RecordSetProperty]
haddock_workaround_ :: ()
hostedZoneId :: Maybe (Value Text)
hostedZoneName :: Maybe (Value Text)
recordSets :: Maybe [RecordSetProperty]
..}
instance Property "HostedZoneId" RecordSetGroup where
type PropertyType "HostedZoneId" RecordSetGroup = Value Prelude.Text
set :: PropertyType "HostedZoneId" RecordSetGroup
-> RecordSetGroup -> RecordSetGroup
set PropertyType "HostedZoneId" RecordSetGroup
newValue RecordSetGroup {Maybe [RecordSetProperty]
Maybe (Value Text)
()
haddock_workaround_ :: RecordSetGroup -> ()
comment :: RecordSetGroup -> Maybe (Value Text)
hostedZoneId :: RecordSetGroup -> Maybe (Value Text)
hostedZoneName :: RecordSetGroup -> Maybe (Value Text)
recordSets :: RecordSetGroup -> Maybe [RecordSetProperty]
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
hostedZoneId :: Maybe (Value Text)
hostedZoneName :: Maybe (Value Text)
recordSets :: Maybe [RecordSetProperty]
..}
= RecordSetGroup {hostedZoneId :: Maybe (Value Text)
hostedZoneId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HostedZoneId" RecordSetGroup
Value Text
newValue, Maybe [RecordSetProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
hostedZoneName :: Maybe (Value Text)
recordSets :: Maybe [RecordSetProperty]
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
hostedZoneName :: Maybe (Value Text)
recordSets :: Maybe [RecordSetProperty]
..}
instance Property "HostedZoneName" RecordSetGroup where
type PropertyType "HostedZoneName" RecordSetGroup = Value Prelude.Text
set :: PropertyType "HostedZoneName" RecordSetGroup
-> RecordSetGroup -> RecordSetGroup
set PropertyType "HostedZoneName" RecordSetGroup
newValue RecordSetGroup {Maybe [RecordSetProperty]
Maybe (Value Text)
()
haddock_workaround_ :: RecordSetGroup -> ()
comment :: RecordSetGroup -> Maybe (Value Text)
hostedZoneId :: RecordSetGroup -> Maybe (Value Text)
hostedZoneName :: RecordSetGroup -> Maybe (Value Text)
recordSets :: RecordSetGroup -> Maybe [RecordSetProperty]
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
hostedZoneId :: Maybe (Value Text)
hostedZoneName :: Maybe (Value Text)
recordSets :: Maybe [RecordSetProperty]
..}
= RecordSetGroup {hostedZoneName :: Maybe (Value Text)
hostedZoneName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HostedZoneName" RecordSetGroup
Value Text
newValue, Maybe [RecordSetProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
hostedZoneId :: Maybe (Value Text)
recordSets :: Maybe [RecordSetProperty]
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
hostedZoneId :: Maybe (Value Text)
recordSets :: Maybe [RecordSetProperty]
..}
instance Property "RecordSets" RecordSetGroup where
type PropertyType "RecordSets" RecordSetGroup = [RecordSetProperty]
set :: PropertyType "RecordSets" RecordSetGroup
-> RecordSetGroup -> RecordSetGroup
set PropertyType "RecordSets" RecordSetGroup
newValue RecordSetGroup {Maybe [RecordSetProperty]
Maybe (Value Text)
()
haddock_workaround_ :: RecordSetGroup -> ()
comment :: RecordSetGroup -> Maybe (Value Text)
hostedZoneId :: RecordSetGroup -> Maybe (Value Text)
hostedZoneName :: RecordSetGroup -> Maybe (Value Text)
recordSets :: RecordSetGroup -> Maybe [RecordSetProperty]
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
hostedZoneId :: Maybe (Value Text)
hostedZoneName :: Maybe (Value Text)
recordSets :: Maybe [RecordSetProperty]
..}
= RecordSetGroup {recordSets :: Maybe [RecordSetProperty]
recordSets = [RecordSetProperty] -> Maybe [RecordSetProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [RecordSetProperty]
PropertyType "RecordSets" RecordSetGroup
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
hostedZoneId :: Maybe (Value Text)
hostedZoneName :: Maybe (Value Text)
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
hostedZoneId :: Maybe (Value Text)
hostedZoneName :: Maybe (Value Text)
..}