Interface CfnBucketPropsMixin.TopicConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBucketPropsMixin.TopicConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnBucketPropsMixin
@Stability(Stable)
public static interface CfnBucketPropsMixin.TopicConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.mixins.preview.services.s3.mixins.*;
TopicConfigurationProperty topicConfigurationProperty = TopicConfigurationProperty.builder()
.event("event")
.filter(NotificationFilterProperty.builder()
.s3Key(S3KeyFilterProperty.builder()
.rules(List.of(FilterRuleProperty.builder()
.name("name")
.value("value")
.build()))
.build())
.build())
.topic("topic")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBucketPropsMixin.TopicConfigurationPropertystatic final classAn implementation forCfnBucketPropsMixin.TopicConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringgetEvent()The Amazon S3 bucket event about which to send notifications.default ObjectThe filtering rules that determine for which objects to send notifications.default StringgetTopic()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.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEvent
The Amazon S3 bucket event about which to send notifications.For more information, see Supported Event Types in the Amazon S3 User Guide .
- See Also:
-
getFilter
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
.jpgextension are added to the bucket.Returns union: either
IResolvableorCfnBucketPropsMixin.NotificationFilterProperty- See Also:
-
getTopic
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.- See Also:
-
builder
-