Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and triggers the function.
For details about each event source type, see the following topics.
- Configuring a Dynamo DB stream as an event source
- Configuring a Kinesis stream as an event source
- Configuring an Amazon SQS queue as an event source
- Configuring an MQ broker as an event source
- Configuring MSK as an event source
- Configuring Self-Managed Apache Kafka as an event source
The following error handling options are only available for stream sources (DynamoDB and Kinesis):
BisectBatchOnFunctionError
- If the function returns an error, split the batch in two and retry.DestinationConfig
- Send discarded records to an Amazon SQS queue or Amazon SNS topic.MaximumRecordAgeInSeconds
- Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expiresMaximumRetryAttempts
- Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.ParallelizationFactor
- Process multiple batches from each shard concurrently.
Synopsis
- data CreateEventSourceMapping = CreateEventSourceMapping' {
- eventSourceArn :: Maybe Text
- startingPositionTimestamp :: Maybe POSIX
- topics :: Maybe (NonEmpty Text)
- queues :: Maybe (NonEmpty Text)
- enabled :: Maybe Bool
- bisectBatchOnFunctionError :: Maybe Bool
- parallelizationFactor :: Maybe Natural
- maximumRetryAttempts :: Maybe Int
- batchSize :: Maybe Natural
- maximumBatchingWindowInSeconds :: Maybe Natural
- sourceAccessConfigurations :: Maybe [SourceAccessConfiguration]
- maximumRecordAgeInSeconds :: Maybe Int
- functionResponseTypes :: Maybe [FunctionResponseType]
- tumblingWindowInSeconds :: Maybe Natural
- selfManagedEventSource :: Maybe SelfManagedEventSource
- destinationConfig :: Maybe DestinationConfig
- startingPosition :: Maybe EventSourcePosition
- functionName :: Text
- newCreateEventSourceMapping :: Text -> CreateEventSourceMapping
- createEventSourceMapping_eventSourceArn :: Lens' CreateEventSourceMapping (Maybe Text)
- createEventSourceMapping_startingPositionTimestamp :: Lens' CreateEventSourceMapping (Maybe UTCTime)
- createEventSourceMapping_topics :: Lens' CreateEventSourceMapping (Maybe (NonEmpty Text))
- createEventSourceMapping_queues :: Lens' CreateEventSourceMapping (Maybe (NonEmpty Text))
- createEventSourceMapping_enabled :: Lens' CreateEventSourceMapping (Maybe Bool)
- createEventSourceMapping_bisectBatchOnFunctionError :: Lens' CreateEventSourceMapping (Maybe Bool)
- createEventSourceMapping_parallelizationFactor :: Lens' CreateEventSourceMapping (Maybe Natural)
- createEventSourceMapping_maximumRetryAttempts :: Lens' CreateEventSourceMapping (Maybe Int)
- createEventSourceMapping_batchSize :: Lens' CreateEventSourceMapping (Maybe Natural)
- createEventSourceMapping_maximumBatchingWindowInSeconds :: Lens' CreateEventSourceMapping (Maybe Natural)
- createEventSourceMapping_sourceAccessConfigurations :: Lens' CreateEventSourceMapping (Maybe [SourceAccessConfiguration])
- createEventSourceMapping_maximumRecordAgeInSeconds :: Lens' CreateEventSourceMapping (Maybe Int)
- createEventSourceMapping_functionResponseTypes :: Lens' CreateEventSourceMapping (Maybe [FunctionResponseType])
- createEventSourceMapping_tumblingWindowInSeconds :: Lens' CreateEventSourceMapping (Maybe Natural)
- createEventSourceMapping_selfManagedEventSource :: Lens' CreateEventSourceMapping (Maybe SelfManagedEventSource)
- createEventSourceMapping_destinationConfig :: Lens' CreateEventSourceMapping (Maybe DestinationConfig)
- createEventSourceMapping_startingPosition :: Lens' CreateEventSourceMapping (Maybe EventSourcePosition)
- createEventSourceMapping_functionName :: Lens' CreateEventSourceMapping Text
- data EventSourceMappingConfiguration = EventSourceMappingConfiguration' {
- eventSourceArn :: Maybe Text
- state :: Maybe Text
- startingPositionTimestamp :: Maybe POSIX
- functionArn :: Maybe Text
- topics :: Maybe (NonEmpty Text)
- queues :: Maybe (NonEmpty Text)
- bisectBatchOnFunctionError :: Maybe Bool
- uuid :: Maybe Text
- parallelizationFactor :: Maybe Natural
- lastProcessingResult :: Maybe Text
- maximumRetryAttempts :: Maybe Int
- batchSize :: Maybe Natural
- stateTransitionReason :: Maybe Text
- maximumBatchingWindowInSeconds :: Maybe Natural
- sourceAccessConfigurations :: Maybe [SourceAccessConfiguration]
- maximumRecordAgeInSeconds :: Maybe Int
- functionResponseTypes :: Maybe [FunctionResponseType]
- tumblingWindowInSeconds :: Maybe Natural
- selfManagedEventSource :: Maybe SelfManagedEventSource
- lastModified :: Maybe POSIX
- destinationConfig :: Maybe DestinationConfig
- startingPosition :: Maybe EventSourcePosition
- newEventSourceMappingConfiguration :: EventSourceMappingConfiguration
- eventSourceMappingConfiguration_eventSourceArn :: Lens' EventSourceMappingConfiguration (Maybe Text)
- eventSourceMappingConfiguration_state :: Lens' EventSourceMappingConfiguration (Maybe Text)
- eventSourceMappingConfiguration_startingPositionTimestamp :: Lens' EventSourceMappingConfiguration (Maybe UTCTime)
- eventSourceMappingConfiguration_functionArn :: Lens' EventSourceMappingConfiguration (Maybe Text)
- eventSourceMappingConfiguration_topics :: Lens' EventSourceMappingConfiguration (Maybe (NonEmpty Text))
- eventSourceMappingConfiguration_queues :: Lens' EventSourceMappingConfiguration (Maybe (NonEmpty Text))
- eventSourceMappingConfiguration_bisectBatchOnFunctionError :: Lens' EventSourceMappingConfiguration (Maybe Bool)
- eventSourceMappingConfiguration_uuid :: Lens' EventSourceMappingConfiguration (Maybe Text)
- eventSourceMappingConfiguration_parallelizationFactor :: Lens' EventSourceMappingConfiguration (Maybe Natural)
- eventSourceMappingConfiguration_lastProcessingResult :: Lens' EventSourceMappingConfiguration (Maybe Text)
- eventSourceMappingConfiguration_maximumRetryAttempts :: Lens' EventSourceMappingConfiguration (Maybe Int)
- eventSourceMappingConfiguration_batchSize :: Lens' EventSourceMappingConfiguration (Maybe Natural)
- eventSourceMappingConfiguration_stateTransitionReason :: Lens' EventSourceMappingConfiguration (Maybe Text)
- eventSourceMappingConfiguration_maximumBatchingWindowInSeconds :: Lens' EventSourceMappingConfiguration (Maybe Natural)
- eventSourceMappingConfiguration_sourceAccessConfigurations :: Lens' EventSourceMappingConfiguration (Maybe [SourceAccessConfiguration])
- eventSourceMappingConfiguration_maximumRecordAgeInSeconds :: Lens' EventSourceMappingConfiguration (Maybe Int)
- eventSourceMappingConfiguration_functionResponseTypes :: Lens' EventSourceMappingConfiguration (Maybe [FunctionResponseType])
- eventSourceMappingConfiguration_tumblingWindowInSeconds :: Lens' EventSourceMappingConfiguration (Maybe Natural)
- eventSourceMappingConfiguration_selfManagedEventSource :: Lens' EventSourceMappingConfiguration (Maybe SelfManagedEventSource)
- eventSourceMappingConfiguration_lastModified :: Lens' EventSourceMappingConfiguration (Maybe UTCTime)
- eventSourceMappingConfiguration_destinationConfig :: Lens' EventSourceMappingConfiguration (Maybe DestinationConfig)
- eventSourceMappingConfiguration_startingPosition :: Lens' EventSourceMappingConfiguration (Maybe EventSourcePosition)
Creating a Request
data CreateEventSourceMapping Source #
See: newCreateEventSourceMapping
smart constructor.
CreateEventSourceMapping' | |
|
Instances
newCreateEventSourceMapping Source #
Create a value of CreateEventSourceMapping
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:eventSourceArn:CreateEventSourceMapping'
, createEventSourceMapping_eventSourceArn
- The Amazon Resource Name (ARN) of the event source.
- Amazon Kinesis - The ARN of the data stream or a stream consumer.
- Amazon DynamoDB Streams - The ARN of the stream.
- Amazon Simple Queue Service - The ARN of the queue.
- Amazon Managed Streaming for Apache Kafka - The ARN of the cluster.
$sel:startingPositionTimestamp:CreateEventSourceMapping'
, createEventSourceMapping_startingPositionTimestamp
- With StartingPosition
set to AT_TIMESTAMP
, the time from which to
start reading.
$sel:topics:CreateEventSourceMapping'
, createEventSourceMapping_topics
- The name of the Kafka topic.
$sel:queues:CreateEventSourceMapping'
, createEventSourceMapping_queues
- (MQ) The name of the Amazon MQ broker destination queue to consume.
$sel:enabled:CreateEventSourceMapping'
, createEventSourceMapping_enabled
- When true, the event source mapping is active. When false, Lambda pauses
polling and invocation.
Default: True
$sel:bisectBatchOnFunctionError:CreateEventSourceMapping'
, createEventSourceMapping_bisectBatchOnFunctionError
- (Streams only) If the function returns an error, split the batch in two
and retry.
$sel:parallelizationFactor:CreateEventSourceMapping'
, createEventSourceMapping_parallelizationFactor
- (Streams only) The number of batches to process from each shard
concurrently.
$sel:maximumRetryAttempts:CreateEventSourceMapping'
, createEventSourceMapping_maximumRetryAttempts
- (Streams only) Discard records after the specified number of retries.
The default value is infinite (-1). When set to infinite (-1), failed
records will be retried until the record expires.
$sel:batchSize:CreateEventSourceMapping'
, createEventSourceMapping_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).
- Amazon Kinesis - Default 100. Max 10,000.
- Amazon DynamoDB Streams - Default 100. Max 1,000.
- Amazon Simple Queue Service - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
- Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.
- Self-Managed Apache Kafka - Default 100. Max 10,000.
$sel:maximumBatchingWindowInSeconds:CreateEventSourceMapping'
, createEventSourceMapping_maximumBatchingWindowInSeconds
- (Streams and Amazon SQS standard queues) The maximum amount of time, in
seconds, that Lambda spends gathering records before invoking the
function.
Default: 0
Related setting: When you set BatchSize
to a value greater than 10,
you must set MaximumBatchingWindowInSeconds
to at least 1.
$sel:sourceAccessConfigurations:CreateEventSourceMapping'
, createEventSourceMapping_sourceAccessConfigurations
- An array of authentication protocols or VPC components required to
secure your event source.
$sel:maximumRecordAgeInSeconds:CreateEventSourceMapping'
, createEventSourceMapping_maximumRecordAgeInSeconds
- (Streams only) Discard records older than the specified age. The default
value is infinite (-1).
$sel:functionResponseTypes:CreateEventSourceMapping'
, createEventSourceMapping_functionResponseTypes
- (Streams only) A list of current response type enums applied to the
event source mapping.
$sel:tumblingWindowInSeconds:CreateEventSourceMapping'
, createEventSourceMapping_tumblingWindowInSeconds
- (Streams only) The duration in seconds of a processing window. The range
is between 1 second up to 900 seconds.
$sel:selfManagedEventSource:CreateEventSourceMapping'
, createEventSourceMapping_selfManagedEventSource
- The Self-Managed Apache Kafka cluster to send records.
$sel:destinationConfig:CreateEventSourceMapping'
, createEventSourceMapping_destinationConfig
- (Streams only) An Amazon SQS queue or Amazon SNS topic destination for
discarded records.
$sel:startingPosition:CreateEventSourceMapping'
, createEventSourceMapping_startingPosition
- The position in a stream from which to start reading. Required for
Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
AT_TIMESTAMP
is only supported for Amazon Kinesis streams.
$sel:functionName:CreateEventSourceMapping'
, createEventSourceMapping_functionName
- The name of the Lambda function.
Name formats
- Function name -
MyFunction
. - Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction
. - Version or Alias ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
. - Partial ARN -
123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
Request Lenses
createEventSourceMapping_eventSourceArn :: Lens' CreateEventSourceMapping (Maybe Text) Source #
The Amazon Resource Name (ARN) of the event source.
- Amazon Kinesis - The ARN of the data stream or a stream consumer.
- Amazon DynamoDB Streams - The ARN of the stream.
- Amazon Simple Queue Service - The ARN of the queue.
- Amazon Managed Streaming for Apache Kafka - The ARN of the cluster.
createEventSourceMapping_startingPositionTimestamp :: Lens' CreateEventSourceMapping (Maybe UTCTime) Source #
With StartingPosition
set to AT_TIMESTAMP
, the time from which to
start reading.
createEventSourceMapping_topics :: Lens' CreateEventSourceMapping (Maybe (NonEmpty Text)) Source #
The name of the Kafka topic.
createEventSourceMapping_queues :: Lens' CreateEventSourceMapping (Maybe (NonEmpty Text)) Source #
(MQ) The name of the Amazon MQ broker destination queue to consume.
createEventSourceMapping_enabled :: Lens' CreateEventSourceMapping (Maybe Bool) Source #
When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
Default: True
createEventSourceMapping_bisectBatchOnFunctionError :: Lens' CreateEventSourceMapping (Maybe Bool) Source #
(Streams only) If the function returns an error, split the batch in two and retry.
createEventSourceMapping_parallelizationFactor :: Lens' CreateEventSourceMapping (Maybe Natural) Source #
(Streams only) The number of batches to process from each shard concurrently.
createEventSourceMapping_maximumRetryAttempts :: Lens' CreateEventSourceMapping (Maybe Int) Source #
(Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records will be retried until the record expires.
createEventSourceMapping_batchSize :: Lens' CreateEventSourceMapping (Maybe Natural) Source #
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).
- Amazon Kinesis - Default 100. Max 10,000.
- Amazon DynamoDB Streams - Default 100. Max 1,000.
- Amazon Simple Queue Service - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
- Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.
- Self-Managed Apache Kafka - Default 100. Max 10,000.
createEventSourceMapping_maximumBatchingWindowInSeconds :: Lens' CreateEventSourceMapping (Maybe Natural) Source #
(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
Default: 0
Related setting: When you set BatchSize
to a value greater than 10,
you must set MaximumBatchingWindowInSeconds
to at least 1.
createEventSourceMapping_sourceAccessConfigurations :: Lens' CreateEventSourceMapping (Maybe [SourceAccessConfiguration]) Source #
An array of authentication protocols or VPC components required to secure your event source.
createEventSourceMapping_maximumRecordAgeInSeconds :: Lens' CreateEventSourceMapping (Maybe Int) Source #
(Streams only) Discard records older than the specified age. The default value is infinite (-1).
createEventSourceMapping_functionResponseTypes :: Lens' CreateEventSourceMapping (Maybe [FunctionResponseType]) Source #
(Streams only) A list of current response type enums applied to the event source mapping.
createEventSourceMapping_tumblingWindowInSeconds :: Lens' CreateEventSourceMapping (Maybe Natural) Source #
(Streams only) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.
createEventSourceMapping_selfManagedEventSource :: Lens' CreateEventSourceMapping (Maybe SelfManagedEventSource) Source #
The Self-Managed Apache Kafka cluster to send records.
createEventSourceMapping_destinationConfig :: Lens' CreateEventSourceMapping (Maybe DestinationConfig) Source #
(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
createEventSourceMapping_startingPosition :: Lens' CreateEventSourceMapping (Maybe EventSourcePosition) Source #
The position in a stream from which to start reading. Required for
Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
AT_TIMESTAMP
is only supported for Amazon Kinesis streams.
createEventSourceMapping_functionName :: Lens' CreateEventSourceMapping Text Source #
The name of the Lambda function.
Name formats
- Function name -
MyFunction
. - Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction
. - Version or Alias ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
. - Partial ARN -
123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
Destructuring the Response
data EventSourceMappingConfiguration Source #
A mapping between an Amazon Web Services resource and a Lambda function. For details, see CreateEventSourceMapping.
See: newEventSourceMappingConfiguration
smart constructor.
EventSourceMappingConfiguration' | |
|
Instances
newEventSourceMappingConfiguration :: EventSourceMappingConfiguration Source #
Create a value of EventSourceMappingConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:eventSourceArn:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_eventSourceArn
- The Amazon Resource Name (ARN) of the event source.
$sel:state:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_state
- The state of the event source mapping. It can be one of the following:
Creating
, Enabling
, Enabled
, Disabling
, Disabled
, Updating
,
or Deleting
.
$sel:startingPositionTimestamp:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_startingPositionTimestamp
- With StartingPosition
set to AT_TIMESTAMP
, the time from which to
start reading.
$sel:functionArn:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_functionArn
- The ARN of the Lambda function.
$sel:topics:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_topics
- The name of the Kafka topic.
$sel:queues:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_queues
- (Amazon MQ) The name of the Amazon MQ broker destination queue to
consume.
$sel:bisectBatchOnFunctionError:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_bisectBatchOnFunctionError
- (Streams only) If the function returns an error, split the batch in two
and retry. The default value is false.
$sel:uuid:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_uuid
- The identifier of the event source mapping.
$sel:parallelizationFactor:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_parallelizationFactor
- (Streams only) The number of batches to process concurrently from each
shard. The default value is 1.
$sel:lastProcessingResult:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_lastProcessingResult
- The result of the last Lambda invocation of your function.
$sel:maximumRetryAttempts:EventSourceMappingConfiguration'
, 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.
$sel:batchSize:EventSourceMappingConfiguration'
, 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.
$sel:stateTransitionReason:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_stateTransitionReason
- Indicates whether a user or Lambda made the last change to the event
source mapping.
$sel:maximumBatchingWindowInSeconds:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_maximumBatchingWindowInSeconds
- (Streams and Amazon SQS standard queues) The maximum amount of time, in
seconds, that Lambda spends gathering records before invoking the
function.
Default: 0
Related setting: When you set BatchSize
to a value greater than 10,
you must set MaximumBatchingWindowInSeconds
to at least 1.
$sel:sourceAccessConfigurations:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_sourceAccessConfigurations
- An array of the authentication protocol, VPC components, or virtual host
to secure and define your event source.
$sel:maximumRecordAgeInSeconds:EventSourceMappingConfiguration'
, 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.
$sel:functionResponseTypes:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_functionResponseTypes
- (Streams only) A list of current response type enums applied to the
event source mapping.
$sel:tumblingWindowInSeconds:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_tumblingWindowInSeconds
- (Streams only) The duration in seconds of a processing window. The range
is 1–900 seconds.
$sel:selfManagedEventSource:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_selfManagedEventSource
- The self-managed Apache Kafka cluster for your event source.
$sel:lastModified:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_lastModified
- The date that the event source mapping was last updated or that its
state changed.
$sel:destinationConfig:EventSourceMappingConfiguration'
, eventSourceMappingConfiguration_destinationConfig
- (Streams only) An Amazon SQS queue or Amazon SNS topic destination for
discarded records.
$sel:startingPosition:EventSourceMappingConfiguration'
, 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.
Response Lenses
eventSourceMappingConfiguration_eventSourceArn :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The Amazon Resource Name (ARN) of the event source.
eventSourceMappingConfiguration_state :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The state of the event source mapping. It can be one of the following:
Creating
, Enabling
, Enabled
, Disabling
, Disabled
, Updating
,
or Deleting
.
eventSourceMappingConfiguration_startingPositionTimestamp :: Lens' EventSourceMappingConfiguration (Maybe UTCTime) Source #
With StartingPosition
set to AT_TIMESTAMP
, the time from which to
start reading.
eventSourceMappingConfiguration_functionArn :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The ARN of the Lambda function.
eventSourceMappingConfiguration_topics :: Lens' EventSourceMappingConfiguration (Maybe (NonEmpty Text)) Source #
The name of the Kafka topic.
eventSourceMappingConfiguration_queues :: Lens' EventSourceMappingConfiguration (Maybe (NonEmpty Text)) Source #
(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
eventSourceMappingConfiguration_bisectBatchOnFunctionError :: Lens' EventSourceMappingConfiguration (Maybe Bool) Source #
(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
eventSourceMappingConfiguration_uuid :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The identifier of the event source mapping.
eventSourceMappingConfiguration_parallelizationFactor :: Lens' EventSourceMappingConfiguration (Maybe Natural) Source #
(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
eventSourceMappingConfiguration_lastProcessingResult :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The result of the last Lambda invocation of your function.
eventSourceMappingConfiguration_maximumRetryAttempts :: Lens' EventSourceMappingConfiguration (Maybe Int) Source #
(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_batchSize :: Lens' EventSourceMappingConfiguration (Maybe Natural) Source #
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_stateTransitionReason :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
Indicates whether a user or Lambda made the last change to the event source mapping.
eventSourceMappingConfiguration_maximumBatchingWindowInSeconds :: Lens' EventSourceMappingConfiguration (Maybe Natural) Source #
(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
Default: 0
Related setting: When you set BatchSize
to a value greater than 10,
you must set MaximumBatchingWindowInSeconds
to at least 1.
eventSourceMappingConfiguration_sourceAccessConfigurations :: Lens' EventSourceMappingConfiguration (Maybe [SourceAccessConfiguration]) Source #
An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
eventSourceMappingConfiguration_maximumRecordAgeInSeconds :: Lens' EventSourceMappingConfiguration (Maybe Int) Source #
(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_functionResponseTypes :: Lens' EventSourceMappingConfiguration (Maybe [FunctionResponseType]) Source #
(Streams only) A list of current response type enums applied to the event source mapping.
eventSourceMappingConfiguration_tumblingWindowInSeconds :: Lens' EventSourceMappingConfiguration (Maybe Natural) Source #
(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.
eventSourceMappingConfiguration_selfManagedEventSource :: Lens' EventSourceMappingConfiguration (Maybe SelfManagedEventSource) Source #
The self-managed Apache Kafka cluster for your event source.
eventSourceMappingConfiguration_lastModified :: Lens' EventSourceMappingConfiguration (Maybe UTCTime) Source #
The date that the event source mapping was last updated or that its state changed.
eventSourceMappingConfiguration_destinationConfig :: Lens' EventSourceMappingConfiguration (Maybe DestinationConfig) Source #
(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
eventSourceMappingConfiguration_startingPosition :: Lens' EventSourceMappingConfiguration (Maybe EventSourcePosition) Source #
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.