module Stratosphere.HealthLake.FHIRDatastore.KmsEncryptionConfigProperty (
KmsEncryptionConfigProperty(..), mkKmsEncryptionConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data KmsEncryptionConfigProperty
=
KmsEncryptionConfigProperty {KmsEncryptionConfigProperty -> ()
haddock_workaround_ :: (),
KmsEncryptionConfigProperty -> Value Text
cmkType :: (Value Prelude.Text),
KmsEncryptionConfigProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (KmsEncryptionConfigProperty -> KmsEncryptionConfigProperty -> Bool
(KmsEncryptionConfigProperty
-> KmsEncryptionConfigProperty -> Bool)
-> (KmsEncryptionConfigProperty
-> KmsEncryptionConfigProperty -> Bool)
-> Eq KmsEncryptionConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: KmsEncryptionConfigProperty -> KmsEncryptionConfigProperty -> Bool
== :: KmsEncryptionConfigProperty -> KmsEncryptionConfigProperty -> Bool
$c/= :: KmsEncryptionConfigProperty -> KmsEncryptionConfigProperty -> Bool
/= :: KmsEncryptionConfigProperty -> KmsEncryptionConfigProperty -> Bool
Prelude.Eq, Int -> KmsEncryptionConfigProperty -> ShowS
[KmsEncryptionConfigProperty] -> ShowS
KmsEncryptionConfigProperty -> String
(Int -> KmsEncryptionConfigProperty -> ShowS)
-> (KmsEncryptionConfigProperty -> String)
-> ([KmsEncryptionConfigProperty] -> ShowS)
-> Show KmsEncryptionConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> KmsEncryptionConfigProperty -> ShowS
showsPrec :: Int -> KmsEncryptionConfigProperty -> ShowS
$cshow :: KmsEncryptionConfigProperty -> String
show :: KmsEncryptionConfigProperty -> String
$cshowList :: [KmsEncryptionConfigProperty] -> ShowS
showList :: [KmsEncryptionConfigProperty] -> ShowS
Prelude.Show)
mkKmsEncryptionConfigProperty ::
Value Prelude.Text -> KmsEncryptionConfigProperty
mkKmsEncryptionConfigProperty :: Value Text -> KmsEncryptionConfigProperty
mkKmsEncryptionConfigProperty Value Text
cmkType
= KmsEncryptionConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), cmkType :: Value Text
cmkType = Value Text
cmkType,
kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties KmsEncryptionConfigProperty where
toResourceProperties :: KmsEncryptionConfigProperty -> ResourceProperties
toResourceProperties KmsEncryptionConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KmsEncryptionConfigProperty -> ()
cmkType :: KmsEncryptionConfigProperty -> Value Text
kmsKeyId :: KmsEncryptionConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cmkType :: Value Text
kmsKeyId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::HealthLake::FHIRDatastore.KmsEncryptionConfig",
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
"CmkType" 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
cmkType]
([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
"KmsKeyId" (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)
kmsKeyId]))}
instance JSON.ToJSON KmsEncryptionConfigProperty where
toJSON :: KmsEncryptionConfigProperty -> Value
toJSON KmsEncryptionConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KmsEncryptionConfigProperty -> ()
cmkType :: KmsEncryptionConfigProperty -> Value Text
kmsKeyId :: KmsEncryptionConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cmkType :: Value Text
kmsKeyId :: 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
"CmkType" 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
cmkType]
([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
"KmsKeyId" (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)
kmsKeyId])))
instance Property "CmkType" KmsEncryptionConfigProperty where
type PropertyType "CmkType" KmsEncryptionConfigProperty = Value Prelude.Text
set :: PropertyType "CmkType" KmsEncryptionConfigProperty
-> KmsEncryptionConfigProperty -> KmsEncryptionConfigProperty
set PropertyType "CmkType" KmsEncryptionConfigProperty
newValue KmsEncryptionConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KmsEncryptionConfigProperty -> ()
cmkType :: KmsEncryptionConfigProperty -> Value Text
kmsKeyId :: KmsEncryptionConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cmkType :: Value Text
kmsKeyId :: Maybe (Value Text)
..}
= KmsEncryptionConfigProperty {cmkType :: Value Text
cmkType = PropertyType "CmkType" KmsEncryptionConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
..}
instance Property "KmsKeyId" KmsEncryptionConfigProperty where
type PropertyType "KmsKeyId" KmsEncryptionConfigProperty = Value Prelude.Text
set :: PropertyType "KmsKeyId" KmsEncryptionConfigProperty
-> KmsEncryptionConfigProperty -> KmsEncryptionConfigProperty
set PropertyType "KmsKeyId" KmsEncryptionConfigProperty
newValue KmsEncryptionConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KmsEncryptionConfigProperty -> ()
cmkType :: KmsEncryptionConfigProperty -> Value Text
kmsKeyId :: KmsEncryptionConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cmkType :: Value Text
kmsKeyId :: Maybe (Value Text)
..}
= KmsEncryptionConfigProperty
{kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" KmsEncryptionConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
cmkType :: Value Text
haddock_workaround_ :: ()
cmkType :: Value Text
..}