UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

21 lines (20 loc) 671 B
import * as lambda from '../../aws-lambda'; import { Construct } from 'constructs'; import { ITrigger, Trigger, TriggerOptions } from '.'; /** * Props for `InvokeFunction`. */ export interface TriggerFunctionProps extends lambda.FunctionProps, TriggerOptions { } /** * Invokes an AWS Lambda function during deployment. */ export declare class TriggerFunction extends lambda.Function implements ITrigger { /** * The underlying trigger resource. */ readonly trigger: Trigger; constructor(scope: Construct, id: string, props: TriggerFunctionProps); executeAfter(...scopes: Construct[]): void; executeBefore(...scopes: Construct[]): void; }