1 | import * as lambda from '@aws-cdk/aws-lambda';
|
2 | import * as sns from '@aws-cdk/aws-sns';
|
3 | import { SubscriptionProps } from './subscription';
|
4 |
|
5 |
|
6 |
|
7 | export interface LambdaSubscriptionProps extends SubscriptionProps {
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 | export declare class LambdaSubscription implements sns.ITopicSubscription {
|
13 | private readonly fn;
|
14 | private readonly props;
|
15 | constructor(fn: lambda.IFunction, props?: LambdaSubscriptionProps);
|
16 | /**
|
17 | * Returns a configuration for a Lambda function to subscribe to an SNS topic
|
18 | */
|
19 | bind(topic: sns.ITopic): sns.TopicSubscriptionConfig;
|
20 | private regionFromArn;
|
21 | }
|