UNPKG

908 BTypeScriptView Raw
1import * as sns from '@aws-cdk/aws-sns';
2import * as sqs from '@aws-cdk/aws-sqs';
3import { SubscriptionProps } from './subscription';
4/**
5 * Properties for an SQS subscription
6 */
7export interface SqsSubscriptionProps extends SubscriptionProps {
8 /**
9 * The message to the queue is the same as it was sent to the topic
10 *
11 * If false, the message will be wrapped in an SNS envelope.
12 *
13 * @default false
14 */
15 readonly rawMessageDelivery?: boolean;
16}
17/**
18 * Use an SQS queue as a subscription target
19 */
20export declare class SqsSubscription implements sns.ITopicSubscription {
21 private readonly queue;
22 private readonly props;
23 constructor(queue: sqs.IQueue, props?: SqsSubscriptionProps);
24 /**
25 * Returns a configuration for an SQS queue to subscribe to an SNS topic
26 */
27 bind(topic: sns.ITopic): sns.TopicSubscriptionConfig;
28 private regionFromArn;
29}