public static interface CfnBucket.TopicConfigurationProperty
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.s3.*; TopicConfigurationProperty topicConfigurationProperty = TopicConfigurationProperty.builder() .event("event") .topic("topic") // the properties below are optional .filter(NotificationFilterProperty.builder() .s3Key(S3KeyFilterProperty.builder() .rules(List.of(FilterRuleProperty.builder() .name("name") .value("value") .build())) .build()) .build()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnBucket.TopicConfigurationProperty.Builder
A builder for
CfnBucket.TopicConfigurationProperty |
static class |
CfnBucket.TopicConfigurationProperty.Jsii$Proxy
An implementation for
CfnBucket.TopicConfigurationProperty |
Modifier and Type | Method and Description |
---|---|
static CfnBucket.TopicConfigurationProperty.Builder |
builder() |
java.lang.String |
getEvent()
The Amazon S3 bucket event about which to send notifications.
|
default java.lang.Object |
getFilter()
The filtering rules that determine for which objects to send notifications.
|
java.lang.String |
getTopic()
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.
|
java.lang.String getEvent()
For more information, see Supported Event Types in the Amazon S3 User Guide .
java.lang.String getTopic()
default java.lang.Object getFilter()
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.
static CfnBucket.TopicConfigurationProperty.Builder builder()