AWS::S3::Bucket EventBridgeConfiguration
Amazon S3 can send events to Amazon EventBridge whenever certain events happen in your bucket, see Using EventBridge in the Amazon S3 User Guide.
Unlike other destinations, delivery of events to EventBridge can be either enabled or disabled for a bucket. If enabled, all events will be sent to EventBridge and you can use EventBridge rules to route events to additional targets. For more information, see What Is Amazon EventBridge in the Amazon EventBridge User Guide
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "EventBridgeEnabled" :
Boolean
}
YAML
EventBridgeEnabled:
Boolean
Properties
EventBridgeEnabled
-
Enables delivery of events to Amazon EventBridge.
Required: Yes
Type: Boolean
Update requires: No interruption
Examples
Enable EventBridgeConfiguration
The following example template shows an Amazon S3 bucket with a notification configuration with EventBridge enabled.
JSON
{ "Resources": { "S3Bucket": { "Type": "AWS::S3::Bucket", "Properties": { "NotificationConfiguration": { "EventBridgeConfiguration": { "EventBridgeEnabled": true } } } } } }
YAML
Resources: S3Bucket: Type: 'AWS::S3::Bucket' Properties: NotificationConfiguration: EventBridgeConfiguration: EventBridgeEnabled: true