public static final class CfnBucket.QueueConfigurationProperty.Builder
extends java.lang.Object
CfnBucket.QueueConfigurationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnBucket.QueueConfigurationProperty |
build()
Builds the configured instance.
|
CfnBucket.QueueConfigurationProperty.Builder |
event(java.lang.String event)
Sets the value of
CfnBucket.QueueConfigurationProperty.getEvent() |
CfnBucket.QueueConfigurationProperty.Builder |
filter(CfnBucket.NotificationFilterProperty filter)
Sets the value of
CfnBucket.QueueConfigurationProperty.getFilter() |
CfnBucket.QueueConfigurationProperty.Builder |
filter(IResolvable filter)
Sets the value of
CfnBucket.QueueConfigurationProperty.getFilter() |
CfnBucket.QueueConfigurationProperty.Builder |
queue(java.lang.String queue)
Sets the value of
CfnBucket.QueueConfigurationProperty.getQueue() |
public CfnBucket.QueueConfigurationProperty.Builder event(java.lang.String event)
CfnBucket.QueueConfigurationProperty.getEvent()
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 .this
public CfnBucket.QueueConfigurationProperty.Builder queue(java.lang.String queue)
CfnBucket.QueueConfigurationProperty.getQueue()
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.this
public CfnBucket.QueueConfigurationProperty.Builder filter(IResolvable filter)
CfnBucket.QueueConfigurationProperty.getFilter()
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 .this
public CfnBucket.QueueConfigurationProperty.Builder filter(CfnBucket.NotificationFilterProperty filter)
CfnBucket.QueueConfigurationProperty.getFilter()
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 .this
public CfnBucket.QueueConfigurationProperty build()
CfnBucket.QueueConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided