{-# 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.ExtendedS3DestinationDescription 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.S3DestinationDescription
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ExtendedS3DestinationDescription = ExtendedS3DestinationDescription'
{
ExtendedS3DestinationDescription -> Maybe S3BackupMode
s3BackupMode :: Prelude.Maybe S3BackupMode,
ExtendedS3DestinationDescription -> Maybe S3DestinationDescription
s3BackupDescription :: Prelude.Maybe S3DestinationDescription,
ExtendedS3DestinationDescription -> Maybe Text
prefix :: Prelude.Maybe Prelude.Text,
ExtendedS3DestinationDescription -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Prelude.Maybe CloudWatchLoggingOptions,
ExtendedS3DestinationDescription -> Maybe Text
errorOutputPrefix :: Prelude.Maybe Prelude.Text,
ExtendedS3DestinationDescription
-> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration :: Prelude.Maybe DynamicPartitioningConfiguration,
ExtendedS3DestinationDescription
-> Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration :: Prelude.Maybe DataFormatConversionConfiguration,
ExtendedS3DestinationDescription -> Maybe ProcessingConfiguration
processingConfiguration :: Prelude.Maybe ProcessingConfiguration,
ExtendedS3DestinationDescription -> Text
roleARN :: Prelude.Text,
ExtendedS3DestinationDescription -> Text
bucketARN :: Prelude.Text,
ExtendedS3DestinationDescription -> BufferingHints
bufferingHints :: BufferingHints,
ExtendedS3DestinationDescription -> CompressionFormat
compressionFormat :: CompressionFormat,
ExtendedS3DestinationDescription -> EncryptionConfiguration
encryptionConfiguration :: EncryptionConfiguration
}
deriving (ExtendedS3DestinationDescription
-> ExtendedS3DestinationDescription -> Bool
(ExtendedS3DestinationDescription
-> ExtendedS3DestinationDescription -> Bool)
-> (ExtendedS3DestinationDescription
-> ExtendedS3DestinationDescription -> Bool)
-> Eq ExtendedS3DestinationDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExtendedS3DestinationDescription
-> ExtendedS3DestinationDescription -> Bool
$c/= :: ExtendedS3DestinationDescription
-> ExtendedS3DestinationDescription -> Bool
== :: ExtendedS3DestinationDescription
-> ExtendedS3DestinationDescription -> Bool
$c== :: ExtendedS3DestinationDescription
-> ExtendedS3DestinationDescription -> Bool
Prelude.Eq, ReadPrec [ExtendedS3DestinationDescription]
ReadPrec ExtendedS3DestinationDescription
Int -> ReadS ExtendedS3DestinationDescription
ReadS [ExtendedS3DestinationDescription]
(Int -> ReadS ExtendedS3DestinationDescription)
-> ReadS [ExtendedS3DestinationDescription]
-> ReadPrec ExtendedS3DestinationDescription
-> ReadPrec [ExtendedS3DestinationDescription]
-> Read ExtendedS3DestinationDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExtendedS3DestinationDescription]
$creadListPrec :: ReadPrec [ExtendedS3DestinationDescription]
readPrec :: ReadPrec ExtendedS3DestinationDescription
$creadPrec :: ReadPrec ExtendedS3DestinationDescription
readList :: ReadS [ExtendedS3DestinationDescription]
$creadList :: ReadS [ExtendedS3DestinationDescription]
readsPrec :: Int -> ReadS ExtendedS3DestinationDescription
$creadsPrec :: Int -> ReadS ExtendedS3DestinationDescription
Prelude.Read, Int -> ExtendedS3DestinationDescription -> ShowS
[ExtendedS3DestinationDescription] -> ShowS
ExtendedS3DestinationDescription -> String
(Int -> ExtendedS3DestinationDescription -> ShowS)
-> (ExtendedS3DestinationDescription -> String)
-> ([ExtendedS3DestinationDescription] -> ShowS)
-> Show ExtendedS3DestinationDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExtendedS3DestinationDescription] -> ShowS
$cshowList :: [ExtendedS3DestinationDescription] -> ShowS
show :: ExtendedS3DestinationDescription -> String
$cshow :: ExtendedS3DestinationDescription -> String
showsPrec :: Int -> ExtendedS3DestinationDescription -> ShowS
$cshowsPrec :: Int -> ExtendedS3DestinationDescription -> ShowS
Prelude.Show, (forall x.
ExtendedS3DestinationDescription
-> Rep ExtendedS3DestinationDescription x)
-> (forall x.
Rep ExtendedS3DestinationDescription x
-> ExtendedS3DestinationDescription)
-> Generic ExtendedS3DestinationDescription
forall x.
Rep ExtendedS3DestinationDescription x
-> ExtendedS3DestinationDescription
forall x.
ExtendedS3DestinationDescription
-> Rep ExtendedS3DestinationDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ExtendedS3DestinationDescription x
-> ExtendedS3DestinationDescription
$cfrom :: forall x.
ExtendedS3DestinationDescription
-> Rep ExtendedS3DestinationDescription x
Prelude.Generic)
newExtendedS3DestinationDescription ::
Prelude.Text ->
Prelude.Text ->
BufferingHints ->
CompressionFormat ->
EncryptionConfiguration ->
ExtendedS3DestinationDescription
newExtendedS3DestinationDescription :: Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription
newExtendedS3DestinationDescription
Text
pRoleARN_
Text
pBucketARN_
BufferingHints
pBufferingHints_
CompressionFormat
pCompressionFormat_
EncryptionConfiguration
pEncryptionConfiguration_ =
ExtendedS3DestinationDescription' :: Maybe S3BackupMode
-> Maybe S3DestinationDescription
-> Maybe Text
-> Maybe CloudWatchLoggingOptions
-> Maybe Text
-> Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription
ExtendedS3DestinationDescription'
{ $sel:s3BackupMode:ExtendedS3DestinationDescription' :: Maybe S3BackupMode
s3BackupMode =
Maybe S3BackupMode
forall a. Maybe a
Prelude.Nothing,
$sel:s3BackupDescription:ExtendedS3DestinationDescription' :: Maybe S3DestinationDescription
s3BackupDescription = Maybe S3DestinationDescription
forall a. Maybe a
Prelude.Nothing,
$sel:prefix:ExtendedS3DestinationDescription' :: Maybe Text
prefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchLoggingOptions:ExtendedS3DestinationDescription' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions =
Maybe CloudWatchLoggingOptions
forall a. Maybe a
Prelude.Nothing,
$sel:errorOutputPrefix:ExtendedS3DestinationDescription' :: Maybe Text
errorOutputPrefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dynamicPartitioningConfiguration:ExtendedS3DestinationDescription' :: Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration =
Maybe DynamicPartitioningConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:dataFormatConversionConfiguration:ExtendedS3DestinationDescription' :: Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration =
Maybe DataFormatConversionConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:processingConfiguration:ExtendedS3DestinationDescription' :: Maybe ProcessingConfiguration
processingConfiguration = Maybe ProcessingConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:roleARN:ExtendedS3DestinationDescription' :: Text
roleARN = Text
pRoleARN_,
$sel:bucketARN:ExtendedS3DestinationDescription' :: Text
bucketARN = Text
pBucketARN_,
$sel:bufferingHints:ExtendedS3DestinationDescription' :: BufferingHints
bufferingHints = BufferingHints
pBufferingHints_,
$sel:compressionFormat:ExtendedS3DestinationDescription' :: CompressionFormat
compressionFormat = CompressionFormat
pCompressionFormat_,
$sel:encryptionConfiguration:ExtendedS3DestinationDescription' :: EncryptionConfiguration
encryptionConfiguration =
EncryptionConfiguration
pEncryptionConfiguration_
}
extendedS3DestinationDescription_s3BackupMode :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe S3BackupMode)
extendedS3DestinationDescription_s3BackupMode :: (Maybe S3BackupMode -> f (Maybe S3BackupMode))
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_s3BackupMode = (ExtendedS3DestinationDescription -> Maybe S3BackupMode)
-> (ExtendedS3DestinationDescription
-> Maybe S3BackupMode -> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
(Maybe S3BackupMode)
(Maybe S3BackupMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {Maybe S3BackupMode
s3BackupMode :: Maybe S3BackupMode
$sel:s3BackupMode:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe S3BackupMode
s3BackupMode} -> Maybe S3BackupMode
s3BackupMode) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} Maybe S3BackupMode
a -> ExtendedS3DestinationDescription
s {$sel:s3BackupMode:ExtendedS3DestinationDescription' :: Maybe S3BackupMode
s3BackupMode = Maybe S3BackupMode
a} :: ExtendedS3DestinationDescription)
extendedS3DestinationDescription_s3BackupDescription :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe S3DestinationDescription)
extendedS3DestinationDescription_s3BackupDescription :: (Maybe S3DestinationDescription
-> f (Maybe S3DestinationDescription))
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_s3BackupDescription = (ExtendedS3DestinationDescription
-> Maybe S3DestinationDescription)
-> (ExtendedS3DestinationDescription
-> Maybe S3DestinationDescription
-> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
(Maybe S3DestinationDescription)
(Maybe S3DestinationDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {Maybe S3DestinationDescription
s3BackupDescription :: Maybe S3DestinationDescription
$sel:s3BackupDescription:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe S3DestinationDescription
s3BackupDescription} -> Maybe S3DestinationDescription
s3BackupDescription) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} Maybe S3DestinationDescription
a -> ExtendedS3DestinationDescription
s {$sel:s3BackupDescription:ExtendedS3DestinationDescription' :: Maybe S3DestinationDescription
s3BackupDescription = Maybe S3DestinationDescription
a} :: ExtendedS3DestinationDescription)
extendedS3DestinationDescription_prefix :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe Prelude.Text)
extendedS3DestinationDescription_prefix :: (Maybe Text -> f (Maybe Text))
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_prefix = (ExtendedS3DestinationDescription -> Maybe Text)
-> (ExtendedS3DestinationDescription
-> Maybe Text -> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {Maybe Text
prefix :: Maybe Text
$sel:prefix:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe Text
prefix} -> Maybe Text
prefix) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} Maybe Text
a -> ExtendedS3DestinationDescription
s {$sel:prefix:ExtendedS3DestinationDescription' :: Maybe Text
prefix = Maybe Text
a} :: ExtendedS3DestinationDescription)
extendedS3DestinationDescription_cloudWatchLoggingOptions :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe CloudWatchLoggingOptions)
extendedS3DestinationDescription_cloudWatchLoggingOptions :: (Maybe CloudWatchLoggingOptions
-> f (Maybe CloudWatchLoggingOptions))
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_cloudWatchLoggingOptions = (ExtendedS3DestinationDescription
-> Maybe CloudWatchLoggingOptions)
-> (ExtendedS3DestinationDescription
-> Maybe CloudWatchLoggingOptions
-> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
(Maybe CloudWatchLoggingOptions)
(Maybe CloudWatchLoggingOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
$sel:cloudWatchLoggingOptions:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions} -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} Maybe CloudWatchLoggingOptions
a -> ExtendedS3DestinationDescription
s {$sel:cloudWatchLoggingOptions:ExtendedS3DestinationDescription' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions = Maybe CloudWatchLoggingOptions
a} :: ExtendedS3DestinationDescription)
extendedS3DestinationDescription_errorOutputPrefix :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe Prelude.Text)
extendedS3DestinationDescription_errorOutputPrefix :: (Maybe Text -> f (Maybe Text))
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_errorOutputPrefix = (ExtendedS3DestinationDescription -> Maybe Text)
-> (ExtendedS3DestinationDescription
-> Maybe Text -> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {Maybe Text
errorOutputPrefix :: Maybe Text
$sel:errorOutputPrefix:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe Text
errorOutputPrefix} -> Maybe Text
errorOutputPrefix) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} Maybe Text
a -> ExtendedS3DestinationDescription
s {$sel:errorOutputPrefix:ExtendedS3DestinationDescription' :: Maybe Text
errorOutputPrefix = Maybe Text
a} :: ExtendedS3DestinationDescription)
extendedS3DestinationDescription_dynamicPartitioningConfiguration :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe DynamicPartitioningConfiguration)
extendedS3DestinationDescription_dynamicPartitioningConfiguration :: (Maybe DynamicPartitioningConfiguration
-> f (Maybe DynamicPartitioningConfiguration))
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_dynamicPartitioningConfiguration = (ExtendedS3DestinationDescription
-> Maybe DynamicPartitioningConfiguration)
-> (ExtendedS3DestinationDescription
-> Maybe DynamicPartitioningConfiguration
-> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
(Maybe DynamicPartitioningConfiguration)
(Maybe DynamicPartitioningConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration :: Maybe DynamicPartitioningConfiguration
$sel:dynamicPartitioningConfiguration:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription
-> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration} -> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} Maybe DynamicPartitioningConfiguration
a -> ExtendedS3DestinationDescription
s {$sel:dynamicPartitioningConfiguration:ExtendedS3DestinationDescription' :: Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration = Maybe DynamicPartitioningConfiguration
a} :: ExtendedS3DestinationDescription)
extendedS3DestinationDescription_dataFormatConversionConfiguration :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe DataFormatConversionConfiguration)
extendedS3DestinationDescription_dataFormatConversionConfiguration :: (Maybe DataFormatConversionConfiguration
-> f (Maybe DataFormatConversionConfiguration))
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_dataFormatConversionConfiguration = (ExtendedS3DestinationDescription
-> Maybe DataFormatConversionConfiguration)
-> (ExtendedS3DestinationDescription
-> Maybe DataFormatConversionConfiguration
-> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
(Maybe DataFormatConversionConfiguration)
(Maybe DataFormatConversionConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration :: Maybe DataFormatConversionConfiguration
$sel:dataFormatConversionConfiguration:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription
-> Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration} -> Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} Maybe DataFormatConversionConfiguration
a -> ExtendedS3DestinationDescription
s {$sel:dataFormatConversionConfiguration:ExtendedS3DestinationDescription' :: Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration = Maybe DataFormatConversionConfiguration
a} :: ExtendedS3DestinationDescription)
extendedS3DestinationDescription_processingConfiguration :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe ProcessingConfiguration)
extendedS3DestinationDescription_processingConfiguration :: (Maybe ProcessingConfiguration
-> f (Maybe ProcessingConfiguration))
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_processingConfiguration = (ExtendedS3DestinationDescription -> Maybe ProcessingConfiguration)
-> (ExtendedS3DestinationDescription
-> Maybe ProcessingConfiguration
-> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
(Maybe ProcessingConfiguration)
(Maybe ProcessingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {Maybe ProcessingConfiguration
processingConfiguration :: Maybe ProcessingConfiguration
$sel:processingConfiguration:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe ProcessingConfiguration
processingConfiguration} -> Maybe ProcessingConfiguration
processingConfiguration) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} Maybe ProcessingConfiguration
a -> ExtendedS3DestinationDescription
s {$sel:processingConfiguration:ExtendedS3DestinationDescription' :: Maybe ProcessingConfiguration
processingConfiguration = Maybe ProcessingConfiguration
a} :: ExtendedS3DestinationDescription)
extendedS3DestinationDescription_roleARN :: Lens.Lens' ExtendedS3DestinationDescription Prelude.Text
extendedS3DestinationDescription_roleARN :: (Text -> f Text)
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_roleARN = (ExtendedS3DestinationDescription -> Text)
-> (ExtendedS3DestinationDescription
-> Text -> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {Text
roleARN :: Text
$sel:roleARN:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Text
roleARN} -> Text
roleARN) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} Text
a -> ExtendedS3DestinationDescription
s {$sel:roleARN:ExtendedS3DestinationDescription' :: Text
roleARN = Text
a} :: ExtendedS3DestinationDescription)
extendedS3DestinationDescription_bucketARN :: Lens.Lens' ExtendedS3DestinationDescription Prelude.Text
extendedS3DestinationDescription_bucketARN :: (Text -> f Text)
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_bucketARN = (ExtendedS3DestinationDescription -> Text)
-> (ExtendedS3DestinationDescription
-> Text -> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {Text
bucketARN :: Text
$sel:bucketARN:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Text
bucketARN} -> Text
bucketARN) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} Text
a -> ExtendedS3DestinationDescription
s {$sel:bucketARN:ExtendedS3DestinationDescription' :: Text
bucketARN = Text
a} :: ExtendedS3DestinationDescription)
extendedS3DestinationDescription_bufferingHints :: Lens.Lens' ExtendedS3DestinationDescription BufferingHints
extendedS3DestinationDescription_bufferingHints :: (BufferingHints -> f BufferingHints)
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_bufferingHints = (ExtendedS3DestinationDescription -> BufferingHints)
-> (ExtendedS3DestinationDescription
-> BufferingHints -> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
BufferingHints
BufferingHints
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {BufferingHints
bufferingHints :: BufferingHints
$sel:bufferingHints:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> BufferingHints
bufferingHints} -> BufferingHints
bufferingHints) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} BufferingHints
a -> ExtendedS3DestinationDescription
s {$sel:bufferingHints:ExtendedS3DestinationDescription' :: BufferingHints
bufferingHints = BufferingHints
a} :: ExtendedS3DestinationDescription)
extendedS3DestinationDescription_compressionFormat :: Lens.Lens' ExtendedS3DestinationDescription CompressionFormat
extendedS3DestinationDescription_compressionFormat :: (CompressionFormat -> f CompressionFormat)
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_compressionFormat = (ExtendedS3DestinationDescription -> CompressionFormat)
-> (ExtendedS3DestinationDescription
-> CompressionFormat -> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
CompressionFormat
CompressionFormat
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {CompressionFormat
compressionFormat :: CompressionFormat
$sel:compressionFormat:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> CompressionFormat
compressionFormat} -> CompressionFormat
compressionFormat) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} CompressionFormat
a -> ExtendedS3DestinationDescription
s {$sel:compressionFormat:ExtendedS3DestinationDescription' :: CompressionFormat
compressionFormat = CompressionFormat
a} :: ExtendedS3DestinationDescription)
extendedS3DestinationDescription_encryptionConfiguration :: Lens.Lens' ExtendedS3DestinationDescription EncryptionConfiguration
extendedS3DestinationDescription_encryptionConfiguration :: (EncryptionConfiguration -> f EncryptionConfiguration)
-> ExtendedS3DestinationDescription
-> f ExtendedS3DestinationDescription
extendedS3DestinationDescription_encryptionConfiguration = (ExtendedS3DestinationDescription -> EncryptionConfiguration)
-> (ExtendedS3DestinationDescription
-> EncryptionConfiguration -> ExtendedS3DestinationDescription)
-> Lens
ExtendedS3DestinationDescription
ExtendedS3DestinationDescription
EncryptionConfiguration
EncryptionConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationDescription' {EncryptionConfiguration
encryptionConfiguration :: EncryptionConfiguration
$sel:encryptionConfiguration:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> EncryptionConfiguration
encryptionConfiguration} -> EncryptionConfiguration
encryptionConfiguration) (\s :: ExtendedS3DestinationDescription
s@ExtendedS3DestinationDescription' {} EncryptionConfiguration
a -> ExtendedS3DestinationDescription
s {$sel:encryptionConfiguration:ExtendedS3DestinationDescription' :: EncryptionConfiguration
encryptionConfiguration = EncryptionConfiguration
a} :: ExtendedS3DestinationDescription)
instance
Core.FromJSON
ExtendedS3DestinationDescription
where
parseJSON :: Value -> Parser ExtendedS3DestinationDescription
parseJSON =
String
-> (Object -> Parser ExtendedS3DestinationDescription)
-> Value
-> Parser ExtendedS3DestinationDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ExtendedS3DestinationDescription"
( \Object
x ->
Maybe S3BackupMode
-> Maybe S3DestinationDescription
-> Maybe Text
-> Maybe CloudWatchLoggingOptions
-> Maybe Text
-> Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription
ExtendedS3DestinationDescription'
(Maybe S3BackupMode
-> Maybe S3DestinationDescription
-> Maybe Text
-> Maybe CloudWatchLoggingOptions
-> Maybe Text
-> Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
-> Parser (Maybe S3BackupMode)
-> Parser
(Maybe S3DestinationDescription
-> Maybe Text
-> Maybe CloudWatchLoggingOptions
-> Maybe Text
-> Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe S3BackupMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3BackupMode")
Parser
(Maybe S3DestinationDescription
-> Maybe Text
-> Maybe CloudWatchLoggingOptions
-> Maybe Text
-> Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
-> Parser (Maybe S3DestinationDescription)
-> Parser
(Maybe Text
-> Maybe CloudWatchLoggingOptions
-> Maybe Text
-> Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe S3DestinationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3BackupDescription")
Parser
(Maybe Text
-> Maybe CloudWatchLoggingOptions
-> Maybe Text
-> Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe CloudWatchLoggingOptions
-> Maybe Text
-> Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Prefix")
Parser
(Maybe CloudWatchLoggingOptions
-> Maybe Text
-> Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
-> Parser (Maybe CloudWatchLoggingOptions)
-> Parser
(Maybe Text
-> Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe CloudWatchLoggingOptions)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CloudWatchLoggingOptions")
Parser
(Maybe Text
-> Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ErrorOutputPrefix")
Parser
(Maybe DynamicPartitioningConfiguration
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
-> Parser (Maybe DynamicPartitioningConfiguration)
-> Parser
(Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DynamicPartitioningConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DynamicPartitioningConfiguration")
Parser
(Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
-> Parser (Maybe DataFormatConversionConfiguration)
-> Parser
(Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DataFormatConversionConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DataFormatConversionConfiguration")
Parser
(Maybe ProcessingConfiguration
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
-> Parser (Maybe ProcessingConfiguration)
-> Parser
(Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProcessingConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProcessingConfiguration")
Parser
(Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
-> Parser Text
-> Parser
(Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"RoleARN")
Parser
(Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
-> Parser Text
-> Parser
(BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"BucketARN")
Parser
(BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription)
-> Parser BufferingHints
-> Parser
(CompressionFormat
-> EncryptionConfiguration -> ExtendedS3DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser BufferingHints
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"BufferingHints")
Parser
(CompressionFormat
-> EncryptionConfiguration -> ExtendedS3DestinationDescription)
-> Parser CompressionFormat
-> Parser
(EncryptionConfiguration -> ExtendedS3DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser CompressionFormat
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"CompressionFormat")
Parser
(EncryptionConfiguration -> ExtendedS3DestinationDescription)
-> Parser EncryptionConfiguration
-> Parser ExtendedS3DestinationDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser EncryptionConfiguration
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"EncryptionConfiguration")
)
instance
Prelude.Hashable
ExtendedS3DestinationDescription
instance
Prelude.NFData
ExtendedS3DestinationDescription