module Stratosphere.Route53RecoveryReadiness.ResourceSet.R53ResourceRecordProperty (
R53ResourceRecordProperty(..), mkR53ResourceRecordProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data R53ResourceRecordProperty
=
R53ResourceRecordProperty {R53ResourceRecordProperty -> ()
haddock_workaround_ :: (),
R53ResourceRecordProperty -> Maybe (Value Text)
domainName :: (Prelude.Maybe (Value Prelude.Text)),
R53ResourceRecordProperty -> Maybe (Value Text)
recordSetId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (R53ResourceRecordProperty -> R53ResourceRecordProperty -> Bool
(R53ResourceRecordProperty -> R53ResourceRecordProperty -> Bool)
-> (R53ResourceRecordProperty -> R53ResourceRecordProperty -> Bool)
-> Eq R53ResourceRecordProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: R53ResourceRecordProperty -> R53ResourceRecordProperty -> Bool
== :: R53ResourceRecordProperty -> R53ResourceRecordProperty -> Bool
$c/= :: R53ResourceRecordProperty -> R53ResourceRecordProperty -> Bool
/= :: R53ResourceRecordProperty -> R53ResourceRecordProperty -> Bool
Prelude.Eq, Int -> R53ResourceRecordProperty -> ShowS
[R53ResourceRecordProperty] -> ShowS
R53ResourceRecordProperty -> String
(Int -> R53ResourceRecordProperty -> ShowS)
-> (R53ResourceRecordProperty -> String)
-> ([R53ResourceRecordProperty] -> ShowS)
-> Show R53ResourceRecordProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> R53ResourceRecordProperty -> ShowS
showsPrec :: Int -> R53ResourceRecordProperty -> ShowS
$cshow :: R53ResourceRecordProperty -> String
show :: R53ResourceRecordProperty -> String
$cshowList :: [R53ResourceRecordProperty] -> ShowS
showList :: [R53ResourceRecordProperty] -> ShowS
Prelude.Show)
mkR53ResourceRecordProperty :: R53ResourceRecordProperty
mkR53ResourceRecordProperty :: R53ResourceRecordProperty
mkR53ResourceRecordProperty
= R53ResourceRecordProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), domainName :: Maybe (Value Text)
domainName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
recordSetId :: Maybe (Value Text)
recordSetId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties R53ResourceRecordProperty where
toResourceProperties :: R53ResourceRecordProperty -> ResourceProperties
toResourceProperties R53ResourceRecordProperty {Maybe (Value Text)
()
haddock_workaround_ :: R53ResourceRecordProperty -> ()
domainName :: R53ResourceRecordProperty -> Maybe (Value Text)
recordSetId :: R53ResourceRecordProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
recordSetId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Route53RecoveryReadiness::ResourceSet.R53ResourceRecord",
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
"DomainName" (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)
domainName,
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
"RecordSetId" (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)
recordSetId])}
instance JSON.ToJSON R53ResourceRecordProperty where
toJSON :: R53ResourceRecordProperty -> Value
toJSON R53ResourceRecordProperty {Maybe (Value Text)
()
haddock_workaround_ :: R53ResourceRecordProperty -> ()
domainName :: R53ResourceRecordProperty -> Maybe (Value Text)
recordSetId :: R53ResourceRecordProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
recordSetId :: Maybe (Value Text)
..}
= [(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
"DomainName" (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)
domainName,
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
"RecordSetId" (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)
recordSetId]))
instance Property "DomainName" R53ResourceRecordProperty where
type PropertyType "DomainName" R53ResourceRecordProperty = Value Prelude.Text
set :: PropertyType "DomainName" R53ResourceRecordProperty
-> R53ResourceRecordProperty -> R53ResourceRecordProperty
set PropertyType "DomainName" R53ResourceRecordProperty
newValue R53ResourceRecordProperty {Maybe (Value Text)
()
haddock_workaround_ :: R53ResourceRecordProperty -> ()
domainName :: R53ResourceRecordProperty -> Maybe (Value Text)
recordSetId :: R53ResourceRecordProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
recordSetId :: Maybe (Value Text)
..}
= R53ResourceRecordProperty
{domainName :: Maybe (Value Text)
domainName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DomainName" R53ResourceRecordProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
recordSetId :: Maybe (Value Text)
haddock_workaround_ :: ()
recordSetId :: Maybe (Value Text)
..}
instance Property "RecordSetId" R53ResourceRecordProperty where
type PropertyType "RecordSetId" R53ResourceRecordProperty = Value Prelude.Text
set :: PropertyType "RecordSetId" R53ResourceRecordProperty
-> R53ResourceRecordProperty -> R53ResourceRecordProperty
set PropertyType "RecordSetId" R53ResourceRecordProperty
newValue R53ResourceRecordProperty {Maybe (Value Text)
()
haddock_workaround_ :: R53ResourceRecordProperty -> ()
domainName :: R53ResourceRecordProperty -> Maybe (Value Text)
recordSetId :: R53ResourceRecordProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
recordSetId :: Maybe (Value Text)
..}
= R53ResourceRecordProperty
{recordSetId :: Maybe (Value Text)
recordSetId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RecordSetId" R53ResourceRecordProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
..}