module Stratosphere.SSMIncidents.ReplicationSet.ReplicationRegionProperty (
module Exports, ReplicationRegionProperty(..),
mkReplicationRegionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SSMIncidents.ReplicationSet.RegionConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReplicationRegionProperty
=
ReplicationRegionProperty {ReplicationRegionProperty -> ()
haddock_workaround_ :: (),
ReplicationRegionProperty -> Maybe RegionConfigurationProperty
regionConfiguration :: (Prelude.Maybe RegionConfigurationProperty),
ReplicationRegionProperty -> Maybe (Value Text)
regionName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ReplicationRegionProperty -> ReplicationRegionProperty -> Bool
(ReplicationRegionProperty -> ReplicationRegionProperty -> Bool)
-> (ReplicationRegionProperty -> ReplicationRegionProperty -> Bool)
-> Eq ReplicationRegionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReplicationRegionProperty -> ReplicationRegionProperty -> Bool
== :: ReplicationRegionProperty -> ReplicationRegionProperty -> Bool
$c/= :: ReplicationRegionProperty -> ReplicationRegionProperty -> Bool
/= :: ReplicationRegionProperty -> ReplicationRegionProperty -> Bool
Prelude.Eq, Int -> ReplicationRegionProperty -> ShowS
[ReplicationRegionProperty] -> ShowS
ReplicationRegionProperty -> String
(Int -> ReplicationRegionProperty -> ShowS)
-> (ReplicationRegionProperty -> String)
-> ([ReplicationRegionProperty] -> ShowS)
-> Show ReplicationRegionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReplicationRegionProperty -> ShowS
showsPrec :: Int -> ReplicationRegionProperty -> ShowS
$cshow :: ReplicationRegionProperty -> String
show :: ReplicationRegionProperty -> String
$cshowList :: [ReplicationRegionProperty] -> ShowS
showList :: [ReplicationRegionProperty] -> ShowS
Prelude.Show)
mkReplicationRegionProperty :: ReplicationRegionProperty
mkReplicationRegionProperty :: ReplicationRegionProperty
mkReplicationRegionProperty
= ReplicationRegionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), regionConfiguration :: Maybe RegionConfigurationProperty
regionConfiguration = Maybe RegionConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
regionName :: Maybe (Value Text)
regionName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ReplicationRegionProperty where
toResourceProperties :: ReplicationRegionProperty -> ResourceProperties
toResourceProperties ReplicationRegionProperty {Maybe (Value Text)
Maybe RegionConfigurationProperty
()
haddock_workaround_ :: ReplicationRegionProperty -> ()
regionConfiguration :: ReplicationRegionProperty -> Maybe RegionConfigurationProperty
regionName :: ReplicationRegionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
regionConfiguration :: Maybe RegionConfigurationProperty
regionName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSMIncidents::ReplicationSet.ReplicationRegion",
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 -> RegionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RegionConfiguration" (RegionConfigurationProperty -> (Key, Value))
-> Maybe RegionConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RegionConfigurationProperty
regionConfiguration,
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
"RegionName" (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)
regionName])}
instance JSON.ToJSON ReplicationRegionProperty where
toJSON :: ReplicationRegionProperty -> Value
toJSON ReplicationRegionProperty {Maybe (Value Text)
Maybe RegionConfigurationProperty
()
haddock_workaround_ :: ReplicationRegionProperty -> ()
regionConfiguration :: ReplicationRegionProperty -> Maybe RegionConfigurationProperty
regionName :: ReplicationRegionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
regionConfiguration :: Maybe RegionConfigurationProperty
regionName :: 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 -> RegionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RegionConfiguration" (RegionConfigurationProperty -> (Key, Value))
-> Maybe RegionConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RegionConfigurationProperty
regionConfiguration,
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
"RegionName" (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)
regionName]))
instance Property "RegionConfiguration" ReplicationRegionProperty where
type PropertyType "RegionConfiguration" ReplicationRegionProperty = RegionConfigurationProperty
set :: PropertyType "RegionConfiguration" ReplicationRegionProperty
-> ReplicationRegionProperty -> ReplicationRegionProperty
set PropertyType "RegionConfiguration" ReplicationRegionProperty
newValue ReplicationRegionProperty {Maybe (Value Text)
Maybe RegionConfigurationProperty
()
haddock_workaround_ :: ReplicationRegionProperty -> ()
regionConfiguration :: ReplicationRegionProperty -> Maybe RegionConfigurationProperty
regionName :: ReplicationRegionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
regionConfiguration :: Maybe RegionConfigurationProperty
regionName :: Maybe (Value Text)
..}
= ReplicationRegionProperty
{regionConfiguration :: Maybe RegionConfigurationProperty
regionConfiguration = RegionConfigurationProperty -> Maybe RegionConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RegionConfiguration" ReplicationRegionProperty
RegionConfigurationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
regionName :: Maybe (Value Text)
haddock_workaround_ :: ()
regionName :: Maybe (Value Text)
..}
instance Property "RegionName" ReplicationRegionProperty where
type PropertyType "RegionName" ReplicationRegionProperty = Value Prelude.Text
set :: PropertyType "RegionName" ReplicationRegionProperty
-> ReplicationRegionProperty -> ReplicationRegionProperty
set PropertyType "RegionName" ReplicationRegionProperty
newValue ReplicationRegionProperty {Maybe (Value Text)
Maybe RegionConfigurationProperty
()
haddock_workaround_ :: ReplicationRegionProperty -> ()
regionConfiguration :: ReplicationRegionProperty -> Maybe RegionConfigurationProperty
regionName :: ReplicationRegionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
regionConfiguration :: Maybe RegionConfigurationProperty
regionName :: Maybe (Value Text)
..}
= ReplicationRegionProperty
{regionName :: Maybe (Value Text)
regionName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RegionName" ReplicationRegionProperty
Value Text
newValue, Maybe RegionConfigurationProperty
()
haddock_workaround_ :: ()
regionConfiguration :: Maybe RegionConfigurationProperty
haddock_workaround_ :: ()
regionConfiguration :: Maybe RegionConfigurationProperty
..}