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