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.

12 lines (10 loc) 313 B
import { SNSMessageAttributes } from 'aws-lambda'; import { SpyEvent } from './SpyEvent'; export interface SnsSpyEventBase<MessageType = any> extends SpyEvent { message: MessageType; subject?: string; timestamp: string; topicArn: string; messageId: string; messageAttributes: SNSMessageAttributes; }