Class SqsDestination
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.s3.notifications.SqsDestination
- All Implemented Interfaces:
IBucketNotificationDestination
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:08.959Z")
@Stability(Stable)
public class SqsDestination
extends software.amazon.jsii.JsiiObject
implements IBucketNotificationDestination
Use an SQS queue as a bucket notification destination.
Example:
Queue myQueue; Bucket bucket = Bucket.Builder.create(this, "MyBucket") .notificationsSkipDestinationValidation(true) .build(); bucket.addEventNotification(EventType.OBJECT_REMOVED, new SqsDestination(myQueue));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.s3.IBucketNotificationDestination
IBucketNotificationDestination.Jsii$Default, IBucketNotificationDestination.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionSqsDestination
(IQueue queue) protected
SqsDestination
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
SqsDestination
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionAllows using SQS queues as destinations for bucket notifications.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
SqsDestination
protected SqsDestination(software.amazon.jsii.JsiiObjectRef objRef) -
SqsDestination
protected SqsDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
SqsDestination
- Parameters:
queue
- This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) @NotNull public BucketNotificationDestinationConfig bind(@NotNull software.constructs.Construct _scope, @NotNull IBucket bucket) Allows using SQS queues as destinations for bucket notifications.Use
bucket.onEvent(event, queue)
to subscribe.- Specified by:
bind
in interfaceIBucketNotificationDestination
- Parameters:
_scope
- This parameter is required.bucket
- This parameter is required.
-