class
Amazonite::Sns::MessageAttributeValue
- Amazonite::Sns::MessageAttributeValue
- Reference
- Object
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.crConstructors
- .from_xml(node : XML::Node) : self
- .new(data_type : String, string_value : String | Nil = nil, binary_value : Bytes | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#binary_value : Bytes | Nil
Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
-
#binary_value=(binary_value : Bytes | Nil)
Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
-
#data_type : String
Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary.
-
#data_type=(data_type : String)
Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary.
-
#hash(hasher)
See
Object#hash(hasher) -
#string_value : String | Nil
Strings are Unicode with UTF8 binary encoding.
-
#string_value=(string_value : String | Nil)
Strings are Unicode with UTF8 binary encoding.
- #to_query_params(prefix : String) : Array(Tuple(String, String))
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types.
Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types.
Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.
Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.