UNPKG

serverless-spy

Version:

CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.

26 lines (25 loc) 698 B
import iot from "aws-iot-device-sdk"; //#region common/SpyEventSender.d.ts declare class SpyEventSender { debugMode: boolean; connection: iot.device | undefined; scope: string; iotEndpoint: string; constructor(params: { log?: (message: string, ...optionalParams: any[]) => void; logError?: (message: string, ...optionalParams: any[]) => void; scope: string; iotEndpoint: string; }); close(): Promise<void>; connect(): Promise<void>; publishSpyEvent(event: any): Promise<void>; private encode; private postData; private getSpyEventType; private log; private logError; } //#endregion export { SpyEventSender }; //# sourceMappingURL=SpyEventSender.d.ts.map