module Stratosphere.SecurityLake.DataLake (
module Exports, DataLake(..), mkDataLake
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SecurityLake.DataLake.EncryptionConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.SecurityLake.DataLake.LifecycleConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.SecurityLake.DataLake.ReplicationConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data DataLake
=
DataLake {DataLake -> ()
haddock_workaround_ :: (),
DataLake -> Maybe EncryptionConfigurationProperty
encryptionConfiguration :: (Prelude.Maybe EncryptionConfigurationProperty),
DataLake -> Maybe LifecycleConfigurationProperty
lifecycleConfiguration :: (Prelude.Maybe LifecycleConfigurationProperty),
DataLake -> Maybe (Value Text)
metaStoreManagerRoleArn :: (Prelude.Maybe (Value Prelude.Text)),
DataLake -> Maybe ReplicationConfigurationProperty
replicationConfiguration :: (Prelude.Maybe ReplicationConfigurationProperty),
DataLake -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (DataLake -> DataLake -> Bool
(DataLake -> DataLake -> Bool)
-> (DataLake -> DataLake -> Bool) -> Eq DataLake
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataLake -> DataLake -> Bool
== :: DataLake -> DataLake -> Bool
$c/= :: DataLake -> DataLake -> Bool
/= :: DataLake -> DataLake -> Bool
Prelude.Eq, Int -> DataLake -> ShowS
[DataLake] -> ShowS
DataLake -> String
(Int -> DataLake -> ShowS)
-> (DataLake -> String) -> ([DataLake] -> ShowS) -> Show DataLake
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataLake -> ShowS
showsPrec :: Int -> DataLake -> ShowS
$cshow :: DataLake -> String
show :: DataLake -> String
$cshowList :: [DataLake] -> ShowS
showList :: [DataLake] -> ShowS
Prelude.Show)
mkDataLake :: DataLake
mkDataLake :: DataLake
mkDataLake
= DataLake
{haddock_workaround_ :: ()
haddock_workaround_ = (),
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
encryptionConfiguration = Maybe EncryptionConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
lifecycleConfiguration = Maybe LifecycleConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
metaStoreManagerRoleArn :: Maybe (Value Text)
metaStoreManagerRoleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
replicationConfiguration :: Maybe ReplicationConfigurationProperty
replicationConfiguration = Maybe ReplicationConfigurationProperty
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataLake where
toResourceProperties :: DataLake -> ResourceProperties
toResourceProperties DataLake {Maybe [Tag]
Maybe (Value Text)
Maybe EncryptionConfigurationProperty
Maybe ReplicationConfigurationProperty
Maybe LifecycleConfigurationProperty
()
haddock_workaround_ :: DataLake -> ()
encryptionConfiguration :: DataLake -> Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: DataLake -> Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: DataLake -> Maybe (Value Text)
replicationConfiguration :: DataLake -> Maybe ReplicationConfigurationProperty
tags :: DataLake -> Maybe [Tag]
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SecurityLake::DataLake",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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 -> EncryptionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EncryptionConfiguration"
(EncryptionConfigurationProperty -> (Key, Value))
-> Maybe EncryptionConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EncryptionConfigurationProperty
encryptionConfiguration,
Key -> LifecycleConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LifecycleConfiguration"
(LifecycleConfigurationProperty -> (Key, Value))
-> Maybe LifecycleConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LifecycleConfigurationProperty
lifecycleConfiguration,
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
"MetaStoreManagerRoleArn"
(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)
metaStoreManagerRoleArn,
Key -> ReplicationConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ReplicationConfiguration"
(ReplicationConfigurationProperty -> (Key, Value))
-> Maybe ReplicationConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReplicationConfigurationProperty
replicationConfiguration,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])}
instance JSON.ToJSON DataLake where
toJSON :: DataLake -> Value
toJSON DataLake {Maybe [Tag]
Maybe (Value Text)
Maybe EncryptionConfigurationProperty
Maybe ReplicationConfigurationProperty
Maybe LifecycleConfigurationProperty
()
haddock_workaround_ :: DataLake -> ()
encryptionConfiguration :: DataLake -> Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: DataLake -> Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: DataLake -> Maybe (Value Text)
replicationConfiguration :: DataLake -> Maybe ReplicationConfigurationProperty
tags :: DataLake -> Maybe [Tag]
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
..}
= [(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 -> EncryptionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EncryptionConfiguration"
(EncryptionConfigurationProperty -> (Key, Value))
-> Maybe EncryptionConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EncryptionConfigurationProperty
encryptionConfiguration,
Key -> LifecycleConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LifecycleConfiguration"
(LifecycleConfigurationProperty -> (Key, Value))
-> Maybe LifecycleConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LifecycleConfigurationProperty
lifecycleConfiguration,
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
"MetaStoreManagerRoleArn"
(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)
metaStoreManagerRoleArn,
Key -> ReplicationConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ReplicationConfiguration"
(ReplicationConfigurationProperty -> (Key, Value))
-> Maybe ReplicationConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReplicationConfigurationProperty
replicationConfiguration,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))
instance Property "EncryptionConfiguration" DataLake where
type PropertyType "EncryptionConfiguration" DataLake = EncryptionConfigurationProperty
set :: PropertyType "EncryptionConfiguration" DataLake
-> DataLake -> DataLake
set PropertyType "EncryptionConfiguration" DataLake
newValue DataLake {Maybe [Tag]
Maybe (Value Text)
Maybe EncryptionConfigurationProperty
Maybe ReplicationConfigurationProperty
Maybe LifecycleConfigurationProperty
()
haddock_workaround_ :: DataLake -> ()
encryptionConfiguration :: DataLake -> Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: DataLake -> Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: DataLake -> Maybe (Value Text)
replicationConfiguration :: DataLake -> Maybe ReplicationConfigurationProperty
tags :: DataLake -> Maybe [Tag]
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
..}
= DataLake {encryptionConfiguration :: Maybe EncryptionConfigurationProperty
encryptionConfiguration = EncryptionConfigurationProperty
-> Maybe EncryptionConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EncryptionConfiguration" DataLake
EncryptionConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe ReplicationConfigurationProperty
Maybe LifecycleConfigurationProperty
()
haddock_workaround_ :: ()
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "LifecycleConfiguration" DataLake where
type PropertyType "LifecycleConfiguration" DataLake = LifecycleConfigurationProperty
set :: PropertyType "LifecycleConfiguration" DataLake
-> DataLake -> DataLake
set PropertyType "LifecycleConfiguration" DataLake
newValue DataLake {Maybe [Tag]
Maybe (Value Text)
Maybe EncryptionConfigurationProperty
Maybe ReplicationConfigurationProperty
Maybe LifecycleConfigurationProperty
()
haddock_workaround_ :: DataLake -> ()
encryptionConfiguration :: DataLake -> Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: DataLake -> Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: DataLake -> Maybe (Value Text)
replicationConfiguration :: DataLake -> Maybe ReplicationConfigurationProperty
tags :: DataLake -> Maybe [Tag]
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
..}
= DataLake {lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
lifecycleConfiguration = LifecycleConfigurationProperty
-> Maybe LifecycleConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LifecycleConfiguration" DataLake
LifecycleConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe EncryptionConfigurationProperty
Maybe ReplicationConfigurationProperty
()
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "MetaStoreManagerRoleArn" DataLake where
type PropertyType "MetaStoreManagerRoleArn" DataLake = Value Prelude.Text
set :: PropertyType "MetaStoreManagerRoleArn" DataLake
-> DataLake -> DataLake
set PropertyType "MetaStoreManagerRoleArn" DataLake
newValue DataLake {Maybe [Tag]
Maybe (Value Text)
Maybe EncryptionConfigurationProperty
Maybe ReplicationConfigurationProperty
Maybe LifecycleConfigurationProperty
()
haddock_workaround_ :: DataLake -> ()
encryptionConfiguration :: DataLake -> Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: DataLake -> Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: DataLake -> Maybe (Value Text)
replicationConfiguration :: DataLake -> Maybe ReplicationConfigurationProperty
tags :: DataLake -> Maybe [Tag]
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
..}
= DataLake {metaStoreManagerRoleArn :: Maybe (Value Text)
metaStoreManagerRoleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MetaStoreManagerRoleArn" DataLake
Value Text
newValue, Maybe [Tag]
Maybe EncryptionConfigurationProperty
Maybe ReplicationConfigurationProperty
Maybe LifecycleConfigurationProperty
()
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "ReplicationConfiguration" DataLake where
type PropertyType "ReplicationConfiguration" DataLake = ReplicationConfigurationProperty
set :: PropertyType "ReplicationConfiguration" DataLake
-> DataLake -> DataLake
set PropertyType "ReplicationConfiguration" DataLake
newValue DataLake {Maybe [Tag]
Maybe (Value Text)
Maybe EncryptionConfigurationProperty
Maybe ReplicationConfigurationProperty
Maybe LifecycleConfigurationProperty
()
haddock_workaround_ :: DataLake -> ()
encryptionConfiguration :: DataLake -> Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: DataLake -> Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: DataLake -> Maybe (Value Text)
replicationConfiguration :: DataLake -> Maybe ReplicationConfigurationProperty
tags :: DataLake -> Maybe [Tag]
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
..}
= DataLake {replicationConfiguration :: Maybe ReplicationConfigurationProperty
replicationConfiguration = ReplicationConfigurationProperty
-> Maybe ReplicationConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ReplicationConfiguration" DataLake
ReplicationConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe EncryptionConfigurationProperty
Maybe LifecycleConfigurationProperty
()
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" DataLake where
type PropertyType "Tags" DataLake = [Tag]
set :: PropertyType "Tags" DataLake -> DataLake -> DataLake
set PropertyType "Tags" DataLake
newValue DataLake {Maybe [Tag]
Maybe (Value Text)
Maybe EncryptionConfigurationProperty
Maybe ReplicationConfigurationProperty
Maybe LifecycleConfigurationProperty
()
haddock_workaround_ :: DataLake -> ()
encryptionConfiguration :: DataLake -> Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: DataLake -> Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: DataLake -> Maybe (Value Text)
replicationConfiguration :: DataLake -> Maybe ReplicationConfigurationProperty
tags :: DataLake -> Maybe [Tag]
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
tags :: Maybe [Tag]
..}
= DataLake {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" DataLake
newValue, Maybe (Value Text)
Maybe EncryptionConfigurationProperty
Maybe ReplicationConfigurationProperty
Maybe LifecycleConfigurationProperty
()
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe EncryptionConfigurationProperty
lifecycleConfiguration :: Maybe LifecycleConfigurationProperty
metaStoreManagerRoleArn :: Maybe (Value Text)
replicationConfiguration :: Maybe ReplicationConfigurationProperty
..}