class Amazonite::Sqs::Message

Overview

An Amazon SQS message.

Included Modules

Defined in:

sqs/message.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.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) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def attributes : Hash(MessageSystemAttributeName, String) | Nil #

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.


[View source]
def attributes=(attributes : Hash(MessageSystemAttributeName, String) | Nil) #

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.


[View source]
def body : String | Nil #

The message's contents (not URL-encoded).


[View source]
def body=(body : String | Nil) #

The message's contents (not URL-encoded).


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def md5_of_body : String | Nil #

An MD5 digest of the non-URL-encoded message body string.


[View source]
def md5_of_body=(md5_of_body : String | Nil) #

An MD5 digest of the non-URL-encoded message body string.


[View source]
def md5_of_message_attributes : String | Nil #

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.


[View source]
def md5_of_message_attributes=(md5_of_message_attributes : String | Nil) #

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.


[View source]
def message_attributes : Hash(String, MessageAttributeValue) | Nil #

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


[View source]
def message_attributes=(message_attributes : Hash(String, MessageAttributeValue) | Nil) #

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


[View source]
def message_id : String | Nil #

A unique identifier for the message. A MessageIdis considered unique across all Amazon Web Services accounts for an extended period of time.


[View source]
def message_id=(message_id : String | Nil) #

A unique identifier for the message. A MessageIdis considered unique across all Amazon Web Services accounts for an extended period of time.


[View source]
def receipt_handle : String | Nil #

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.


[View source]
def receipt_handle=(receipt_handle : String | Nil) #

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.


[View source]
def validate! : Nil #

[View source]