simple-lambda-client
Version:
A simple, convenient way to invoke aws lambda functions with best practices.
32 lines (31 loc) • 821 B
TypeScript
export declare class UnsuccessfulStatusCodeError extends Error {
constructor({ code, payload }: {
code: number | undefined;
payload: any;
});
}
export declare class LambdaInvocationError extends Error {
/**
* the name of the lambda that returned the error
*/
lambda: string;
/**
* invocation errors that we detect contain one of the following three keys
*
* they are all optional, because some error responses contain one but not all
*/
response: {
errorMessage?: string;
errorType?: string;
stackTrace?: string;
};
/**
* the event that the lambda was invoked with
*/
event: any;
constructor({ lambda, response, event, }: {
lambda: string;
response: any;
event: any;
});
}