UNPKG

703 BTypeScriptView Raw
1import * as lambda from '@aws-cdk/aws-lambda';
2import * as sns from '@aws-cdk/aws-sns';
3import { SubscriptionProps } from './subscription';
4/**
5 * Properties for a Lambda subscription
6 */
7export interface LambdaSubscriptionProps extends SubscriptionProps {
8}
9/**
10 * Use a Lambda function as a subscription target
11 */
12export 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}