class SqsDestination
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3.Notifications.SqsDestination |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awss3notifications#SqsDestination |
![]() | software.amazon.awscdk.services.s3.notifications.SqsDestination |
![]() | aws_cdk.aws_s3_notifications.SqsDestination |
![]() | aws-cdk-lib » aws_s3_notifications » SqsDestination |
Implements
IBucket
Use an SQS queue as a bucket notification destination.
Example
declare const myQueue: sqs.Queue;
const bucket = new s3.Bucket(this, 'MyBucket', {
notificationsSkipDestinationValidation: true,
});
bucket.addEventNotification(s3.EventType.OBJECT_REMOVED, new s3n.SqsDestination(myQueue));
Initializer
new SqsDestination(queue: IQueue)
Parameters
- queue
IQueue
Methods
Name | Description |
---|---|
bind(_scope, bucket) | Allows using SQS queues as destinations for bucket notifications. |
bind(_scope, bucket)
public bind(_scope: Construct, bucket: IBucket): BucketNotificationDestinationConfig
Parameters
Returns
Allows using SQS queues as destinations for bucket notifications.
Use bucket.onEvent(event, queue)
to subscribe.