public static final class CfnBucket.TopicConfigurationProperty.Builder
extends java.lang.Object
CfnBucket.TopicConfigurationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnBucket.TopicConfigurationProperty |
build()
Builds the configured instance.
|
CfnBucket.TopicConfigurationProperty.Builder |
event(java.lang.String event)
Sets the value of
CfnBucket.TopicConfigurationProperty.getEvent() |
CfnBucket.TopicConfigurationProperty.Builder |
filter(CfnBucket.NotificationFilterProperty filter)
Sets the value of
CfnBucket.TopicConfigurationProperty.getFilter() |
CfnBucket.TopicConfigurationProperty.Builder |
filter(IResolvable filter)
Sets the value of
CfnBucket.TopicConfigurationProperty.getFilter() |
CfnBucket.TopicConfigurationProperty.Builder |
topic(java.lang.String topic)
Sets the value of
CfnBucket.TopicConfigurationProperty.getTopic() |
public CfnBucket.TopicConfigurationProperty.Builder event(java.lang.String event)
CfnBucket.TopicConfigurationProperty.getEvent()
event
- The Amazon S3 bucket event about which to send notifications. This parameter is required.
For more information, see Supported Event Types in the Amazon S3 User Guide .this
public CfnBucket.TopicConfigurationProperty.Builder topic(java.lang.String topic)
CfnBucket.TopicConfigurationProperty.getTopic()
topic
- 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. This parameter is required.this
public CfnBucket.TopicConfigurationProperty.Builder filter(IResolvable filter)
CfnBucket.TopicConfigurationProperty.getFilter()
filter
- 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.this
public CfnBucket.TopicConfigurationProperty.Builder filter(CfnBucket.NotificationFilterProperty filter)
CfnBucket.TopicConfigurationProperty.getFilter()
filter
- 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.this
public CfnBucket.TopicConfigurationProperty build()
CfnBucket.TopicConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided