class Aws::SQS::Types::Message

An Amazon SQS message.

@!attribute [rw] message_id

A unique identifier for the message. A `MessageId`is considered
unique across all accounts for an extended period of time.
@return [String]

@!attribute [rw] receipt_handle

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.
@return [String]

@!attribute [rw] md5_of_body

An MD5 digest of the non-URL-encoded message body string.
@return [String]

@!attribute [rw] body

The message's contents (not URL-encoded).
@return [String]

@!attribute [rw] attributes

A map of the attributes requested in ` ReceiveMessage ` to their
respective values. Supported attributes:

* `ApproximateReceiveCount`

* `ApproximateFirstReceiveTimestamp`

* `MessageDeduplicationId`

* `MessageGroupId`

* `SenderId`

* `SentTimestamp`

* `SequenceNumber`

`ApproximateFirstReceiveTimestamp` and `SentTimestamp` are each
returned as an integer representing the [epoch time][1] in
milliseconds.

[1]: http://en.wikipedia.org/wiki/Unix_time
@return [Hash<String,String>]

@!attribute [rw] md5_of_message_attributes

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
[RFC1321][1].

[1]: https://www.ietf.org/rfc/rfc1321.txt
@return [String]

@!attribute [rw] message_attributes

Each message attribute consists of a `Name`, `Type`, and `Value`.
For more information, see [Amazon SQS message attributes][1] in the
*Amazon SQS Developer Guide*.

[1]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes
@return [Hash<String,Types::MessageAttributeValue>]

@see docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/Message AWS API Documentation

Constants

SENSITIVE