1 | import * as events from '@aws-cdk/aws-events';
|
2 | import * as lambda from '@aws-cdk/aws-lambda';
|
3 | import { TargetBaseProps } from './util';
|
4 |
|
5 |
|
6 |
|
7 | export interface LambdaFunctionProps extends TargetBaseProps {
|
8 | |
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | readonly event?: events.RuleTargetInput;
|
16 | }
|
17 |
|
18 |
|
19 |
|
20 | export declare class LambdaFunction implements events.IRuleTarget {
|
21 | private readonly handler;
|
22 | private readonly props;
|
23 | constructor(handler: lambda.IFunction, props?: LambdaFunctionProps);
|
24 | /**
|
25 | * Returns a RuleTarget that can be used to trigger this Lambda as a
|
26 | * result from an EventBridge event.
|
27 | */
|
28 | bind(rule: events.IRule, _id?: string): events.RuleTargetConfig;
|
29 | }
|