| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.SQS.Types.Message
Description
Synopsis
- data Message = Message' {}
- newMessage :: Message
- message_attributes :: Lens' Message (Maybe (HashMap MessageAttribute Text))
- message_body :: Lens' Message (Maybe Text)
- message_mD5OfBody :: Lens' Message (Maybe Text)
- message_mD5OfMessageAttributes :: Lens' Message (Maybe Text)
- message_messageAttributes :: Lens' Message (Maybe (HashMap Text MessageAttributeValue))
- message_messageId :: Lens' Message (Maybe Text)
- message_receiptHandle :: Lens' Message (Maybe Text)
Documentation
An Amazon SQS message.
See: newMessage smart constructor.
Constructors
| Message' | |
Fields
| |
Instances
newMessage :: Message Source #
Create a value of Message with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attributes:Message', message_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 in milliseconds.
$sel:body:Message', message_body - The message's contents (not URL-encoded).
$sel:mD5OfBody:Message', message_mD5OfBody - An MD5 digest of the non-URL-encoded message body string.
$sel:mD5OfMessageAttributes:Message', message_mD5OfMessageAttributes - 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.
$sel:messageAttributes:Message', message_messageAttributes - Each message attribute consists of a Name, Type, and Value. For
more information, see
Amazon SQS message attributes
in the Amazon SQS Developer Guide.
$sel:messageId:Message', message_messageId - A unique identifier for the message. A MessageIdis considered unique
across all Amazon Web Services accounts for an extended period of time.
$sel:receiptHandle:Message', message_receiptHandle - 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.
message_attributes :: Lens' Message (Maybe (HashMap MessageAttribute Text)) Source #
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 in milliseconds.
message_mD5OfBody :: Lens' Message (Maybe Text) Source #
An MD5 digest of the non-URL-encoded message body string.
message_mD5OfMessageAttributes :: Lens' Message (Maybe Text) Source #
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.
message_messageAttributes :: Lens' Message (Maybe (HashMap Text MessageAttributeValue)) Source #
Each message attribute consists of a Name, Type, and Value. For
more information, see
Amazon SQS message attributes
in the Amazon SQS Developer Guide.