UNPKG

567 BTypeScriptView Raw
1import * as sns from '@aws-cdk/aws-sns';
2import { IQueue } from '@aws-cdk/aws-sqs';
3/**
4 * Options to subscribing to an SNS topic
5 */
6export interface SubscriptionProps {
7 /**
8 * The filter policy.
9 *
10 * @default - all messages are delivered
11 */
12 readonly filterPolicy?: {
13 [attribute: string]: sns.SubscriptionFilter;
14 };
15 /**
16 * Queue to be used as dead letter queue.
17 * If not passed no dead letter queue is enabled.
18 *
19 * @default - No dead letter queue enabled.
20 */
21 readonly deadLetterQueue?: IQueue;
22}