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.101.0 (build b95fe5d)",
date="2024-08-15T01:32:54.550Z")
@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 = new Bucket(this, "MyBucket"); bucket.addEventNotification(EventType.OBJECT_REMOVED, new SqsDestination(myQueue), NotificationKeyFilter.builder() .prefix("foo/") .suffix(".jpg") .build());
-
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
ConstructorsModifierConstructorDescriptionSqsDestination
(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.
-