{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/UpdateEventSourceMappingRequest", "title": "UpdateEventSourceMappingRequest", "type": "object", "properties": { "FunctionName": { "allOf": [ { "$ref": "#/components/schemas/FunctionName" }, { "description": "
The name of the Lambda function.
Name formats
Function name \u00e2\u20ac\u201c MyFunction.
Function ARN \u00e2\u20ac\u201c arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Version or Alias ARN \u00e2\u20ac\u201c arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.
Partial ARN \u00e2\u20ac\u201c 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.
" } ] }, "Enabled": { "allOf": [ { "$ref": "#/components/schemas/Enabled" }, { "description": "When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
Default: True
" } ] }, "BatchSize": { "allOf": [ { "$ref": "#/components/schemas/BatchSize" }, { "description": "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 \u00e2\u20ac\u201c Default 100. Max 10,000.
Amazon DynamoDB Streams \u00e2\u20ac\u201c Default 100. Max 10,000.
Amazon Simple Queue Service \u00e2\u20ac\u201c Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
Amazon Managed Streaming for Apache Kafka \u00e2\u20ac\u201c Default 100. Max 10,000.
Self-managed Apache Kafka \u00e2\u20ac\u201c Default 100. Max 10,000.
Amazon MQ (ActiveMQ and RabbitMQ) \u00e2\u20ac\u201c Default 100. Max 10,000.
DocumentDB \u00e2\u20ac\u201c Default 100. Max 10,000.
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, Amazon MQ, and DocumentDB 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.