{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/EventSourceMappingConfiguration",
"title": "EventSourceMappingConfiguration",
"type": "object",
"properties": {
"UUID": {
"allOf": [
{
"$ref": "#/components/schemas/String"
},
{
"description": "The identifier of the event source mapping."
}
]
},
"StartingPosition": {
"allOf": [
{
"$ref": "#/components/schemas/EventSourcePosition"
},
{
"description": "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 and Amazon DocumentDB."
}
]
},
"StartingPositionTimestamp": {
"allOf": [
{
"$ref": "#/components/schemas/Date"
},
{
"description": "With StartingPosition set to AT_TIMESTAMP, the time from which to start reading."
}
]
},
"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).
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.
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.
Creating, Enabling, Enabled, Disabling, Disabled, Updating, or Deleting."
}
]
},
"StateTransitionReason": {
"allOf": [
{
"$ref": "#/components/schemas/String"
},
{
"description": "Indicates whether a user or Lambda made the last change to the event source mapping."
}
]
},
"DestinationConfig": {
"allOf": [
{
"$ref": "#/components/schemas/DestinationConfig"
},
{
"description": "(Kinesis and DynamoDB Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records."
}
]
},
"Topics": {
"allOf": [
{
"$ref": "#/components/schemas/Topics"
},
{
"description": "The name of the Kafka topic."
}
]
},
"Queues": {
"allOf": [
{
"$ref": "#/components/schemas/Queues"
},
{
"description": " (Amazon MQ) The name of the Amazon MQ broker destination queue to consume."
}
]
},
"SourceAccessConfigurations": {
"allOf": [
{
"$ref": "#/components/schemas/SourceAccessConfigurations"
},
{
"description": "An array of the authentication protocol, VPC components, or virtual host to secure and define your event source."
}
]
},
"SelfManagedEventSource": {
"allOf": [
{
"$ref": "#/components/schemas/SelfManagedEventSource"
},
{
"description": "The self-managed Apache Kafka cluster for your event source."
}
]
},
"MaximumRecordAgeInSeconds": {
"allOf": [
{
"$ref": "#/components/schemas/MaximumRecordAgeInSeconds"
},
{
"description": "(Kinesis and DynamoDB 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.
The minimum value that can be set is 60 seconds.