module Stratosphere.Glue.DataCatalogEncryptionSettings.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 -> Maybe (Value Text)
catalogEncryptionMode :: (Prelude.Maybe (Value Prelude.Text)),
EncryptionAtRestProperty -> Maybe (Value Text)
catalogEncryptionServiceRole :: (Prelude.Maybe (Value Prelude.Text)),
EncryptionAtRestProperty -> Maybe (Value Text)
sseAwsKmsKeyId :: (Prelude.Maybe (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 :: EncryptionAtRestProperty
mkEncryptionAtRestProperty :: EncryptionAtRestProperty
mkEncryptionAtRestProperty
= EncryptionAtRestProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), catalogEncryptionMode :: Maybe (Value Text)
catalogEncryptionMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
catalogEncryptionServiceRole :: Maybe (Value Text)
catalogEncryptionServiceRole = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
sseAwsKmsKeyId :: Maybe (Value Text)
sseAwsKmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EncryptionAtRestProperty where
toResourceProperties :: EncryptionAtRestProperty -> ResourceProperties
toResourceProperties EncryptionAtRestProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionAtRestProperty -> ()
catalogEncryptionMode :: EncryptionAtRestProperty -> Maybe (Value Text)
catalogEncryptionServiceRole :: EncryptionAtRestProperty -> Maybe (Value Text)
sseAwsKmsKeyId :: EncryptionAtRestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
catalogEncryptionMode :: Maybe (Value Text)
catalogEncryptionServiceRole :: Maybe (Value Text)
sseAwsKmsKeyId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Glue::DataCatalogEncryptionSettings.EncryptionAtRest",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"CatalogEncryptionMode"
(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)
catalogEncryptionMode,
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
"CatalogEncryptionServiceRole"
(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)
catalogEncryptionServiceRole,
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
"SseAwsKmsKeyId" (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)
sseAwsKmsKeyId])}
instance JSON.ToJSON EncryptionAtRestProperty where
toJSON :: EncryptionAtRestProperty -> Value
toJSON EncryptionAtRestProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionAtRestProperty -> ()
catalogEncryptionMode :: EncryptionAtRestProperty -> Maybe (Value Text)
catalogEncryptionServiceRole :: EncryptionAtRestProperty -> Maybe (Value Text)
sseAwsKmsKeyId :: EncryptionAtRestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
catalogEncryptionMode :: Maybe (Value Text)
catalogEncryptionServiceRole :: Maybe (Value Text)
sseAwsKmsKeyId :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"CatalogEncryptionMode"
(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)
catalogEncryptionMode,
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
"CatalogEncryptionServiceRole"
(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)
catalogEncryptionServiceRole,
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
"SseAwsKmsKeyId" (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)
sseAwsKmsKeyId]))
instance Property "CatalogEncryptionMode" EncryptionAtRestProperty where
type PropertyType "CatalogEncryptionMode" EncryptionAtRestProperty = Value Prelude.Text
set :: PropertyType "CatalogEncryptionMode" EncryptionAtRestProperty
-> EncryptionAtRestProperty -> EncryptionAtRestProperty
set PropertyType "CatalogEncryptionMode" EncryptionAtRestProperty
newValue EncryptionAtRestProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionAtRestProperty -> ()
catalogEncryptionMode :: EncryptionAtRestProperty -> Maybe (Value Text)
catalogEncryptionServiceRole :: EncryptionAtRestProperty -> Maybe (Value Text)
sseAwsKmsKeyId :: EncryptionAtRestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
catalogEncryptionMode :: Maybe (Value Text)
catalogEncryptionServiceRole :: Maybe (Value Text)
sseAwsKmsKeyId :: Maybe (Value Text)
..}
= EncryptionAtRestProperty
{catalogEncryptionMode :: Maybe (Value Text)
catalogEncryptionMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CatalogEncryptionMode" EncryptionAtRestProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
catalogEncryptionServiceRole :: Maybe (Value Text)
sseAwsKmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
catalogEncryptionServiceRole :: Maybe (Value Text)
sseAwsKmsKeyId :: Maybe (Value Text)
..}
instance Property "CatalogEncryptionServiceRole" EncryptionAtRestProperty where
type PropertyType "CatalogEncryptionServiceRole" EncryptionAtRestProperty = Value Prelude.Text
set :: PropertyType
"CatalogEncryptionServiceRole" EncryptionAtRestProperty
-> EncryptionAtRestProperty -> EncryptionAtRestProperty
set PropertyType
"CatalogEncryptionServiceRole" EncryptionAtRestProperty
newValue EncryptionAtRestProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionAtRestProperty -> ()
catalogEncryptionMode :: EncryptionAtRestProperty -> Maybe (Value Text)
catalogEncryptionServiceRole :: EncryptionAtRestProperty -> Maybe (Value Text)
sseAwsKmsKeyId :: EncryptionAtRestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
catalogEncryptionMode :: Maybe (Value Text)
catalogEncryptionServiceRole :: Maybe (Value Text)
sseAwsKmsKeyId :: Maybe (Value Text)
..}
= EncryptionAtRestProperty
{catalogEncryptionServiceRole :: Maybe (Value Text)
catalogEncryptionServiceRole = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"CatalogEncryptionServiceRole" EncryptionAtRestProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
catalogEncryptionMode :: Maybe (Value Text)
sseAwsKmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
catalogEncryptionMode :: Maybe (Value Text)
sseAwsKmsKeyId :: Maybe (Value Text)
..}
instance Property "SseAwsKmsKeyId" EncryptionAtRestProperty where
type PropertyType "SseAwsKmsKeyId" EncryptionAtRestProperty = Value Prelude.Text
set :: PropertyType "SseAwsKmsKeyId" EncryptionAtRestProperty
-> EncryptionAtRestProperty -> EncryptionAtRestProperty
set PropertyType "SseAwsKmsKeyId" EncryptionAtRestProperty
newValue EncryptionAtRestProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionAtRestProperty -> ()
catalogEncryptionMode :: EncryptionAtRestProperty -> Maybe (Value Text)
catalogEncryptionServiceRole :: EncryptionAtRestProperty -> Maybe (Value Text)
sseAwsKmsKeyId :: EncryptionAtRestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
catalogEncryptionMode :: Maybe (Value Text)
catalogEncryptionServiceRole :: Maybe (Value Text)
sseAwsKmsKeyId :: Maybe (Value Text)
..}
= EncryptionAtRestProperty
{sseAwsKmsKeyId :: Maybe (Value Text)
sseAwsKmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SseAwsKmsKeyId" EncryptionAtRestProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
catalogEncryptionMode :: Maybe (Value Text)
catalogEncryptionServiceRole :: Maybe (Value Text)
haddock_workaround_ :: ()
catalogEncryptionMode :: Maybe (Value Text)
catalogEncryptionServiceRole :: Maybe (Value Text)
..}