UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

22 lines (21 loc) 1.03 kB
import { OnEventResponse } from '../types'; export declare const CREATE_FAILED_PHYSICAL_ID_MARKER = "AWSCDK::CustomResourceProviderFramework::CREATE_FAILED"; export declare const MISSING_PHYSICAL_ID_MARKER = "AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID"; export interface CloudFormationResponseOptions { readonly reason?: string; readonly noEcho?: boolean; } export interface CloudFormationEventContext { StackId: string; RequestId: string; PhysicalResourceId?: string; LogicalResourceId: string; ResponseURL: string; Data?: any; } export declare function submitResponse(status: 'SUCCESS' | 'FAILED', event: CloudFormationEventContext, options?: CloudFormationResponseOptions): Promise<void>; export declare let includeStackTraces: boolean; export declare function safeHandler(block: (event: any) => Promise<void>): (event: any) => Promise<void>; export declare function redactDataFromPayload(payload: OnEventResponse): OnEventResponse; export declare class Retry extends Error { }