module Stratosphere.VoiceID.Domain.ServerSideEncryptionConfigurationProperty (
        ServerSideEncryptionConfigurationProperty(..),
        mkServerSideEncryptionConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServerSideEncryptionConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-voiceid-domain-serversideencryptionconfiguration.html>
    ServerSideEncryptionConfigurationProperty {ServerSideEncryptionConfigurationProperty -> ()
haddock_workaround_ :: (),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-voiceid-domain-serversideencryptionconfiguration.html#cfn-voiceid-domain-serversideencryptionconfiguration-kmskeyid>
                                               ServerSideEncryptionConfigurationProperty -> Value Text
kmsKeyId :: (Value Prelude.Text)}
  deriving stock (ServerSideEncryptionConfigurationProperty
-> ServerSideEncryptionConfigurationProperty -> Bool
(ServerSideEncryptionConfigurationProperty
 -> ServerSideEncryptionConfigurationProperty -> Bool)
-> (ServerSideEncryptionConfigurationProperty
    -> ServerSideEncryptionConfigurationProperty -> Bool)
-> Eq ServerSideEncryptionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServerSideEncryptionConfigurationProperty
-> ServerSideEncryptionConfigurationProperty -> Bool
== :: ServerSideEncryptionConfigurationProperty
-> ServerSideEncryptionConfigurationProperty -> Bool
$c/= :: ServerSideEncryptionConfigurationProperty
-> ServerSideEncryptionConfigurationProperty -> Bool
/= :: ServerSideEncryptionConfigurationProperty
-> ServerSideEncryptionConfigurationProperty -> Bool
Prelude.Eq, Int -> ServerSideEncryptionConfigurationProperty -> ShowS
[ServerSideEncryptionConfigurationProperty] -> ShowS
ServerSideEncryptionConfigurationProperty -> String
(Int -> ServerSideEncryptionConfigurationProperty -> ShowS)
-> (ServerSideEncryptionConfigurationProperty -> String)
-> ([ServerSideEncryptionConfigurationProperty] -> ShowS)
-> Show ServerSideEncryptionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServerSideEncryptionConfigurationProperty -> ShowS
showsPrec :: Int -> ServerSideEncryptionConfigurationProperty -> ShowS
$cshow :: ServerSideEncryptionConfigurationProperty -> String
show :: ServerSideEncryptionConfigurationProperty -> String
$cshowList :: [ServerSideEncryptionConfigurationProperty] -> ShowS
showList :: [ServerSideEncryptionConfigurationProperty] -> ShowS
Prelude.Show)
mkServerSideEncryptionConfigurationProperty ::
  Value Prelude.Text -> ServerSideEncryptionConfigurationProperty
mkServerSideEncryptionConfigurationProperty :: Value Text -> ServerSideEncryptionConfigurationProperty
mkServerSideEncryptionConfigurationProperty Value Text
kmsKeyId
  = ServerSideEncryptionConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), kmsKeyId :: Value Text
kmsKeyId = Value Text
kmsKeyId}
instance ToResourceProperties ServerSideEncryptionConfigurationProperty where
  toResourceProperties :: ServerSideEncryptionConfigurationProperty -> ResourceProperties
toResourceProperties ServerSideEncryptionConfigurationProperty {()
Value Text
haddock_workaround_ :: ServerSideEncryptionConfigurationProperty -> ()
kmsKeyId :: ServerSideEncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::VoiceID::Domain.ServerSideEncryptionConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"KmsKeyId" 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
kmsKeyId]}
instance JSON.ToJSON ServerSideEncryptionConfigurationProperty where
  toJSON :: ServerSideEncryptionConfigurationProperty -> Value
toJSON ServerSideEncryptionConfigurationProperty {()
Value Text
haddock_workaround_ :: ServerSideEncryptionConfigurationProperty -> ()
kmsKeyId :: ServerSideEncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyId :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"KmsKeyId" 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
kmsKeyId]
instance Property "KmsKeyId" ServerSideEncryptionConfigurationProperty where
  type PropertyType "KmsKeyId" ServerSideEncryptionConfigurationProperty = Value Prelude.Text
  set :: PropertyType "KmsKeyId" ServerSideEncryptionConfigurationProperty
-> ServerSideEncryptionConfigurationProperty
-> ServerSideEncryptionConfigurationProperty
set PropertyType "KmsKeyId" ServerSideEncryptionConfigurationProperty
newValue ServerSideEncryptionConfigurationProperty {()
Value Text
haddock_workaround_ :: ServerSideEncryptionConfigurationProperty -> ()
kmsKeyId :: ServerSideEncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyId :: Value Text
..}
    = ServerSideEncryptionConfigurationProperty
        {kmsKeyId :: Value Text
kmsKeyId = PropertyType "KmsKeyId" ServerSideEncryptionConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}