class
Amazonite::Sqs::Message
- Amazonite::Sqs::Message
- Reference
- Object
Overview
An Amazon SQS message.
Included Modules
- JSON::Serializable
Defined in:
sqs/message.crConstructors
- .new(pull : JSON::PullParser)
- .new(message_id : String | Nil = nil, receipt_handle : String | Nil = nil, md5_of_body : String | Nil = nil, body : String | Nil = nil, attributes : Hash(MessageSystemAttributeName, String) | Nil = nil, md5_of_message_attributes : String | Nil = nil, message_attributes : Hash(String, MessageAttributeValue) | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#attributes : Hash(MessageSystemAttributeName, String) | Nil
A map of the attributes requested in
ReceiveMessageto their respective values. -
#attributes=(attributes : Hash(MessageSystemAttributeName, String) | Nil)
A map of the attributes requested in
ReceiveMessageto their respective values. -
#body : String | Nil
The message's contents (not URL-encoded).
-
#body=(body : String | Nil)
The message's contents (not URL-encoded).
-
#hash(hasher)
See
Object#hash(hasher) -
#md5_of_body : String | Nil
An MD5 digest of the non-URL-encoded message body string.
-
#md5_of_body=(md5_of_body : String | Nil)
An MD5 digest of the non-URL-encoded message body string.
-
#md5_of_message_attributes : String | Nil
An MD5 digest of the non-URL-encoded message attribute string.
-
#md5_of_message_attributes=(md5_of_message_attributes : String | Nil)
An MD5 digest of the non-URL-encoded message attribute string.
-
#message_attributes : Hash(String, MessageAttributeValue) | Nil
Each message attribute consists of a
Name,Type, andValue. -
#message_attributes=(message_attributes : Hash(String, MessageAttributeValue) | Nil)
Each message attribute consists of a
Name,Type, andValue. -
#message_id : String | Nil
A unique identifier for the message.
-
#message_id=(message_id : String | Nil)
A unique identifier for the message.
-
#receipt_handle : String | Nil
An identifier associated with the act of receiving the message.
-
#receipt_handle=(receipt_handle : String | Nil)
An identifier associated with the act of receiving the message.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
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.
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.
An MD5 digest of the non-URL-encoded message body string.
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.
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.
Each message attribute consists of a Name, Type, and Value. For more information, see
Amazon SQS message
attributes
in the Amazon SQS Developer Guide.
Each message attribute consists of a Name, Type, and Value. For more information, see
Amazon SQS message
attributes
in the Amazon SQS Developer Guide.
A unique identifier for the message. A MessageIdis considered unique across all Amazon Web
Services accounts for an extended period of time.
A unique identifier for the message. A MessageIdis considered unique across all Amazon Web
Services accounts for an extended period of time.
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.
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.