@scloud/lambda-local
Version:
Run typical Lambda handlers locally.
6 lines (5 loc) • 350 B
TypeScript
import { APIGatewayProxyEvent, APIGatewayProxyResult, Context } from 'aws-lambda';
export interface CloudfrontPathMappings {
[key: string]: (event: APIGatewayProxyEvent, context: Context) => Promise<APIGatewayProxyResult>;
}
export declare function webappRoutesLocal(cloudfrontPathMappings: CloudfrontPathMappings, staticContent?: string): void;