UNPKG

@bitblit/epsilon

Version:

Tiny adapter to simplify building API gateway Lambda APIS

11 lines (10 loc) 604 B
import { SNSEvent } from 'aws-lambda'; import { InterApiEntry } from './inter-api-entry'; import { InterApiConfig } from '../config/inter-api/inter-api-config'; import { BackgroundManagerLike } from '../background/manager/background-manager-like'; export declare class InterApiUtil { static isInterApiSnsEvent(event: any): boolean; static extractEntryFromEvent(evt: SNSEvent): InterApiEntry<any>; static processInterApiEvent(evt: SNSEvent, cfg: InterApiConfig, mgr: BackgroundManagerLike): Promise<string[]>; static addTraceToInterApiEntry(ent: InterApiEntry<any>): InterApiEntry<any>; }