AWS::S3::Bucket LambdaConfiguration - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::S3::Bucket LambdaConfiguration

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

Syntax

To declare this entity in your Amazon 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 Amazon Lambda function. For more information, see Supported Event Types in the Amazon S3 User Guide.

Required: Yes

Type: String

Update requires: No interruption

Filter

The filtering rules that determine which objects invoke the Amazon 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 Amazon Lambda function that Amazon S3 invokes when the specified event type occurs.

Required: Yes

Type: String

Update requires: No interruption