UNPKG

@bitblit/epsilon

Version:

Tiny adapter to simplify building API gateway Lambda APIS

14 lines (13 loc) 678 B
import { APIGatewayProxyEventV2, Context, ProxyResult } from 'aws-lambda'; import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler'; import { WebHandler } from './web-handler'; /** * This class functions as the adapter from a default lambda function to the handlers exposed via Epsilon */ 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>; }