interface TopicConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3.Mixins.CfnBucketPropsMixin.TopicConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3/mixins#CfnBucketPropsMixin_TopicConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.s3.mixins.CfnBucketPropsMixin.TopicConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_s3.mixins.CfnBucketPropsMixin.TopicConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_s3 » mixins » 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 { mixins as s3_mixins } from '@aws-cdk/mixins-preview/aws-s3';
const topicConfigurationProperty: s3_mixins.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 | 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
(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