Class CfnBucket.TopicConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.TopicConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.TopicConfigurationProperty>
- Enclosing interface:
CfnBucket.TopicConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.TopicConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.TopicConfigurationProperty>
A builder for
CfnBucket.TopicConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBucket.TopicConfigurationProperty.getEvent()
filter
(IResolvable filter) Sets the value ofCfnBucket.TopicConfigurationProperty.getFilter()
Sets the value ofCfnBucket.TopicConfigurationProperty.getFilter()
Sets the value ofCfnBucket.TopicConfigurationProperty.getTopic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
event
Sets the value ofCfnBucket.TopicConfigurationProperty.getEvent()
- Parameters:
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 .- Returns:
this
-
topic
Sets the value ofCfnBucket.TopicConfigurationProperty.getTopic()
- Parameters:
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.- Returns:
this
-
filter
Sets the value ofCfnBucket.TopicConfigurationProperty.getFilter()
- Parameters:
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.- Returns:
this
-
filter
@Stability(Stable) public CfnBucket.TopicConfigurationProperty.Builder filter(CfnBucket.NotificationFilterProperty filter) Sets the value ofCfnBucket.TopicConfigurationProperty.getFilter()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.TopicConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.TopicConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-