@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.831Z") @Stability(value=Stable) public class SqsDestination extends software.amazon.jsii.JsiiObject implements IBucketNotificationDestination
Example:
// Example automatically generated from non-compiling source. May contain errors.
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(software.constructs.Construct _scope,
IBucket bucket)
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=Stable)
public SqsDestination(@NotNull
IQueue queue)
queue - This parameter is required.@Stability(value=Stable) @NotNull public BucketNotificationDestinationConfig bind(@NotNull software.constructs.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.