Skip to content

API reference / @node-ts/bus-sqs-lambda / SqsLambdaRecord

Type Alias: SqsLambdaRecord ​

ts
type SqsLambdaRecord = SQSRecord & SqsMessage;

Defined in: sqs-lambda-record.ts:9

The raw message of a TransportMessage from the BusSqsLambdaReceiver. It's the SQS record as delivered by Lambda, plus the same message in the AWS SDK shape (ReceiptHandle, Body, ...) that SqsTransport reads. This lets bus.returnMessage() and bus.failMessage() work on messages received through Lambda.

Released under the MIT License.