@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:14.299Z") @Stability(value=Experimental) public class SqsDestination extends software.amazon.jsii.JsiiObject implements IBucketNotificationDestination
Example:
Queue myQueue;
Bucket bucket = new Bucket(this, "MyBucket");
bucket.addEventNotification(EventType.OBJECT_REMOVED,
new SqsDestination(myQueue), NotificationKeyFilter.builder().prefix("foo/").suffix(".jpg").build());
software.amazon.jsii.JsiiObject.InitializationModeIBucketNotificationDestination.Jsii$Default, IBucketNotificationDestination.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
SqsDestination(IQueue queue) |
protected |
SqsDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SqsDestination(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
BucketNotificationDestinationConfig |
bind(Construct _scope,
IBucket bucket)
(experimental) Allows using SQS queues as destinations for bucket notifications.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected SqsDestination(software.amazon.jsii.JsiiObjectRef objRef)
protected SqsDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public SqsDestination(@NotNull
IQueue queue)
queue - This parameter is required.@Stability(value=Experimental) @NotNull public BucketNotificationDestinationConfig bind(@NotNull Construct _scope, @NotNull IBucket bucket)
Use bucket.onEvent(event, queue) to subscribe.
bind in interface IBucketNotificationDestination_scope - This parameter is required.bucket - This parameter is required.Copyright © 2022. All rights reserved.