{-# 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.ExtendedS3DestinationConfiguration
-- 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.ExtendedS3DestinationConfiguration where

import qualified Amazonka.Core as Core
import Amazonka.Firehose.Types.BufferingHints
import Amazonka.Firehose.Types.CloudWatchLoggingOptions
import Amazonka.Firehose.Types.CompressionFormat
import Amazonka.Firehose.Types.DataFormatConversionConfiguration
import Amazonka.Firehose.Types.DynamicPartitioningConfiguration
import Amazonka.Firehose.Types.EncryptionConfiguration
import Amazonka.Firehose.Types.ProcessingConfiguration
import Amazonka.Firehose.Types.S3BackupMode
import Amazonka.Firehose.Types.S3DestinationConfiguration
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Describes the configuration of a destination in Amazon S3.
--
-- /See:/ 'newExtendedS3DestinationConfiguration' smart constructor.
data ExtendedS3DestinationConfiguration = ExtendedS3DestinationConfiguration'
  { -- | The Amazon S3 backup mode. After you create a delivery stream, you can
    -- update it to enable Amazon S3 backup if it is disabled. If backup is
    -- enabled, you can\'t update the delivery stream to disable it.
    ExtendedS3DestinationConfiguration -> Maybe S3BackupMode
s3BackupMode :: Prelude.Maybe S3BackupMode,
    -- | 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>.
    ExtendedS3DestinationConfiguration -> Maybe Text
prefix :: Prelude.Maybe Prelude.Text,
    -- | The Amazon CloudWatch logging options for your delivery stream.
    ExtendedS3DestinationConfiguration
-> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Prelude.Maybe CloudWatchLoggingOptions,
    -- | The configuration for backup in Amazon S3.
    ExtendedS3DestinationConfiguration
-> Maybe S3DestinationConfiguration
s3BackupConfiguration :: Prelude.Maybe S3DestinationConfiguration,
    -- | 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>.
    ExtendedS3DestinationConfiguration -> Maybe Text
errorOutputPrefix :: Prelude.Maybe Prelude.Text,
    -- | The encryption configuration. If no value is specified, the default is
    -- no encryption.
    ExtendedS3DestinationConfiguration -> Maybe EncryptionConfiguration
encryptionConfiguration :: Prelude.Maybe EncryptionConfiguration,
    -- | 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>
    ExtendedS3DestinationConfiguration
-> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration :: Prelude.Maybe DynamicPartitioningConfiguration,
    -- | The compression format. If no value is specified, the default is
    -- UNCOMPRESSED.
    ExtendedS3DestinationConfiguration -> Maybe CompressionFormat
compressionFormat :: Prelude.Maybe CompressionFormat,
    -- | The buffering option.
    ExtendedS3DestinationConfiguration -> Maybe BufferingHints
bufferingHints :: Prelude.Maybe BufferingHints,
    -- | The serializer, deserializer, and schema for converting data from the
    -- JSON format to the Parquet or ORC format before writing it to Amazon S3.
    ExtendedS3DestinationConfiguration
-> Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration :: Prelude.Maybe DataFormatConversionConfiguration,
    -- | The data processing configuration.
    ExtendedS3DestinationConfiguration -> 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>.
    ExtendedS3DestinationConfiguration -> 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>.
    ExtendedS3DestinationConfiguration -> Text
bucketARN :: Prelude.Text
  }
  deriving (ExtendedS3DestinationConfiguration
-> ExtendedS3DestinationConfiguration -> Bool
(ExtendedS3DestinationConfiguration
 -> ExtendedS3DestinationConfiguration -> Bool)
-> (ExtendedS3DestinationConfiguration
    -> ExtendedS3DestinationConfiguration -> Bool)
-> Eq ExtendedS3DestinationConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExtendedS3DestinationConfiguration
-> ExtendedS3DestinationConfiguration -> Bool
$c/= :: ExtendedS3DestinationConfiguration
-> ExtendedS3DestinationConfiguration -> Bool
== :: ExtendedS3DestinationConfiguration
-> ExtendedS3DestinationConfiguration -> Bool
$c== :: ExtendedS3DestinationConfiguration
-> ExtendedS3DestinationConfiguration -> Bool
Prelude.Eq, ReadPrec [ExtendedS3DestinationConfiguration]
ReadPrec ExtendedS3DestinationConfiguration
Int -> ReadS ExtendedS3DestinationConfiguration
ReadS [ExtendedS3DestinationConfiguration]
(Int -> ReadS ExtendedS3DestinationConfiguration)
-> ReadS [ExtendedS3DestinationConfiguration]
-> ReadPrec ExtendedS3DestinationConfiguration
-> ReadPrec [ExtendedS3DestinationConfiguration]
-> Read ExtendedS3DestinationConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExtendedS3DestinationConfiguration]
$creadListPrec :: ReadPrec [ExtendedS3DestinationConfiguration]
readPrec :: ReadPrec ExtendedS3DestinationConfiguration
$creadPrec :: ReadPrec ExtendedS3DestinationConfiguration
readList :: ReadS [ExtendedS3DestinationConfiguration]
$creadList :: ReadS [ExtendedS3DestinationConfiguration]
readsPrec :: Int -> ReadS ExtendedS3DestinationConfiguration
$creadsPrec :: Int -> ReadS ExtendedS3DestinationConfiguration
Prelude.Read, Int -> ExtendedS3DestinationConfiguration -> ShowS
[ExtendedS3DestinationConfiguration] -> ShowS
ExtendedS3DestinationConfiguration -> String
(Int -> ExtendedS3DestinationConfiguration -> ShowS)
-> (ExtendedS3DestinationConfiguration -> String)
-> ([ExtendedS3DestinationConfiguration] -> ShowS)
-> Show ExtendedS3DestinationConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExtendedS3DestinationConfiguration] -> ShowS
$cshowList :: [ExtendedS3DestinationConfiguration] -> ShowS
show :: ExtendedS3DestinationConfiguration -> String
$cshow :: ExtendedS3DestinationConfiguration -> String
showsPrec :: Int -> ExtendedS3DestinationConfiguration -> ShowS
$cshowsPrec :: Int -> ExtendedS3DestinationConfiguration -> ShowS
Prelude.Show, (forall x.
 ExtendedS3DestinationConfiguration
 -> Rep ExtendedS3DestinationConfiguration x)
-> (forall x.
    Rep ExtendedS3DestinationConfiguration x
    -> ExtendedS3DestinationConfiguration)
-> Generic ExtendedS3DestinationConfiguration
forall x.
Rep ExtendedS3DestinationConfiguration x
-> ExtendedS3DestinationConfiguration
forall x.
ExtendedS3DestinationConfiguration
-> Rep ExtendedS3DestinationConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ExtendedS3DestinationConfiguration x
-> ExtendedS3DestinationConfiguration
$cfrom :: forall x.
ExtendedS3DestinationConfiguration
-> Rep ExtendedS3DestinationConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'ExtendedS3DestinationConfiguration' 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', 'extendedS3DestinationConfiguration_s3BackupMode' - The Amazon S3 backup mode. After you create a delivery stream, you can
-- update it to enable Amazon S3 backup if it is disabled. If backup is
-- enabled, you can\'t update the delivery stream to disable it.
--
-- 'prefix', 'extendedS3DestinationConfiguration_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', 'extendedS3DestinationConfiguration_cloudWatchLoggingOptions' - The Amazon CloudWatch logging options for your delivery stream.
--
-- 's3BackupConfiguration', 'extendedS3DestinationConfiguration_s3BackupConfiguration' - The configuration for backup in Amazon S3.
--
-- 'errorOutputPrefix', 'extendedS3DestinationConfiguration_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>.
--
-- 'encryptionConfiguration', 'extendedS3DestinationConfiguration_encryptionConfiguration' - The encryption configuration. If no value is specified, the default is
-- no encryption.
--
-- 'dynamicPartitioningConfiguration', 'extendedS3DestinationConfiguration_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>
--
-- 'compressionFormat', 'extendedS3DestinationConfiguration_compressionFormat' - The compression format. If no value is specified, the default is
-- UNCOMPRESSED.
--
-- 'bufferingHints', 'extendedS3DestinationConfiguration_bufferingHints' - The buffering option.
--
-- 'dataFormatConversionConfiguration', 'extendedS3DestinationConfiguration_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', 'extendedS3DestinationConfiguration_processingConfiguration' - The data processing configuration.
--
-- 'roleARN', 'extendedS3DestinationConfiguration_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', 'extendedS3DestinationConfiguration_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>.
newExtendedS3DestinationConfiguration ::
  -- | 'roleARN'
  Prelude.Text ->
  -- | 'bucketARN'
  Prelude.Text ->
  ExtendedS3DestinationConfiguration
newExtendedS3DestinationConfiguration :: Text -> Text -> ExtendedS3DestinationConfiguration
newExtendedS3DestinationConfiguration
  Text
pRoleARN_
  Text
pBucketARN_ =
    ExtendedS3DestinationConfiguration' :: Maybe S3BackupMode
-> Maybe Text
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationConfiguration
-> Maybe Text
-> Maybe EncryptionConfiguration
-> Maybe DynamicPartitioningConfiguration
-> Maybe CompressionFormat
-> Maybe BufferingHints
-> Maybe DataFormatConversionConfiguration
-> Maybe ProcessingConfiguration
-> Text
-> Text
-> ExtendedS3DestinationConfiguration
ExtendedS3DestinationConfiguration'
      { $sel:s3BackupMode:ExtendedS3DestinationConfiguration' :: Maybe S3BackupMode
s3BackupMode =
          Maybe S3BackupMode
forall a. Maybe a
Prelude.Nothing,
        $sel:prefix:ExtendedS3DestinationConfiguration' :: Maybe Text
prefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:cloudWatchLoggingOptions:ExtendedS3DestinationConfiguration' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions =
          Maybe CloudWatchLoggingOptions
forall a. Maybe a
Prelude.Nothing,
        $sel:s3BackupConfiguration:ExtendedS3DestinationConfiguration' :: Maybe S3DestinationConfiguration
s3BackupConfiguration = Maybe S3DestinationConfiguration
forall a. Maybe a
Prelude.Nothing,
        $sel:errorOutputPrefix:ExtendedS3DestinationConfiguration' :: Maybe Text
errorOutputPrefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:encryptionConfiguration:ExtendedS3DestinationConfiguration' :: Maybe EncryptionConfiguration
encryptionConfiguration =
          Maybe EncryptionConfiguration
forall a. Maybe a
Prelude.Nothing,
        $sel:dynamicPartitioningConfiguration:ExtendedS3DestinationConfiguration' :: Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration =
          Maybe DynamicPartitioningConfiguration
forall a. Maybe a
Prelude.Nothing,
        $sel:compressionFormat:ExtendedS3DestinationConfiguration' :: Maybe CompressionFormat
compressionFormat = Maybe CompressionFormat
forall a. Maybe a
Prelude.Nothing,
        $sel:bufferingHints:ExtendedS3DestinationConfiguration' :: Maybe BufferingHints
bufferingHints = Maybe BufferingHints
forall a. Maybe a
Prelude.Nothing,
        $sel:dataFormatConversionConfiguration:ExtendedS3DestinationConfiguration' :: Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration =
          Maybe DataFormatConversionConfiguration
forall a. Maybe a
Prelude.Nothing,
        $sel:processingConfiguration:ExtendedS3DestinationConfiguration' :: Maybe ProcessingConfiguration
processingConfiguration =
          Maybe ProcessingConfiguration
forall a. Maybe a
Prelude.Nothing,
        $sel:roleARN:ExtendedS3DestinationConfiguration' :: Text
roleARN = Text
pRoleARN_,
        $sel:bucketARN:ExtendedS3DestinationConfiguration' :: Text
bucketARN = Text
pBucketARN_
      }

-- | The Amazon S3 backup mode. After you create a delivery stream, you can
-- update it to enable Amazon S3 backup if it is disabled. If backup is
-- enabled, you can\'t update the delivery stream to disable it.
extendedS3DestinationConfiguration_s3BackupMode :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe S3BackupMode)
extendedS3DestinationConfiguration_s3BackupMode :: (Maybe S3BackupMode -> f (Maybe S3BackupMode))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_s3BackupMode = (ExtendedS3DestinationConfiguration -> Maybe S3BackupMode)
-> (ExtendedS3DestinationConfiguration
    -> Maybe S3BackupMode -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     (Maybe S3BackupMode)
     (Maybe S3BackupMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe S3BackupMode
s3BackupMode :: Maybe S3BackupMode
$sel:s3BackupMode:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe S3BackupMode
s3BackupMode} -> Maybe S3BackupMode
s3BackupMode) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe S3BackupMode
a -> ExtendedS3DestinationConfiguration
s {$sel:s3BackupMode:ExtendedS3DestinationConfiguration' :: Maybe S3BackupMode
s3BackupMode = Maybe S3BackupMode
a} :: ExtendedS3DestinationConfiguration)

-- | 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>.
extendedS3DestinationConfiguration_prefix :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe Prelude.Text)
extendedS3DestinationConfiguration_prefix :: (Maybe Text -> f (Maybe Text))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_prefix = (ExtendedS3DestinationConfiguration -> Maybe Text)
-> (ExtendedS3DestinationConfiguration
    -> Maybe Text -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe Text
prefix :: Maybe Text
$sel:prefix:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe Text
prefix} -> Maybe Text
prefix) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe Text
a -> ExtendedS3DestinationConfiguration
s {$sel:prefix:ExtendedS3DestinationConfiguration' :: Maybe Text
prefix = Maybe Text
a} :: ExtendedS3DestinationConfiguration)

-- | The Amazon CloudWatch logging options for your delivery stream.
extendedS3DestinationConfiguration_cloudWatchLoggingOptions :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe CloudWatchLoggingOptions)
extendedS3DestinationConfiguration_cloudWatchLoggingOptions :: (Maybe CloudWatchLoggingOptions
 -> f (Maybe CloudWatchLoggingOptions))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_cloudWatchLoggingOptions = (ExtendedS3DestinationConfiguration
 -> Maybe CloudWatchLoggingOptions)
-> (ExtendedS3DestinationConfiguration
    -> Maybe CloudWatchLoggingOptions
    -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     (Maybe CloudWatchLoggingOptions)
     (Maybe CloudWatchLoggingOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
$sel:cloudWatchLoggingOptions:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions} -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe CloudWatchLoggingOptions
a -> ExtendedS3DestinationConfiguration
s {$sel:cloudWatchLoggingOptions:ExtendedS3DestinationConfiguration' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions = Maybe CloudWatchLoggingOptions
a} :: ExtendedS3DestinationConfiguration)

-- | The configuration for backup in Amazon S3.
extendedS3DestinationConfiguration_s3BackupConfiguration :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe S3DestinationConfiguration)
extendedS3DestinationConfiguration_s3BackupConfiguration :: (Maybe S3DestinationConfiguration
 -> f (Maybe S3DestinationConfiguration))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_s3BackupConfiguration = (ExtendedS3DestinationConfiguration
 -> Maybe S3DestinationConfiguration)
-> (ExtendedS3DestinationConfiguration
    -> Maybe S3DestinationConfiguration
    -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     (Maybe S3DestinationConfiguration)
     (Maybe S3DestinationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe S3DestinationConfiguration
s3BackupConfiguration :: Maybe S3DestinationConfiguration
$sel:s3BackupConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe S3DestinationConfiguration
s3BackupConfiguration} -> Maybe S3DestinationConfiguration
s3BackupConfiguration) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe S3DestinationConfiguration
a -> ExtendedS3DestinationConfiguration
s {$sel:s3BackupConfiguration:ExtendedS3DestinationConfiguration' :: Maybe S3DestinationConfiguration
s3BackupConfiguration = Maybe S3DestinationConfiguration
a} :: ExtendedS3DestinationConfiguration)

-- | 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>.
extendedS3DestinationConfiguration_errorOutputPrefix :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe Prelude.Text)
extendedS3DestinationConfiguration_errorOutputPrefix :: (Maybe Text -> f (Maybe Text))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_errorOutputPrefix = (ExtendedS3DestinationConfiguration -> Maybe Text)
-> (ExtendedS3DestinationConfiguration
    -> Maybe Text -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe Text
errorOutputPrefix :: Maybe Text
$sel:errorOutputPrefix:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe Text
errorOutputPrefix} -> Maybe Text
errorOutputPrefix) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe Text
a -> ExtendedS3DestinationConfiguration
s {$sel:errorOutputPrefix:ExtendedS3DestinationConfiguration' :: Maybe Text
errorOutputPrefix = Maybe Text
a} :: ExtendedS3DestinationConfiguration)

-- | The encryption configuration. If no value is specified, the default is
-- no encryption.
extendedS3DestinationConfiguration_encryptionConfiguration :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe EncryptionConfiguration)
extendedS3DestinationConfiguration_encryptionConfiguration :: (Maybe EncryptionConfiguration
 -> f (Maybe EncryptionConfiguration))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_encryptionConfiguration = (ExtendedS3DestinationConfiguration
 -> Maybe EncryptionConfiguration)
-> (ExtendedS3DestinationConfiguration
    -> Maybe EncryptionConfiguration
    -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     (Maybe EncryptionConfiguration)
     (Maybe EncryptionConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe EncryptionConfiguration
encryptionConfiguration :: Maybe EncryptionConfiguration
$sel:encryptionConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe EncryptionConfiguration
encryptionConfiguration} -> Maybe EncryptionConfiguration
encryptionConfiguration) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe EncryptionConfiguration
a -> ExtendedS3DestinationConfiguration
s {$sel:encryptionConfiguration:ExtendedS3DestinationConfiguration' :: Maybe EncryptionConfiguration
encryptionConfiguration = Maybe EncryptionConfiguration
a} :: ExtendedS3DestinationConfiguration)

-- | 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>
extendedS3DestinationConfiguration_dynamicPartitioningConfiguration :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe DynamicPartitioningConfiguration)
extendedS3DestinationConfiguration_dynamicPartitioningConfiguration :: (Maybe DynamicPartitioningConfiguration
 -> f (Maybe DynamicPartitioningConfiguration))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_dynamicPartitioningConfiguration = (ExtendedS3DestinationConfiguration
 -> Maybe DynamicPartitioningConfiguration)
-> (ExtendedS3DestinationConfiguration
    -> Maybe DynamicPartitioningConfiguration
    -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     (Maybe DynamicPartitioningConfiguration)
     (Maybe DynamicPartitioningConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration :: Maybe DynamicPartitioningConfiguration
$sel:dynamicPartitioningConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration} -> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe DynamicPartitioningConfiguration
a -> ExtendedS3DestinationConfiguration
s {$sel:dynamicPartitioningConfiguration:ExtendedS3DestinationConfiguration' :: Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration = Maybe DynamicPartitioningConfiguration
a} :: ExtendedS3DestinationConfiguration)

-- | The compression format. If no value is specified, the default is
-- UNCOMPRESSED.
extendedS3DestinationConfiguration_compressionFormat :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe CompressionFormat)
extendedS3DestinationConfiguration_compressionFormat :: (Maybe CompressionFormat -> f (Maybe CompressionFormat))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_compressionFormat = (ExtendedS3DestinationConfiguration -> Maybe CompressionFormat)
-> (ExtendedS3DestinationConfiguration
    -> Maybe CompressionFormat -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     (Maybe CompressionFormat)
     (Maybe CompressionFormat)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe CompressionFormat
compressionFormat :: Maybe CompressionFormat
$sel:compressionFormat:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe CompressionFormat
compressionFormat} -> Maybe CompressionFormat
compressionFormat) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe CompressionFormat
a -> ExtendedS3DestinationConfiguration
s {$sel:compressionFormat:ExtendedS3DestinationConfiguration' :: Maybe CompressionFormat
compressionFormat = Maybe CompressionFormat
a} :: ExtendedS3DestinationConfiguration)

-- | The buffering option.
extendedS3DestinationConfiguration_bufferingHints :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe BufferingHints)
extendedS3DestinationConfiguration_bufferingHints :: (Maybe BufferingHints -> f (Maybe BufferingHints))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_bufferingHints = (ExtendedS3DestinationConfiguration -> Maybe BufferingHints)
-> (ExtendedS3DestinationConfiguration
    -> Maybe BufferingHints -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     (Maybe BufferingHints)
     (Maybe BufferingHints)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe BufferingHints
bufferingHints :: Maybe BufferingHints
$sel:bufferingHints:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe BufferingHints
bufferingHints} -> Maybe BufferingHints
bufferingHints) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe BufferingHints
a -> ExtendedS3DestinationConfiguration
s {$sel:bufferingHints:ExtendedS3DestinationConfiguration' :: Maybe BufferingHints
bufferingHints = Maybe BufferingHints
a} :: ExtendedS3DestinationConfiguration)

-- | The serializer, deserializer, and schema for converting data from the
-- JSON format to the Parquet or ORC format before writing it to Amazon S3.
extendedS3DestinationConfiguration_dataFormatConversionConfiguration :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe DataFormatConversionConfiguration)
extendedS3DestinationConfiguration_dataFormatConversionConfiguration :: (Maybe DataFormatConversionConfiguration
 -> f (Maybe DataFormatConversionConfiguration))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_dataFormatConversionConfiguration = (ExtendedS3DestinationConfiguration
 -> Maybe DataFormatConversionConfiguration)
-> (ExtendedS3DestinationConfiguration
    -> Maybe DataFormatConversionConfiguration
    -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     (Maybe DataFormatConversionConfiguration)
     (Maybe DataFormatConversionConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration :: Maybe DataFormatConversionConfiguration
$sel:dataFormatConversionConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration} -> Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe DataFormatConversionConfiguration
a -> ExtendedS3DestinationConfiguration
s {$sel:dataFormatConversionConfiguration:ExtendedS3DestinationConfiguration' :: Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration = Maybe DataFormatConversionConfiguration
a} :: ExtendedS3DestinationConfiguration)

-- | The data processing configuration.
extendedS3DestinationConfiguration_processingConfiguration :: Lens.Lens' ExtendedS3DestinationConfiguration (Prelude.Maybe ProcessingConfiguration)
extendedS3DestinationConfiguration_processingConfiguration :: (Maybe ProcessingConfiguration
 -> f (Maybe ProcessingConfiguration))
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_processingConfiguration = (ExtendedS3DestinationConfiguration
 -> Maybe ProcessingConfiguration)
-> (ExtendedS3DestinationConfiguration
    -> Maybe ProcessingConfiguration
    -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     (Maybe ProcessingConfiguration)
     (Maybe ProcessingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Maybe ProcessingConfiguration
processingConfiguration :: Maybe ProcessingConfiguration
$sel:processingConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe ProcessingConfiguration
processingConfiguration} -> Maybe ProcessingConfiguration
processingConfiguration) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Maybe ProcessingConfiguration
a -> ExtendedS3DestinationConfiguration
s {$sel:processingConfiguration:ExtendedS3DestinationConfiguration' :: Maybe ProcessingConfiguration
processingConfiguration = Maybe ProcessingConfiguration
a} :: ExtendedS3DestinationConfiguration)

-- | 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>.
extendedS3DestinationConfiguration_roleARN :: Lens.Lens' ExtendedS3DestinationConfiguration Prelude.Text
extendedS3DestinationConfiguration_roleARN :: (Text -> f Text)
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_roleARN = (ExtendedS3DestinationConfiguration -> Text)
-> (ExtendedS3DestinationConfiguration
    -> Text -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Text
roleARN :: Text
$sel:roleARN:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Text
roleARN} -> Text
roleARN) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Text
a -> ExtendedS3DestinationConfiguration
s {$sel:roleARN:ExtendedS3DestinationConfiguration' :: Text
roleARN = Text
a} :: ExtendedS3DestinationConfiguration)

-- | 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>.
extendedS3DestinationConfiguration_bucketARN :: Lens.Lens' ExtendedS3DestinationConfiguration Prelude.Text
extendedS3DestinationConfiguration_bucketARN :: (Text -> f Text)
-> ExtendedS3DestinationConfiguration
-> f ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration_bucketARN = (ExtendedS3DestinationConfiguration -> Text)
-> (ExtendedS3DestinationConfiguration
    -> Text -> ExtendedS3DestinationConfiguration)
-> Lens
     ExtendedS3DestinationConfiguration
     ExtendedS3DestinationConfiguration
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExtendedS3DestinationConfiguration' {Text
bucketARN :: Text
$sel:bucketARN:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Text
bucketARN} -> Text
bucketARN) (\s :: ExtendedS3DestinationConfiguration
s@ExtendedS3DestinationConfiguration' {} Text
a -> ExtendedS3DestinationConfiguration
s {$sel:bucketARN:ExtendedS3DestinationConfiguration' :: Text
bucketARN = Text
a} :: ExtendedS3DestinationConfiguration)

instance
  Prelude.Hashable
    ExtendedS3DestinationConfiguration

instance
  Prelude.NFData
    ExtendedS3DestinationConfiguration

instance
  Core.ToJSON
    ExtendedS3DestinationConfiguration
  where
  toJSON :: ExtendedS3DestinationConfiguration -> Value
toJSON ExtendedS3DestinationConfiguration' {Maybe Text
Maybe BufferingHints
Maybe CloudWatchLoggingOptions
Maybe CompressionFormat
Maybe EncryptionConfiguration
Maybe ProcessingConfiguration
Maybe DynamicPartitioningConfiguration
Maybe S3BackupMode
Maybe S3DestinationConfiguration
Maybe DataFormatConversionConfiguration
Text
bucketARN :: Text
roleARN :: Text
processingConfiguration :: Maybe ProcessingConfiguration
dataFormatConversionConfiguration :: Maybe DataFormatConversionConfiguration
bufferingHints :: Maybe BufferingHints
compressionFormat :: Maybe CompressionFormat
dynamicPartitioningConfiguration :: Maybe DynamicPartitioningConfiguration
encryptionConfiguration :: Maybe EncryptionConfiguration
errorOutputPrefix :: Maybe Text
s3BackupConfiguration :: Maybe S3DestinationConfiguration
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
prefix :: Maybe Text
s3BackupMode :: Maybe S3BackupMode
$sel:bucketARN:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Text
$sel:roleARN:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Text
$sel:processingConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe ProcessingConfiguration
$sel:dataFormatConversionConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe DataFormatConversionConfiguration
$sel:bufferingHints:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe BufferingHints
$sel:compressionFormat:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe CompressionFormat
$sel:dynamicPartitioningConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe DynamicPartitioningConfiguration
$sel:encryptionConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe EncryptionConfiguration
$sel:errorOutputPrefix:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe Text
$sel:s3BackupConfiguration:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe S3DestinationConfiguration
$sel:cloudWatchLoggingOptions:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration
-> Maybe CloudWatchLoggingOptions
$sel:prefix:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe Text
$sel:s3BackupMode:ExtendedS3DestinationConfiguration' :: ExtendedS3DestinationConfiguration -> Maybe S3BackupMode
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"S3BackupMode" Text -> S3BackupMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (S3BackupMode -> Pair) -> Maybe S3BackupMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3BackupMode
s3BackupMode,
            (Text
"Prefix" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
prefix,
            (Text
"CloudWatchLoggingOptions" Text -> CloudWatchLoggingOptions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (CloudWatchLoggingOptions -> Pair)
-> Maybe CloudWatchLoggingOptions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions,
            (Text
"S3BackupConfiguration" Text -> S3DestinationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (S3DestinationConfiguration -> Pair)
-> Maybe S3DestinationConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3DestinationConfiguration
s3BackupConfiguration,
            (Text
"ErrorOutputPrefix" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
errorOutputPrefix,
            (Text
"EncryptionConfiguration" Text -> EncryptionConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (EncryptionConfiguration -> Pair)
-> Maybe EncryptionConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EncryptionConfiguration
encryptionConfiguration,
            (Text
"DynamicPartitioningConfiguration" Text -> DynamicPartitioningConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (DynamicPartitioningConfiguration -> Pair)
-> Maybe DynamicPartitioningConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DynamicPartitioningConfiguration
dynamicPartitioningConfiguration,
            (Text
"CompressionFormat" Text -> CompressionFormat -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (CompressionFormat -> Pair)
-> Maybe CompressionFormat -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CompressionFormat
compressionFormat,
            (Text
"BufferingHints" Text -> BufferingHints -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (BufferingHints -> Pair) -> Maybe BufferingHints -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BufferingHints
bufferingHints,
            (Text
"DataFormatConversionConfiguration" Text -> DataFormatConversionConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (DataFormatConversionConfiguration -> Pair)
-> Maybe DataFormatConversionConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataFormatConversionConfiguration
dataFormatConversionConfiguration,
            (Text
"ProcessingConfiguration" Text -> ProcessingConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (ProcessingConfiguration -> Pair)
-> Maybe ProcessingConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProcessingConfiguration
processingConfiguration,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"RoleARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
roleARN),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"BucketARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
bucketARN)
          ]
      )