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.curl --location -g --request PUT 'http://lambda.{region}.amazonaws.com/2015-03-31/event-source-mappings/' \
--header 'Content-Type: application/json' \
--data-raw '{
"FunctionName": "string",
"Enabled": true,
"BatchSize": 1,
"MaximumBatchingWindowInSeconds": 0,
"DestinationConfig": {
"OnSuccess": {
"Destination": "string"
},
"OnFailure": {
"Destination": "string"
}
},
"MaximumRecordAgeInSeconds": -1,
"BisectBatchOnFunctionError": true,
"MaximumRetryAttempts": -1,
"ParallelizationFactor": 1,
"SourceAccessConfigurations": [
{
"Type": "BASIC_AUTH",
"URI": "string"
}
],
"TumblingWindowInSeconds": 0,
"FunctionResponseTypes": [
"ReportBatchItemFailures"
]
}'
{
"UUID": "string",
"StartingPosition": "TRIM_HORIZON",
"StartingPositionTimestamp": "string",
"BatchSize": 0,
"MaximumBatchingWindowInSeconds": 0,
"ParallelizationFactor": 0,
"EventSourceArn": "string",
"FunctionArn": "string",
"LastModified": "string",
"LastProcessingResult": "string",
"State": "string",
"StateTransitionReason": "string",
"DestinationConfig": {
"OnSuccess": {
"Destination": "string"
},
"OnFailure": {
"Destination": "string"
}
},
"Topics": [],
"Queues": [],
"SourceAccessConfigurations": [],
"SelfManagedEventSource": {
"Endpoints": {
"property1": [
"string"
],
"property2": [
"string"
]
}
},
"MaximumRecordAgeInSeconds": 0,
"BisectBatchOnFunctionError": true,
"MaximumRetryAttempts": 0,
"TumblingWindowInSeconds": 0,
"FunctionResponseTypes": []
}