The following error handling options are available only 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 expires
MaximumRetryAttempts – 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.
For information about which configuration parameters apply to each event source, see the following topics.
The operation conflicts with the resource's availability. For example, you tried to update an event source
mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.
Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.
For details about how to configure different event sources, see the following topics.
Amazon DynamoDB Streams
Amazon Kinesis
Amazon SQS
Amazon MQ and RabbitMQ
Amazon MSK
Apache Kafka
Amazon DocumentDB
The following error handling options are available only 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.For information about which configuration parameters apply to each event source, see the following topics.
Amazon DynamoDB Streams
Amazon Kinesis
Amazon SQS
Amazon MQ and RabbitMQ
Amazon MSK
Apache Kafka
Amazon DocumentDB
Example
Use a bare-bones client and the command you need to make an API call.
Param
UpdateEventSourceMappingCommandInput
Returns
UpdateEventSourceMappingCommandOutput
See
input
shape.response
shape.config
shape.Throws
InvalidParameterValueException (client fault)
One of the parameters in the request is not valid.
Throws
ResourceConflictException (client fault)
The resource already exists, or another operation is in progress.
Throws
ResourceInUseException (client fault)
The operation conflicts with the resource's availability. For example, you tried to update an event source mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.
Throws
ResourceNotFoundException (client fault)
The resource specified in the request does not exist.
Throws
ServiceException (server fault)
The Lambda service encountered an internal error.
Throws
TooManyRequestsException (client fault)
The request throughput limit was exceeded. For more information, see Lambda quotas.
Throws
LambdaServiceException
Base exception class for all service exceptions from Lambda service.