AWS CloudFormation
User Guide (Version )

AWS::S3::Bucket LambdaConfiguration

Describes the AWS Lambda functions to invoke and the events for which to invoke them.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Event" : String, "Filter" : NotificationFilter, "Function" : String }

YAML

Event: String Filter: NotificationFilter Function: String

Properties

Event

The Amazon S3 bucket event for which to invoke the AWS Lambda function. For more information, see Supported Event Types in the Amazon Simple Storage Service Developer Guide.

Required: Yes

Type: String

Update requires: No interruption

Filter

The filtering rules that determine which objects invoke the AWS Lambda function. For example, you can create a filter so that only image files with a .jpg extension invoke the function when they are added to the Amazon S3 bucket.

Required: No

Type: NotificationFilter

Update requires: No interruption

Function

The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs.

Required: Yes

Type: String

Update requires: No interruption

On this page: