module Stratosphere.Comprehend.Flywheel.DataSecurityConfigProperty (
module Exports, DataSecurityConfigProperty(..),
mkDataSecurityConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Comprehend.Flywheel.VpcConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataSecurityConfigProperty
=
DataSecurityConfigProperty {DataSecurityConfigProperty -> ()
haddock_workaround_ :: (),
DataSecurityConfigProperty -> Maybe (Value Text)
dataLakeKmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
DataSecurityConfigProperty -> Maybe (Value Text)
modelKmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
DataSecurityConfigProperty -> Maybe (Value Text)
volumeKmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
DataSecurityConfigProperty -> Maybe VpcConfigProperty
vpcConfig :: (Prelude.Maybe VpcConfigProperty)}
deriving stock (DataSecurityConfigProperty -> DataSecurityConfigProperty -> Bool
(DataSecurityConfigProperty -> DataSecurityConfigProperty -> Bool)
-> (DataSecurityConfigProperty
-> DataSecurityConfigProperty -> Bool)
-> Eq DataSecurityConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataSecurityConfigProperty -> DataSecurityConfigProperty -> Bool
== :: DataSecurityConfigProperty -> DataSecurityConfigProperty -> Bool
$c/= :: DataSecurityConfigProperty -> DataSecurityConfigProperty -> Bool
/= :: DataSecurityConfigProperty -> DataSecurityConfigProperty -> Bool
Prelude.Eq, Int -> DataSecurityConfigProperty -> ShowS
[DataSecurityConfigProperty] -> ShowS
DataSecurityConfigProperty -> String
(Int -> DataSecurityConfigProperty -> ShowS)
-> (DataSecurityConfigProperty -> String)
-> ([DataSecurityConfigProperty] -> ShowS)
-> Show DataSecurityConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataSecurityConfigProperty -> ShowS
showsPrec :: Int -> DataSecurityConfigProperty -> ShowS
$cshow :: DataSecurityConfigProperty -> String
show :: DataSecurityConfigProperty -> String
$cshowList :: [DataSecurityConfigProperty] -> ShowS
showList :: [DataSecurityConfigProperty] -> ShowS
Prelude.Show)
mkDataSecurityConfigProperty :: DataSecurityConfigProperty
mkDataSecurityConfigProperty :: DataSecurityConfigProperty
mkDataSecurityConfigProperty
= DataSecurityConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), dataLakeKmsKeyId :: Maybe (Value Text)
dataLakeKmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
modelKmsKeyId :: Maybe (Value Text)
modelKmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, volumeKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
vpcConfig :: Maybe VpcConfigProperty
vpcConfig = Maybe VpcConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataSecurityConfigProperty where
toResourceProperties :: DataSecurityConfigProperty -> ResourceProperties
toResourceProperties DataSecurityConfigProperty {Maybe (Value Text)
Maybe VpcConfigProperty
()
haddock_workaround_ :: DataSecurityConfigProperty -> ()
dataLakeKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
modelKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
volumeKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
vpcConfig :: DataSecurityConfigProperty -> Maybe VpcConfigProperty
haddock_workaround_ :: ()
dataLakeKmsKeyId :: Maybe (Value Text)
modelKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId :: Maybe (Value Text)
vpcConfig :: Maybe VpcConfigProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Comprehend::Flywheel.DataSecurityConfig",
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
"DataLakeKmsKeyId" (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)
dataLakeKmsKeyId,
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
"ModelKmsKeyId" (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)
modelKmsKeyId,
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
"VolumeKmsKeyId" (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)
volumeKmsKeyId,
Key -> VpcConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VpcConfig" (VpcConfigProperty -> (Key, Value))
-> Maybe VpcConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcConfigProperty
vpcConfig])}
instance JSON.ToJSON DataSecurityConfigProperty where
toJSON :: DataSecurityConfigProperty -> Value
toJSON DataSecurityConfigProperty {Maybe (Value Text)
Maybe VpcConfigProperty
()
haddock_workaround_ :: DataSecurityConfigProperty -> ()
dataLakeKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
modelKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
volumeKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
vpcConfig :: DataSecurityConfigProperty -> Maybe VpcConfigProperty
haddock_workaround_ :: ()
dataLakeKmsKeyId :: Maybe (Value Text)
modelKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId :: Maybe (Value Text)
vpcConfig :: Maybe VpcConfigProperty
..}
= [(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
"DataLakeKmsKeyId" (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)
dataLakeKmsKeyId,
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
"ModelKmsKeyId" (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)
modelKmsKeyId,
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
"VolumeKmsKeyId" (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)
volumeKmsKeyId,
Key -> VpcConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VpcConfig" (VpcConfigProperty -> (Key, Value))
-> Maybe VpcConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcConfigProperty
vpcConfig]))
instance Property "DataLakeKmsKeyId" DataSecurityConfigProperty where
type PropertyType "DataLakeKmsKeyId" DataSecurityConfigProperty = Value Prelude.Text
set :: PropertyType "DataLakeKmsKeyId" DataSecurityConfigProperty
-> DataSecurityConfigProperty -> DataSecurityConfigProperty
set PropertyType "DataLakeKmsKeyId" DataSecurityConfigProperty
newValue DataSecurityConfigProperty {Maybe (Value Text)
Maybe VpcConfigProperty
()
haddock_workaround_ :: DataSecurityConfigProperty -> ()
dataLakeKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
modelKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
volumeKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
vpcConfig :: DataSecurityConfigProperty -> Maybe VpcConfigProperty
haddock_workaround_ :: ()
dataLakeKmsKeyId :: Maybe (Value Text)
modelKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId :: Maybe (Value Text)
vpcConfig :: Maybe VpcConfigProperty
..}
= DataSecurityConfigProperty
{dataLakeKmsKeyId :: Maybe (Value Text)
dataLakeKmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DataLakeKmsKeyId" DataSecurityConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe VpcConfigProperty
()
haddock_workaround_ :: ()
modelKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId :: Maybe (Value Text)
vpcConfig :: Maybe VpcConfigProperty
haddock_workaround_ :: ()
modelKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId :: Maybe (Value Text)
vpcConfig :: Maybe VpcConfigProperty
..}
instance Property "ModelKmsKeyId" DataSecurityConfigProperty where
type PropertyType "ModelKmsKeyId" DataSecurityConfigProperty = Value Prelude.Text
set :: PropertyType "ModelKmsKeyId" DataSecurityConfigProperty
-> DataSecurityConfigProperty -> DataSecurityConfigProperty
set PropertyType "ModelKmsKeyId" DataSecurityConfigProperty
newValue DataSecurityConfigProperty {Maybe (Value Text)
Maybe VpcConfigProperty
()
haddock_workaround_ :: DataSecurityConfigProperty -> ()
dataLakeKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
modelKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
volumeKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
vpcConfig :: DataSecurityConfigProperty -> Maybe VpcConfigProperty
haddock_workaround_ :: ()
dataLakeKmsKeyId :: Maybe (Value Text)
modelKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId :: Maybe (Value Text)
vpcConfig :: Maybe VpcConfigProperty
..}
= DataSecurityConfigProperty
{modelKmsKeyId :: Maybe (Value Text)
modelKmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ModelKmsKeyId" DataSecurityConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe VpcConfigProperty
()
haddock_workaround_ :: ()
dataLakeKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId :: Maybe (Value Text)
vpcConfig :: Maybe VpcConfigProperty
haddock_workaround_ :: ()
dataLakeKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId :: Maybe (Value Text)
vpcConfig :: Maybe VpcConfigProperty
..}
instance Property "VolumeKmsKeyId" DataSecurityConfigProperty where
type PropertyType "VolumeKmsKeyId" DataSecurityConfigProperty = Value Prelude.Text
set :: PropertyType "VolumeKmsKeyId" DataSecurityConfigProperty
-> DataSecurityConfigProperty -> DataSecurityConfigProperty
set PropertyType "VolumeKmsKeyId" DataSecurityConfigProperty
newValue DataSecurityConfigProperty {Maybe (Value Text)
Maybe VpcConfigProperty
()
haddock_workaround_ :: DataSecurityConfigProperty -> ()
dataLakeKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
modelKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
volumeKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
vpcConfig :: DataSecurityConfigProperty -> Maybe VpcConfigProperty
haddock_workaround_ :: ()
dataLakeKmsKeyId :: Maybe (Value Text)
modelKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId :: Maybe (Value Text)
vpcConfig :: Maybe VpcConfigProperty
..}
= DataSecurityConfigProperty
{volumeKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VolumeKmsKeyId" DataSecurityConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe VpcConfigProperty
()
haddock_workaround_ :: ()
dataLakeKmsKeyId :: Maybe (Value Text)
modelKmsKeyId :: Maybe (Value Text)
vpcConfig :: Maybe VpcConfigProperty
haddock_workaround_ :: ()
dataLakeKmsKeyId :: Maybe (Value Text)
modelKmsKeyId :: Maybe (Value Text)
vpcConfig :: Maybe VpcConfigProperty
..}
instance Property "VpcConfig" DataSecurityConfigProperty where
type PropertyType "VpcConfig" DataSecurityConfigProperty = VpcConfigProperty
set :: PropertyType "VpcConfig" DataSecurityConfigProperty
-> DataSecurityConfigProperty -> DataSecurityConfigProperty
set PropertyType "VpcConfig" DataSecurityConfigProperty
newValue DataSecurityConfigProperty {Maybe (Value Text)
Maybe VpcConfigProperty
()
haddock_workaround_ :: DataSecurityConfigProperty -> ()
dataLakeKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
modelKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
volumeKmsKeyId :: DataSecurityConfigProperty -> Maybe (Value Text)
vpcConfig :: DataSecurityConfigProperty -> Maybe VpcConfigProperty
haddock_workaround_ :: ()
dataLakeKmsKeyId :: Maybe (Value Text)
modelKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId :: Maybe (Value Text)
vpcConfig :: Maybe VpcConfigProperty
..}
= DataSecurityConfigProperty
{vpcConfig :: Maybe VpcConfigProperty
vpcConfig = VpcConfigProperty -> Maybe VpcConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcConfig" DataSecurityConfigProperty
VpcConfigProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
dataLakeKmsKeyId :: Maybe (Value Text)
modelKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
dataLakeKmsKeyId :: Maybe (Value Text)
modelKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId :: Maybe (Value Text)
..}