@Stability(value=Stable)
public static interface CfnBucket.QueueConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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.*;
QueueConfigurationProperty queueConfigurationProperty = QueueConfigurationProperty.builder()
.event("event")
.queue("queue")
// 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.QueueConfigurationProperty.Builder
A builder for
CfnBucket.QueueConfigurationProperty |
static class |
CfnBucket.QueueConfigurationProperty.Jsii$Proxy
An implementation for
CfnBucket.QueueConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.QueueConfigurationProperty.Builder |
builder() |
String |
getEvent()
The Amazon S3 bucket event about which you want to publish messages to Amazon SQS.
|
default Object |
getFilter()
The filtering rules that determine which objects trigger notifications.
|
String |
getQueue()
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.
|
@Stability(value=Stable) @NotNull String getEvent()
For more information, see Supported Event Types in the Amazon S3 User Guide .
@Stability(value=Stable) @NotNull String getQueue()
FIFO queues are not allowed when enabling an SQS queue as the event notification destination.
@Stability(value=Stable) @Nullable default 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. For more information, see Configuring event notifications using object key name filtering in the Amazon S3 User Guide .
@Stability(value=Stable) static CfnBucket.QueueConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.