module Stratosphere.Route53.RecordSet.CidrRoutingConfigProperty (
CidrRoutingConfigProperty(..), mkCidrRoutingConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CidrRoutingConfigProperty
=
CidrRoutingConfigProperty {CidrRoutingConfigProperty -> ()
haddock_workaround_ :: (),
CidrRoutingConfigProperty -> Value Text
collectionId :: (Value Prelude.Text),
CidrRoutingConfigProperty -> Value Text
locationName :: (Value Prelude.Text)}
deriving stock (CidrRoutingConfigProperty -> CidrRoutingConfigProperty -> Bool
(CidrRoutingConfigProperty -> CidrRoutingConfigProperty -> Bool)
-> (CidrRoutingConfigProperty -> CidrRoutingConfigProperty -> Bool)
-> Eq CidrRoutingConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CidrRoutingConfigProperty -> CidrRoutingConfigProperty -> Bool
== :: CidrRoutingConfigProperty -> CidrRoutingConfigProperty -> Bool
$c/= :: CidrRoutingConfigProperty -> CidrRoutingConfigProperty -> Bool
/= :: CidrRoutingConfigProperty -> CidrRoutingConfigProperty -> Bool
Prelude.Eq, Int -> CidrRoutingConfigProperty -> ShowS
[CidrRoutingConfigProperty] -> ShowS
CidrRoutingConfigProperty -> String
(Int -> CidrRoutingConfigProperty -> ShowS)
-> (CidrRoutingConfigProperty -> String)
-> ([CidrRoutingConfigProperty] -> ShowS)
-> Show CidrRoutingConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CidrRoutingConfigProperty -> ShowS
showsPrec :: Int -> CidrRoutingConfigProperty -> ShowS
$cshow :: CidrRoutingConfigProperty -> String
show :: CidrRoutingConfigProperty -> String
$cshowList :: [CidrRoutingConfigProperty] -> ShowS
showList :: [CidrRoutingConfigProperty] -> ShowS
Prelude.Show)
mkCidrRoutingConfigProperty ::
Value Prelude.Text
-> Value Prelude.Text -> CidrRoutingConfigProperty
mkCidrRoutingConfigProperty :: Value Text -> Value Text -> CidrRoutingConfigProperty
mkCidrRoutingConfigProperty Value Text
collectionId Value Text
locationName
= CidrRoutingConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), collectionId :: Value Text
collectionId = Value Text
collectionId,
locationName :: Value Text
locationName = Value Text
locationName}
instance ToResourceProperties CidrRoutingConfigProperty where
toResourceProperties :: CidrRoutingConfigProperty -> ResourceProperties
toResourceProperties CidrRoutingConfigProperty {()
Value Text
haddock_workaround_ :: CidrRoutingConfigProperty -> ()
collectionId :: CidrRoutingConfigProperty -> Value Text
locationName :: CidrRoutingConfigProperty -> Value Text
haddock_workaround_ :: ()
collectionId :: Value Text
locationName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Route53::RecordSet.CidrRoutingConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"CollectionId" 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..= Value Text
collectionId,
Key
"LocationName" 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..= Value Text
locationName]}
instance JSON.ToJSON CidrRoutingConfigProperty where
toJSON :: CidrRoutingConfigProperty -> Value
toJSON CidrRoutingConfigProperty {()
Value Text
haddock_workaround_ :: CidrRoutingConfigProperty -> ()
collectionId :: CidrRoutingConfigProperty -> Value Text
locationName :: CidrRoutingConfigProperty -> Value Text
haddock_workaround_ :: ()
collectionId :: Value Text
locationName :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"CollectionId" 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..= Value Text
collectionId,
Key
"LocationName" 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..= Value Text
locationName]
instance Property "CollectionId" CidrRoutingConfigProperty where
type PropertyType "CollectionId" CidrRoutingConfigProperty = Value Prelude.Text
set :: PropertyType "CollectionId" CidrRoutingConfigProperty
-> CidrRoutingConfigProperty -> CidrRoutingConfigProperty
set PropertyType "CollectionId" CidrRoutingConfigProperty
newValue CidrRoutingConfigProperty {()
Value Text
haddock_workaround_ :: CidrRoutingConfigProperty -> ()
collectionId :: CidrRoutingConfigProperty -> Value Text
locationName :: CidrRoutingConfigProperty -> Value Text
haddock_workaround_ :: ()
collectionId :: Value Text
locationName :: Value Text
..}
= CidrRoutingConfigProperty {collectionId :: Value Text
collectionId = PropertyType "CollectionId" CidrRoutingConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
locationName :: Value Text
haddock_workaround_ :: ()
locationName :: Value Text
..}
instance Property "LocationName" CidrRoutingConfigProperty where
type PropertyType "LocationName" CidrRoutingConfigProperty = Value Prelude.Text
set :: PropertyType "LocationName" CidrRoutingConfigProperty
-> CidrRoutingConfigProperty -> CidrRoutingConfigProperty
set PropertyType "LocationName" CidrRoutingConfigProperty
newValue CidrRoutingConfigProperty {()
Value Text
haddock_workaround_ :: CidrRoutingConfigProperty -> ()
collectionId :: CidrRoutingConfigProperty -> Value Text
locationName :: CidrRoutingConfigProperty -> Value Text
haddock_workaround_ :: ()
collectionId :: Value Text
locationName :: Value Text
..}
= CidrRoutingConfigProperty {locationName :: Value Text
locationName = PropertyType "LocationName" CidrRoutingConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
collectionId :: Value Text
haddock_workaround_ :: ()
collectionId :: Value Text
..}