@bitblit/ratchet-epsilon-common
Version:
Tiny adapter to simplify building API gateway Lambda APIS
9 lines (8 loc) • 611 B
TypeScript
import { APIGatewayEvent, APIGatewayEventRequestContextV2, APIGatewayEventRequestContextWithAuthorizer, APIGatewayProxyEventV2 } from 'aws-lambda';
export declare class AwsUtil {
static apiGatewayV2ToApiGatewayV1(srcEvt: APIGatewayProxyEventV2): APIGatewayEvent;
static apiGatewayV2RequestContextToApiGatewayV1RequestContext(srcEvt: APIGatewayEventRequestContextV2): APIGatewayEventRequestContextWithAuthorizer<any>;
static findInMap<T>(toFind: string, map: Map<string, T>): T;
static matchExact(r: any, str: any): boolean;
static resolvePotentialFunctionToResult<T>(src: any, def: T): T;
}