UNPKG

serverless-aws-lambda

Version:

AWS Application Load Balancer and API Gateway - Lambda dev tool for Serverless. Allows Express synthax in handlers. Supports packaging, local invoking and offline ALB, APG, S3, SNS, SQS, DynamoDB Stream server mocking.

26 lines (25 loc) 729 B
import type { ServerResponse } from "http"; interface IRunnerInvoke { event: any; awsRequestId: string; info?: any; clientContext?: any; response?: ServerResponse; } export interface Runner { isMounted: boolean; mount: () => Promise<any> | any; unmount: (lifecycleEnds?: boolean) => Promise<any> | any; invoke: (request: IRunnerInvoke) => Promise<any>; onComplete: (awsRequestId: string, timeout?: boolean) => any; } export declare class UnsupportedRuntime implements Runner { err: Error; constructor(runtime: string); isMounted: boolean; mount: () => undefined; unmount: () => undefined; invoke: () => Promise<never>; onComplete: () => undefined; } export {};