@mbc-cqrs-serverless/core
Version:
CQRS and event base core
16 lines (15 loc) • 524 B
TypeScript
import { SQSMessageAttributes, SQSRecord, SQSRecordAttributes } from 'aws-lambda';
import { IEvent } from '../../interfaces';
export declare class NotificationEvent implements IEvent, SQSRecord {
source: string;
messageId: string;
receiptHandle: string;
body: string;
attributes: SQSRecordAttributes;
messageAttributes: SQSMessageAttributes;
md5OfBody: string;
eventSource: string;
eventSourceARN: string;
awsRegion: string;
fromSqsRecord(record: SQSRecord): NotificationEvent;
}