module Stratosphere.Cassandra.Table.EncryptionSpecificationProperty (
EncryptionSpecificationProperty(..),
mkEncryptionSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EncryptionSpecificationProperty
=
EncryptionSpecificationProperty {EncryptionSpecificationProperty -> ()
haddock_workaround_ :: (),
EncryptionSpecificationProperty -> Value Text
encryptionType :: (Value Prelude.Text),
EncryptionSpecificationProperty -> Maybe (Value Text)
kmsKeyIdentifier :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (EncryptionSpecificationProperty
-> EncryptionSpecificationProperty -> Bool
(EncryptionSpecificationProperty
-> EncryptionSpecificationProperty -> Bool)
-> (EncryptionSpecificationProperty
-> EncryptionSpecificationProperty -> Bool)
-> Eq EncryptionSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EncryptionSpecificationProperty
-> EncryptionSpecificationProperty -> Bool
== :: EncryptionSpecificationProperty
-> EncryptionSpecificationProperty -> Bool
$c/= :: EncryptionSpecificationProperty
-> EncryptionSpecificationProperty -> Bool
/= :: EncryptionSpecificationProperty
-> EncryptionSpecificationProperty -> Bool
Prelude.Eq, Int -> EncryptionSpecificationProperty -> ShowS
[EncryptionSpecificationProperty] -> ShowS
EncryptionSpecificationProperty -> String
(Int -> EncryptionSpecificationProperty -> ShowS)
-> (EncryptionSpecificationProperty -> String)
-> ([EncryptionSpecificationProperty] -> ShowS)
-> Show EncryptionSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EncryptionSpecificationProperty -> ShowS
showsPrec :: Int -> EncryptionSpecificationProperty -> ShowS
$cshow :: EncryptionSpecificationProperty -> String
show :: EncryptionSpecificationProperty -> String
$cshowList :: [EncryptionSpecificationProperty] -> ShowS
showList :: [EncryptionSpecificationProperty] -> ShowS
Prelude.Show)
mkEncryptionSpecificationProperty ::
Value Prelude.Text -> EncryptionSpecificationProperty
mkEncryptionSpecificationProperty :: Value Text -> EncryptionSpecificationProperty
mkEncryptionSpecificationProperty Value Text
encryptionType
= EncryptionSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), encryptionType :: Value Text
encryptionType = Value Text
encryptionType,
kmsKeyIdentifier :: Maybe (Value Text)
kmsKeyIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EncryptionSpecificationProperty where
toResourceProperties :: EncryptionSpecificationProperty -> ResourceProperties
toResourceProperties EncryptionSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EncryptionSpecificationProperty -> ()
encryptionType :: EncryptionSpecificationProperty -> Value Text
kmsKeyIdentifier :: EncryptionSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionType :: Value Text
kmsKeyIdentifier :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Cassandra::Table.EncryptionSpecification",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"EncryptionType" 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
encryptionType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"KmsKeyIdentifier" (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)
kmsKeyIdentifier]))}
instance JSON.ToJSON EncryptionSpecificationProperty where
toJSON :: EncryptionSpecificationProperty -> Value
toJSON EncryptionSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EncryptionSpecificationProperty -> ()
encryptionType :: EncryptionSpecificationProperty -> Value Text
kmsKeyIdentifier :: EncryptionSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionType :: Value Text
kmsKeyIdentifier :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"EncryptionType" 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
encryptionType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"KmsKeyIdentifier" (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)
kmsKeyIdentifier])))
instance Property "EncryptionType" EncryptionSpecificationProperty where
type PropertyType "EncryptionType" EncryptionSpecificationProperty = Value Prelude.Text
set :: PropertyType "EncryptionType" EncryptionSpecificationProperty
-> EncryptionSpecificationProperty
-> EncryptionSpecificationProperty
set PropertyType "EncryptionType" EncryptionSpecificationProperty
newValue EncryptionSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EncryptionSpecificationProperty -> ()
encryptionType :: EncryptionSpecificationProperty -> Value Text
kmsKeyIdentifier :: EncryptionSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionType :: Value Text
kmsKeyIdentifier :: Maybe (Value Text)
..}
= EncryptionSpecificationProperty {encryptionType :: Value Text
encryptionType = PropertyType "EncryptionType" EncryptionSpecificationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKeyIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyIdentifier :: Maybe (Value Text)
..}
instance Property "KmsKeyIdentifier" EncryptionSpecificationProperty where
type PropertyType "KmsKeyIdentifier" EncryptionSpecificationProperty = Value Prelude.Text
set :: PropertyType "KmsKeyIdentifier" EncryptionSpecificationProperty
-> EncryptionSpecificationProperty
-> EncryptionSpecificationProperty
set PropertyType "KmsKeyIdentifier" EncryptionSpecificationProperty
newValue EncryptionSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EncryptionSpecificationProperty -> ()
encryptionType :: EncryptionSpecificationProperty -> Value Text
kmsKeyIdentifier :: EncryptionSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionType :: Value Text
kmsKeyIdentifier :: Maybe (Value Text)
..}
= EncryptionSpecificationProperty
{kmsKeyIdentifier :: Maybe (Value Text)
kmsKeyIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyIdentifier" EncryptionSpecificationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
encryptionType :: Value Text
haddock_workaround_ :: ()
encryptionType :: Value Text
..}