---
url: https://node-ts.github.io/bus/api/bus-sqs/interfaces/SqsMessage.md
---
[API reference](../../index.md) / [@node-ts/bus-sqs](../index.md) / SqsMessage

# Interface: SqsMessage

Defined in: node_modules/.pnpm/@aws-sdk+client-sqs@3.1142.0/node_modules/@aws-sdk/client-sqs/dist-types/models/models_0.d.ts:1487

<p>An Amazon SQS message.</p>

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-attributes"></a> `Attributes?` | `public` | `Partial`<`Record`<`MessageSystemAttributeName`, `string`>> | <p>A map of the attributes requested in <code> <a>ReceiveMessage</a> </code> to their respective values. Supported attributes:</p> <ul> <li> <p> <code>ApproximateReceiveCount</code> </p> </li> <li> <p> <code>ApproximateFirstReceiveTimestamp</code> </p> </li> <li> <p> <code>MessageDeduplicationId</code> </p> </li> <li> <p> <code>MessageGroupId</code> </p> </li> <li> <p> <code>SenderId</code> </p> </li> <li> <p> <code>SentTimestamp</code> </p> </li> <li> <p> <code>SequenceNumber</code> </p> </li> </ul> <p> <code>ApproximateFirstReceiveTimestamp</code> and <code>SentTimestamp</code> are each returned as an integer representing the <a href="http://en.wikipedia.org/wiki/Unix_time">epoch time</a> in milliseconds.</p> | node_modules/.pnpm/@aws-sdk+client-sqs@3.1142.0/node_modules/@aws-sdk/client-sqs/dist-types/models/models_0.d.ts:1559 |
| <a id="property-body"></a> `Body?` | `public` | `string` | <p>The message's contents (not URL-encoded).</p> | node_modules/.pnpm/@aws-sdk+client-sqs@3.1142.0/node_modules/@aws-sdk/client-sqs/dist-types/models/models_0.d.ts:1510 |
| <a id="property-md5ofbody"></a> `MD5OfBody?` | `public` | `string` | <p>An MD5 digest of the non-URL-encoded message body string.</p> | node_modules/.pnpm/@aws-sdk+client-sqs@3.1142.0/node_modules/@aws-sdk/client-sqs/dist-types/models/models_0.d.ts:1505 |
| <a id="property-md5ofmessageattributes"></a> `MD5OfMessageAttributes?` | `public` | `string` | <p>An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see <a href="https://www.ietf.org/rfc/rfc1321.txt">RFC1321</a>.</p> | node_modules/.pnpm/@aws-sdk+client-sqs@3.1142.0/node_modules/@aws-sdk/client-sqs/dist-types/models/models_0.d.ts:1564 |
| <a id="property-messageattributes"></a> `MessageAttributes?` | `public` | `Record`<`string`, `MessageAttributeValue`> | <p>Each message attribute consists of a <code>Name</code>, <code>Type</code>, and <code>Value</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon SQS message attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p> | node_modules/.pnpm/@aws-sdk+client-sqs@3.1142.0/node_modules/@aws-sdk/client-sqs/dist-types/models/models_0.d.ts:1572 |
| <a id="property-messageid"></a> `MessageId?` | `public` | `string` | <p>A unique identifier for the message. A <code>MessageId</code>is considered unique across all Amazon Web Services accounts for an extended period of time.</p> | node_modules/.pnpm/@aws-sdk+client-sqs@3.1142.0/node_modules/@aws-sdk/client-sqs/dist-types/models/models_0.d.ts:1493 |
| <a id="property-receipthandle"></a> `ReceiptHandle?` | `public` | `string` | <p>An identifier associated with the act of receiving the message. A new receipt handle is returned every time you receive a message. When deleting a message, you provide the last received receipt handle to delete the message.</p> | node_modules/.pnpm/@aws-sdk+client-sqs@3.1142.0/node_modules/@aws-sdk/client-sqs/dist-types/models/models_0.d.ts:1500 |
