class Amazonite::Sns::MessageAttributeValue

Overview

The user-specified message attribute value. For string data types, the value attribute has the same restrictions on the content as the message body. For more information, see Publish.

Name, type, and value must not be empty or null. In addition, the message body should not be empty or null. All parts of the message attribute, including name, type, and value, are included in the message size restriction, which is currently 256 KB (262,144 bytes). For more information, see Amazon SNS message attributes and Publishing to a mobile phone in the Amazon SNS Developer Guide.

Defined in:

sns/message_attribute_value.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_xml(node : XML::Node) : self #

[View source]
def self.new(data_type : String, string_value : String | Nil = nil, binary_value : Bytes | Nil = nil) #

[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 binary_value : Bytes | Nil #

Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.


[View source]
def binary_value=(binary_value : Bytes | Nil) #

Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.


[View source]
def data_type : String #

Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types.


[View source]
def data_type=(data_type : String) #

Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types.


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

See Object#hash(hasher)


def string_value : String | Nil #

Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.


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

Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.


[View source]
def to_query_params(prefix : String) : Array(Tuple(String, String)) #

[View source]
def validate! : Nil #

[View source]