S3BucketAddSQSEventNotification

Description

Adds notifications feature to receive an SQS message in a specified SQS queue when certain events happen in a specified S3 bucket.

Resources

AWS::SQS::QueuePolicy

SQS queue policy to allow S3 to call SQS SendMessage, GetQueueAttributes, and GetQueueUrl APIs.

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

SQSQueue

Logical ID of AWS::SQS::Queue resource (event target).

EventTypes The Amazon S3 bucket event for which to send a message to the specified SQS queue. For more information, see CloudFunctionConfiguration. Must be a valid Cloudformation syntax that resolves to a list of strings. ## Output

None