{-# 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 #-}
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
data EventSourceMappingConfiguration = EventSourceMappingConfiguration'
{
EventSourceMappingConfiguration
-> Maybe AmazonManagedKafkaEventSourceConfig
amazonManagedKafkaEventSourceConfig :: Prelude.Maybe AmazonManagedKafkaEventSourceConfig,
EventSourceMappingConfiguration -> Maybe Natural
batchSize :: Prelude.Maybe Prelude.Natural,
EventSourceMappingConfiguration -> Maybe Bool
bisectBatchOnFunctionError :: Prelude.Maybe Prelude.Bool,
EventSourceMappingConfiguration -> Maybe DestinationConfig
destinationConfig :: Prelude.Maybe DestinationConfig,
EventSourceMappingConfiguration -> Maybe Text
eventSourceArn :: Prelude.Maybe Prelude.Text,
EventSourceMappingConfiguration -> Maybe FilterCriteria
filterCriteria :: Prelude.Maybe FilterCriteria,
EventSourceMappingConfiguration -> Maybe Text
functionArn :: Prelude.Maybe Prelude.Text,
EventSourceMappingConfiguration -> Maybe [FunctionResponseType]
functionResponseTypes :: Prelude.Maybe [FunctionResponseType],
EventSourceMappingConfiguration -> Maybe POSIX
lastModified :: Prelude.Maybe Data.POSIX,
EventSourceMappingConfiguration -> Maybe Text
lastProcessingResult :: Prelude.Maybe Prelude.Text,
EventSourceMappingConfiguration -> Maybe Natural
maximumBatchingWindowInSeconds :: Prelude.Maybe Prelude.Natural,
EventSourceMappingConfiguration -> Maybe Int
maximumRecordAgeInSeconds :: Prelude.Maybe Prelude.Int,
EventSourceMappingConfiguration -> Maybe Int
maximumRetryAttempts :: Prelude.Maybe Prelude.Int,
EventSourceMappingConfiguration -> Maybe Natural
parallelizationFactor :: Prelude.Maybe Prelude.Natural,
EventSourceMappingConfiguration -> Maybe (NonEmpty Text)
queues :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
EventSourceMappingConfiguration -> Maybe SelfManagedEventSource
selfManagedEventSource :: Prelude.Maybe SelfManagedEventSource,
EventSourceMappingConfiguration
-> Maybe SelfManagedKafkaEventSourceConfig
selfManagedKafkaEventSourceConfig :: Prelude.Maybe SelfManagedKafkaEventSourceConfig,
EventSourceMappingConfiguration
-> Maybe [SourceAccessConfiguration]
sourceAccessConfigurations :: Prelude.Maybe [SourceAccessConfiguration],
EventSourceMappingConfiguration -> Maybe EventSourcePosition
startingPosition :: Prelude.Maybe EventSourcePosition,
EventSourceMappingConfiguration -> Maybe POSIX
startingPositionTimestamp :: Prelude.Maybe Data.POSIX,
EventSourceMappingConfiguration -> Maybe Text
state :: Prelude.Maybe Prelude.Text,
EventSourceMappingConfiguration -> Maybe Text
stateTransitionReason :: Prelude.Maybe Prelude.Text,
EventSourceMappingConfiguration -> Maybe (NonEmpty Text)
topics :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
EventSourceMappingConfiguration -> Maybe Natural
tumblingWindowInSeconds :: Prelude.Maybe Prelude.Natural,
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)
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
}
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)
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)
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)
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)
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)
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)
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)
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
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
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)
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)
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)
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)
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)
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
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)
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)
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
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)
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
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)
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)
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
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)
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