{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Firehose.Types.ExtendedS3DestinationDescription
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Firehose.Types.ExtendedS3DestinationDescription where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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.Prelude as Prelude

-- | Describes a destination in Amazon S3.
--
-- /See:/ 'newExtendedS3DestinationDescription' smart constructor.
data ExtendedS3DestinationDescription = ExtendedS3DestinationDescription'
  { -- | The Amazon CloudWatch logging options for your delivery stream.
    ExtendedS3DestinationDescription -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Prelude.Maybe CloudWatchLoggingOptions,
    -- | The serializer, deserializer, and schema for converting data from the
    -- JSON format to the Parquet or ORC format before writing it to Amazon S3.
    ExtendedS3DestinationDescription
-> Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration :: Prelude.Maybe DataFormatConversionConfiguration,
    -- | The configuration of the dynamic partitioning mechanism that creates
    -- smaller data sets from the streaming data by partitioning it based on
    -- partition keys. Currently, dynamic partitioning is only supported for
    -- Amazon S3 destinations.
    ExtendedS3DestinationDescription
-> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration :: Prelude.Maybe DynamicPartitioningConfiguration,
    -- | A prefix that Kinesis Data Firehose evaluates and adds to failed records
    -- before writing them to S3. This prefix appears immediately following the
    -- bucket name. For information about how to specify this prefix, see
    -- <https://docs.aws.amazon.com/firehose/latest/dev/s3-prefixes.html Custom Prefixes for Amazon S3 Objects>.
    ExtendedS3DestinationDescription -> Maybe Text
errorOutputPrefix :: Prelude.Maybe Prelude.Text,
    -- | The \"YYYY\/MM\/DD\/HH\" time format prefix is automatically used for
    -- delivered Amazon S3 files. You can also specify a custom prefix, as
    -- described in
    -- <https://docs.aws.amazon.com/firehose/latest/dev/s3-prefixes.html Custom Prefixes for Amazon S3 Objects>.
    ExtendedS3DestinationDescription -> Maybe Text
prefix :: Prelude.Maybe Prelude.Text,
    -- | The data processing configuration.
    ExtendedS3DestinationDescription -> Maybe ProcessingConfiguration
processingConfiguration :: Prelude.Maybe ProcessingConfiguration,
    -- | The configuration for backup in Amazon S3.
    ExtendedS3DestinationDescription -> Maybe S3DestinationDescription
s3BackupDescription :: Prelude.Maybe S3DestinationDescription,
    -- | The Amazon S3 backup mode.
    ExtendedS3DestinationDescription -> Maybe S3BackupMode
s3BackupMode :: Prelude.Maybe S3BackupMode,
    -- | The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
    -- For more information, see
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces>.
    ExtendedS3DestinationDescription -> Text
roleARN :: Prelude.Text,
    -- | The ARN of the S3 bucket. For more information, see
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces>.
    ExtendedS3DestinationDescription -> Text
bucketARN :: Prelude.Text,
    -- | The buffering option.
    ExtendedS3DestinationDescription -> BufferingHints
bufferingHints :: BufferingHints,
    -- | The compression format. If no value is specified, the default is
    -- @UNCOMPRESSED@.
    ExtendedS3DestinationDescription -> CompressionFormat
compressionFormat :: CompressionFormat,
    -- | The encryption configuration. If no value is specified, the default is
    -- no encryption.
    ExtendedS3DestinationDescription -> EncryptionConfiguration
encryptionConfiguration :: EncryptionConfiguration
  }
  deriving (ExtendedS3DestinationDescription
-> ExtendedS3DestinationDescription -> Bool
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]
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
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.
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)

-- |
-- Create a value of 'ExtendedS3DestinationDescription' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'cloudWatchLoggingOptions', 'extendedS3DestinationDescription_cloudWatchLoggingOptions' - The Amazon CloudWatch logging options for your delivery stream.
--
-- 'dataFormatConversionConfiguration', 'extendedS3DestinationDescription_dataFormatConversionConfiguration' - The serializer, deserializer, and schema for converting data from the
-- JSON format to the Parquet or ORC format before writing it to Amazon S3.
--
-- 'dynamicPartitioningConfiguration', 'extendedS3DestinationDescription_dynamicPartitioningConfiguration' - The configuration of the dynamic partitioning mechanism that creates
-- smaller data sets from the streaming data by partitioning it based on
-- partition keys. Currently, dynamic partitioning is only supported for
-- Amazon S3 destinations.
--
-- 'errorOutputPrefix', 'extendedS3DestinationDescription_errorOutputPrefix' - A prefix that Kinesis Data Firehose evaluates and adds to failed records
-- before writing them to S3. This prefix appears immediately following the
-- bucket name. For information about how to specify this prefix, see
-- <https://docs.aws.amazon.com/firehose/latest/dev/s3-prefixes.html Custom Prefixes for Amazon S3 Objects>.
--
-- 'prefix', 'extendedS3DestinationDescription_prefix' - The \"YYYY\/MM\/DD\/HH\" time format prefix is automatically used for
-- delivered Amazon S3 files. You can also specify a custom prefix, as
-- described in
-- <https://docs.aws.amazon.com/firehose/latest/dev/s3-prefixes.html Custom Prefixes for Amazon S3 Objects>.
--
-- 'processingConfiguration', 'extendedS3DestinationDescription_processingConfiguration' - The data processing configuration.
--
-- 's3BackupDescription', 'extendedS3DestinationDescription_s3BackupDescription' - The configuration for backup in Amazon S3.
--
-- 's3BackupMode', 'extendedS3DestinationDescription_s3BackupMode' - The Amazon S3 backup mode.
--
-- 'roleARN', 'extendedS3DestinationDescription_roleARN' - The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
-- For more information, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces>.
--
-- 'bucketARN', 'extendedS3DestinationDescription_bucketARN' - The ARN of the S3 bucket. For more information, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces>.
--
-- 'bufferingHints', 'extendedS3DestinationDescription_bufferingHints' - The buffering option.
--
-- 'compressionFormat', 'extendedS3DestinationDescription_compressionFormat' - The compression format. If no value is specified, the default is
-- @UNCOMPRESSED@.
--
-- 'encryptionConfiguration', 'extendedS3DestinationDescription_encryptionConfiguration' - The encryption configuration. If no value is specified, the default is
-- no encryption.
newExtendedS3DestinationDescription ::
  -- | 'roleARN'
  Prelude.Text ->
  -- | 'bucketARN'
  Prelude.Text ->
  -- | 'bufferingHints'
  BufferingHints ->
  -- | 'compressionFormat'
  CompressionFormat ->
  -- | 'encryptionConfiguration'
  EncryptionConfiguration ->
  ExtendedS3DestinationDescription
newExtendedS3DestinationDescription :: Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription
newExtendedS3DestinationDescription
  Text
pRoleARN_
  Text
pBucketARN_
  BufferingHints
pBufferingHints_
  CompressionFormat
pCompressionFormat_
  EncryptionConfiguration
pEncryptionConfiguration_ =
    ExtendedS3DestinationDescription'
      { $sel:cloudWatchLoggingOptions:ExtendedS3DestinationDescription' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions =
          forall a. Maybe a
Prelude.Nothing,
        $sel:dataFormatConversionConfiguration:ExtendedS3DestinationDescription' :: Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration =
          forall a. Maybe a
Prelude.Nothing,
        $sel:dynamicPartitioningConfiguration:ExtendedS3DestinationDescription' :: Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration =
          forall a. Maybe a
Prelude.Nothing,
        $sel:errorOutputPrefix:ExtendedS3DestinationDescription' :: Maybe Text
errorOutputPrefix = forall a. Maybe a
Prelude.Nothing,
        $sel:prefix:ExtendedS3DestinationDescription' :: Maybe Text
prefix = forall a. Maybe a
Prelude.Nothing,
        $sel:processingConfiguration:ExtendedS3DestinationDescription' :: Maybe ProcessingConfiguration
processingConfiguration = forall a. Maybe a
Prelude.Nothing,
        $sel:s3BackupDescription:ExtendedS3DestinationDescription' :: Maybe S3DestinationDescription
s3BackupDescription = forall a. Maybe a
Prelude.Nothing,
        $sel:s3BackupMode:ExtendedS3DestinationDescription' :: Maybe S3BackupMode
s3BackupMode = 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_
      }

-- | The Amazon CloudWatch logging options for your delivery stream.
extendedS3DestinationDescription_cloudWatchLoggingOptions :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe CloudWatchLoggingOptions)
extendedS3DestinationDescription_cloudWatchLoggingOptions :: Lens'
  ExtendedS3DestinationDescription (Maybe CloudWatchLoggingOptions)
extendedS3DestinationDescription_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)

-- | The serializer, deserializer, and schema for converting data from the
-- JSON format to the Parquet or ORC format before writing it to Amazon S3.
extendedS3DestinationDescription_dataFormatConversionConfiguration :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe DataFormatConversionConfiguration)
extendedS3DestinationDescription_dataFormatConversionConfiguration :: Lens'
  ExtendedS3DestinationDescription
  (Maybe DataFormatConversionConfiguration)
extendedS3DestinationDescription_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)

-- | The configuration of the dynamic partitioning mechanism that creates
-- smaller data sets from the streaming data by partitioning it based on
-- partition keys. Currently, dynamic partitioning is only supported for
-- Amazon S3 destinations.
extendedS3DestinationDescription_dynamicPartitioningConfiguration :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe DynamicPartitioningConfiguration)
extendedS3DestinationDescription_dynamicPartitioningConfiguration :: Lens'
  ExtendedS3DestinationDescription
  (Maybe DynamicPartitioningConfiguration)
extendedS3DestinationDescription_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)

-- | A prefix that Kinesis Data Firehose evaluates and adds to failed records
-- before writing them to S3. This prefix appears immediately following the
-- bucket name. For information about how to specify this prefix, see
-- <https://docs.aws.amazon.com/firehose/latest/dev/s3-prefixes.html Custom Prefixes for Amazon S3 Objects>.
extendedS3DestinationDescription_errorOutputPrefix :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe Prelude.Text)
extendedS3DestinationDescription_errorOutputPrefix :: Lens' ExtendedS3DestinationDescription (Maybe Text)
extendedS3DestinationDescription_errorOutputPrefix = 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)

-- | The \"YYYY\/MM\/DD\/HH\" time format prefix is automatically used for
-- delivered Amazon S3 files. You can also specify a custom prefix, as
-- described in
-- <https://docs.aws.amazon.com/firehose/latest/dev/s3-prefixes.html Custom Prefixes for Amazon S3 Objects>.
extendedS3DestinationDescription_prefix :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe Prelude.Text)
extendedS3DestinationDescription_prefix :: Lens' ExtendedS3DestinationDescription (Maybe Text)
extendedS3DestinationDescription_prefix = 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)

-- | The data processing configuration.
extendedS3DestinationDescription_processingConfiguration :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe ProcessingConfiguration)
extendedS3DestinationDescription_processingConfiguration :: Lens'
  ExtendedS3DestinationDescription (Maybe ProcessingConfiguration)
extendedS3DestinationDescription_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)

-- | The configuration for backup in Amazon S3.
extendedS3DestinationDescription_s3BackupDescription :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe S3DestinationDescription)
extendedS3DestinationDescription_s3BackupDescription :: Lens'
  ExtendedS3DestinationDescription (Maybe S3DestinationDescription)
extendedS3DestinationDescription_s3BackupDescription = 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)

-- | The Amazon S3 backup mode.
extendedS3DestinationDescription_s3BackupMode :: Lens.Lens' ExtendedS3DestinationDescription (Prelude.Maybe S3BackupMode)
extendedS3DestinationDescription_s3BackupMode :: Lens' ExtendedS3DestinationDescription (Maybe S3BackupMode)
extendedS3DestinationDescription_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)

-- | The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
-- For more information, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces>.
extendedS3DestinationDescription_roleARN :: Lens.Lens' ExtendedS3DestinationDescription Prelude.Text
extendedS3DestinationDescription_roleARN :: Lens' ExtendedS3DestinationDescription Text
extendedS3DestinationDescription_roleARN = 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)

-- | The ARN of the S3 bucket. For more information, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces>.
extendedS3DestinationDescription_bucketARN :: Lens.Lens' ExtendedS3DestinationDescription Prelude.Text
extendedS3DestinationDescription_bucketARN :: Lens' ExtendedS3DestinationDescription Text
extendedS3DestinationDescription_bucketARN = 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)

-- | The buffering option.
extendedS3DestinationDescription_bufferingHints :: Lens.Lens' ExtendedS3DestinationDescription BufferingHints
extendedS3DestinationDescription_bufferingHints :: Lens' ExtendedS3DestinationDescription BufferingHints
extendedS3DestinationDescription_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)

-- | The compression format. If no value is specified, the default is
-- @UNCOMPRESSED@.
extendedS3DestinationDescription_compressionFormat :: Lens.Lens' ExtendedS3DestinationDescription CompressionFormat
extendedS3DestinationDescription_compressionFormat :: Lens' ExtendedS3DestinationDescription CompressionFormat
extendedS3DestinationDescription_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)

-- | The encryption configuration. If no value is specified, the default is
-- no encryption.
extendedS3DestinationDescription_encryptionConfiguration :: Lens.Lens' ExtendedS3DestinationDescription EncryptionConfiguration
extendedS3DestinationDescription_encryptionConfiguration :: Lens' ExtendedS3DestinationDescription EncryptionConfiguration
extendedS3DestinationDescription_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
  Data.FromJSON
    ExtendedS3DestinationDescription
  where
  parseJSON :: Value -> Parser ExtendedS3DestinationDescription
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ExtendedS3DestinationDescription"
      ( \Object
x ->
          Maybe CloudWatchLoggingOptions
-> Maybe DataFormatConversionConfiguration
-> Maybe DynamicPartitioningConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe ProcessingConfiguration
-> Maybe S3DestinationDescription
-> Maybe S3BackupMode
-> Text
-> Text
-> BufferingHints
-> CompressionFormat
-> EncryptionConfiguration
-> ExtendedS3DestinationDescription
ExtendedS3DestinationDescription'
            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
"CloudWatchLoggingOptions")
            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
"DataFormatConversionConfiguration")
            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
"DynamicPartitioningConfiguration")
            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
"ErrorOutputPrefix")
            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
"Prefix")
            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
"ProcessingConfiguration")
            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
"S3BackupDescription")
            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
"S3BackupMode")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"RoleARN")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"BucketARN")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"BufferingHints")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CompressionFormat")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"EncryptionConfiguration")
      )

instance
  Prelude.Hashable
    ExtendedS3DestinationDescription
  where
  hashWithSalt :: Int -> ExtendedS3DestinationDescription -> Int
hashWithSalt
    Int
_salt
    ExtendedS3DestinationDescription' {Maybe Text
Maybe CloudWatchLoggingOptions
Maybe ProcessingConfiguration
Maybe DynamicPartitioningConfiguration
Maybe S3BackupMode
Maybe S3DestinationDescription
Maybe DataFormatConversionConfiguration
Text
BufferingHints
CompressionFormat
EncryptionConfiguration
encryptionConfiguration :: EncryptionConfiguration
compressionFormat :: CompressionFormat
bufferingHints :: BufferingHints
bucketARN :: Text
roleARN :: Text
s3BackupMode :: Maybe S3BackupMode
s3BackupDescription :: Maybe S3DestinationDescription
processingConfiguration :: Maybe ProcessingConfiguration
prefix :: Maybe Text
errorOutputPrefix :: Maybe Text
dynamicPartitioningConfiguration :: Maybe DynamicPartitioningConfiguration
dataFormatConversionConfiguration :: Maybe DataFormatConversionConfiguration
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
$sel:encryptionConfiguration:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> EncryptionConfiguration
$sel:compressionFormat:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> CompressionFormat
$sel:bufferingHints:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> BufferingHints
$sel:bucketARN:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Text
$sel:roleARN:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Text
$sel:s3BackupMode:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe S3BackupMode
$sel:s3BackupDescription:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe S3DestinationDescription
$sel:processingConfiguration:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe ProcessingConfiguration
$sel:prefix:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe Text
$sel:errorOutputPrefix:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe Text
$sel:dynamicPartitioningConfiguration:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription
-> Maybe DynamicPartitioningConfiguration
$sel:dataFormatConversionConfiguration:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription
-> Maybe DataFormatConversionConfiguration
$sel:cloudWatchLoggingOptions:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe CloudWatchLoggingOptions
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
errorOutputPrefix
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
prefix
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProcessingConfiguration
processingConfiguration
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe S3DestinationDescription
s3BackupDescription
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe S3BackupMode
s3BackupMode
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
roleARN
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
bucketARN
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` BufferingHints
bufferingHints
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` CompressionFormat
compressionFormat
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` EncryptionConfiguration
encryptionConfiguration

instance
  Prelude.NFData
    ExtendedS3DestinationDescription
  where
  rnf :: ExtendedS3DestinationDescription -> ()
rnf ExtendedS3DestinationDescription' {Maybe Text
Maybe CloudWatchLoggingOptions
Maybe ProcessingConfiguration
Maybe DynamicPartitioningConfiguration
Maybe S3BackupMode
Maybe S3DestinationDescription
Maybe DataFormatConversionConfiguration
Text
BufferingHints
CompressionFormat
EncryptionConfiguration
encryptionConfiguration :: EncryptionConfiguration
compressionFormat :: CompressionFormat
bufferingHints :: BufferingHints
bucketARN :: Text
roleARN :: Text
s3BackupMode :: Maybe S3BackupMode
s3BackupDescription :: Maybe S3DestinationDescription
processingConfiguration :: Maybe ProcessingConfiguration
prefix :: Maybe Text
errorOutputPrefix :: Maybe Text
dynamicPartitioningConfiguration :: Maybe DynamicPartitioningConfiguration
dataFormatConversionConfiguration :: Maybe DataFormatConversionConfiguration
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
$sel:encryptionConfiguration:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> EncryptionConfiguration
$sel:compressionFormat:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> CompressionFormat
$sel:bufferingHints:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> BufferingHints
$sel:bucketARN:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Text
$sel:roleARN:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Text
$sel:s3BackupMode:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe S3BackupMode
$sel:s3BackupDescription:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe S3DestinationDescription
$sel:processingConfiguration:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe ProcessingConfiguration
$sel:prefix:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe Text
$sel:errorOutputPrefix:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe Text
$sel:dynamicPartitioningConfiguration:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription
-> Maybe DynamicPartitioningConfiguration
$sel:dataFormatConversionConfiguration:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription
-> Maybe DataFormatConversionConfiguration
$sel:cloudWatchLoggingOptions:ExtendedS3DestinationDescription' :: ExtendedS3DestinationDescription -> Maybe CloudWatchLoggingOptions
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
errorOutputPrefix
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
prefix
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProcessingConfiguration
processingConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe S3DestinationDescription
s3BackupDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe S3BackupMode
s3BackupMode
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
roleARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
bucketARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf BufferingHints
bufferingHints
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf CompressionFormat
compressionFormat
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf EncryptionConfiguration
encryptionConfiguration