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