S3BucketAddSNSEventNotification

Description

Adds notifications feature to receive an SNS notification in specified SNS topic when certain events happen in a specified S3 bucket.

Resources

AWS::SNS::TopicPolicy

SNS topic policy to allow S3 to call SNS Publish API.

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).

SNSTopic

Logical ID of AWS::SNS::Topic resource (event target).

EventTypes

The Amazon S3 bucket event for which to publish a message to the specified SNS topic. For more information, see CloudFunctionConfiguration.

Must be a valid Cloudformation syntax that resolves to a list of strings. ## Output None