NAME

Paws::SNS::MessageAttributeValue

USAGE

This class represents one of two things:

Arguments in a call to a service

Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object.

As an example, if Att1 is expected to be a Paws::SNS::MessageAttributeValue object:

$service_obj->Method(Att1 => { BinaryValue => $value, ..., StringValue => $value  });

Results returned from an API call

Use accessors for each attribute. If Att1 is expected to be an Paws::SNS::MessageAttributeValue object:

$result = $service_obj->Method(...);
$result->Att1->BinaryValue

DESCRIPTION

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 (https://docs.aws.amazon.com/sns/latest/api/API_Publish.html).

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 (https://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html) and Publishing to a mobile phone (https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html) in the Amazon SNS Developer Guide.

ATTRIBUTES

BinaryValue => Str

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

REQUIRED DataType => Str

Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types (https://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html#SNSMessageAttributes.DataTypes).

StringValue => Str

Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters (https://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters).

SEE ALSO

This class forms part of Paws, describing an object used in Paws::SNS

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues