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.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.194Z") @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());
 
  • Constructor Details

    • SqsDestination

      protected SqsDestination(software.amazon.jsii.JsiiObjectRef objRef)
    • SqsDestination

      protected SqsDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • SqsDestination

      @Stability(Stable) public SqsDestination(@NotNull IQueue queue)
      Parameters:
      queue - This parameter is required.
  • Method Details