SqsDestination

class aws_cdk.aws_s3_notifications.SqsDestination(queue)

Bases: object

Use an SQS queue as a bucket notification destination.

ExampleMetadata:

infused

Example:

# my_queue: sqs.Queue

bucket = s3.Bucket(self, "MyBucket",
    notifications_skip_destination_validation=True
)
bucket.add_event_notification(s3.EventType.OBJECT_REMOVED, s3n.SqsDestination(my_queue))
Parameters:

queue (IQueue)

Methods

bind(_scope, bucket)

Allows using SQS queues as destinations for bucket notifications.

Use bucket.onEvent(event, queue) to subscribe.

Parameters:
Return type:

BucketNotificationDestinationConfig