@finnairoyj/cdk-constructs-lib - v0.1.11
    Preparing search index...

    Interface CustomResourceEventHandlerProps<TOptions, TData>

    interface CustomResourceEventHandlerProps<
        TOptions,
        TData extends Record<string, any> = never,
    > {
        noEcho?: boolean;
        onCreateEvent: (
            event: CloudFormationCustomResourceCreateEventTyped<TOptions>,
        ) => Promise<EventResult<TData>>;
        onDeleteEvent?: (
            event: CloudFormationCustomResourceDeleteEventTyped<TOptions>,
        ) => Promise<void>;
        onUpdateEvent: (
            event: CloudFormationCustomResourceUpdateEventTyped<TOptions>,
        ) => Promise<EventResult<TData>>;
    }

    Type Parameters

    • TOptions
    • TData extends Record<string, any> = never
    Index

    Properties

    noEcho?: boolean

    Disable echoing CustomResource return values at CloudFormation level to protect secrets from being accidentally exposed

    onCreateEvent: (
        event: CloudFormationCustomResourceCreateEventTyped<TOptions>,
    ) => Promise<EventResult<TData>>

    CustomResource Create event handler

    Type Declaration

    onDeleteEvent?: (
        event: CloudFormationCustomResourceDeleteEventTyped<TOptions>,
    ) => Promise<void>

    CustomResource Delete event handler. Defaults to a no-op if omitted.

    Type Declaration

    onUpdateEvent: (
        event: CloudFormationCustomResourceUpdateEventTyped<TOptions>,
    ) => Promise<EventResult<TData>>

    CustomResource Update event handler

    Type Declaration