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

import qualified Amazonka.Core as Core
import Amazonka.Firehose.Types.CloudWatchLoggingOptions
import Amazonka.Firehose.Types.HttpEndpointBufferingHints
import Amazonka.Firehose.Types.HttpEndpointConfiguration
import Amazonka.Firehose.Types.HttpEndpointRequestConfiguration
import Amazonka.Firehose.Types.HttpEndpointRetryOptions
import Amazonka.Firehose.Types.HttpEndpointS3BackupMode
import Amazonka.Firehose.Types.ProcessingConfiguration
import Amazonka.Firehose.Types.S3DestinationUpdate
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Updates the specified HTTP endpoint destination.
--
-- /See:/ 'newHttpEndpointDestinationUpdate' smart constructor.
data HttpEndpointDestinationUpdate = HttpEndpointDestinationUpdate'
  { -- | Describes the S3 bucket backup options for the data that Kinesis
    -- Firehose delivers to the HTTP endpoint destination. You can back up all
    -- documents (@AllData@) or only the documents that Kinesis Data Firehose
    -- could not deliver to the specified HTTP endpoint destination
    -- (@FailedDataOnly@).
    HttpEndpointDestinationUpdate -> Maybe HttpEndpointS3BackupMode
s3BackupMode :: Prelude.Maybe HttpEndpointS3BackupMode,
    HttpEndpointDestinationUpdate -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Prelude.Maybe CloudWatchLoggingOptions,
    HttpEndpointDestinationUpdate -> Maybe S3DestinationUpdate
s3Update :: Prelude.Maybe S3DestinationUpdate,
    -- | Describes buffering options that can be applied to the data before it is
    -- delivered to the HTTPS endpoint destination. Kinesis Data Firehose teats
    -- these options as hints, and it might choose to use more optimal values.
    -- The @SizeInMBs@ and @IntervalInSeconds@ parameters are optional.
    -- However, if specify a value for one of them, you must also provide a
    -- value for the other.
    HttpEndpointDestinationUpdate -> Maybe HttpEndpointBufferingHints
bufferingHints :: Prelude.Maybe HttpEndpointBufferingHints,
    -- | Describes the retry behavior in case Kinesis Data Firehose is unable to
    -- deliver data to the specified HTTP endpoint destination, or if it
    -- doesn\'t receive a valid acknowledgment of receipt from the specified
    -- HTTP endpoint destination.
    HttpEndpointDestinationUpdate -> Maybe HttpEndpointRetryOptions
retryOptions :: Prelude.Maybe HttpEndpointRetryOptions,
    -- | Describes the configuration of the HTTP endpoint destination.
    HttpEndpointDestinationUpdate -> Maybe HttpEndpointConfiguration
endpointConfiguration :: Prelude.Maybe HttpEndpointConfiguration,
    HttpEndpointDestinationUpdate -> Maybe ProcessingConfiguration
processingConfiguration :: Prelude.Maybe ProcessingConfiguration,
    -- | The configuration of the request sent to the HTTP endpoint specified as
    -- the destination.
    HttpEndpointDestinationUpdate
-> Maybe HttpEndpointRequestConfiguration
requestConfiguration :: Prelude.Maybe HttpEndpointRequestConfiguration,
    -- | Kinesis Data Firehose uses this IAM role for all the permissions that
    -- the delivery stream needs.
    HttpEndpointDestinationUpdate -> Maybe Text
roleARN :: Prelude.Maybe Prelude.Text
  }
  deriving (HttpEndpointDestinationUpdate
-> HttpEndpointDestinationUpdate -> Bool
(HttpEndpointDestinationUpdate
 -> HttpEndpointDestinationUpdate -> Bool)
-> (HttpEndpointDestinationUpdate
    -> HttpEndpointDestinationUpdate -> Bool)
-> Eq HttpEndpointDestinationUpdate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HttpEndpointDestinationUpdate
-> HttpEndpointDestinationUpdate -> Bool
$c/= :: HttpEndpointDestinationUpdate
-> HttpEndpointDestinationUpdate -> Bool
== :: HttpEndpointDestinationUpdate
-> HttpEndpointDestinationUpdate -> Bool
$c== :: HttpEndpointDestinationUpdate
-> HttpEndpointDestinationUpdate -> Bool
Prelude.Eq, Int -> HttpEndpointDestinationUpdate -> ShowS
[HttpEndpointDestinationUpdate] -> ShowS
HttpEndpointDestinationUpdate -> String
(Int -> HttpEndpointDestinationUpdate -> ShowS)
-> (HttpEndpointDestinationUpdate -> String)
-> ([HttpEndpointDestinationUpdate] -> ShowS)
-> Show HttpEndpointDestinationUpdate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HttpEndpointDestinationUpdate] -> ShowS
$cshowList :: [HttpEndpointDestinationUpdate] -> ShowS
show :: HttpEndpointDestinationUpdate -> String
$cshow :: HttpEndpointDestinationUpdate -> String
showsPrec :: Int -> HttpEndpointDestinationUpdate -> ShowS
$cshowsPrec :: Int -> HttpEndpointDestinationUpdate -> ShowS
Prelude.Show, (forall x.
 HttpEndpointDestinationUpdate
 -> Rep HttpEndpointDestinationUpdate x)
-> (forall x.
    Rep HttpEndpointDestinationUpdate x
    -> HttpEndpointDestinationUpdate)
-> Generic HttpEndpointDestinationUpdate
forall x.
Rep HttpEndpointDestinationUpdate x
-> HttpEndpointDestinationUpdate
forall x.
HttpEndpointDestinationUpdate
-> Rep HttpEndpointDestinationUpdate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep HttpEndpointDestinationUpdate x
-> HttpEndpointDestinationUpdate
$cfrom :: forall x.
HttpEndpointDestinationUpdate
-> Rep HttpEndpointDestinationUpdate x
Prelude.Generic)

-- |
-- Create a value of 'HttpEndpointDestinationUpdate' 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', 'httpEndpointDestinationUpdate_s3BackupMode' - Describes the S3 bucket backup options for the data that Kinesis
-- Firehose delivers to the HTTP endpoint destination. You can back up all
-- documents (@AllData@) or only the documents that Kinesis Data Firehose
-- could not deliver to the specified HTTP endpoint destination
-- (@FailedDataOnly@).
--
-- 'cloudWatchLoggingOptions', 'httpEndpointDestinationUpdate_cloudWatchLoggingOptions' - Undocumented member.
--
-- 's3Update', 'httpEndpointDestinationUpdate_s3Update' - Undocumented member.
--
-- 'bufferingHints', 'httpEndpointDestinationUpdate_bufferingHints' - Describes buffering options that can be applied to the data before it is
-- delivered to the HTTPS endpoint destination. Kinesis Data Firehose teats
-- these options as hints, and it might choose to use more optimal values.
-- The @SizeInMBs@ and @IntervalInSeconds@ parameters are optional.
-- However, if specify a value for one of them, you must also provide a
-- value for the other.
--
-- 'retryOptions', 'httpEndpointDestinationUpdate_retryOptions' - Describes the retry behavior in case Kinesis Data Firehose is unable to
-- deliver data to the specified HTTP endpoint destination, or if it
-- doesn\'t receive a valid acknowledgment of receipt from the specified
-- HTTP endpoint destination.
--
-- 'endpointConfiguration', 'httpEndpointDestinationUpdate_endpointConfiguration' - Describes the configuration of the HTTP endpoint destination.
--
-- 'processingConfiguration', 'httpEndpointDestinationUpdate_processingConfiguration' - Undocumented member.
--
-- 'requestConfiguration', 'httpEndpointDestinationUpdate_requestConfiguration' - The configuration of the request sent to the HTTP endpoint specified as
-- the destination.
--
-- 'roleARN', 'httpEndpointDestinationUpdate_roleARN' - Kinesis Data Firehose uses this IAM role for all the permissions that
-- the delivery stream needs.
newHttpEndpointDestinationUpdate ::
  HttpEndpointDestinationUpdate
newHttpEndpointDestinationUpdate :: HttpEndpointDestinationUpdate
newHttpEndpointDestinationUpdate =
  HttpEndpointDestinationUpdate' :: Maybe HttpEndpointS3BackupMode
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationUpdate
-> Maybe HttpEndpointBufferingHints
-> Maybe HttpEndpointRetryOptions
-> Maybe HttpEndpointConfiguration
-> Maybe ProcessingConfiguration
-> Maybe HttpEndpointRequestConfiguration
-> Maybe Text
-> HttpEndpointDestinationUpdate
HttpEndpointDestinationUpdate'
    { $sel:s3BackupMode:HttpEndpointDestinationUpdate' :: Maybe HttpEndpointS3BackupMode
s3BackupMode =
        Maybe HttpEndpointS3BackupMode
forall a. Maybe a
Prelude.Nothing,
      $sel:cloudWatchLoggingOptions:HttpEndpointDestinationUpdate' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions = Maybe CloudWatchLoggingOptions
forall a. Maybe a
Prelude.Nothing,
      $sel:s3Update:HttpEndpointDestinationUpdate' :: Maybe S3DestinationUpdate
s3Update = Maybe S3DestinationUpdate
forall a. Maybe a
Prelude.Nothing,
      $sel:bufferingHints:HttpEndpointDestinationUpdate' :: Maybe HttpEndpointBufferingHints
bufferingHints = Maybe HttpEndpointBufferingHints
forall a. Maybe a
Prelude.Nothing,
      $sel:retryOptions:HttpEndpointDestinationUpdate' :: Maybe HttpEndpointRetryOptions
retryOptions = Maybe HttpEndpointRetryOptions
forall a. Maybe a
Prelude.Nothing,
      $sel:endpointConfiguration:HttpEndpointDestinationUpdate' :: Maybe HttpEndpointConfiguration
endpointConfiguration = Maybe HttpEndpointConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:processingConfiguration:HttpEndpointDestinationUpdate' :: Maybe ProcessingConfiguration
processingConfiguration = Maybe ProcessingConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:requestConfiguration:HttpEndpointDestinationUpdate' :: Maybe HttpEndpointRequestConfiguration
requestConfiguration = Maybe HttpEndpointRequestConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:roleARN:HttpEndpointDestinationUpdate' :: Maybe Text
roleARN = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | Describes the S3 bucket backup options for the data that Kinesis
-- Firehose delivers to the HTTP endpoint destination. You can back up all
-- documents (@AllData@) or only the documents that Kinesis Data Firehose
-- could not deliver to the specified HTTP endpoint destination
-- (@FailedDataOnly@).
httpEndpointDestinationUpdate_s3BackupMode :: Lens.Lens' HttpEndpointDestinationUpdate (Prelude.Maybe HttpEndpointS3BackupMode)
httpEndpointDestinationUpdate_s3BackupMode :: (Maybe HttpEndpointS3BackupMode
 -> f (Maybe HttpEndpointS3BackupMode))
-> HttpEndpointDestinationUpdate -> f HttpEndpointDestinationUpdate
httpEndpointDestinationUpdate_s3BackupMode = (HttpEndpointDestinationUpdate -> Maybe HttpEndpointS3BackupMode)
-> (HttpEndpointDestinationUpdate
    -> Maybe HttpEndpointS3BackupMode -> HttpEndpointDestinationUpdate)
-> Lens
     HttpEndpointDestinationUpdate
     HttpEndpointDestinationUpdate
     (Maybe HttpEndpointS3BackupMode)
     (Maybe HttpEndpointS3BackupMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HttpEndpointDestinationUpdate' {Maybe HttpEndpointS3BackupMode
s3BackupMode :: Maybe HttpEndpointS3BackupMode
$sel:s3BackupMode:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe HttpEndpointS3BackupMode
s3BackupMode} -> Maybe HttpEndpointS3BackupMode
s3BackupMode) (\s :: HttpEndpointDestinationUpdate
s@HttpEndpointDestinationUpdate' {} Maybe HttpEndpointS3BackupMode
a -> HttpEndpointDestinationUpdate
s {$sel:s3BackupMode:HttpEndpointDestinationUpdate' :: Maybe HttpEndpointS3BackupMode
s3BackupMode = Maybe HttpEndpointS3BackupMode
a} :: HttpEndpointDestinationUpdate)

-- | Undocumented member.
httpEndpointDestinationUpdate_cloudWatchLoggingOptions :: Lens.Lens' HttpEndpointDestinationUpdate (Prelude.Maybe CloudWatchLoggingOptions)
httpEndpointDestinationUpdate_cloudWatchLoggingOptions :: (Maybe CloudWatchLoggingOptions
 -> f (Maybe CloudWatchLoggingOptions))
-> HttpEndpointDestinationUpdate -> f HttpEndpointDestinationUpdate
httpEndpointDestinationUpdate_cloudWatchLoggingOptions = (HttpEndpointDestinationUpdate -> Maybe CloudWatchLoggingOptions)
-> (HttpEndpointDestinationUpdate
    -> Maybe CloudWatchLoggingOptions -> HttpEndpointDestinationUpdate)
-> Lens
     HttpEndpointDestinationUpdate
     HttpEndpointDestinationUpdate
     (Maybe CloudWatchLoggingOptions)
     (Maybe CloudWatchLoggingOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HttpEndpointDestinationUpdate' {Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
$sel:cloudWatchLoggingOptions:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions} -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions) (\s :: HttpEndpointDestinationUpdate
s@HttpEndpointDestinationUpdate' {} Maybe CloudWatchLoggingOptions
a -> HttpEndpointDestinationUpdate
s {$sel:cloudWatchLoggingOptions:HttpEndpointDestinationUpdate' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions = Maybe CloudWatchLoggingOptions
a} :: HttpEndpointDestinationUpdate)

-- | Undocumented member.
httpEndpointDestinationUpdate_s3Update :: Lens.Lens' HttpEndpointDestinationUpdate (Prelude.Maybe S3DestinationUpdate)
httpEndpointDestinationUpdate_s3Update :: (Maybe S3DestinationUpdate -> f (Maybe S3DestinationUpdate))
-> HttpEndpointDestinationUpdate -> f HttpEndpointDestinationUpdate
httpEndpointDestinationUpdate_s3Update = (HttpEndpointDestinationUpdate -> Maybe S3DestinationUpdate)
-> (HttpEndpointDestinationUpdate
    -> Maybe S3DestinationUpdate -> HttpEndpointDestinationUpdate)
-> Lens
     HttpEndpointDestinationUpdate
     HttpEndpointDestinationUpdate
     (Maybe S3DestinationUpdate)
     (Maybe S3DestinationUpdate)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HttpEndpointDestinationUpdate' {Maybe S3DestinationUpdate
s3Update :: Maybe S3DestinationUpdate
$sel:s3Update:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe S3DestinationUpdate
s3Update} -> Maybe S3DestinationUpdate
s3Update) (\s :: HttpEndpointDestinationUpdate
s@HttpEndpointDestinationUpdate' {} Maybe S3DestinationUpdate
a -> HttpEndpointDestinationUpdate
s {$sel:s3Update:HttpEndpointDestinationUpdate' :: Maybe S3DestinationUpdate
s3Update = Maybe S3DestinationUpdate
a} :: HttpEndpointDestinationUpdate)

-- | Describes buffering options that can be applied to the data before it is
-- delivered to the HTTPS endpoint destination. Kinesis Data Firehose teats
-- these options as hints, and it might choose to use more optimal values.
-- The @SizeInMBs@ and @IntervalInSeconds@ parameters are optional.
-- However, if specify a value for one of them, you must also provide a
-- value for the other.
httpEndpointDestinationUpdate_bufferingHints :: Lens.Lens' HttpEndpointDestinationUpdate (Prelude.Maybe HttpEndpointBufferingHints)
httpEndpointDestinationUpdate_bufferingHints :: (Maybe HttpEndpointBufferingHints
 -> f (Maybe HttpEndpointBufferingHints))
-> HttpEndpointDestinationUpdate -> f HttpEndpointDestinationUpdate
httpEndpointDestinationUpdate_bufferingHints = (HttpEndpointDestinationUpdate -> Maybe HttpEndpointBufferingHints)
-> (HttpEndpointDestinationUpdate
    -> Maybe HttpEndpointBufferingHints
    -> HttpEndpointDestinationUpdate)
-> Lens
     HttpEndpointDestinationUpdate
     HttpEndpointDestinationUpdate
     (Maybe HttpEndpointBufferingHints)
     (Maybe HttpEndpointBufferingHints)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HttpEndpointDestinationUpdate' {Maybe HttpEndpointBufferingHints
bufferingHints :: Maybe HttpEndpointBufferingHints
$sel:bufferingHints:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe HttpEndpointBufferingHints
bufferingHints} -> Maybe HttpEndpointBufferingHints
bufferingHints) (\s :: HttpEndpointDestinationUpdate
s@HttpEndpointDestinationUpdate' {} Maybe HttpEndpointBufferingHints
a -> HttpEndpointDestinationUpdate
s {$sel:bufferingHints:HttpEndpointDestinationUpdate' :: Maybe HttpEndpointBufferingHints
bufferingHints = Maybe HttpEndpointBufferingHints
a} :: HttpEndpointDestinationUpdate)

-- | Describes the retry behavior in case Kinesis Data Firehose is unable to
-- deliver data to the specified HTTP endpoint destination, or if it
-- doesn\'t receive a valid acknowledgment of receipt from the specified
-- HTTP endpoint destination.
httpEndpointDestinationUpdate_retryOptions :: Lens.Lens' HttpEndpointDestinationUpdate (Prelude.Maybe HttpEndpointRetryOptions)
httpEndpointDestinationUpdate_retryOptions :: (Maybe HttpEndpointRetryOptions
 -> f (Maybe HttpEndpointRetryOptions))
-> HttpEndpointDestinationUpdate -> f HttpEndpointDestinationUpdate
httpEndpointDestinationUpdate_retryOptions = (HttpEndpointDestinationUpdate -> Maybe HttpEndpointRetryOptions)
-> (HttpEndpointDestinationUpdate
    -> Maybe HttpEndpointRetryOptions -> HttpEndpointDestinationUpdate)
-> Lens
     HttpEndpointDestinationUpdate
     HttpEndpointDestinationUpdate
     (Maybe HttpEndpointRetryOptions)
     (Maybe HttpEndpointRetryOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HttpEndpointDestinationUpdate' {Maybe HttpEndpointRetryOptions
retryOptions :: Maybe HttpEndpointRetryOptions
$sel:retryOptions:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe HttpEndpointRetryOptions
retryOptions} -> Maybe HttpEndpointRetryOptions
retryOptions) (\s :: HttpEndpointDestinationUpdate
s@HttpEndpointDestinationUpdate' {} Maybe HttpEndpointRetryOptions
a -> HttpEndpointDestinationUpdate
s {$sel:retryOptions:HttpEndpointDestinationUpdate' :: Maybe HttpEndpointRetryOptions
retryOptions = Maybe HttpEndpointRetryOptions
a} :: HttpEndpointDestinationUpdate)

-- | Describes the configuration of the HTTP endpoint destination.
httpEndpointDestinationUpdate_endpointConfiguration :: Lens.Lens' HttpEndpointDestinationUpdate (Prelude.Maybe HttpEndpointConfiguration)
httpEndpointDestinationUpdate_endpointConfiguration :: (Maybe HttpEndpointConfiguration
 -> f (Maybe HttpEndpointConfiguration))
-> HttpEndpointDestinationUpdate -> f HttpEndpointDestinationUpdate
httpEndpointDestinationUpdate_endpointConfiguration = (HttpEndpointDestinationUpdate -> Maybe HttpEndpointConfiguration)
-> (HttpEndpointDestinationUpdate
    -> Maybe HttpEndpointConfiguration
    -> HttpEndpointDestinationUpdate)
-> Lens
     HttpEndpointDestinationUpdate
     HttpEndpointDestinationUpdate
     (Maybe HttpEndpointConfiguration)
     (Maybe HttpEndpointConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HttpEndpointDestinationUpdate' {Maybe HttpEndpointConfiguration
endpointConfiguration :: Maybe HttpEndpointConfiguration
$sel:endpointConfiguration:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe HttpEndpointConfiguration
endpointConfiguration} -> Maybe HttpEndpointConfiguration
endpointConfiguration) (\s :: HttpEndpointDestinationUpdate
s@HttpEndpointDestinationUpdate' {} Maybe HttpEndpointConfiguration
a -> HttpEndpointDestinationUpdate
s {$sel:endpointConfiguration:HttpEndpointDestinationUpdate' :: Maybe HttpEndpointConfiguration
endpointConfiguration = Maybe HttpEndpointConfiguration
a} :: HttpEndpointDestinationUpdate)

-- | Undocumented member.
httpEndpointDestinationUpdate_processingConfiguration :: Lens.Lens' HttpEndpointDestinationUpdate (Prelude.Maybe ProcessingConfiguration)
httpEndpointDestinationUpdate_processingConfiguration :: (Maybe ProcessingConfiguration
 -> f (Maybe ProcessingConfiguration))
-> HttpEndpointDestinationUpdate -> f HttpEndpointDestinationUpdate
httpEndpointDestinationUpdate_processingConfiguration = (HttpEndpointDestinationUpdate -> Maybe ProcessingConfiguration)
-> (HttpEndpointDestinationUpdate
    -> Maybe ProcessingConfiguration -> HttpEndpointDestinationUpdate)
-> Lens
     HttpEndpointDestinationUpdate
     HttpEndpointDestinationUpdate
     (Maybe ProcessingConfiguration)
     (Maybe ProcessingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HttpEndpointDestinationUpdate' {Maybe ProcessingConfiguration
processingConfiguration :: Maybe ProcessingConfiguration
$sel:processingConfiguration:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe ProcessingConfiguration
processingConfiguration} -> Maybe ProcessingConfiguration
processingConfiguration) (\s :: HttpEndpointDestinationUpdate
s@HttpEndpointDestinationUpdate' {} Maybe ProcessingConfiguration
a -> HttpEndpointDestinationUpdate
s {$sel:processingConfiguration:HttpEndpointDestinationUpdate' :: Maybe ProcessingConfiguration
processingConfiguration = Maybe ProcessingConfiguration
a} :: HttpEndpointDestinationUpdate)

-- | The configuration of the request sent to the HTTP endpoint specified as
-- the destination.
httpEndpointDestinationUpdate_requestConfiguration :: Lens.Lens' HttpEndpointDestinationUpdate (Prelude.Maybe HttpEndpointRequestConfiguration)
httpEndpointDestinationUpdate_requestConfiguration :: (Maybe HttpEndpointRequestConfiguration
 -> f (Maybe HttpEndpointRequestConfiguration))
-> HttpEndpointDestinationUpdate -> f HttpEndpointDestinationUpdate
httpEndpointDestinationUpdate_requestConfiguration = (HttpEndpointDestinationUpdate
 -> Maybe HttpEndpointRequestConfiguration)
-> (HttpEndpointDestinationUpdate
    -> Maybe HttpEndpointRequestConfiguration
    -> HttpEndpointDestinationUpdate)
-> Lens
     HttpEndpointDestinationUpdate
     HttpEndpointDestinationUpdate
     (Maybe HttpEndpointRequestConfiguration)
     (Maybe HttpEndpointRequestConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HttpEndpointDestinationUpdate' {Maybe HttpEndpointRequestConfiguration
requestConfiguration :: Maybe HttpEndpointRequestConfiguration
$sel:requestConfiguration:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate
-> Maybe HttpEndpointRequestConfiguration
requestConfiguration} -> Maybe HttpEndpointRequestConfiguration
requestConfiguration) (\s :: HttpEndpointDestinationUpdate
s@HttpEndpointDestinationUpdate' {} Maybe HttpEndpointRequestConfiguration
a -> HttpEndpointDestinationUpdate
s {$sel:requestConfiguration:HttpEndpointDestinationUpdate' :: Maybe HttpEndpointRequestConfiguration
requestConfiguration = Maybe HttpEndpointRequestConfiguration
a} :: HttpEndpointDestinationUpdate)

-- | Kinesis Data Firehose uses this IAM role for all the permissions that
-- the delivery stream needs.
httpEndpointDestinationUpdate_roleARN :: Lens.Lens' HttpEndpointDestinationUpdate (Prelude.Maybe Prelude.Text)
httpEndpointDestinationUpdate_roleARN :: (Maybe Text -> f (Maybe Text))
-> HttpEndpointDestinationUpdate -> f HttpEndpointDestinationUpdate
httpEndpointDestinationUpdate_roleARN = (HttpEndpointDestinationUpdate -> Maybe Text)
-> (HttpEndpointDestinationUpdate
    -> Maybe Text -> HttpEndpointDestinationUpdate)
-> Lens
     HttpEndpointDestinationUpdate
     HttpEndpointDestinationUpdate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HttpEndpointDestinationUpdate' {Maybe Text
roleARN :: Maybe Text
$sel:roleARN:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe Text
roleARN} -> Maybe Text
roleARN) (\s :: HttpEndpointDestinationUpdate
s@HttpEndpointDestinationUpdate' {} Maybe Text
a -> HttpEndpointDestinationUpdate
s {$sel:roleARN:HttpEndpointDestinationUpdate' :: Maybe Text
roleARN = Maybe Text
a} :: HttpEndpointDestinationUpdate)

instance
  Prelude.Hashable
    HttpEndpointDestinationUpdate

instance Prelude.NFData HttpEndpointDestinationUpdate

instance Core.ToJSON HttpEndpointDestinationUpdate where
  toJSON :: HttpEndpointDestinationUpdate -> Value
toJSON HttpEndpointDestinationUpdate' {Maybe Text
Maybe CloudWatchLoggingOptions
Maybe HttpEndpointBufferingHints
Maybe HttpEndpointConfiguration
Maybe HttpEndpointRequestConfiguration
Maybe HttpEndpointRetryOptions
Maybe HttpEndpointS3BackupMode
Maybe ProcessingConfiguration
Maybe S3DestinationUpdate
roleARN :: Maybe Text
requestConfiguration :: Maybe HttpEndpointRequestConfiguration
processingConfiguration :: Maybe ProcessingConfiguration
endpointConfiguration :: Maybe HttpEndpointConfiguration
retryOptions :: Maybe HttpEndpointRetryOptions
bufferingHints :: Maybe HttpEndpointBufferingHints
s3Update :: Maybe S3DestinationUpdate
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
s3BackupMode :: Maybe HttpEndpointS3BackupMode
$sel:roleARN:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe Text
$sel:requestConfiguration:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate
-> Maybe HttpEndpointRequestConfiguration
$sel:processingConfiguration:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe ProcessingConfiguration
$sel:endpointConfiguration:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe HttpEndpointConfiguration
$sel:retryOptions:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe HttpEndpointRetryOptions
$sel:bufferingHints:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe HttpEndpointBufferingHints
$sel:s3Update:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe S3DestinationUpdate
$sel:cloudWatchLoggingOptions:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe CloudWatchLoggingOptions
$sel:s3BackupMode:HttpEndpointDestinationUpdate' :: HttpEndpointDestinationUpdate -> Maybe HttpEndpointS3BackupMode
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"S3BackupMode" Text -> HttpEndpointS3BackupMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HttpEndpointS3BackupMode -> Pair)
-> Maybe HttpEndpointS3BackupMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HttpEndpointS3BackupMode
s3BackupMode,
            (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
"S3Update" Text -> S3DestinationUpdate -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (S3DestinationUpdate -> Pair)
-> Maybe S3DestinationUpdate -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3DestinationUpdate
s3Update,
            (Text
"BufferingHints" Text -> HttpEndpointBufferingHints -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (HttpEndpointBufferingHints -> Pair)
-> Maybe HttpEndpointBufferingHints -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HttpEndpointBufferingHints
bufferingHints,
            (Text
"RetryOptions" Text -> HttpEndpointRetryOptions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HttpEndpointRetryOptions -> Pair)
-> Maybe HttpEndpointRetryOptions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HttpEndpointRetryOptions
retryOptions,
            (Text
"EndpointConfiguration" Text -> HttpEndpointConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (HttpEndpointConfiguration -> Pair)
-> Maybe HttpEndpointConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HttpEndpointConfiguration
endpointConfiguration,
            (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,
            (Text
"RequestConfiguration" Text -> HttpEndpointRequestConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (HttpEndpointRequestConfiguration -> Pair)
-> Maybe HttpEndpointRequestConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HttpEndpointRequestConfiguration
requestConfiguration,
            (Text
"RoleARN" 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
roleARN
          ]
      )