UNPKG

@bitblit/ratchet-epsilon-common

Version:

Tiny adapter to simplify building API gateway Lambda APIS

11 lines (10 loc) 570 B
import { APIGatewayProxyEventV2, Context, ProxyResult } from 'aws-lambda'; import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler.js'; import { WebHandler } from './web-handler.js'; export declare class WebV2Handler implements EpsilonLambdaEventHandler<APIGatewayProxyEventV2> { private webHandler; constructor(webHandler: WebHandler); extractLabel(evt: APIGatewayProxyEventV2, context: Context): string; handlesEvent(evt: any): boolean; processEvent(evt: APIGatewayProxyEventV2, context: Context): Promise<ProxyResult>; }