{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AccessAnalyzer.Types.Configuration where
import Amazonka.AccessAnalyzer.Types.EbsSnapshotConfiguration
import Amazonka.AccessAnalyzer.Types.EcrRepositoryConfiguration
import Amazonka.AccessAnalyzer.Types.EfsFileSystemConfiguration
import Amazonka.AccessAnalyzer.Types.IamRoleConfiguration
import Amazonka.AccessAnalyzer.Types.KmsKeyConfiguration
import Amazonka.AccessAnalyzer.Types.RdsDbClusterSnapshotConfiguration
import Amazonka.AccessAnalyzer.Types.RdsDbSnapshotConfiguration
import Amazonka.AccessAnalyzer.Types.S3BucketConfiguration
import Amazonka.AccessAnalyzer.Types.SecretsManagerSecretConfiguration
import Amazonka.AccessAnalyzer.Types.SnsTopicConfiguration
import Amazonka.AccessAnalyzer.Types.SqsQueueConfiguration
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data Configuration = Configuration'
{
Configuration -> Maybe EbsSnapshotConfiguration
ebsSnapshot :: Prelude.Maybe EbsSnapshotConfiguration,
Configuration -> Maybe EcrRepositoryConfiguration
ecrRepository :: Prelude.Maybe EcrRepositoryConfiguration,
Configuration -> Maybe EfsFileSystemConfiguration
efsFileSystem :: Prelude.Maybe EfsFileSystemConfiguration,
Configuration -> Maybe IamRoleConfiguration
iamRole :: Prelude.Maybe IamRoleConfiguration,
Configuration -> Maybe KmsKeyConfiguration
kmsKey :: Prelude.Maybe KmsKeyConfiguration,
Configuration -> Maybe RdsDbClusterSnapshotConfiguration
rdsDbClusterSnapshot :: Prelude.Maybe RdsDbClusterSnapshotConfiguration,
Configuration -> Maybe RdsDbSnapshotConfiguration
rdsDbSnapshot :: Prelude.Maybe RdsDbSnapshotConfiguration,
Configuration -> Maybe S3BucketConfiguration
s3Bucket :: Prelude.Maybe S3BucketConfiguration,
Configuration -> Maybe SecretsManagerSecretConfiguration
secretsManagerSecret :: Prelude.Maybe SecretsManagerSecretConfiguration,
Configuration -> Maybe SnsTopicConfiguration
snsTopic :: Prelude.Maybe SnsTopicConfiguration,
Configuration -> Maybe SqsQueueConfiguration
sqsQueue :: Prelude.Maybe SqsQueueConfiguration
}
deriving (Configuration -> Configuration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Configuration -> Configuration -> Bool
$c/= :: Configuration -> Configuration -> Bool
== :: Configuration -> Configuration -> Bool
$c== :: Configuration -> Configuration -> Bool
Prelude.Eq, ReadPrec [Configuration]
ReadPrec Configuration
Int -> ReadS Configuration
ReadS [Configuration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Configuration]
$creadListPrec :: ReadPrec [Configuration]
readPrec :: ReadPrec Configuration
$creadPrec :: ReadPrec Configuration
readList :: ReadS [Configuration]
$creadList :: ReadS [Configuration]
readsPrec :: Int -> ReadS Configuration
$creadsPrec :: Int -> ReadS Configuration
Prelude.Read, Int -> Configuration -> ShowS
[Configuration] -> ShowS
Configuration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Configuration] -> ShowS
$cshowList :: [Configuration] -> ShowS
show :: Configuration -> String
$cshow :: Configuration -> String
showsPrec :: Int -> Configuration -> ShowS
$cshowsPrec :: Int -> Configuration -> ShowS
Prelude.Show, forall x. Rep Configuration x -> Configuration
forall x. Configuration -> Rep Configuration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Configuration x -> Configuration
$cfrom :: forall x. Configuration -> Rep Configuration x
Prelude.Generic)
newConfiguration ::
Configuration
newConfiguration :: Configuration
newConfiguration =
Configuration'
{ $sel:ebsSnapshot:Configuration' :: Maybe EbsSnapshotConfiguration
ebsSnapshot = forall a. Maybe a
Prelude.Nothing,
$sel:ecrRepository:Configuration' :: Maybe EcrRepositoryConfiguration
ecrRepository = forall a. Maybe a
Prelude.Nothing,
$sel:efsFileSystem:Configuration' :: Maybe EfsFileSystemConfiguration
efsFileSystem = forall a. Maybe a
Prelude.Nothing,
$sel:iamRole:Configuration' :: Maybe IamRoleConfiguration
iamRole = forall a. Maybe a
Prelude.Nothing,
$sel:kmsKey:Configuration' :: Maybe KmsKeyConfiguration
kmsKey = forall a. Maybe a
Prelude.Nothing,
$sel:rdsDbClusterSnapshot:Configuration' :: Maybe RdsDbClusterSnapshotConfiguration
rdsDbClusterSnapshot = forall a. Maybe a
Prelude.Nothing,
$sel:rdsDbSnapshot:Configuration' :: Maybe RdsDbSnapshotConfiguration
rdsDbSnapshot = forall a. Maybe a
Prelude.Nothing,
$sel:s3Bucket:Configuration' :: Maybe S3BucketConfiguration
s3Bucket = forall a. Maybe a
Prelude.Nothing,
$sel:secretsManagerSecret:Configuration' :: Maybe SecretsManagerSecretConfiguration
secretsManagerSecret = forall a. Maybe a
Prelude.Nothing,
$sel:snsTopic:Configuration' :: Maybe SnsTopicConfiguration
snsTopic = forall a. Maybe a
Prelude.Nothing,
$sel:sqsQueue:Configuration' :: Maybe SqsQueueConfiguration
sqsQueue = forall a. Maybe a
Prelude.Nothing
}
configuration_ebsSnapshot :: Lens.Lens' Configuration (Prelude.Maybe EbsSnapshotConfiguration)
configuration_ebsSnapshot :: Lens' Configuration (Maybe EbsSnapshotConfiguration)
configuration_ebsSnapshot = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Configuration' {Maybe EbsSnapshotConfiguration
ebsSnapshot :: Maybe EbsSnapshotConfiguration
$sel:ebsSnapshot:Configuration' :: Configuration -> Maybe EbsSnapshotConfiguration
ebsSnapshot} -> Maybe EbsSnapshotConfiguration
ebsSnapshot) (\s :: Configuration
s@Configuration' {} Maybe EbsSnapshotConfiguration
a -> Configuration
s {$sel:ebsSnapshot:Configuration' :: Maybe EbsSnapshotConfiguration
ebsSnapshot = Maybe EbsSnapshotConfiguration
a} :: Configuration)
configuration_ecrRepository :: Lens.Lens' Configuration (Prelude.Maybe EcrRepositoryConfiguration)
configuration_ecrRepository :: Lens' Configuration (Maybe EcrRepositoryConfiguration)
configuration_ecrRepository = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Configuration' {Maybe EcrRepositoryConfiguration
ecrRepository :: Maybe EcrRepositoryConfiguration
$sel:ecrRepository:Configuration' :: Configuration -> Maybe EcrRepositoryConfiguration
ecrRepository} -> Maybe EcrRepositoryConfiguration
ecrRepository) (\s :: Configuration
s@Configuration' {} Maybe EcrRepositoryConfiguration
a -> Configuration
s {$sel:ecrRepository:Configuration' :: Maybe EcrRepositoryConfiguration
ecrRepository = Maybe EcrRepositoryConfiguration
a} :: Configuration)
configuration_efsFileSystem :: Lens.Lens' Configuration (Prelude.Maybe EfsFileSystemConfiguration)
configuration_efsFileSystem :: Lens' Configuration (Maybe EfsFileSystemConfiguration)
configuration_efsFileSystem = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Configuration' {Maybe EfsFileSystemConfiguration
efsFileSystem :: Maybe EfsFileSystemConfiguration
$sel:efsFileSystem:Configuration' :: Configuration -> Maybe EfsFileSystemConfiguration
efsFileSystem} -> Maybe EfsFileSystemConfiguration
efsFileSystem) (\s :: Configuration
s@Configuration' {} Maybe EfsFileSystemConfiguration
a -> Configuration
s {$sel:efsFileSystem:Configuration' :: Maybe EfsFileSystemConfiguration
efsFileSystem = Maybe EfsFileSystemConfiguration
a} :: Configuration)
configuration_iamRole :: Lens.Lens' Configuration (Prelude.Maybe IamRoleConfiguration)
configuration_iamRole :: Lens' Configuration (Maybe IamRoleConfiguration)
configuration_iamRole = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Configuration' {Maybe IamRoleConfiguration
iamRole :: Maybe IamRoleConfiguration
$sel:iamRole:Configuration' :: Configuration -> Maybe IamRoleConfiguration
iamRole} -> Maybe IamRoleConfiguration
iamRole) (\s :: Configuration
s@Configuration' {} Maybe IamRoleConfiguration
a -> Configuration
s {$sel:iamRole:Configuration' :: Maybe IamRoleConfiguration
iamRole = Maybe IamRoleConfiguration
a} :: Configuration)
configuration_kmsKey :: Lens.Lens' Configuration (Prelude.Maybe KmsKeyConfiguration)
configuration_kmsKey :: Lens' Configuration (Maybe KmsKeyConfiguration)
configuration_kmsKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Configuration' {Maybe KmsKeyConfiguration
kmsKey :: Maybe KmsKeyConfiguration
$sel:kmsKey:Configuration' :: Configuration -> Maybe KmsKeyConfiguration
kmsKey} -> Maybe KmsKeyConfiguration
kmsKey) (\s :: Configuration
s@Configuration' {} Maybe KmsKeyConfiguration
a -> Configuration
s {$sel:kmsKey:Configuration' :: Maybe KmsKeyConfiguration
kmsKey = Maybe KmsKeyConfiguration
a} :: Configuration)
configuration_rdsDbClusterSnapshot :: Lens.Lens' Configuration (Prelude.Maybe RdsDbClusterSnapshotConfiguration)
configuration_rdsDbClusterSnapshot :: Lens' Configuration (Maybe RdsDbClusterSnapshotConfiguration)
configuration_rdsDbClusterSnapshot = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Configuration' {Maybe RdsDbClusterSnapshotConfiguration
rdsDbClusterSnapshot :: Maybe RdsDbClusterSnapshotConfiguration
$sel:rdsDbClusterSnapshot:Configuration' :: Configuration -> Maybe RdsDbClusterSnapshotConfiguration
rdsDbClusterSnapshot} -> Maybe RdsDbClusterSnapshotConfiguration
rdsDbClusterSnapshot) (\s :: Configuration
s@Configuration' {} Maybe RdsDbClusterSnapshotConfiguration
a -> Configuration
s {$sel:rdsDbClusterSnapshot:Configuration' :: Maybe RdsDbClusterSnapshotConfiguration
rdsDbClusterSnapshot = Maybe RdsDbClusterSnapshotConfiguration
a} :: Configuration)
configuration_rdsDbSnapshot :: Lens.Lens' Configuration (Prelude.Maybe RdsDbSnapshotConfiguration)
configuration_rdsDbSnapshot :: Lens' Configuration (Maybe RdsDbSnapshotConfiguration)
configuration_rdsDbSnapshot = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Configuration' {Maybe RdsDbSnapshotConfiguration
rdsDbSnapshot :: Maybe RdsDbSnapshotConfiguration
$sel:rdsDbSnapshot:Configuration' :: Configuration -> Maybe RdsDbSnapshotConfiguration
rdsDbSnapshot} -> Maybe RdsDbSnapshotConfiguration
rdsDbSnapshot) (\s :: Configuration
s@Configuration' {} Maybe RdsDbSnapshotConfiguration
a -> Configuration
s {$sel:rdsDbSnapshot:Configuration' :: Maybe RdsDbSnapshotConfiguration
rdsDbSnapshot = Maybe RdsDbSnapshotConfiguration
a} :: Configuration)
configuration_s3Bucket :: Lens.Lens' Configuration (Prelude.Maybe S3BucketConfiguration)
configuration_s3Bucket :: Lens' Configuration (Maybe S3BucketConfiguration)
configuration_s3Bucket = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Configuration' {Maybe S3BucketConfiguration
s3Bucket :: Maybe S3BucketConfiguration
$sel:s3Bucket:Configuration' :: Configuration -> Maybe S3BucketConfiguration
s3Bucket} -> Maybe S3BucketConfiguration
s3Bucket) (\s :: Configuration
s@Configuration' {} Maybe S3BucketConfiguration
a -> Configuration
s {$sel:s3Bucket:Configuration' :: Maybe S3BucketConfiguration
s3Bucket = Maybe S3BucketConfiguration
a} :: Configuration)
configuration_secretsManagerSecret :: Lens.Lens' Configuration (Prelude.Maybe SecretsManagerSecretConfiguration)
configuration_secretsManagerSecret :: Lens' Configuration (Maybe SecretsManagerSecretConfiguration)
configuration_secretsManagerSecret = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Configuration' {Maybe SecretsManagerSecretConfiguration
secretsManagerSecret :: Maybe SecretsManagerSecretConfiguration
$sel:secretsManagerSecret:Configuration' :: Configuration -> Maybe SecretsManagerSecretConfiguration
secretsManagerSecret} -> Maybe SecretsManagerSecretConfiguration
secretsManagerSecret) (\s :: Configuration
s@Configuration' {} Maybe SecretsManagerSecretConfiguration
a -> Configuration
s {$sel:secretsManagerSecret:Configuration' :: Maybe SecretsManagerSecretConfiguration
secretsManagerSecret = Maybe SecretsManagerSecretConfiguration
a} :: Configuration)
configuration_snsTopic :: Lens.Lens' Configuration (Prelude.Maybe SnsTopicConfiguration)
configuration_snsTopic :: Lens' Configuration (Maybe SnsTopicConfiguration)
configuration_snsTopic = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Configuration' {Maybe SnsTopicConfiguration
snsTopic :: Maybe SnsTopicConfiguration
$sel:snsTopic:Configuration' :: Configuration -> Maybe SnsTopicConfiguration
snsTopic} -> Maybe SnsTopicConfiguration
snsTopic) (\s :: Configuration
s@Configuration' {} Maybe SnsTopicConfiguration
a -> Configuration
s {$sel:snsTopic:Configuration' :: Maybe SnsTopicConfiguration
snsTopic = Maybe SnsTopicConfiguration
a} :: Configuration)
configuration_sqsQueue :: Lens.Lens' Configuration (Prelude.Maybe SqsQueueConfiguration)
configuration_sqsQueue :: Lens' Configuration (Maybe SqsQueueConfiguration)
configuration_sqsQueue = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Configuration' {Maybe SqsQueueConfiguration
sqsQueue :: Maybe SqsQueueConfiguration
$sel:sqsQueue:Configuration' :: Configuration -> Maybe SqsQueueConfiguration
sqsQueue} -> Maybe SqsQueueConfiguration
sqsQueue) (\s :: Configuration
s@Configuration' {} Maybe SqsQueueConfiguration
a -> Configuration
s {$sel:sqsQueue:Configuration' :: Maybe SqsQueueConfiguration
sqsQueue = Maybe SqsQueueConfiguration
a} :: Configuration)
instance Data.FromJSON Configuration where
parseJSON :: Value -> Parser Configuration
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"Configuration"
( \Object
x ->
Maybe EbsSnapshotConfiguration
-> Maybe EcrRepositoryConfiguration
-> Maybe EfsFileSystemConfiguration
-> Maybe IamRoleConfiguration
-> Maybe KmsKeyConfiguration
-> Maybe RdsDbClusterSnapshotConfiguration
-> Maybe RdsDbSnapshotConfiguration
-> Maybe S3BucketConfiguration
-> Maybe SecretsManagerSecretConfiguration
-> Maybe SnsTopicConfiguration
-> Maybe SqsQueueConfiguration
-> Configuration
Configuration'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ebsSnapshot")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ecrRepository")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"efsFileSystem")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"iamRole")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"kmsKey")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"rdsDbClusterSnapshot")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"rdsDbSnapshot")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"s3Bucket")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"secretsManagerSecret")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"snsTopic")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"sqsQueue")
)
instance Prelude.Hashable Configuration where
hashWithSalt :: Int -> Configuration -> Int
hashWithSalt Int
_salt Configuration' {Maybe EbsSnapshotConfiguration
Maybe EcrRepositoryConfiguration
Maybe EfsFileSystemConfiguration
Maybe IamRoleConfiguration
Maybe KmsKeyConfiguration
Maybe RdsDbClusterSnapshotConfiguration
Maybe RdsDbSnapshotConfiguration
Maybe SecretsManagerSecretConfiguration
Maybe SnsTopicConfiguration
Maybe SqsQueueConfiguration
Maybe S3BucketConfiguration
sqsQueue :: Maybe SqsQueueConfiguration
snsTopic :: Maybe SnsTopicConfiguration
secretsManagerSecret :: Maybe SecretsManagerSecretConfiguration
s3Bucket :: Maybe S3BucketConfiguration
rdsDbSnapshot :: Maybe RdsDbSnapshotConfiguration
rdsDbClusterSnapshot :: Maybe RdsDbClusterSnapshotConfiguration
kmsKey :: Maybe KmsKeyConfiguration
iamRole :: Maybe IamRoleConfiguration
efsFileSystem :: Maybe EfsFileSystemConfiguration
ecrRepository :: Maybe EcrRepositoryConfiguration
ebsSnapshot :: Maybe EbsSnapshotConfiguration
$sel:sqsQueue:Configuration' :: Configuration -> Maybe SqsQueueConfiguration
$sel:snsTopic:Configuration' :: Configuration -> Maybe SnsTopicConfiguration
$sel:secretsManagerSecret:Configuration' :: Configuration -> Maybe SecretsManagerSecretConfiguration
$sel:s3Bucket:Configuration' :: Configuration -> Maybe S3BucketConfiguration
$sel:rdsDbSnapshot:Configuration' :: Configuration -> Maybe RdsDbSnapshotConfiguration
$sel:rdsDbClusterSnapshot:Configuration' :: Configuration -> Maybe RdsDbClusterSnapshotConfiguration
$sel:kmsKey:Configuration' :: Configuration -> Maybe KmsKeyConfiguration
$sel:iamRole:Configuration' :: Configuration -> Maybe IamRoleConfiguration
$sel:efsFileSystem:Configuration' :: Configuration -> Maybe EfsFileSystemConfiguration
$sel:ecrRepository:Configuration' :: Configuration -> Maybe EcrRepositoryConfiguration
$sel:ebsSnapshot:Configuration' :: Configuration -> Maybe EbsSnapshotConfiguration
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EbsSnapshotConfiguration
ebsSnapshot
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EcrRepositoryConfiguration
ecrRepository
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EfsFileSystemConfiguration
efsFileSystem
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe IamRoleConfiguration
iamRole
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe KmsKeyConfiguration
kmsKey
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RdsDbClusterSnapshotConfiguration
rdsDbClusterSnapshot
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RdsDbSnapshotConfiguration
rdsDbSnapshot
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe S3BucketConfiguration
s3Bucket
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SecretsManagerSecretConfiguration
secretsManagerSecret
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SnsTopicConfiguration
snsTopic
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SqsQueueConfiguration
sqsQueue
instance Prelude.NFData Configuration where
rnf :: Configuration -> ()
rnf Configuration' {Maybe EbsSnapshotConfiguration
Maybe EcrRepositoryConfiguration
Maybe EfsFileSystemConfiguration
Maybe IamRoleConfiguration
Maybe KmsKeyConfiguration
Maybe RdsDbClusterSnapshotConfiguration
Maybe RdsDbSnapshotConfiguration
Maybe SecretsManagerSecretConfiguration
Maybe SnsTopicConfiguration
Maybe SqsQueueConfiguration
Maybe S3BucketConfiguration
sqsQueue :: Maybe SqsQueueConfiguration
snsTopic :: Maybe SnsTopicConfiguration
secretsManagerSecret :: Maybe SecretsManagerSecretConfiguration
s3Bucket :: Maybe S3BucketConfiguration
rdsDbSnapshot :: Maybe RdsDbSnapshotConfiguration
rdsDbClusterSnapshot :: Maybe RdsDbClusterSnapshotConfiguration
kmsKey :: Maybe KmsKeyConfiguration
iamRole :: Maybe IamRoleConfiguration
efsFileSystem :: Maybe EfsFileSystemConfiguration
ecrRepository :: Maybe EcrRepositoryConfiguration
ebsSnapshot :: Maybe EbsSnapshotConfiguration
$sel:sqsQueue:Configuration' :: Configuration -> Maybe SqsQueueConfiguration
$sel:snsTopic:Configuration' :: Configuration -> Maybe SnsTopicConfiguration
$sel:secretsManagerSecret:Configuration' :: Configuration -> Maybe SecretsManagerSecretConfiguration
$sel:s3Bucket:Configuration' :: Configuration -> Maybe S3BucketConfiguration
$sel:rdsDbSnapshot:Configuration' :: Configuration -> Maybe RdsDbSnapshotConfiguration
$sel:rdsDbClusterSnapshot:Configuration' :: Configuration -> Maybe RdsDbClusterSnapshotConfiguration
$sel:kmsKey:Configuration' :: Configuration -> Maybe KmsKeyConfiguration
$sel:iamRole:Configuration' :: Configuration -> Maybe IamRoleConfiguration
$sel:efsFileSystem:Configuration' :: Configuration -> Maybe EfsFileSystemConfiguration
$sel:ecrRepository:Configuration' :: Configuration -> Maybe EcrRepositoryConfiguration
$sel:ebsSnapshot:Configuration' :: Configuration -> Maybe EbsSnapshotConfiguration
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe EbsSnapshotConfiguration
ebsSnapshot
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EcrRepositoryConfiguration
ecrRepository
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EfsFileSystemConfiguration
efsFileSystem
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe IamRoleConfiguration
iamRole
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe KmsKeyConfiguration
kmsKey
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RdsDbClusterSnapshotConfiguration
rdsDbClusterSnapshot
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RdsDbSnapshotConfiguration
rdsDbSnapshot
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe S3BucketConfiguration
s3Bucket
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SecretsManagerSecretConfiguration
secretsManagerSecret
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SnsTopicConfiguration
snsTopic
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SqsQueueConfiguration
sqsQueue
instance Data.ToJSON Configuration where
toJSON :: Configuration -> Value
toJSON Configuration' {Maybe EbsSnapshotConfiguration
Maybe EcrRepositoryConfiguration
Maybe EfsFileSystemConfiguration
Maybe IamRoleConfiguration
Maybe KmsKeyConfiguration
Maybe RdsDbClusterSnapshotConfiguration
Maybe RdsDbSnapshotConfiguration
Maybe SecretsManagerSecretConfiguration
Maybe SnsTopicConfiguration
Maybe SqsQueueConfiguration
Maybe S3BucketConfiguration
sqsQueue :: Maybe SqsQueueConfiguration
snsTopic :: Maybe SnsTopicConfiguration
secretsManagerSecret :: Maybe SecretsManagerSecretConfiguration
s3Bucket :: Maybe S3BucketConfiguration
rdsDbSnapshot :: Maybe RdsDbSnapshotConfiguration
rdsDbClusterSnapshot :: Maybe RdsDbClusterSnapshotConfiguration
kmsKey :: Maybe KmsKeyConfiguration
iamRole :: Maybe IamRoleConfiguration
efsFileSystem :: Maybe EfsFileSystemConfiguration
ecrRepository :: Maybe EcrRepositoryConfiguration
ebsSnapshot :: Maybe EbsSnapshotConfiguration
$sel:sqsQueue:Configuration' :: Configuration -> Maybe SqsQueueConfiguration
$sel:snsTopic:Configuration' :: Configuration -> Maybe SnsTopicConfiguration
$sel:secretsManagerSecret:Configuration' :: Configuration -> Maybe SecretsManagerSecretConfiguration
$sel:s3Bucket:Configuration' :: Configuration -> Maybe S3BucketConfiguration
$sel:rdsDbSnapshot:Configuration' :: Configuration -> Maybe RdsDbSnapshotConfiguration
$sel:rdsDbClusterSnapshot:Configuration' :: Configuration -> Maybe RdsDbClusterSnapshotConfiguration
$sel:kmsKey:Configuration' :: Configuration -> Maybe KmsKeyConfiguration
$sel:iamRole:Configuration' :: Configuration -> Maybe IamRoleConfiguration
$sel:efsFileSystem:Configuration' :: Configuration -> Maybe EfsFileSystemConfiguration
$sel:ecrRepository:Configuration' :: Configuration -> Maybe EcrRepositoryConfiguration
$sel:ebsSnapshot:Configuration' :: Configuration -> Maybe EbsSnapshotConfiguration
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"ebsSnapshot" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EbsSnapshotConfiguration
ebsSnapshot,
(Key
"ecrRepository" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EcrRepositoryConfiguration
ecrRepository,
(Key
"efsFileSystem" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EfsFileSystemConfiguration
efsFileSystem,
(Key
"iamRole" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IamRoleConfiguration
iamRole,
(Key
"kmsKey" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe KmsKeyConfiguration
kmsKey,
(Key
"rdsDbClusterSnapshot" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RdsDbClusterSnapshotConfiguration
rdsDbClusterSnapshot,
(Key
"rdsDbSnapshot" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RdsDbSnapshotConfiguration
rdsDbSnapshot,
(Key
"s3Bucket" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3BucketConfiguration
s3Bucket,
(Key
"secretsManagerSecret" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SecretsManagerSecretConfiguration
secretsManagerSecret,
(Key
"snsTopic" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SnsTopicConfiguration
snsTopic,
(Key
"sqsQueue" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SqsQueueConfiguration
sqsQueue
]
)