UNPKG

@bitblit/ratchet-epsilon-common

Version:

Tiny adapter to simplify building API gateway Lambda APIS

11 lines (10 loc) 613 B
import { SNSEvent } from 'aws-lambda'; import { InterApiEntry } from './inter-api-entry.js'; import { InterApiConfig } from '../config/inter-api/inter-api-config.js'; import { BackgroundManagerLike } from '../background/manager/background-manager-like.js'; 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>; }