interface TopicConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.S3.CfnBucketPropsMixin.TopicConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awss3#CfnBucketPropsMixin_TopicConfigurationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.TopicConfigurationProperty |
Python | aws_cdk.cfn_property_mixins.aws_s3.CfnBucketPropsMixin.TopicConfigurationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_s3 » CfnBucketPropsMixin » TopicConfigurationProperty |
A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from '@aws-cdk/cfn-property-mixins';
const topicConfigurationProperty: s3.CfnBucketPropsMixin.TopicConfigurationProperty = {
event: 'event',
filter: {
s3Key: {
rules: [{
name: 'name',
value: 'value',
}],
},
},
topic: 'topic',
};
Properties
| Name | Type | Description |
|---|---|---|
| event? | string | The Amazon S3 bucket event about which to send notifications. |
| filter? | IResolvable | Notification | The filtering rules that determine for which objects to send notifications. |
| topic? | string | ITopic | The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type. |
event?
Type:
string
(optional)
The Amazon S3 bucket event about which to send notifications.
For more information, see Supported Event Types in the Amazon S3 User Guide .
filter?
Type:
IResolvable | Notification
(optional)
The filtering rules that determine for which objects to send notifications.
For example, you can create a filter so that Amazon S3 sends notifications only when image files with a .jpg extension are added to the bucket.
topic?
Type:
string | ITopic
(optional)
The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.

.NET
Go
Java
Python
TypeScript