SqsDestination

class aws_cdk.aws_s3_notifications.SqsDestination(queue)

Bases: object

Use an SQS queue as a bucket notification destination.

ExampleMetadata

infused

Example:

# Example automatically generated from non-compiling source. May contain errors.
# my_queue: sqs.Queue

bucket = s3.Bucket(self, "MyBucket")
bucket.add_event_notification(s3.EventType.OBJECT_REMOVED,
    s3n.SqsDestination(my_queue), prefix="foo/", suffix=".jpg")
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