LambdaAddEventSourceS3

Description

Creates a mapping between an S3 bucket (as event source) and a Lambda function (as event target).

Resources

AWS::Lambda::Permission

AWS::CloudFormation::CustomResource

Custom resource associated with the custom provisioning logic that CloudFormation will run during stack operations (Create, Update, and Delete).

AWS::Lambda::Function

Lambda function that calls PutBucketNotificationConfiguration S3 API.

AWS::IAM::Role

Custom resource lambda function execution role.

Input

S3Bucket

Logical ID of AWS::S3::Bucket resource (event source).

LambdaFunction

Logical ID of AWS::Lambda::Function resource (event target).

EventTypes The Amazon S3 bucket event for which to invoke the AWS Lambda function. For more information, see CloudFunctionConfiguration. Must be a valid Cloudformation syntax that resolves to a list of strings.

Output

None