Class CfnBucket.QueueConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.QueueConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.QueueConfigurationProperty>
- Enclosing interface:
CfnBucket.QueueConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.QueueConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.QueueConfigurationProperty>
A builder for
CfnBucket.QueueConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBucket.QueueConfigurationProperty.getEvent()
filter
(IResolvable filter) Sets the value ofCfnBucket.QueueConfigurationProperty.getFilter()
Sets the value ofCfnBucket.QueueConfigurationProperty.getFilter()
Sets the value ofCfnBucket.QueueConfigurationProperty.getQueue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
event
Sets the value ofCfnBucket.QueueConfigurationProperty.getEvent()
- Parameters:
event
- The Amazon S3 bucket event about which you want to publish messages to Amazon SQS. This parameter is required. For more information, see Supported Event Types in the Amazon S3 User Guide .- Returns:
this
-
queue
Sets the value ofCfnBucket.QueueConfigurationProperty.getQueue()
- Parameters:
queue
- The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. This parameter is required. FIFO queues are not allowed when enabling an SQS queue as the event notification destination.- Returns:
this
-
filter
Sets the value ofCfnBucket.QueueConfigurationProperty.getFilter()
- Parameters:
filter
- The filtering rules that determine which objects trigger 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. For more information, see Configuring event notifications using object key name filtering in the Amazon S3 User Guide .- Returns:
this
-
filter
@Stability(Stable) public CfnBucket.QueueConfigurationProperty.Builder filter(CfnBucket.NotificationFilterProperty filter) Sets the value ofCfnBucket.QueueConfigurationProperty.getFilter()
- Parameters:
filter
- The filtering rules that determine which objects trigger 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. For more information, see Configuring event notifications using object key name filtering in the Amazon S3 User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.QueueConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.QueueConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-