module Stratosphere.DynamoDB.GlobalTable.ReplicaSSESpecificationProperty (
        ReplicaSSESpecificationProperty(..),
        mkReplicaSSESpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReplicaSSESpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicassespecification.html>
    ReplicaSSESpecificationProperty {ReplicaSSESpecificationProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicassespecification.html#cfn-dynamodb-globaltable-replicassespecification-kmsmasterkeyid>
                                     ReplicaSSESpecificationProperty -> Value Text
kMSMasterKeyId :: (Value Prelude.Text)}
  deriving stock (ReplicaSSESpecificationProperty
-> ReplicaSSESpecificationProperty -> Bool
(ReplicaSSESpecificationProperty
 -> ReplicaSSESpecificationProperty -> Bool)
-> (ReplicaSSESpecificationProperty
    -> ReplicaSSESpecificationProperty -> Bool)
-> Eq ReplicaSSESpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReplicaSSESpecificationProperty
-> ReplicaSSESpecificationProperty -> Bool
== :: ReplicaSSESpecificationProperty
-> ReplicaSSESpecificationProperty -> Bool
$c/= :: ReplicaSSESpecificationProperty
-> ReplicaSSESpecificationProperty -> Bool
/= :: ReplicaSSESpecificationProperty
-> ReplicaSSESpecificationProperty -> Bool
Prelude.Eq, Int -> ReplicaSSESpecificationProperty -> ShowS
[ReplicaSSESpecificationProperty] -> ShowS
ReplicaSSESpecificationProperty -> String
(Int -> ReplicaSSESpecificationProperty -> ShowS)
-> (ReplicaSSESpecificationProperty -> String)
-> ([ReplicaSSESpecificationProperty] -> ShowS)
-> Show ReplicaSSESpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReplicaSSESpecificationProperty -> ShowS
showsPrec :: Int -> ReplicaSSESpecificationProperty -> ShowS
$cshow :: ReplicaSSESpecificationProperty -> String
show :: ReplicaSSESpecificationProperty -> String
$cshowList :: [ReplicaSSESpecificationProperty] -> ShowS
showList :: [ReplicaSSESpecificationProperty] -> ShowS
Prelude.Show)
mkReplicaSSESpecificationProperty ::
  Value Prelude.Text -> ReplicaSSESpecificationProperty
mkReplicaSSESpecificationProperty :: Value Text -> ReplicaSSESpecificationProperty
mkReplicaSSESpecificationProperty Value Text
kMSMasterKeyId
  = ReplicaSSESpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), kMSMasterKeyId :: Value Text
kMSMasterKeyId = Value Text
kMSMasterKeyId}
instance ToResourceProperties ReplicaSSESpecificationProperty where
  toResourceProperties :: ReplicaSSESpecificationProperty -> ResourceProperties
toResourceProperties ReplicaSSESpecificationProperty {()
Value Text
haddock_workaround_ :: ReplicaSSESpecificationProperty -> ()
kMSMasterKeyId :: ReplicaSSESpecificationProperty -> Value Text
haddock_workaround_ :: ()
kMSMasterKeyId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DynamoDB::GlobalTable.ReplicaSSESpecification",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"KMSMasterKeyId" 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
kMSMasterKeyId]}
instance JSON.ToJSON ReplicaSSESpecificationProperty where
  toJSON :: ReplicaSSESpecificationProperty -> Value
toJSON ReplicaSSESpecificationProperty {()
Value Text
haddock_workaround_ :: ReplicaSSESpecificationProperty -> ()
kMSMasterKeyId :: ReplicaSSESpecificationProperty -> Value Text
haddock_workaround_ :: ()
kMSMasterKeyId :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"KMSMasterKeyId" 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
kMSMasterKeyId]
instance Property "KMSMasterKeyId" ReplicaSSESpecificationProperty where
  type PropertyType "KMSMasterKeyId" ReplicaSSESpecificationProperty = Value Prelude.Text
  set :: PropertyType "KMSMasterKeyId" ReplicaSSESpecificationProperty
-> ReplicaSSESpecificationProperty
-> ReplicaSSESpecificationProperty
set PropertyType "KMSMasterKeyId" ReplicaSSESpecificationProperty
newValue ReplicaSSESpecificationProperty {()
Value Text
haddock_workaround_ :: ReplicaSSESpecificationProperty -> ()
kMSMasterKeyId :: ReplicaSSESpecificationProperty -> Value Text
haddock_workaround_ :: ()
kMSMasterKeyId :: Value Text
..}
    = ReplicaSSESpecificationProperty {kMSMasterKeyId :: Value Text
kMSMasterKeyId = PropertyType "KMSMasterKeyId" ReplicaSSESpecificationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}