{-# 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.Firehose.Types.ExtendedS3DestinationConfiguration where
import qualified Amazonka.Core as Core
import Amazonka.Firehose.Types.BufferingHints
import Amazonka.Firehose.Types.CloudWatchLoggingOptions
import Amazonka.Firehose.Types.CompressionFormat
import Amazonka.Firehose.Types.DataFormatConversionConfiguration
import Amazonka.Firehose.Types.DynamicPartitioningConfiguration
import Amazonka.Firehose.Types.EncryptionConfiguration
import Amazonka.Firehose.Types.ProcessingConfiguration
import Amazonka.Firehose.Types.S3BackupMode
import Amazonka.Firehose.Types.S3DestinationConfiguration
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ExtendedS3DestinationConfiguration = ExtendedS3DestinationConfiguration'
{
ExtendedS3DestinationConfiguration -> Maybe S3BackupMode
s3BackupMode :: Prelude.Maybe S3BackupMode,
ExtendedS3DestinationConfiguration -> Maybe Text
prefix :: Prelude.Maybe Prelude.Text,
ExtendedS3DestinationConfiguration
-> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Prelude.Maybe CloudWatchLoggingOptions,
ExtendedS3DestinationConfiguration
-> Maybe S3DestinationConfiguration
s3BackupConfiguration :: Prelude.Maybe S3DestinationConfiguration,
ExtendedS3DestinationConfiguration -> Maybe Text
errorOutputPrefix :: Prelude.Maybe Prelude.Text,
ExtendedS3DestinationConfiguration -> Maybe EncryptionConfiguration
encryptionConfiguration :: Prelude.Maybe EncryptionConfiguration,
ExtendedS3DestinationConfiguration
-> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration :: Prelude.Maybe DynamicPartitioningConfiguration,
ExtendedS3DestinationConfiguration -> Maybe CompressionFormat
compressionFormat :: Prelude.Maybe CompressionFormat,
ExtendedS3DestinationConfiguration -> Maybe BufferingHints
bufferingHints :: Prelude.Maybe BufferingHints,
ExtendedS3DestinationConfiguration
-> Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration :: Prelude.Maybe DataFormatConversionConfiguration,
ExtendedS3DestinationConfiguration -> Maybe ProcessingConfiguration
processingConfiguration :: Prelude.Maybe ProcessingConfiguration,
ExtendedS3DestinationConfiguration -> Text
roleARN :: Prelude.Text,
ExtendedS3DestinationConfiguration -> Text
bucketARN :: Prelude.Text
}
deriving (ExtendedS3DestinationConfiguration
-> ExtendedS3DestinationConfiguration -> Bool
(ExtendedS3DestinationConfiguration
-> ExtendedS3DestinationConfiguration -> Bool)
-> (ExtendedS3DestinationConfiguration
-> ExtendedS3DestinationConfiguration -> Bool)
-> Eq ExtendedS3DestinationConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExtendedS3DestinationConfiguration
-> ExtendedS3DestinationConfiguration -> Bool
$c/= :: ExtendedS3DestinationConfiguration
-> ExtendedS3DestinationConfiguration -> Bool
== :: ExtendedS3DestinationConfiguration
-> ExtendedS3DestinationConfiguration -> Bool
$c== :: ExtendedS3DestinationConfiguration
-> ExtendedS3DestinationConfiguration -> Bool
Prelude.Eq, ReadPrec [ExtendedS3DestinationConfiguration]
ReadPrec ExtendedS3DestinationConfiguration
Int -> ReadS ExtendedS3DestinationConfiguration
ReadS [ExtendedS3DestinationConfiguration]
(Int -> ReadS ExtendedS3DestinationConfiguration)
-> ReadS [ExtendedS3DestinationConfiguration]
-> ReadPrec ExtendedS3DestinationConfiguration
-> ReadPrec [ExtendedS3DestinationConfiguration]
-> Read ExtendedS3DestinationConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExtendedS3DestinationConfiguration]
$creadListPrec :: ReadPrec [ExtendedS3DestinationConfiguration]
readPrec :: ReadPrec ExtendedS3DestinationConfiguration
$creadPrec :: ReadPrec ExtendedS3DestinationConfiguration
readList :: ReadS [ExtendedS3DestinationConfiguration]
$creadList :: ReadS [ExtendedS3DestinationConfiguration]
readsPrec :: Int -> ReadS ExtendedS3DestinationConfiguration
$creadsPrec :: Int -> ReadS ExtendedS3DestinationConfiguration
Prelude.Read, Int -> ExtendedS3DestinationConfiguration -> ShowS
[ExtendedS3DestinationConfiguration] -> ShowS
ExtendedS3DestinationConfiguration -> String
(Int -> ExtendedS3DestinationConfiguration -> ShowS)
-> (ExtendedS3DestinationConfiguration -> String)
-> ([ExtendedS3DestinationConfiguration] -> ShowS)
-> Show ExtendedS3DestinationConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExtendedS3DestinationConfiguration] -> ShowS
$cshowList :: [ExtendedS3DestinationConfiguration] -> ShowS
show :: ExtendedS3DestinationConfiguration -> String
$cshow :: ExtendedS3DestinationConfiguration -> String
showsPrec :: Int -> ExtendedS3DestinationConfiguration -> ShowS
$cshowsPrec :: Int -> ExtendedS3DestinationConfiguration -> ShowS
Prelude.Show, (forall x.
ExtendedS3DestinationConfiguration
-> Rep ExtendedS3DestinationConfiguration x)
-> (forall x.
Rep ExtendedS3DestinationConfiguration x
-> ExtendedS3DestinationConfiguration)
-> Generic ExtendedS3DestinationConfiguration
forall x.
Rep ExtendedS3DestinationConfiguration x
-> ExtendedS3DestinationConfiguration
forall x.
ExtendedS3DestinationConfiguration
-> Rep ExtendedS3DestinationConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ExtendedS3DestinationConfiguration x
-> ExtendedS3DestinationConfiguration
$cfrom :: forall x.
ExtendedS3DestinationConfiguration
-> Rep ExtendedS3DestinationConfiguration x
Prelude.Generic)
newExtendedS3DestinationConfiguration ::
Prelude.Text ->
Prelude.Text ->
ExtendedS3DestinationConfiguration
newExtendedS3DestinationConfiguration :: Text -> Text -> ExtendedS3DestinationConfiguration
newExtendedS3DestinationConfiguration
Text
pRoleARN_
Text
pBucketARN_ =
ExtendedS3DestinationConfiguration' :: Maybe S3BackupMode
-> Maybe Text
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationConfiguration
-> Maybe Text
-> Maybe EncryptionConfiguration
-> Maybe DynamicPartitioningConfiguration
-> Maybe CompressionFormat
-> Maybe BufferingHints
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration'
{ $sel:s3BackupMode:ExtendedS3DestinationConfiguration' :: Maybe S3BackupMode
s3BackupMode =
Maybe S3BackupMode
forall a. Maybe a
Prelude.Nothing,
$sel:prefix:ExtendedS3DestinationConfiguration' :: Maybe Text
prefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchLoggingOptions:ExtendedS3DestinationConfiguration' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions =
Maybe CloudWatchLoggingOptions
forall a. Maybe a
Prelude.Nothing,
$sel:s3BackupConfiguration:ExtendedS3DestinationConfiguration' :: Maybe S3DestinationConfiguration
s3BackupConfiguration = Maybe S3DestinationConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:errorOutputPrefix:ExtendedS3DestinationConfiguration' :: Maybe Text
errorOutputPrefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:encryptionConfiguration:ExtendedS3DestinationConfiguration' :: Maybe EncryptionConfiguration
encryptionConfiguration =
Maybe EncryptionConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:dynamicPartitioningConfiguration:ExtendedS3DestinationConfiguration' :: Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration =
Maybe DynamicPartitioningConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:compressionFormat:ExtendedS3DestinationConfiguration' :: Maybe CompressionFormat
compressionFormat = Maybe CompressionFormat
forall a. Maybe a
Prelude.Nothing,
$sel:bufferingHints:ExtendedS3DestinationConfiguration' :: Maybe BufferingHints
bufferingHints = Maybe BufferingHints
forall a. Maybe a
Prelude.Nothing,
$sel:dataFormatConversionConfiguration:ExtendedS3DestinationConfiguration' :: Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration =
Maybe DataFormatConversionConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:processingConfiguration:ExtendedS3DestinationConfiguration' :: Maybe ProcessingConfiguration
processingConfiguration =
Maybe ProcessingConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:roleARN:ExtendedS3DestinationConfiguration' :: Text
roleARN = Text
pRoleARN_,
$sel:bucketARN:ExtendedS3DestinationConfiguration' :: Text
bucketARN = Text
pBucketARN_
}
extendedS3DestinationConfiguration_s3BackupMode :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe S3BackupMode)
extendedS3DestinationConfiguration_s3BackupMode :: (Maybe S3BackupMode -> f (Maybe S3BackupMode))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_s3BackupMode = (ExtendedS3DestinationConfiguration -> Maybe S3BackupMode)
-> (ExtendedS3DestinationConfiguration
-> Maybe S3BackupMode -> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
(Maybe S3BackupMode)
(Maybe S3BackupMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe S3BackupMode
s3BackupMode :: Maybe S3BackupMode
$sel:s3BackupMode:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe S3BackupMode
s3BackupMode} -> Maybe S3BackupMode
s3BackupMode) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe S3BackupMode
a -> ExtendedS3DestinationConfiguration
s {$sel:s3BackupMode:ExtendedS3DestinationConfiguration' :: Maybe S3BackupMode
s3BackupMode = Maybe S3BackupMode
a} :: ExtendedS3DestinationConfiguration)
extendedS3DestinationConfiguration_prefix :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe Prelude.Text)
extendedS3DestinationConfiguration_prefix :: (Maybe Text -> f (Maybe Text))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_prefix = (ExtendedS3DestinationConfiguration -> Maybe Text)
-> (ExtendedS3DestinationConfiguration
-> Maybe Text -> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe Text
prefix :: Maybe Text
$sel:prefix:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe Text
prefix} -> Maybe Text
prefix) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe Text
a -> ExtendedS3DestinationConfiguration
s {$sel:prefix:ExtendedS3DestinationConfiguration' :: Maybe Text
prefix = Maybe Text
a} :: ExtendedS3DestinationConfiguration)
extendedS3DestinationConfiguration_cloudWatchLoggingOptions :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe CloudWatchLoggingOptions)
extendedS3DestinationConfiguration_cloudWatchLoggingOptions :: (Maybe CloudWatchLoggingOptions
-> f (Maybe CloudWatchLoggingOptions))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_cloudWatchLoggingOptions = (ExtendedS3DestinationConfiguration
-> Maybe CloudWatchLoggingOptions)
-> (ExtendedS3DestinationConfiguration
-> Maybe CloudWatchLoggingOptions
-> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
(Maybe CloudWatchLoggingOptions)
(Maybe CloudWatchLoggingOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
$sel:cloudWatchLoggingOptions:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions} -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe CloudWatchLoggingOptions
a -> ExtendedS3DestinationConfiguration
s {$sel:cloudWatchLoggingOptions:ExtendedS3DestinationConfiguration' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions = Maybe CloudWatchLoggingOptions
a} :: ExtendedS3DestinationConfiguration)
extendedS3DestinationConfiguration_s3BackupConfiguration :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe S3DestinationConfiguration)
extendedS3DestinationConfiguration_s3BackupConfiguration :: (Maybe S3DestinationConfiguration
-> f (Maybe S3DestinationConfiguration))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_s3BackupConfiguration = (ExtendedS3DestinationConfiguration
-> Maybe S3DestinationConfiguration)
-> (ExtendedS3DestinationConfiguration
-> Maybe S3DestinationConfiguration
-> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
(Maybe S3DestinationConfiguration)
(Maybe S3DestinationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe S3DestinationConfiguration
s3BackupConfiguration :: Maybe S3DestinationConfiguration
$sel:s3BackupConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe S3DestinationConfiguration
s3BackupConfiguration} -> Maybe S3DestinationConfiguration
s3BackupConfiguration) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe S3DestinationConfiguration
a -> ExtendedS3DestinationConfiguration
s {$sel:s3BackupConfiguration:ExtendedS3DestinationConfiguration' :: Maybe S3DestinationConfiguration
s3BackupConfiguration = Maybe S3DestinationConfiguration
a} :: ExtendedS3DestinationConfiguration)
extendedS3DestinationConfiguration_errorOutputPrefix :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe Prelude.Text)
extendedS3DestinationConfiguration_errorOutputPrefix :: (Maybe Text -> f (Maybe Text))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_errorOutputPrefix = (ExtendedS3DestinationConfiguration -> Maybe Text)
-> (ExtendedS3DestinationConfiguration
-> Maybe Text -> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe Text
errorOutputPrefix :: Maybe Text
$sel:errorOutputPrefix:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe Text
errorOutputPrefix} -> Maybe Text
errorOutputPrefix) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe Text
a -> ExtendedS3DestinationConfiguration
s {$sel:errorOutputPrefix:ExtendedS3DestinationConfiguration' :: Maybe Text
errorOutputPrefix = Maybe Text
a} :: ExtendedS3DestinationConfiguration)
extendedS3DestinationConfiguration_encryptionConfiguration :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe EncryptionConfiguration)
extendedS3DestinationConfiguration_encryptionConfiguration :: (Maybe EncryptionConfiguration
-> f (Maybe EncryptionConfiguration))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_encryptionConfiguration = (ExtendedS3DestinationConfiguration
-> Maybe EncryptionConfiguration)
-> (ExtendedS3DestinationConfiguration
-> Maybe EncryptionConfiguration
-> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
(Maybe EncryptionConfiguration)
(Maybe EncryptionConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe EncryptionConfiguration
encryptionConfiguration :: Maybe EncryptionConfiguration
$sel:encryptionConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe EncryptionConfiguration
encryptionConfiguration} -> Maybe EncryptionConfiguration
encryptionConfiguration) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe EncryptionConfiguration
a -> ExtendedS3DestinationConfiguration
s {$sel:encryptionConfiguration:ExtendedS3DestinationConfiguration' :: Maybe EncryptionConfiguration
encryptionConfiguration = Maybe EncryptionConfiguration
a} :: ExtendedS3DestinationConfiguration)
extendedS3DestinationConfiguration_dynamicPartitioningConfiguration :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe DynamicPartitioningConfiguration)
extendedS3DestinationConfiguration_dynamicPartitioningConfiguration :: (Maybe DynamicPartitioningConfiguration
-> f (Maybe DynamicPartitioningConfiguration))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_dynamicPartitioningConfiguration = (ExtendedS3DestinationConfiguration
-> Maybe DynamicPartitioningConfiguration)
-> (ExtendedS3DestinationConfiguration
-> Maybe DynamicPartitioningConfiguration
-> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
(Maybe DynamicPartitioningConfiguration)
(Maybe DynamicPartitioningConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration :: Maybe DynamicPartitioningConfiguration
$sel:dynamicPartitioningConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration} -> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe DynamicPartitioningConfiguration
a -> ExtendedS3DestinationConfiguration
s {$sel:dynamicPartitioningConfiguration:ExtendedS3DestinationConfiguration' :: Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration = Maybe DynamicPartitioningConfiguration
a} :: ExtendedS3DestinationConfiguration)
extendedS3DestinationConfiguration_compressionFormat :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe CompressionFormat)
extendedS3DestinationConfiguration_compressionFormat :: (Maybe CompressionFormat -> f (Maybe CompressionFormat))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_compressionFormat = (ExtendedS3DestinationConfiguration -> Maybe CompressionFormat)
-> (ExtendedS3DestinationConfiguration
-> Maybe CompressionFormat -> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
(Maybe CompressionFormat)
(Maybe CompressionFormat)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe CompressionFormat
compressionFormat :: Maybe CompressionFormat
$sel:compressionFormat:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe CompressionFormat
compressionFormat} -> Maybe CompressionFormat
compressionFormat) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe CompressionFormat
a -> ExtendedS3DestinationConfiguration
s {$sel:compressionFormat:ExtendedS3DestinationConfiguration' :: Maybe CompressionFormat
compressionFormat = Maybe CompressionFormat
a} :: ExtendedS3DestinationConfiguration)
extendedS3DestinationConfiguration_bufferingHints :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe BufferingHints)
extendedS3DestinationConfiguration_bufferingHints :: (Maybe BufferingHints -> f (Maybe BufferingHints))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_bufferingHints = (ExtendedS3DestinationConfiguration -> Maybe BufferingHints)
-> (ExtendedS3DestinationConfiguration
-> Maybe BufferingHints -> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
(Maybe BufferingHints)
(Maybe BufferingHints)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe BufferingHints
bufferingHints :: Maybe BufferingHints
$sel:bufferingHints:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe BufferingHints
bufferingHints} -> Maybe BufferingHints
bufferingHints) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe BufferingHints
a -> ExtendedS3DestinationConfiguration
s {$sel:bufferingHints:ExtendedS3DestinationConfiguration' :: Maybe BufferingHints
bufferingHints = Maybe BufferingHints
a} :: ExtendedS3DestinationConfiguration)
extendedS3DestinationConfiguration_dataFormatConversionConfiguration :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe DataFormatConversionConfiguration)
extendedS3DestinationConfiguration_dataFormatConversionConfiguration :: (Maybe DataFormatConversionConfiguration
-> f (Maybe DataFormatConversionConfiguration))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_dataFormatConversionConfiguration = (ExtendedS3DestinationConfiguration
-> Maybe DataFormatConversionConfiguration)
-> (ExtendedS3DestinationConfiguration
-> Maybe DataFormatConversionConfiguration
-> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
(Maybe DataFormatConversionConfiguration)
(Maybe DataFormatConversionConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration :: Maybe DataFormatConversionConfiguration
$sel:dataFormatConversionConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration} -> Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe DataFormatConversionConfiguration
a -> ExtendedS3DestinationConfiguration
s {$sel:dataFormatConversionConfiguration:ExtendedS3DestinationConfiguration' :: Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration = Maybe DataFormatConversionConfiguration
a} :: ExtendedS3DestinationConfiguration)
extendedS3DestinationConfiguration_processingConfiguration :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe ProcessingConfiguration)
extendedS3DestinationConfiguration_processingConfiguration :: (Maybe ProcessingConfiguration
-> f (Maybe ProcessingConfiguration))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_processingConfiguration = (ExtendedS3DestinationConfiguration
-> Maybe ProcessingConfiguration)
-> (ExtendedS3DestinationConfiguration
-> Maybe ProcessingConfiguration
-> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
(Maybe ProcessingConfiguration)
(Maybe ProcessingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe ProcessingConfiguration
processingConfiguration :: Maybe ProcessingConfiguration
$sel:processingConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe ProcessingConfiguration
processingConfiguration} -> Maybe ProcessingConfiguration
processingConfiguration) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe ProcessingConfiguration
a -> ExtendedS3DestinationConfiguration
s {$sel:processingConfiguration:ExtendedS3DestinationConfiguration' :: Maybe ProcessingConfiguration
processingConfiguration = Maybe ProcessingConfiguration
a} :: ExtendedS3DestinationConfiguration)
extendedS3DestinationConfiguration_roleARN :: Lens.Lens' ExtendedS3DestinationConfiguration Prelude.Text
extendedS3DestinationConfiguration_roleARN :: (Text -> f Text)
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_roleARN = (ExtendedS3DestinationConfiguration -> Text)
-> (ExtendedS3DestinationConfiguration
-> Text -> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Text
roleARN :: Text
$sel:roleARN:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Text
roleARN} -> Text
roleARN) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Text
a -> ExtendedS3DestinationConfiguration
s {$sel:roleARN:ExtendedS3DestinationConfiguration' :: Text
roleARN = Text
a} :: ExtendedS3DestinationConfiguration)
extendedS3DestinationConfiguration_bucketARN :: Lens.Lens' ExtendedS3DestinationConfiguration Prelude.Text
extendedS3DestinationConfiguration_bucketARN :: (Text -> f Text)
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_bucketARN = (ExtendedS3DestinationConfiguration -> Text)
-> (ExtendedS3DestinationConfiguration
-> Text -> ExtendedS3DestinationConfiguration)
-> Lens
ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Text
bucketARN :: Text
$sel:bucketARN:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Text
bucketARN} -> Text
bucketARN) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Text
a -> ExtendedS3DestinationConfiguration
s {$sel:bucketARN:ExtendedS3DestinationConfiguration' :: Text
bucketARN = Text
a} :: ExtendedS3DestinationConfiguration)
instance
Prelude.Hashable
ExtendedS3DestinationConfiguration
instance
Prelude.NFData
ExtendedS3DestinationConfiguration
instance
Core.ToJSON
ExtendedS3DestinationConfiguration
where
toJSON :: ExtendedS3DestinationConfiguration -> Value
toJSON ExtendedS3DestinationConfiguration' {Maybe Text
Maybe BufferingHints
Maybe CloudWatchLoggingOptions
Maybe CompressionFormat
Maybe EncryptionConfiguration
Maybe ProcessingConfiguration
Maybe DynamicPartitioningConfiguration
Maybe S3BackupMode
Maybe S3DestinationConfiguration
Maybe DataFormatConversionConfiguration
Text
bucketARN :: Text
roleARN :: Text
processingConfiguration :: Maybe ProcessingConfiguration
dataFormatConversionConfiguration :: Maybe DataFormatConversionConfiguration
bufferingHints :: Maybe BufferingHints
compressionFormat :: Maybe CompressionFormat
dynamicPartitioningConfiguration :: Maybe DynamicPartitioningConfiguration
encryptionConfiguration :: Maybe EncryptionConfiguration
errorOutputPrefix :: Maybe Text
s3BackupConfiguration :: Maybe S3DestinationConfiguration
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
prefix :: Maybe Text
s3BackupMode :: Maybe S3BackupMode
$sel:bucketARN:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Text
$sel:roleARN:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Text
$sel:processingConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe ProcessingConfiguration
$sel:dataFormatConversionConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe DataFormatConversionConfiguration
$sel:bufferingHints:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe BufferingHints
$sel:compressionFormat:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe CompressionFormat
$sel:dynamicPartitioningConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe DynamicPartitioningConfiguration
$sel:encryptionConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe EncryptionConfiguration
$sel:errorOutputPrefix:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe Text
$sel:s3BackupConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe S3DestinationConfiguration
$sel:cloudWatchLoggingOptions:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe CloudWatchLoggingOptions
$sel:prefix:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe Text
$sel:s3BackupMode:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe S3BackupMode
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"S3BackupMode" Text -> S3BackupMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (S3BackupMode -> Pair) -> Maybe S3BackupMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3BackupMode
s3BackupMode,
(Text
"Prefix" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
prefix,
(Text
"CloudWatchLoggingOptions" Text -> CloudWatchLoggingOptions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(CloudWatchLoggingOptions -> Pair)
-> Maybe CloudWatchLoggingOptions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions,
(Text
"S3BackupConfiguration" Text -> S3DestinationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(S3DestinationConfiguration -> Pair)
-> Maybe S3DestinationConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3DestinationConfiguration
s3BackupConfiguration,
(Text
"ErrorOutputPrefix" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
errorOutputPrefix,
(Text
"EncryptionConfiguration" Text -> EncryptionConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(EncryptionConfiguration -> Pair)
-> Maybe EncryptionConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EncryptionConfiguration
encryptionConfiguration,
(Text
"DynamicPartitioningConfiguration" Text -> DynamicPartitioningConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DynamicPartitioningConfiguration -> Pair)
-> Maybe DynamicPartitioningConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration,
(Text
"CompressionFormat" Text -> CompressionFormat -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(CompressionFormat -> Pair)
-> Maybe CompressionFormat -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CompressionFormat
compressionFormat,
(Text
"BufferingHints" Text -> BufferingHints -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BufferingHints -> Pair) -> Maybe BufferingHints -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BufferingHints
bufferingHints,
(Text
"DataFormatConversionConfiguration" Text -> DataFormatConversionConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DataFormatConversionConfiguration -> Pair)
-> Maybe DataFormatConversionConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration,
(Text
"ProcessingConfiguration" Text -> ProcessingConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ProcessingConfiguration -> Pair)
-> Maybe ProcessingConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProcessingConfiguration
processingConfiguration,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"RoleARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
roleARN),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"BucketARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
bucketARN)
]
)