16 lines
575 B
TypeScript
16 lines
575 B
TypeScript
import type { Construct } from 'constructs';
|
|
import * as s3 from '../../aws-s3';
|
|
import type * as sqs from '../../aws-sqs';
|
|
/**
|
|
* Use an SQS queue as a bucket notification destination
|
|
*/
|
|
export declare class SqsDestination implements s3.IBucketNotificationDestination {
|
|
private readonly queue;
|
|
constructor(queue: sqs.IQueue);
|
|
/**
|
|
* Allows using SQS queues as destinations for bucket notifications.
|
|
* Use `bucket.onEvent(event, queue)` to subscribe.
|
|
*/
|
|
bind(_scope: Construct, bucket: s3.IBucketRef): s3.BucketNotificationDestinationConfig;
|
|
}
|