{-# 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.Lambda.Types.EventSourceMappingConfiguration
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Lambda.Types.EventSourceMappingConfiguration where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Lambda.Types.AmazonManagedKafkaEventSourceConfig
import Amazonka.Lambda.Types.DestinationConfig
import Amazonka.Lambda.Types.EventSourcePosition
import Amazonka.Lambda.Types.FilterCriteria
import Amazonka.Lambda.Types.FunctionResponseType
import Amazonka.Lambda.Types.SelfManagedEventSource
import Amazonka.Lambda.Types.SelfManagedKafkaEventSourceConfig
import Amazonka.Lambda.Types.SourceAccessConfiguration
import qualified Amazonka.Prelude as Prelude

-- | A mapping between an Amazon Web Services resource and a Lambda function.
-- For details, see CreateEventSourceMapping.
--
-- /See:/ 'newEventSourceMappingConfiguration' smart constructor.
data EventSourceMappingConfiguration = EventSourceMappingConfiguration'
  { -- | Specific configuration settings for an Amazon Managed Streaming for
    -- Apache Kafka (Amazon MSK) event source.
    EventSourceMappingConfiguration
-> Maybe AmazonManagedKafkaEventSourceConfig
amazonManagedKafkaEventSourceConfig :: Prelude.Maybe AmazonManagedKafkaEventSourceConfig,
    -- | The maximum number of records in each batch that Lambda pulls from your
    -- stream or queue and sends to your function. Lambda passes all of the
    -- records in the batch to the function in a single call, up to the payload
    -- limit for synchronous invocation (6 MB).
    --
    -- Default value: Varies by service. For Amazon SQS, the default is 10. For
    -- all other services, the default is 100.
    --
    -- Related setting: When you set @BatchSize@ to a value greater than 10,
    -- you must set @MaximumBatchingWindowInSeconds@ to at least 1.
    EventSourceMappingConfiguration -> Maybe Natural
batchSize :: Prelude.Maybe Prelude.Natural,
    -- | (Streams only) If the function returns an error, split the batch in two
    -- and retry. The default value is false.
    EventSourceMappingConfiguration -> Maybe Bool
bisectBatchOnFunctionError :: Prelude.Maybe Prelude.Bool,
    -- | (Streams only) An Amazon SQS queue or Amazon SNS topic destination for
    -- discarded records.
    EventSourceMappingConfiguration -> Maybe DestinationConfig
destinationConfig :: Prelude.Maybe DestinationConfig,
    -- | The Amazon Resource Name (ARN) of the event source.
    EventSourceMappingConfiguration -> Maybe Text
eventSourceArn :: Prelude.Maybe Prelude.Text,
    -- | An object that defines the filter criteria that determine whether Lambda
    -- should process an event. For more information, see
    -- <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html Lambda event filtering>.
    EventSourceMappingConfiguration -> Maybe FilterCriteria
filterCriteria :: Prelude.Maybe FilterCriteria,
    -- | The ARN of the Lambda function.
    EventSourceMappingConfiguration -> Maybe Text
functionArn :: Prelude.Maybe Prelude.Text,
    -- | (Streams and Amazon SQS) A list of current response type enums applied
    -- to the event source mapping.
    EventSourceMappingConfiguration -> Maybe [FunctionResponseType]
functionResponseTypes :: Prelude.Maybe [FunctionResponseType],
    -- | The date that the event source mapping was last updated or that its
    -- state changed.
    EventSourceMappingConfiguration -> Maybe POSIX
lastModified :: Prelude.Maybe Data.POSIX,
    -- | The result of the last Lambda invocation of your function.
    EventSourceMappingConfiguration -> Maybe Text
lastProcessingResult :: Prelude.Maybe Prelude.Text,
    -- | The maximum amount of time, in seconds, that Lambda spends gathering
    -- records before invoking the function. You can configure
    -- @MaximumBatchingWindowInSeconds@ to any value from 0 seconds to 300
    -- seconds in increments of seconds.
    --
    -- For streams and Amazon SQS event sources, the default batching window is
    -- 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ
    -- event sources, the default batching window is 500 ms. Note that because
    -- you can only change @MaximumBatchingWindowInSeconds@ in increments of
    -- seconds, you cannot revert back to the 500 ms default batching window
    -- after you have changed it. To restore the default batching window, you
    -- must create a new event source mapping.
    --
    -- Related setting: For streams and Amazon SQS event sources, when you set
    -- @BatchSize@ to a value greater than 10, you must set
    -- @MaximumBatchingWindowInSeconds@ to at least 1.
    EventSourceMappingConfiguration -> Maybe Natural
maximumBatchingWindowInSeconds :: Prelude.Maybe Prelude.Natural,
    -- | (Streams only) Discard records older than the specified age. The default
    -- value is -1, which sets the maximum age to infinite. When the value is
    -- set to infinite, Lambda never discards old records.
    EventSourceMappingConfiguration -> Maybe Int
maximumRecordAgeInSeconds :: Prelude.Maybe Prelude.Int,
    -- | (Streams only) Discard records after the specified number of retries.
    -- The default value is -1, which sets the maximum number of retries to
    -- infinite. When MaximumRetryAttempts is infinite, Lambda retries failed
    -- records until the record expires in the event source.
    EventSourceMappingConfiguration -> Maybe Int
maximumRetryAttempts :: Prelude.Maybe Prelude.Int,
    -- | (Streams only) The number of batches to process concurrently from each
    -- shard. The default value is 1.
    EventSourceMappingConfiguration -> Maybe Natural
parallelizationFactor :: Prelude.Maybe Prelude.Natural,
    -- | (Amazon MQ) The name of the Amazon MQ broker destination queue to
    -- consume.
    EventSourceMappingConfiguration -> Maybe (NonEmpty Text)
queues :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | The self-managed Apache Kafka cluster for your event source.
    EventSourceMappingConfiguration -> Maybe SelfManagedEventSource
selfManagedEventSource :: Prelude.Maybe SelfManagedEventSource,
    -- | Specific configuration settings for a self-managed Apache Kafka event
    -- source.
    EventSourceMappingConfiguration
-> Maybe SelfManagedKafkaEventSourceConfig
selfManagedKafkaEventSourceConfig :: Prelude.Maybe SelfManagedKafkaEventSourceConfig,
    -- | An array of the authentication protocol, VPC components, or virtual host
    -- to secure and define your event source.
    EventSourceMappingConfiguration
-> Maybe [SourceAccessConfiguration]
sourceAccessConfigurations :: Prelude.Maybe [SourceAccessConfiguration],
    -- | The position in a stream from which to start reading. Required for
    -- Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources.
    -- @AT_TIMESTAMP@ is supported only for Amazon Kinesis streams.
    EventSourceMappingConfiguration -> Maybe EventSourcePosition
startingPosition :: Prelude.Maybe EventSourcePosition,
    -- | With @StartingPosition@ set to @AT_TIMESTAMP@, the time from which to
    -- start reading.
    EventSourceMappingConfiguration -> Maybe POSIX
startingPositionTimestamp :: Prelude.Maybe Data.POSIX,
    -- | The state of the event source mapping. It can be one of the following:
    -- @Creating@, @Enabling@, @Enabled@, @Disabling@, @Disabled@, @Updating@,
    -- or @Deleting@.
    EventSourceMappingConfiguration -> Maybe Text
state :: Prelude.Maybe Prelude.Text,
    -- | Indicates whether a user or Lambda made the last change to the event
    -- source mapping.
    EventSourceMappingConfiguration -> Maybe Text
stateTransitionReason :: Prelude.Maybe Prelude.Text,
    -- | The name of the Kafka topic.
    EventSourceMappingConfiguration -> Maybe (NonEmpty Text)
topics :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | (Streams only) The duration in seconds of a processing window. The range
    -- is 1–900 seconds.
    EventSourceMappingConfiguration -> Maybe Natural
tumblingWindowInSeconds :: Prelude.Maybe Prelude.Natural,
    -- | The identifier of the event source mapping.
    EventSourceMappingConfiguration -> Maybe Text
uuid :: Prelude.Maybe Prelude.Text
  }
  deriving (EventSourceMappingConfiguration
-> EventSourceMappingConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EventSourceMappingConfiguration
-> EventSourceMappingConfiguration -> Bool
$c/= :: EventSourceMappingConfiguration
-> EventSourceMappingConfiguration -> Bool
== :: EventSourceMappingConfiguration
-> EventSourceMappingConfiguration -> Bool
$c== :: EventSourceMappingConfiguration
-> EventSourceMappingConfiguration -> Bool
Prelude.Eq, ReadPrec [EventSourceMappingConfiguration]
ReadPrec EventSourceMappingConfiguration
Int -> ReadS EventSourceMappingConfiguration
ReadS [EventSourceMappingConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EventSourceMappingConfiguration]
$creadListPrec :: ReadPrec [EventSourceMappingConfiguration]
readPrec :: ReadPrec EventSourceMappingConfiguration
$creadPrec :: ReadPrec EventSourceMappingConfiguration
readList :: ReadS [EventSourceMappingConfiguration]
$creadList :: ReadS [EventSourceMappingConfiguration]
readsPrec :: Int -> ReadS EventSourceMappingConfiguration
$creadsPrec :: Int -> ReadS EventSourceMappingConfiguration
Prelude.Read, Int -> EventSourceMappingConfiguration -> ShowS
[EventSourceMappingConfiguration] -> ShowS
EventSourceMappingConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EventSourceMappingConfiguration] -> ShowS
$cshowList :: [EventSourceMappingConfiguration] -> ShowS
show :: EventSourceMappingConfiguration -> String
$cshow :: EventSourceMappingConfiguration -> String
showsPrec :: Int -> EventSourceMappingConfiguration -> ShowS
$cshowsPrec :: Int -> EventSourceMappingConfiguration -> ShowS
Prelude.Show, forall x.
Rep EventSourceMappingConfiguration x
-> EventSourceMappingConfiguration
forall x.
EventSourceMappingConfiguration
-> Rep EventSourceMappingConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep EventSourceMappingConfiguration x
-> EventSourceMappingConfiguration
$cfrom :: forall x.
EventSourceMappingConfiguration
-> Rep EventSourceMappingConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'EventSourceMappingConfiguration' 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:
--
-- 'amazonManagedKafkaEventSourceConfig', 'eventSourceMappingConfiguration_amazonManagedKafkaEventSourceConfig' - Specific configuration settings for an Amazon Managed Streaming for
-- Apache Kafka (Amazon MSK) event source.
--
-- 'batchSize', 'eventSourceMappingConfiguration_batchSize' - The maximum number of records in each batch that Lambda pulls from your
-- stream or queue and sends to your function. Lambda passes all of the
-- records in the batch to the function in a single call, up to the payload
-- limit for synchronous invocation (6 MB).
--
-- Default value: Varies by service. For Amazon SQS, the default is 10. For
-- all other services, the default is 100.
--
-- Related setting: When you set @BatchSize@ to a value greater than 10,
-- you must set @MaximumBatchingWindowInSeconds@ to at least 1.
--
-- 'bisectBatchOnFunctionError', 'eventSourceMappingConfiguration_bisectBatchOnFunctionError' - (Streams only) If the function returns an error, split the batch in two
-- and retry. The default value is false.
--
-- 'destinationConfig', 'eventSourceMappingConfiguration_destinationConfig' - (Streams only) An Amazon SQS queue or Amazon SNS topic destination for
-- discarded records.
--
-- 'eventSourceArn', 'eventSourceMappingConfiguration_eventSourceArn' - The Amazon Resource Name (ARN) of the event source.
--
-- 'filterCriteria', 'eventSourceMappingConfiguration_filterCriteria' - An object that defines the filter criteria that determine whether Lambda
-- should process an event. For more information, see
-- <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html Lambda event filtering>.
--
-- 'functionArn', 'eventSourceMappingConfiguration_functionArn' - The ARN of the Lambda function.
--
-- 'functionResponseTypes', 'eventSourceMappingConfiguration_functionResponseTypes' - (Streams and Amazon SQS) A list of current response type enums applied
-- to the event source mapping.
--
-- 'lastModified', 'eventSourceMappingConfiguration_lastModified' - The date that the event source mapping was last updated or that its
-- state changed.
--
-- 'lastProcessingResult', 'eventSourceMappingConfiguration_lastProcessingResult' - The result of the last Lambda invocation of your function.
--
-- 'maximumBatchingWindowInSeconds', 'eventSourceMappingConfiguration_maximumBatchingWindowInSeconds' - The maximum amount of time, in seconds, that Lambda spends gathering
-- records before invoking the function. You can configure
-- @MaximumBatchingWindowInSeconds@ to any value from 0 seconds to 300
-- seconds in increments of seconds.
--
-- For streams and Amazon SQS event sources, the default batching window is
-- 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ
-- event sources, the default batching window is 500 ms. Note that because
-- you can only change @MaximumBatchingWindowInSeconds@ in increments of
-- seconds, you cannot revert back to the 500 ms default batching window
-- after you have changed it. To restore the default batching window, you
-- must create a new event source mapping.
--
-- Related setting: For streams and Amazon SQS event sources, when you set
-- @BatchSize@ to a value greater than 10, you must set
-- @MaximumBatchingWindowInSeconds@ to at least 1.
--
-- 'maximumRecordAgeInSeconds', 'eventSourceMappingConfiguration_maximumRecordAgeInSeconds' - (Streams only) Discard records older than the specified age. The default
-- value is -1, which sets the maximum age to infinite. When the value is
-- set to infinite, Lambda never discards old records.
--
-- 'maximumRetryAttempts', 'eventSourceMappingConfiguration_maximumRetryAttempts' - (Streams only) Discard records after the specified number of retries.
-- The default value is -1, which sets the maximum number of retries to
-- infinite. When MaximumRetryAttempts is infinite, Lambda retries failed
-- records until the record expires in the event source.
--
-- 'parallelizationFactor', 'eventSourceMappingConfiguration_parallelizationFactor' - (Streams only) The number of batches to process concurrently from each
-- shard. The default value is 1.
--
-- 'queues', 'eventSourceMappingConfiguration_queues' - (Amazon MQ) The name of the Amazon MQ broker destination queue to
-- consume.
--
-- 'selfManagedEventSource', 'eventSourceMappingConfiguration_selfManagedEventSource' - The self-managed Apache Kafka cluster for your event source.
--
-- 'selfManagedKafkaEventSourceConfig', 'eventSourceMappingConfiguration_selfManagedKafkaEventSourceConfig' - Specific configuration settings for a self-managed Apache Kafka event
-- source.
--
-- 'sourceAccessConfigurations', 'eventSourceMappingConfiguration_sourceAccessConfigurations' - An array of the authentication protocol, VPC components, or virtual host
-- to secure and define your event source.
--
-- 'startingPosition', 'eventSourceMappingConfiguration_startingPosition' - The position in a stream from which to start reading. Required for
-- Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources.
-- @AT_TIMESTAMP@ is supported only for Amazon Kinesis streams.
--
-- 'startingPositionTimestamp', 'eventSourceMappingConfiguration_startingPositionTimestamp' - With @StartingPosition@ set to @AT_TIMESTAMP@, the time from which to
-- start reading.
--
-- 'state', 'eventSourceMappingConfiguration_state' - The state of the event source mapping. It can be one of the following:
-- @Creating@, @Enabling@, @Enabled@, @Disabling@, @Disabled@, @Updating@,
-- or @Deleting@.
--
-- 'stateTransitionReason', 'eventSourceMappingConfiguration_stateTransitionReason' - Indicates whether a user or Lambda made the last change to the event
-- source mapping.
--
-- 'topics', 'eventSourceMappingConfiguration_topics' - The name of the Kafka topic.
--
-- 'tumblingWindowInSeconds', 'eventSourceMappingConfiguration_tumblingWindowInSeconds' - (Streams only) The duration in seconds of a processing window. The range
-- is 1–900 seconds.
--
-- 'uuid', 'eventSourceMappingConfiguration_uuid' - The identifier of the event source mapping.
newEventSourceMappingConfiguration ::
  EventSourceMappingConfiguration
newEventSourceMappingConfiguration :: EventSourceMappingConfiguration
newEventSourceMappingConfiguration =
  EventSourceMappingConfiguration'
    { $sel:amazonManagedKafkaEventSourceConfig:EventSourceMappingConfiguration' :: Maybe AmazonManagedKafkaEventSourceConfig
amazonManagedKafkaEventSourceConfig =
        forall a. Maybe a
Prelude.Nothing,
      $sel:batchSize:EventSourceMappingConfiguration' :: Maybe Natural
batchSize = forall a. Maybe a
Prelude.Nothing,
      $sel:bisectBatchOnFunctionError:EventSourceMappingConfiguration' :: Maybe Bool
bisectBatchOnFunctionError =
        forall a. Maybe a
Prelude.Nothing,
      $sel:destinationConfig:EventSourceMappingConfiguration' :: Maybe DestinationConfig
destinationConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:eventSourceArn:EventSourceMappingConfiguration' :: Maybe Text
eventSourceArn = forall a. Maybe a
Prelude.Nothing,
      $sel:filterCriteria:EventSourceMappingConfiguration' :: Maybe FilterCriteria
filterCriteria = forall a. Maybe a
Prelude.Nothing,
      $sel:functionArn:EventSourceMappingConfiguration' :: Maybe Text
functionArn = forall a. Maybe a
Prelude.Nothing,
      $sel:functionResponseTypes:EventSourceMappingConfiguration' :: Maybe [FunctionResponseType]
functionResponseTypes = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModified:EventSourceMappingConfiguration' :: Maybe POSIX
lastModified = forall a. Maybe a
Prelude.Nothing,
      $sel:lastProcessingResult:EventSourceMappingConfiguration' :: Maybe Text
lastProcessingResult = forall a. Maybe a
Prelude.Nothing,
      $sel:maximumBatchingWindowInSeconds:EventSourceMappingConfiguration' :: Maybe Natural
maximumBatchingWindowInSeconds =
        forall a. Maybe a
Prelude.Nothing,
      $sel:maximumRecordAgeInSeconds:EventSourceMappingConfiguration' :: Maybe Int
maximumRecordAgeInSeconds =
        forall a. Maybe a
Prelude.Nothing,
      $sel:maximumRetryAttempts:EventSourceMappingConfiguration' :: Maybe Int
maximumRetryAttempts = forall a. Maybe a
Prelude.Nothing,
      $sel:parallelizationFactor:EventSourceMappingConfiguration' :: Maybe Natural
parallelizationFactor = forall a. Maybe a
Prelude.Nothing,
      $sel:queues:EventSourceMappingConfiguration' :: Maybe (NonEmpty Text)
queues = forall a. Maybe a
Prelude.Nothing,
      $sel:selfManagedEventSource:EventSourceMappingConfiguration' :: Maybe SelfManagedEventSource
selfManagedEventSource = forall a. Maybe a
Prelude.Nothing,
      $sel:selfManagedKafkaEventSourceConfig:EventSourceMappingConfiguration' :: Maybe SelfManagedKafkaEventSourceConfig
selfManagedKafkaEventSourceConfig =
        forall a. Maybe a
Prelude.Nothing,
      $sel:sourceAccessConfigurations:EventSourceMappingConfiguration' :: Maybe [SourceAccessConfiguration]
sourceAccessConfigurations =
        forall a. Maybe a
Prelude.Nothing,
      $sel:startingPosition:EventSourceMappingConfiguration' :: Maybe EventSourcePosition
startingPosition = forall a. Maybe a
Prelude.Nothing,
      $sel:startingPositionTimestamp:EventSourceMappingConfiguration' :: Maybe POSIX
startingPositionTimestamp =
        forall a. Maybe a
Prelude.Nothing,
      $sel:state:EventSourceMappingConfiguration' :: Maybe Text
state = forall a. Maybe a
Prelude.Nothing,
      $sel:stateTransitionReason:EventSourceMappingConfiguration' :: Maybe Text
stateTransitionReason = forall a. Maybe a
Prelude.Nothing,
      $sel:topics:EventSourceMappingConfiguration' :: Maybe (NonEmpty Text)
topics = forall a. Maybe a
Prelude.Nothing,
      $sel:tumblingWindowInSeconds:EventSourceMappingConfiguration' :: Maybe Natural
tumblingWindowInSeconds = forall a. Maybe a
Prelude.Nothing,
      $sel:uuid:EventSourceMappingConfiguration' :: Maybe Text
uuid = forall a. Maybe a
Prelude.Nothing
    }

-- | Specific configuration settings for an Amazon Managed Streaming for
-- Apache Kafka (Amazon MSK) event source.
eventSourceMappingConfiguration_amazonManagedKafkaEventSourceConfig :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe AmazonManagedKafkaEventSourceConfig)
eventSourceMappingConfiguration_amazonManagedKafkaEventSourceConfig :: Lens'
  EventSourceMappingConfiguration
  (Maybe AmazonManagedKafkaEventSourceConfig)
eventSourceMappingConfiguration_amazonManagedKafkaEventSourceConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe AmazonManagedKafkaEventSourceConfig
amazonManagedKafkaEventSourceConfig :: Maybe AmazonManagedKafkaEventSourceConfig
$sel:amazonManagedKafkaEventSourceConfig:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration
-> Maybe AmazonManagedKafkaEventSourceConfig
amazonManagedKafkaEventSourceConfig} -> Maybe AmazonManagedKafkaEventSourceConfig
amazonManagedKafkaEventSourceConfig) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe AmazonManagedKafkaEventSourceConfig
a -> EventSourceMappingConfiguration
s {$sel:amazonManagedKafkaEventSourceConfig:EventSourceMappingConfiguration' :: Maybe AmazonManagedKafkaEventSourceConfig
amazonManagedKafkaEventSourceConfig = Maybe AmazonManagedKafkaEventSourceConfig
a} :: EventSourceMappingConfiguration)

-- | The maximum number of records in each batch that Lambda pulls from your
-- stream or queue and sends to your function. Lambda passes all of the
-- records in the batch to the function in a single call, up to the payload
-- limit for synchronous invocation (6 MB).
--
-- Default value: Varies by service. For Amazon SQS, the default is 10. For
-- all other services, the default is 100.
--
-- Related setting: When you set @BatchSize@ to a value greater than 10,
-- you must set @MaximumBatchingWindowInSeconds@ to at least 1.
eventSourceMappingConfiguration_batchSize :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Natural)
eventSourceMappingConfiguration_batchSize :: Lens' EventSourceMappingConfiguration (Maybe Natural)
eventSourceMappingConfiguration_batchSize = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Natural
batchSize :: Maybe Natural
$sel:batchSize:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Natural
batchSize} -> Maybe Natural
batchSize) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Natural
a -> EventSourceMappingConfiguration
s {$sel:batchSize:EventSourceMappingConfiguration' :: Maybe Natural
batchSize = Maybe Natural
a} :: EventSourceMappingConfiguration)

-- | (Streams only) If the function returns an error, split the batch in two
-- and retry. The default value is false.
eventSourceMappingConfiguration_bisectBatchOnFunctionError :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Bool)
eventSourceMappingConfiguration_bisectBatchOnFunctionError :: Lens' EventSourceMappingConfiguration (Maybe Bool)
eventSourceMappingConfiguration_bisectBatchOnFunctionError = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Bool
bisectBatchOnFunctionError :: Maybe Bool
$sel:bisectBatchOnFunctionError:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Bool
bisectBatchOnFunctionError} -> Maybe Bool
bisectBatchOnFunctionError) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Bool
a -> EventSourceMappingConfiguration
s {$sel:bisectBatchOnFunctionError:EventSourceMappingConfiguration' :: Maybe Bool
bisectBatchOnFunctionError = Maybe Bool
a} :: EventSourceMappingConfiguration)

-- | (Streams only) An Amazon SQS queue or Amazon SNS topic destination for
-- discarded records.
eventSourceMappingConfiguration_destinationConfig :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe DestinationConfig)
eventSourceMappingConfiguration_destinationConfig :: Lens' EventSourceMappingConfiguration (Maybe DestinationConfig)
eventSourceMappingConfiguration_destinationConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe DestinationConfig
destinationConfig :: Maybe DestinationConfig
$sel:destinationConfig:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe DestinationConfig
destinationConfig} -> Maybe DestinationConfig
destinationConfig) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe DestinationConfig
a -> EventSourceMappingConfiguration
s {$sel:destinationConfig:EventSourceMappingConfiguration' :: Maybe DestinationConfig
destinationConfig = Maybe DestinationConfig
a} :: EventSourceMappingConfiguration)

-- | The Amazon Resource Name (ARN) of the event source.
eventSourceMappingConfiguration_eventSourceArn :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Text)
eventSourceMappingConfiguration_eventSourceArn :: Lens' EventSourceMappingConfiguration (Maybe Text)
eventSourceMappingConfiguration_eventSourceArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Text
eventSourceArn :: Maybe Text
$sel:eventSourceArn:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
eventSourceArn} -> Maybe Text
eventSourceArn) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Text
a -> EventSourceMappingConfiguration
s {$sel:eventSourceArn:EventSourceMappingConfiguration' :: Maybe Text
eventSourceArn = Maybe Text
a} :: EventSourceMappingConfiguration)

-- | An object that defines the filter criteria that determine whether Lambda
-- should process an event. For more information, see
-- <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html Lambda event filtering>.
eventSourceMappingConfiguration_filterCriteria :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe FilterCriteria)
eventSourceMappingConfiguration_filterCriteria :: Lens' EventSourceMappingConfiguration (Maybe FilterCriteria)
eventSourceMappingConfiguration_filterCriteria = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe FilterCriteria
filterCriteria :: Maybe FilterCriteria
$sel:filterCriteria:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe FilterCriteria
filterCriteria} -> Maybe FilterCriteria
filterCriteria) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe FilterCriteria
a -> EventSourceMappingConfiguration
s {$sel:filterCriteria:EventSourceMappingConfiguration' :: Maybe FilterCriteria
filterCriteria = Maybe FilterCriteria
a} :: EventSourceMappingConfiguration)

-- | The ARN of the Lambda function.
eventSourceMappingConfiguration_functionArn :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Text)
eventSourceMappingConfiguration_functionArn :: Lens' EventSourceMappingConfiguration (Maybe Text)
eventSourceMappingConfiguration_functionArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Text
functionArn :: Maybe Text
$sel:functionArn:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
functionArn} -> Maybe Text
functionArn) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Text
a -> EventSourceMappingConfiguration
s {$sel:functionArn:EventSourceMappingConfiguration' :: Maybe Text
functionArn = Maybe Text
a} :: EventSourceMappingConfiguration)

-- | (Streams and Amazon SQS) A list of current response type enums applied
-- to the event source mapping.
eventSourceMappingConfiguration_functionResponseTypes :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe [FunctionResponseType])
eventSourceMappingConfiguration_functionResponseTypes :: Lens'
  EventSourceMappingConfiguration (Maybe [FunctionResponseType])
eventSourceMappingConfiguration_functionResponseTypes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe [FunctionResponseType]
functionResponseTypes :: Maybe [FunctionResponseType]
$sel:functionResponseTypes:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe [FunctionResponseType]
functionResponseTypes} -> Maybe [FunctionResponseType]
functionResponseTypes) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe [FunctionResponseType]
a -> EventSourceMappingConfiguration
s {$sel:functionResponseTypes:EventSourceMappingConfiguration' :: Maybe [FunctionResponseType]
functionResponseTypes = Maybe [FunctionResponseType]
a} :: EventSourceMappingConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The date that the event source mapping was last updated or that its
-- state changed.
eventSourceMappingConfiguration_lastModified :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.UTCTime)
eventSourceMappingConfiguration_lastModified :: Lens' EventSourceMappingConfiguration (Maybe UTCTime)
eventSourceMappingConfiguration_lastModified = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe POSIX
lastModified :: Maybe POSIX
$sel:lastModified:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe POSIX
lastModified} -> Maybe POSIX
lastModified) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe POSIX
a -> EventSourceMappingConfiguration
s {$sel:lastModified:EventSourceMappingConfiguration' :: Maybe POSIX
lastModified = Maybe POSIX
a} :: EventSourceMappingConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The result of the last Lambda invocation of your function.
eventSourceMappingConfiguration_lastProcessingResult :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Text)
eventSourceMappingConfiguration_lastProcessingResult :: Lens' EventSourceMappingConfiguration (Maybe Text)
eventSourceMappingConfiguration_lastProcessingResult = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Text
lastProcessingResult :: Maybe Text
$sel:lastProcessingResult:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
lastProcessingResult} -> Maybe Text
lastProcessingResult) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Text
a -> EventSourceMappingConfiguration
s {$sel:lastProcessingResult:EventSourceMappingConfiguration' :: Maybe Text
lastProcessingResult = Maybe Text
a} :: EventSourceMappingConfiguration)

-- | The maximum amount of time, in seconds, that Lambda spends gathering
-- records before invoking the function. You can configure
-- @MaximumBatchingWindowInSeconds@ to any value from 0 seconds to 300
-- seconds in increments of seconds.
--
-- For streams and Amazon SQS event sources, the default batching window is
-- 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ
-- event sources, the default batching window is 500 ms. Note that because
-- you can only change @MaximumBatchingWindowInSeconds@ in increments of
-- seconds, you cannot revert back to the 500 ms default batching window
-- after you have changed it. To restore the default batching window, you
-- must create a new event source mapping.
--
-- Related setting: For streams and Amazon SQS event sources, when you set
-- @BatchSize@ to a value greater than 10, you must set
-- @MaximumBatchingWindowInSeconds@ to at least 1.
eventSourceMappingConfiguration_maximumBatchingWindowInSeconds :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Natural)
eventSourceMappingConfiguration_maximumBatchingWindowInSeconds :: Lens' EventSourceMappingConfiguration (Maybe Natural)
eventSourceMappingConfiguration_maximumBatchingWindowInSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Natural
maximumBatchingWindowInSeconds :: Maybe Natural
$sel:maximumBatchingWindowInSeconds:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Natural
maximumBatchingWindowInSeconds} -> Maybe Natural
maximumBatchingWindowInSeconds) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Natural
a -> EventSourceMappingConfiguration
s {$sel:maximumBatchingWindowInSeconds:EventSourceMappingConfiguration' :: Maybe Natural
maximumBatchingWindowInSeconds = Maybe Natural
a} :: EventSourceMappingConfiguration)

-- | (Streams only) Discard records older than the specified age. The default
-- value is -1, which sets the maximum age to infinite. When the value is
-- set to infinite, Lambda never discards old records.
eventSourceMappingConfiguration_maximumRecordAgeInSeconds :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Int)
eventSourceMappingConfiguration_maximumRecordAgeInSeconds :: Lens' EventSourceMappingConfiguration (Maybe Int)
eventSourceMappingConfiguration_maximumRecordAgeInSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Int
maximumRecordAgeInSeconds :: Maybe Int
$sel:maximumRecordAgeInSeconds:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Int
maximumRecordAgeInSeconds} -> Maybe Int
maximumRecordAgeInSeconds) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Int
a -> EventSourceMappingConfiguration
s {$sel:maximumRecordAgeInSeconds:EventSourceMappingConfiguration' :: Maybe Int
maximumRecordAgeInSeconds = Maybe Int
a} :: EventSourceMappingConfiguration)

-- | (Streams only) Discard records after the specified number of retries.
-- The default value is -1, which sets the maximum number of retries to
-- infinite. When MaximumRetryAttempts is infinite, Lambda retries failed
-- records until the record expires in the event source.
eventSourceMappingConfiguration_maximumRetryAttempts :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Int)
eventSourceMappingConfiguration_maximumRetryAttempts :: Lens' EventSourceMappingConfiguration (Maybe Int)
eventSourceMappingConfiguration_maximumRetryAttempts = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Int
maximumRetryAttempts :: Maybe Int
$sel:maximumRetryAttempts:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Int
maximumRetryAttempts} -> Maybe Int
maximumRetryAttempts) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Int
a -> EventSourceMappingConfiguration
s {$sel:maximumRetryAttempts:EventSourceMappingConfiguration' :: Maybe Int
maximumRetryAttempts = Maybe Int
a} :: EventSourceMappingConfiguration)

-- | (Streams only) The number of batches to process concurrently from each
-- shard. The default value is 1.
eventSourceMappingConfiguration_parallelizationFactor :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Natural)
eventSourceMappingConfiguration_parallelizationFactor :: Lens' EventSourceMappingConfiguration (Maybe Natural)
eventSourceMappingConfiguration_parallelizationFactor = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Natural
parallelizationFactor :: Maybe Natural
$sel:parallelizationFactor:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Natural
parallelizationFactor} -> Maybe Natural
parallelizationFactor) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Natural
a -> EventSourceMappingConfiguration
s {$sel:parallelizationFactor:EventSourceMappingConfiguration' :: Maybe Natural
parallelizationFactor = Maybe Natural
a} :: EventSourceMappingConfiguration)

-- | (Amazon MQ) The name of the Amazon MQ broker destination queue to
-- consume.
eventSourceMappingConfiguration_queues :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
eventSourceMappingConfiguration_queues :: Lens' EventSourceMappingConfiguration (Maybe (NonEmpty Text))
eventSourceMappingConfiguration_queues = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe (NonEmpty Text)
queues :: Maybe (NonEmpty Text)
$sel:queues:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe (NonEmpty Text)
queues} -> Maybe (NonEmpty Text)
queues) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe (NonEmpty Text)
a -> EventSourceMappingConfiguration
s {$sel:queues:EventSourceMappingConfiguration' :: Maybe (NonEmpty Text)
queues = Maybe (NonEmpty Text)
a} :: EventSourceMappingConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The self-managed Apache Kafka cluster for your event source.
eventSourceMappingConfiguration_selfManagedEventSource :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe SelfManagedEventSource)
eventSourceMappingConfiguration_selfManagedEventSource :: Lens'
  EventSourceMappingConfiguration (Maybe SelfManagedEventSource)
eventSourceMappingConfiguration_selfManagedEventSource = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe SelfManagedEventSource
selfManagedEventSource :: Maybe SelfManagedEventSource
$sel:selfManagedEventSource:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe SelfManagedEventSource
selfManagedEventSource} -> Maybe SelfManagedEventSource
selfManagedEventSource) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe SelfManagedEventSource
a -> EventSourceMappingConfiguration
s {$sel:selfManagedEventSource:EventSourceMappingConfiguration' :: Maybe SelfManagedEventSource
selfManagedEventSource = Maybe SelfManagedEventSource
a} :: EventSourceMappingConfiguration)

-- | Specific configuration settings for a self-managed Apache Kafka event
-- source.
eventSourceMappingConfiguration_selfManagedKafkaEventSourceConfig :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe SelfManagedKafkaEventSourceConfig)
eventSourceMappingConfiguration_selfManagedKafkaEventSourceConfig :: Lens'
  EventSourceMappingConfiguration
  (Maybe SelfManagedKafkaEventSourceConfig)
eventSourceMappingConfiguration_selfManagedKafkaEventSourceConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe SelfManagedKafkaEventSourceConfig
selfManagedKafkaEventSourceConfig :: Maybe SelfManagedKafkaEventSourceConfig
$sel:selfManagedKafkaEventSourceConfig:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration
-> Maybe SelfManagedKafkaEventSourceConfig
selfManagedKafkaEventSourceConfig} -> Maybe SelfManagedKafkaEventSourceConfig
selfManagedKafkaEventSourceConfig) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe SelfManagedKafkaEventSourceConfig
a -> EventSourceMappingConfiguration
s {$sel:selfManagedKafkaEventSourceConfig:EventSourceMappingConfiguration' :: Maybe SelfManagedKafkaEventSourceConfig
selfManagedKafkaEventSourceConfig = Maybe SelfManagedKafkaEventSourceConfig
a} :: EventSourceMappingConfiguration)

-- | An array of the authentication protocol, VPC components, or virtual host
-- to secure and define your event source.
eventSourceMappingConfiguration_sourceAccessConfigurations :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe [SourceAccessConfiguration])
eventSourceMappingConfiguration_sourceAccessConfigurations :: Lens'
  EventSourceMappingConfiguration (Maybe [SourceAccessConfiguration])
eventSourceMappingConfiguration_sourceAccessConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe [SourceAccessConfiguration]
sourceAccessConfigurations :: Maybe [SourceAccessConfiguration]
$sel:sourceAccessConfigurations:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration
-> Maybe [SourceAccessConfiguration]
sourceAccessConfigurations} -> Maybe [SourceAccessConfiguration]
sourceAccessConfigurations) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe [SourceAccessConfiguration]
a -> EventSourceMappingConfiguration
s {$sel:sourceAccessConfigurations:EventSourceMappingConfiguration' :: Maybe [SourceAccessConfiguration]
sourceAccessConfigurations = Maybe [SourceAccessConfiguration]
a} :: EventSourceMappingConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The position in a stream from which to start reading. Required for
-- Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources.
-- @AT_TIMESTAMP@ is supported only for Amazon Kinesis streams.
eventSourceMappingConfiguration_startingPosition :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe EventSourcePosition)
eventSourceMappingConfiguration_startingPosition :: Lens' EventSourceMappingConfiguration (Maybe EventSourcePosition)
eventSourceMappingConfiguration_startingPosition = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe EventSourcePosition
startingPosition :: Maybe EventSourcePosition
$sel:startingPosition:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe EventSourcePosition
startingPosition} -> Maybe EventSourcePosition
startingPosition) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe EventSourcePosition
a -> EventSourceMappingConfiguration
s {$sel:startingPosition:EventSourceMappingConfiguration' :: Maybe EventSourcePosition
startingPosition = Maybe EventSourcePosition
a} :: EventSourceMappingConfiguration)

-- | With @StartingPosition@ set to @AT_TIMESTAMP@, the time from which to
-- start reading.
eventSourceMappingConfiguration_startingPositionTimestamp :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.UTCTime)
eventSourceMappingConfiguration_startingPositionTimestamp :: Lens' EventSourceMappingConfiguration (Maybe UTCTime)
eventSourceMappingConfiguration_startingPositionTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe POSIX
startingPositionTimestamp :: Maybe POSIX
$sel:startingPositionTimestamp:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe POSIX
startingPositionTimestamp} -> Maybe POSIX
startingPositionTimestamp) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe POSIX
a -> EventSourceMappingConfiguration
s {$sel:startingPositionTimestamp:EventSourceMappingConfiguration' :: Maybe POSIX
startingPositionTimestamp = Maybe POSIX
a} :: EventSourceMappingConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The state of the event source mapping. It can be one of the following:
-- @Creating@, @Enabling@, @Enabled@, @Disabling@, @Disabled@, @Updating@,
-- or @Deleting@.
eventSourceMappingConfiguration_state :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Text)
eventSourceMappingConfiguration_state :: Lens' EventSourceMappingConfiguration (Maybe Text)
eventSourceMappingConfiguration_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Text
state :: Maybe Text
$sel:state:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
state} -> Maybe Text
state) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Text
a -> EventSourceMappingConfiguration
s {$sel:state:EventSourceMappingConfiguration' :: Maybe Text
state = Maybe Text
a} :: EventSourceMappingConfiguration)

-- | Indicates whether a user or Lambda made the last change to the event
-- source mapping.
eventSourceMappingConfiguration_stateTransitionReason :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Text)
eventSourceMappingConfiguration_stateTransitionReason :: Lens' EventSourceMappingConfiguration (Maybe Text)
eventSourceMappingConfiguration_stateTransitionReason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Text
stateTransitionReason :: Maybe Text
$sel:stateTransitionReason:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
stateTransitionReason} -> Maybe Text
stateTransitionReason) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Text
a -> EventSourceMappingConfiguration
s {$sel:stateTransitionReason:EventSourceMappingConfiguration' :: Maybe Text
stateTransitionReason = Maybe Text
a} :: EventSourceMappingConfiguration)

-- | The name of the Kafka topic.
eventSourceMappingConfiguration_topics :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
eventSourceMappingConfiguration_topics :: Lens' EventSourceMappingConfiguration (Maybe (NonEmpty Text))
eventSourceMappingConfiguration_topics = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe (NonEmpty Text)
topics :: Maybe (NonEmpty Text)
$sel:topics:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe (NonEmpty Text)
topics} -> Maybe (NonEmpty Text)
topics) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe (NonEmpty Text)
a -> EventSourceMappingConfiguration
s {$sel:topics:EventSourceMappingConfiguration' :: Maybe (NonEmpty Text)
topics = Maybe (NonEmpty Text)
a} :: EventSourceMappingConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | (Streams only) The duration in seconds of a processing window. The range
-- is 1–900 seconds.
eventSourceMappingConfiguration_tumblingWindowInSeconds :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Natural)
eventSourceMappingConfiguration_tumblingWindowInSeconds :: Lens' EventSourceMappingConfiguration (Maybe Natural)
eventSourceMappingConfiguration_tumblingWindowInSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Natural
tumblingWindowInSeconds :: Maybe Natural
$sel:tumblingWindowInSeconds:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Natural
tumblingWindowInSeconds} -> Maybe Natural
tumblingWindowInSeconds) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Natural
a -> EventSourceMappingConfiguration
s {$sel:tumblingWindowInSeconds:EventSourceMappingConfiguration' :: Maybe Natural
tumblingWindowInSeconds = Maybe Natural
a} :: EventSourceMappingConfiguration)

-- | The identifier of the event source mapping.
eventSourceMappingConfiguration_uuid :: Lens.Lens' EventSourceMappingConfiguration (Prelude.Maybe Prelude.Text)
eventSourceMappingConfiguration_uuid :: Lens' EventSourceMappingConfiguration (Maybe Text)
eventSourceMappingConfiguration_uuid = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventSourceMappingConfiguration' {Maybe Text
uuid :: Maybe Text
$sel:uuid:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
uuid} -> Maybe Text
uuid) (\s :: EventSourceMappingConfiguration
s@EventSourceMappingConfiguration' {} Maybe Text
a -> EventSourceMappingConfiguration
s {$sel:uuid:EventSourceMappingConfiguration' :: Maybe Text
uuid = Maybe Text
a} :: EventSourceMappingConfiguration)

instance
  Data.FromJSON
    EventSourceMappingConfiguration
  where
  parseJSON :: Value -> Parser EventSourceMappingConfiguration
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"EventSourceMappingConfiguration"
      ( \Object
x ->
          Maybe AmazonManagedKafkaEventSourceConfig
-> Maybe Natural
-> Maybe Bool
-> Maybe DestinationConfig
-> Maybe Text
-> Maybe FilterCriteria
-> Maybe Text
-> Maybe [FunctionResponseType]
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Int
-> Maybe Int
-> Maybe Natural
-> Maybe (NonEmpty Text)
-> Maybe SelfManagedEventSource
-> Maybe SelfManagedKafkaEventSourceConfig
-> Maybe [SourceAccessConfiguration]
-> Maybe EventSourcePosition
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Natural
-> Maybe Text
-> EventSourceMappingConfiguration
EventSourceMappingConfiguration'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AmazonManagedKafkaEventSourceConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"BatchSize")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"BisectBatchOnFunctionError")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DestinationConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EventSourceArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FilterCriteria")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FunctionArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FunctionResponseTypes"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LastModified")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LastProcessingResult")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaximumBatchingWindowInSeconds")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaximumRecordAgeInSeconds")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaximumRetryAttempts")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ParallelizationFactor")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Queues")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SelfManagedEventSource")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SelfManagedKafkaEventSourceConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SourceAccessConfigurations"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StartingPosition")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StartingPositionTimestamp")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"State")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StateTransitionReason")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Topics")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TumblingWindowInSeconds")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"UUID")
      )

instance
  Prelude.Hashable
    EventSourceMappingConfiguration
  where
  hashWithSalt :: Int -> EventSourceMappingConfiguration -> Int
hashWithSalt
    Int
_salt
    EventSourceMappingConfiguration' {Maybe Bool
Maybe Int
Maybe Natural
Maybe [FunctionResponseType]
Maybe [SourceAccessConfiguration]
Maybe (NonEmpty Text)
Maybe Text
Maybe POSIX
Maybe AmazonManagedKafkaEventSourceConfig
Maybe EventSourcePosition
Maybe FilterCriteria
Maybe DestinationConfig
Maybe SelfManagedEventSource
Maybe SelfManagedKafkaEventSourceConfig
uuid :: Maybe Text
tumblingWindowInSeconds :: Maybe Natural
topics :: Maybe (NonEmpty Text)
stateTransitionReason :: Maybe Text
state :: Maybe Text
startingPositionTimestamp :: Maybe POSIX
startingPosition :: Maybe EventSourcePosition
sourceAccessConfigurations :: Maybe [SourceAccessConfiguration]
selfManagedKafkaEventSourceConfig :: Maybe SelfManagedKafkaEventSourceConfig
selfManagedEventSource :: Maybe SelfManagedEventSource
queues :: Maybe (NonEmpty Text)
parallelizationFactor :: Maybe Natural
maximumRetryAttempts :: Maybe Int
maximumRecordAgeInSeconds :: Maybe Int
maximumBatchingWindowInSeconds :: Maybe Natural
lastProcessingResult :: Maybe Text
lastModified :: Maybe POSIX
functionResponseTypes :: Maybe [FunctionResponseType]
functionArn :: Maybe Text
filterCriteria :: Maybe FilterCriteria
eventSourceArn :: Maybe Text
destinationConfig :: Maybe DestinationConfig
bisectBatchOnFunctionError :: Maybe Bool
batchSize :: Maybe Natural
amazonManagedKafkaEventSourceConfig :: Maybe AmazonManagedKafkaEventSourceConfig
$sel:uuid:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
$sel:tumblingWindowInSeconds:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Natural
$sel:topics:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe (NonEmpty Text)
$sel:stateTransitionReason:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
$sel:state:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
$sel:startingPositionTimestamp:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe POSIX
$sel:startingPosition:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe EventSourcePosition
$sel:sourceAccessConfigurations:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration
-> Maybe [SourceAccessConfiguration]
$sel:selfManagedKafkaEventSourceConfig:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration
-> Maybe SelfManagedKafkaEventSourceConfig
$sel:selfManagedEventSource:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe SelfManagedEventSource
$sel:queues:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe (NonEmpty Text)
$sel:parallelizationFactor:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Natural
$sel:maximumRetryAttempts:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Int
$sel:maximumRecordAgeInSeconds:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Int
$sel:maximumBatchingWindowInSeconds:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Natural
$sel:lastProcessingResult:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
$sel:lastModified:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe POSIX
$sel:functionResponseTypes:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe [FunctionResponseType]
$sel:functionArn:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
$sel:filterCriteria:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe FilterCriteria
$sel:eventSourceArn:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
$sel:destinationConfig:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe DestinationConfig
$sel:bisectBatchOnFunctionError:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Bool
$sel:batchSize:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Natural
$sel:amazonManagedKafkaEventSourceConfig:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration
-> Maybe AmazonManagedKafkaEventSourceConfig
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AmazonManagedKafkaEventSourceConfig
amazonManagedKafkaEventSourceConfig
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
batchSize
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
bisectBatchOnFunctionError
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DestinationConfig
destinationConfig
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
eventSourceArn
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FilterCriteria
filterCriteria
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
functionArn
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [FunctionResponseType]
functionResponseTypes
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModified
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
lastProcessingResult
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maximumBatchingWindowInSeconds
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maximumRecordAgeInSeconds
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maximumRetryAttempts
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
parallelizationFactor
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Text)
queues
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SelfManagedEventSource
selfManagedEventSource
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SelfManagedKafkaEventSourceConfig
selfManagedKafkaEventSourceConfig
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [SourceAccessConfiguration]
sourceAccessConfigurations
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EventSourcePosition
startingPosition
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
startingPositionTimestamp
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
state
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
stateTransitionReason
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Text)
topics
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
tumblingWindowInSeconds
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
uuid

instance
  Prelude.NFData
    EventSourceMappingConfiguration
  where
  rnf :: EventSourceMappingConfiguration -> ()
rnf EventSourceMappingConfiguration' {Maybe Bool
Maybe Int
Maybe Natural
Maybe [FunctionResponseType]
Maybe [SourceAccessConfiguration]
Maybe (NonEmpty Text)
Maybe Text
Maybe POSIX
Maybe AmazonManagedKafkaEventSourceConfig
Maybe EventSourcePosition
Maybe FilterCriteria
Maybe DestinationConfig
Maybe SelfManagedEventSource
Maybe SelfManagedKafkaEventSourceConfig
uuid :: Maybe Text
tumblingWindowInSeconds :: Maybe Natural
topics :: Maybe (NonEmpty Text)
stateTransitionReason :: Maybe Text
state :: Maybe Text
startingPositionTimestamp :: Maybe POSIX
startingPosition :: Maybe EventSourcePosition
sourceAccessConfigurations :: Maybe [SourceAccessConfiguration]
selfManagedKafkaEventSourceConfig :: Maybe SelfManagedKafkaEventSourceConfig
selfManagedEventSource :: Maybe SelfManagedEventSource
queues :: Maybe (NonEmpty Text)
parallelizationFactor :: Maybe Natural
maximumRetryAttempts :: Maybe Int
maximumRecordAgeInSeconds :: Maybe Int
maximumBatchingWindowInSeconds :: Maybe Natural
lastProcessingResult :: Maybe Text
lastModified :: Maybe POSIX
functionResponseTypes :: Maybe [FunctionResponseType]
functionArn :: Maybe Text
filterCriteria :: Maybe FilterCriteria
eventSourceArn :: Maybe Text
destinationConfig :: Maybe DestinationConfig
bisectBatchOnFunctionError :: Maybe Bool
batchSize :: Maybe Natural
amazonManagedKafkaEventSourceConfig :: Maybe AmazonManagedKafkaEventSourceConfig
$sel:uuid:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
$sel:tumblingWindowInSeconds:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Natural
$sel:topics:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe (NonEmpty Text)
$sel:stateTransitionReason:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
$sel:state:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
$sel:startingPositionTimestamp:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe POSIX
$sel:startingPosition:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe EventSourcePosition
$sel:sourceAccessConfigurations:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration
-> Maybe [SourceAccessConfiguration]
$sel:selfManagedKafkaEventSourceConfig:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration
-> Maybe SelfManagedKafkaEventSourceConfig
$sel:selfManagedEventSource:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe SelfManagedEventSource
$sel:queues:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe (NonEmpty Text)
$sel:parallelizationFactor:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Natural
$sel:maximumRetryAttempts:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Int
$sel:maximumRecordAgeInSeconds:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Int
$sel:maximumBatchingWindowInSeconds:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Natural
$sel:lastProcessingResult:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
$sel:lastModified:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe POSIX
$sel:functionResponseTypes:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe [FunctionResponseType]
$sel:functionArn:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
$sel:filterCriteria:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe FilterCriteria
$sel:eventSourceArn:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Text
$sel:destinationConfig:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe DestinationConfig
$sel:bisectBatchOnFunctionError:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Bool
$sel:batchSize:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration -> Maybe Natural
$sel:amazonManagedKafkaEventSourceConfig:EventSourceMappingConfiguration' :: EventSourceMappingConfiguration
-> Maybe AmazonManagedKafkaEventSourceConfig
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe AmazonManagedKafkaEventSourceConfig
amazonManagedKafkaEventSourceConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
batchSize
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
bisectBatchOnFunctionError
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DestinationConfig
destinationConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
eventSourceArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe FilterCriteria
filterCriteria
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
functionArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [FunctionResponseType]
functionResponseTypes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModified
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
lastProcessingResult
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maximumBatchingWindowInSeconds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maximumRecordAgeInSeconds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maximumRetryAttempts
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
parallelizationFactor
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Text)
queues
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SelfManagedEventSource
selfManagedEventSource
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe SelfManagedKafkaEventSourceConfig
selfManagedKafkaEventSourceConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [SourceAccessConfiguration]
sourceAccessConfigurations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EventSourcePosition
startingPosition
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe POSIX
startingPositionTimestamp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
state
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Text
stateTransitionReason
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Text)
topics
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Natural
tumblingWindowInSeconds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
uuid