UNPKG

cfn-response-async

Version:

An async/await module for sending responses from lambda-funciton backed custom resources in AWS CloudFormation

7 lines (6 loc) 443 B
import { CloudFormationCustomResourceEvent, Context } from 'aws-lambda'; export declare const SUCCESS = "SUCCESS"; export declare const FAILED = "FAILED"; declare type ResponseStatus = typeof SUCCESS | typeof FAILED; export declare const send: (event: CloudFormationCustomResourceEvent, context: Context, status: ResponseStatus, response?: any, physicalResourceId?: string | undefined, retries?: number) => Promise<void>; export default send;