@bitblit/ratchet-epsilon-common
Version:
Tiny adapter to simplify building API gateway Lambda APIS
15 lines (14 loc) • 984 B
TypeScript
import { Context } from 'aws-lambda';
import { ExtendedAPIGatewayEvent } from '../../config/http/extended-api-gateway-event.js';
import { NullReturnedObjectHandling } from '../../config/http/null-returned-object-handling.js';
import { FilterFunction } from '../../config/http/filter-function.js';
import { FilterChainContext } from '../../config/http/filter-chain-context.js';
import { RouteAndParse } from '../../http/route/route-and-parse.js';
export declare class RunHandlerAsFilter {
static runHandler(fCtx: FilterChainContext, rm: RouteAndParse): Promise<boolean>;
static applyNullReturnedObjectHandling(result: any, handling: NullReturnedObjectHandling): any;
static findHandler(rm: RouteAndParse, event: ExtendedAPIGatewayEvent, context: Context, add404OnMissing?: boolean): Promise<any>;
static addRunHandlerAsFilterToList(filters: FilterFunction[], rm: RouteAndParse): void;
private static eventToStringForLog;
static redact(input: string): string;
}