openapi: 3.2.0 info: version: 2015-03-31 x-release: v4 title: AWS Lambda Event Source Mappings API description: 'Lambda Overview Lambda is a compute service that lets you run code without provisioning or managing servers.' x-logo: url: https://api.apis.guru/v2/cache/logo/https_twitter.com_awscloud_profile_image.png backgroundColor: '#FFFFFF' termsOfService: https://aws.amazon.com/service-terms/ contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: https://github.com/mermade/aws2openapi x-twitter: PermittedSoc license: name: Apache 2.0 License url: http://www.apache.org/licenses/ x-providerName: amazonaws.com x-serviceName: lambda x-origin: - contentType: application/json url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/lambda-2015-03-31.normal.json converter: url: https://github.com/mermade/aws2openapi version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct x-apisguru-categories: - cloud x-preferred: true servers: - url: http://lambda.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The AWS Lambda multi-region endpoint - url: https://lambda.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The AWS Lambda multi-region endpoint - url: http://lambda.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The AWS Lambda endpoint for China (Beijing) and China (Ningxia) - url: https://lambda.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The AWS Lambda endpoint for China (Beijing) and China (Ningxia) security: - hmac: [] tags: - name: Event Source Mappings paths: /2015-03-31/event-source-mappings/: parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: operationId: CreateEventSourceMapping description: 'Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function. 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 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. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka Amazon DocumentDB' responses: '202': description: Success content: application/json: schema: $ref: '#/components/schemas/EventSourceMappingConfiguration' '480': description: ServiceException content: application/json: schema: $ref: '#/components/schemas/ServiceException' '481': description: InvalidParameterValueException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterValueException' '482': description: ResourceConflictException content: application/json: schema: $ref: '#/components/schemas/ResourceConflictException' '483': description: TooManyRequestsException content: application/json: schema: $ref: '#/components/schemas/TooManyRequestsException' '484': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' parameters: [] requestBody: required: true content: application/json: schema: type: object required: - FunctionName properties: EventSourceArn: description:
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.
Amazon MQ – The ARN of the broker.
Amazon DocumentDB – The ARN of the DocumentDB change stream.
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.
type: string pattern: (arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))? minLength: 1 maxLength: 140 Enabled: description: 'When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
Default: True
' type: boolean 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 – Default 100. Max 10,000.
Amazon DynamoDB Streams – Default 100. Max 10,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.
Amazon MQ (ActiveMQ and RabbitMQ) – Default 100. Max 10,000.
DocumentDB – 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.
AT_TIMESTAMP is supported only for Amazon Kinesis streams and Amazon DocumentDB.
type: string
enum:
- TRIM_HORIZON
- LATEST
- AT_TIMESTAMP
StartingPositionTimestamp:
description: With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.
type: string
format: date-time
DestinationConfig:
description: A configuration object that specifies the destination of an event after Lambda processes it.
type: object
properties:
OnSuccess:
allOf:
- $ref: '#/components/schemas/OnSuccess'
- description: The destination configuration for successful invocations.
OnFailure:
allOf:
- $ref: '#/components/schemas/OnFailure'
- description: The destination configuration for failed invocations.
MaximumRecordAgeInSeconds:
description: (Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is infinite (-1).
type: integer
minimum: -1
maximum: 604800
BisectBatchOnFunctionError:
description: (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry.
type: boolean
MaximumRetryAttempts:
description: (Kinesis and DynamoDB Streams only) 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.
type: integer
minimum: -1
maximum: 10000
TumblingWindowInSeconds:
description: (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.
type: integer
minimum: 0
maximum: 900
Topics:
description: The name of the Kafka topic.
type: array
items:
$ref: '#/components/schemas/Topic'
minItems: 1
maxItems: 1
Queues:
description: ' (MQ) The name of the Amazon MQ broker destination queue to consume. '
type: array
items:
$ref: '#/components/schemas/Queue'
minItems: 1
maxItems: 1
SourceAccessConfigurations:
description: An array of authentication protocols or VPC components required to secure your event source.
type: array
items:
$ref: '#/components/schemas/SourceAccessConfiguration'
minItems: 0
maxItems: 22
SelfManagedEventSource:
description: The self-managed Apache Kafka cluster for your event source.
type: object
properties:
Endpoints:
allOf:
- $ref: '#/components/schemas/Endpoints'
- description: 'The list of bootstrap servers for your Kafka brokers in the following format: "KAFKA_BOOTSTRAP_SERVERS": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].'
FunctionResponseTypes:
description: (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type enums applied to the event source mapping.
type: array
items:
$ref: '#/components/schemas/FunctionResponseType'
minItems: 0
maxItems: 1
AmazonManagedKafkaEventSourceConfig:
description: Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
type: object
properties:
ConsumerGroupId:
allOf:
- $ref: '#/components/schemas/URI'
- description: The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see Customizable consumer group ID.
SelfManagedKafkaEventSourceConfig:
description: Specific configuration settings for a self-managed Apache Kafka event source.
type: object
properties:
ConsumerGroupId:
allOf:
- $ref: '#/components/schemas/URI'
- description: The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see Customizable consumer group ID.
ScalingConfig:
description: (Amazon SQS only) The scaling configuration for the event source. To remove the configuration, pass an empty value.
type: object
properties:
MaximumConcurrency:
allOf:
- $ref: '#/components/schemas/MaximumConcurrency'
- description: Limits the number of concurrent instances that the Amazon SQS event source can invoke.
DocumentDBEventSourceConfig:
description: ' Specific configuration settings for a DocumentDB event source. '
type: object
properties:
DatabaseName:
allOf:
- $ref: '#/components/schemas/DatabaseName'
- description: ' The name of the database to consume within the DocumentDB cluster. '
CollectionName:
allOf:
- $ref: '#/components/schemas/CollectionName'
- description: ' The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections. '
FullDocument:
allOf:
- $ref: '#/components/schemas/FullDocument'
- description: ' Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes. '
tags:
- Event Source Mappings
summary: Create event source mapping
x-summary-source: derived
get:
operationId: ListEventSourceMappings
description: Lists event source mappings. Specify an EventSourceArn to show only event source mappings for a single event source.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListEventSourceMappingsResponse'
'480':
description: ServiceException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceException'
'481':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'482':
description: InvalidParameterValueException
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidParameterValueException'
'483':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: EventSourceArn
in: query
required: false
description: 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.
Amazon MQ – The ARN of the broker.
Amazon DocumentDB – The ARN of the DocumentDB change stream.
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.
schema: type: string pattern: (arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))? minLength: 1 maxLength: 140 - name: Marker in: query required: false description: A pagination token returned by a previous call. schema: type: string - name: MaxItems in: query required: false description: The maximum number of event source mappings to return. Note that ListEventSourceMappings returns a maximum of 100 items in each response, even if you set the number higher. schema: type: integer minimum: 1 maximum: 10000 tags: - Event Source Mappings summary: List event source mappings x-summary-source: derived /2015-03-31/event-source-mappings/{UUID}: parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' delete: operationId: DeleteEventSourceMapping description: 'Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings. When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.' responses: '202': description: Success content: application/json: schema: $ref: '#/components/schemas/EventSourceMappingConfiguration' '480': description: ServiceException content: application/json: schema: $ref: '#/components/schemas/ServiceException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: InvalidParameterValueException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterValueException' '483': description: TooManyRequestsException content: application/json: schema: $ref: '#/components/schemas/TooManyRequestsException' '484': description: ResourceInUseException content: application/json: schema: $ref: '#/components/schemas/ResourceInUseException' parameters: - name: UUID in: path required: true description: The identifier of the event source mapping. schema: type: string tags: - Event Source Mappings summary: Delete event source mapping x-summary-source: derived get: operationId: GetEventSourceMapping description: Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/EventSourceMappingConfiguration' '480': description: ServiceException content: application/json: schema: $ref: '#/components/schemas/ServiceException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: InvalidParameterValueException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterValueException' '483': description: TooManyRequestsException content: application/json: schema: $ref: '#/components/schemas/TooManyRequestsException' parameters: - name: UUID in: path required: true description: The identifier of the event source mapping. schema: type: string tags: - Event Source Mappings summary: Get event source mapping x-summary-source: derived put: operationId: UpdateEventSourceMapping description: '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 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. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka Amazon DocumentDB' responses: '202': description: Success content: application/json: schema: $ref: '#/components/schemas/EventSourceMappingConfiguration' '480': description: ServiceException content: application/json: schema: $ref: '#/components/schemas/ServiceException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: InvalidParameterValueException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterValueException' '483': description: TooManyRequestsException content: application/json: schema: $ref: '#/components/schemas/TooManyRequestsException' '484': description: ResourceConflictException content: application/json: schema: $ref: '#/components/schemas/ResourceConflictException' '485': description: ResourceInUseException content: application/json: schema: $ref: '#/components/schemas/ResourceInUseException' parameters: - name: UUID in: path required: true description: The identifier of the event source mapping. schema: type: string requestBody: required: true content: application/json: schema: type: object properties: FunctionName: description: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.
type: string pattern: (arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))? minLength: 1 maxLength: 140 Enabled: description: 'When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
Default: True
' type: boolean 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 – Default 100. Max 10,000.
Amazon DynamoDB Streams – Default 100. Max 10,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.
Amazon MQ (ActiveMQ and RabbitMQ) – Default 100. Max 10,000.
DocumentDB – 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.
FilterCriteria object that defines an event filtering pattern. '
ParallelizationFactor:
type: integer
minimum: 1
maximum: 10
OnSuccess:
type: object
properties:
Destination:
allOf:
- $ref: '#/components/schemas/DestinationArn'
- description: The Amazon Resource Name (ARN) of the destination resource.
description: A destination for events that were processed successfully.
FunctionResponseTypeList:
type: array
items:
$ref: '#/components/schemas/FunctionResponseType'
minItems: 0
maxItems: 1
SourceAccessConfiguration:
type: object
properties:
Type:
allOf:
- $ref: '#/components/schemas/SourceAccessType'
- description: 'The type of authentication protocol, VPC components, or virtual host for your event source. For example: "Type":"SASL_SCRAM_512_AUTH".
BASIC_AUTH – (Amazon MQ) The Secrets Manager secret that stores your broker credentials.
BASIC_AUTH – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers.
VPC_SUBNET – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.
VPC_SECURITY_GROUP – (Self-managed Apache Kafka) The VPC security group used to manage access to your self-managed Apache Kafka brokers.
SASL_SCRAM_256_AUTH – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.
SASL_SCRAM_512_AUTH – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.
VIRTUAL_HOST –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. This property cannot be specified in an UpdateEventSourceMapping API call.
CLIENT_CERTIFICATE_TLS_AUTH – (Amazon MSK, self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers.
SERVER_ROOT_CA_CERTIFICATE – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers.
Type. For example: "URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName".'
description: To secure and define access to your event source, you can specify the authentication protocol, VPC components, or virtual host.
SelfManagedEventSource:
type: object
properties:
Endpoints:
allOf:
- $ref: '#/components/schemas/Endpoints'
- description: 'The list of bootstrap servers for your Kafka brokers in the following format: "KAFKA_BOOTSTRAP_SERVERS": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].'
description: The self-managed Apache Kafka cluster for your event source.
Queues:
type: array
items:
$ref: '#/components/schemas/Queue'
minItems: 1
maxItems: 1
ResourceNotFoundException: {}
EventSourceMappingsList:
type: array
items:
$ref: '#/components/schemas/EventSourceMappingConfiguration'
TumblingWindowInSeconds:
type: integer
minimum: 0
maximum: 900
BatchSize:
type: integer
minimum: 1
maximum: 10000
Arn:
type: string
pattern: arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)
OnFailure:
type: object
properties:
Destination:
allOf:
- $ref: '#/components/schemas/DestinationArn'
- description: The Amazon Resource Name (ARN) of the destination resource.
description: A destination for events that failed processing.
InvalidParameterValueException: {}
MaximumRecordAgeInSeconds:
type: integer
minimum: -1
maximum: 604800
EventSourcePosition:
type: string
enum:
- TRIM_HORIZON
- LATEST
- AT_TIMESTAMP
ResourceInUseException: {}
TooManyRequestsException: {}
DatabaseName:
type: string
pattern: '[^ /\.$\x22]*'
minLength: 1
maxLength: 63
ResourceConflictException: {}
BisectBatchOnFunctionError:
type: boolean
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.