UNPKG

@bitblit/epsilon

Version:

Tiny adapter to simplify building API gateway Lambda APIS

18 lines (17 loc) 732 B
import { InterApiEntry } from './inter-api/inter-api-entry'; import { InterApiAwsConfig } from './config/inter-api/inter-api-aws-config'; import { SNSClient } from '@aws-sdk/client-sns'; /** * Handles all submission of events to the inter-api SNS topic (if any) */ export declare class InterApiManager { private _aws; private _sns; constructor(_aws: InterApiAwsConfig, _sns: SNSClient); get config(): InterApiAwsConfig; get sns(): SNSClient; createEntry<T>(type: string, data?: T): InterApiEntry<T>; fireInterApiEventByParts<T>(type: string, data?: T): Promise<string>; fireInterApiEvent<T>(entry: InterApiEntry<T>): Promise<string>; writeMessageToSnsTopic(message: string): Promise<string>; }