@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.830Z") @Stability(value=Stable) public class SnsDestination extends software.amazon.jsii.JsiiObject implements IBucketNotificationDestination
Example:
// Example automatically generated from non-compiling source. May contain errors. Bucket bucket = new Bucket(this, "MyBucket"); Topic topic = new Topic(this, "MyTopic"); bucket.addEventNotification(EventType.OBJECT_CREATED, new SnsDestination(topic));
software.amazon.jsii.JsiiObject.InitializationModeIBucketNotificationDestination.Jsii$Default, IBucketNotificationDestination.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
SnsDestination(ITopic topic) |
protected |
SnsDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SnsDestination(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
BucketNotificationDestinationConfig |
bind(software.constructs.Construct _scope,
IBucket bucket)
Registers this resource to receive notifications for the specified bucket.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected SnsDestination(software.amazon.jsii.JsiiObjectRef objRef)
protected SnsDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public SnsDestination(@NotNull
ITopic topic)
topic - This parameter is required.@Stability(value=Stable) @NotNull public BucketNotificationDestinationConfig bind(@NotNull software.constructs.Construct _scope, @NotNull IBucket bucket)
This method will only be called once for each destination/bucket pair and the result will be cached, so there is no need to implement idempotency in each destination.
bind in interface IBucketNotificationDestination_scope - This parameter is required.bucket - This parameter is required.Copyright © 2022. All rights reserved.