Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-events-targets/lib/lambda.d.ts
2026-05-06 18:55:16 -05:00

30 lines
941 B
TypeScript

import type { TargetBaseProps } from './util';
import type * as events from '../../aws-events';
import type * as lambda from '../../aws-lambda';
/**
* Customize the Lambda Event Target
*/
export interface LambdaFunctionProps extends TargetBaseProps {
/**
* The event to send to the Lambda
*
* This will be the payload sent to the Lambda Function.
*
* @default the entire EventBridge event
*/
readonly event?: events.RuleTargetInput;
}
/**
* Use an AWS Lambda function as an event rule target.
*/
export declare class LambdaFunction implements events.IRuleTarget {
private readonly handler;
private readonly props;
constructor(handler: lambda.IFunction, props?: LambdaFunctionProps);
/**
* Returns a RuleTarget that can be used to trigger this Lambda as a
* result from an EventBridge event.
*/
bind(rule: events.IRuleRef, _id?: string): events.RuleTargetConfig;
}