UNPKG

@mbc-cqrs-serverless/task

Version:
19 lines (18 loc) 626 B
import { IEvent } from '@mbc-cqrs-serverless/core'; import { SQSMessageAttributes, SQSRecord, SQSRecordAttributes } from 'aws-lambda'; import { TaskEvent } from './task.event'; export declare class TaskQueueEvent implements IEvent, SQSRecord { source: string; messageId: string; receiptHandle: string; body: string; attributes: SQSRecordAttributes; messageAttributes: SQSMessageAttributes; md5OfBody: string; eventSource: string; eventSourceARN: string; awsRegion: string; private _taskEvent?; fromSqsRecord(record: SQSRecord): TaskQueueEvent; get taskEvent(): TaskEvent; }