{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | Describes a destination in Amazon S3.
--
-- /See:/ 'newExtendedS3DestinationDescription' smart constructor.
data ExtendedS3DestinationDescription = ExtendedS3DestinationDescription'
  { -- | The Amazon S3 backup mode.
    ExtendedS3DestinationDescription -> Maybe S3BackupMode
s3BackupMode :: Prelude.Maybe S3BackupMode,
    -- | The configuration for backup in Amazon S3.
    ExtendedS3DestinationDescription -> Maybe S3DestinationDescription
s3BackupDescription :: Prelude.Maybe S3DestinationDescription,
    -- | 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 Amazon CloudWatch logging options for your delivery stream.
    ExtendedS3DestinationDescription -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Prelude.Maybe CloudWatchLoggingOptions,
    -- | 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 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. For more information, see
    -- <https://docs.aws.amazon.com/firehose/latest/dev/dynamic-partitioning.html>
    ExtendedS3DestinationDescription
-> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration :: Prelude.Maybe DynamicPartitioningConfiguration,
    -- | 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 data processing configuration.
    ExtendedS3DestinationDescription -> Maybe ProcessingConfiguration
processingConfiguration :: Prelude.Maybe ProcessingConfiguration,
    -- | The Amazon Resource Name (ARN) of the AWS credentials. For more
    -- information, see
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS 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 AWS 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
(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)

-- |
-- 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:
--
-- 's3BackupMode', 'extendedS3DestinationDescription_s3BackupMode' - The Amazon S3 backup mode.
--
-- 's3BackupDescription', 'extendedS3DestinationDescription_s3BackupDescription' - The configuration for backup in Amazon S3.
--
-- '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>.
--
-- 'cloudWatchLoggingOptions', 'extendedS3DestinationDescription_cloudWatchLoggingOptions' - The Amazon CloudWatch logging options for your delivery stream.
--
-- '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>.
--
-- '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. For more information, see
-- <https://docs.aws.amazon.com/firehose/latest/dev/dynamic-partitioning.html>
--
-- '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.
--
-- 'processingConfiguration', 'extendedS3DestinationDescription_processingConfiguration' - The data processing configuration.
--
-- 'roleARN', 'extendedS3DestinationDescription_roleARN' - The Amazon Resource Name (ARN) of the AWS credentials. For more
-- information, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS 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 AWS 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' :: 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_
      }

-- | The Amazon S3 backup mode.
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)

-- | The configuration for backup in Amazon S3.
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)

-- | 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 :: (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)

-- | The Amazon CloudWatch logging options for your delivery stream.
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)

-- | 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 :: (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)

-- | 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. For more information, see
-- <https://docs.aws.amazon.com/firehose/latest/dev/dynamic-partitioning.html>
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)

-- | 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 :: (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)

-- | The data processing configuration.
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)

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

-- | 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 AWS Service Namespaces>.
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)

-- | The buffering option.
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)

-- | The compression format. If no value is specified, the default is
-- @UNCOMPRESSED@.
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)

-- | The encryption configuration. If no value is specified, the default is
-- no encryption.
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