AWS::Lambda::EventSourceMappingThe AWS::Lambda::EventSourceMapping resource creates a mapping between an event source and an LAMlong function. LAM reads items from the event source and triggers the function. For details about each event source type, see the following topics. In particular, each of the topics describes the required and optional parameters for the specific event source. + [Configuring a Dynamo DB stream as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb...
28 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
FunctionName | string | Required |
AmazonManagedKafkaEventSourceConfig | AmazonManagedKafkaEventSourceConfig | |
BatchSize | integer | |
BisectBatchOnFunctionError | boolean | |
DestinationConfig | DestinationConfig | |
DocumentDBEventSourceConfig | DocumentDBEventSourceConfig | |
Enabled | boolean | |
EventSourceArn | string | Create-only |
FilterCriteria | FilterCriteria | |
FunctionResponseTypes | Array<string> | |
KmsKeyArn | string | |
LoggingConfig | LoggingConfig | |
MaximumBatchingWindowInSeconds | integer | |
MaximumRecordAgeInSeconds | integer | |
MaximumRetryAttempts | integer | |
MetricsConfig | MetricsConfig | |
ParallelizationFactor | integer | |
ProvisionedPollerConfig | ProvisionedPollerConfig | |
Queues | Array<string> | |
ScalingConfig | ScalingConfig | |
SelfManagedEventSource | SelfManagedEventSource | Create-only |
SelfManagedKafkaEventSourceConfig | SelfManagedKafkaEventSourceConfig | |
SourceAccessConfigurations | Array<SourceAccessConfiguration> | |
StartingPosition | string | Create-only |
StartingPositionTimestamp | number | Create-only |
Tags | Array<Tag> | |
Topics | Array<string> | |
TumblingWindowInSeconds | integer |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
EventSourceMappingArn | string | - |
Id | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lambda::EventSourceMapping
Resources:
MyResource:
Type: AWS::Lambda::EventSourceMapping
Properties:
FunctionName: "my-functionname"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
lambda:CreateEventSourceMappinglambda:GetEventSourceMappinglambda:TagResourcekms:DescribeKeykms:GenerateDataKeykms:Decryptlambda:DeleteEventSourceMappinglambda:GetEventSourceMappingkms:Decryptlambda:ListEventSourceMappingslambda:GetEventSourceMappinglambda:ListTagskms:Decryptlambda:UpdateEventSourceMappinglambda:GetEventSourceMappinglambda:TagResourcelambda:UntagResourcekms:DescribeKeykms:GenerateDataKeykms:DecryptEverything you need to know about Lambda on one page. HD quality, print-friendly.
Download Free InfographicIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
EventSourceArnStartingPositionStartingPositionTimestampSelfManagedEventSource