PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` package Paws::SNS::Publish; use Moose; has Message => (is => 'ro', isa => 'Str', required => 1); has MessageAttributes => (is => 'ro', isa => 'Paws::SNS::MessageAttributeMap'); has MessageDeduplicationId => (is => 'ro', isa => 'Str'); has MessageGroupId => (is => 'ro', isa => 'Str'); has MessageStructure => (is => 'ro', isa => 'Str'); has PhoneNumber => (is => 'ro', isa => 'Str'); has Subject => (is => 'ro', isa => 'Str'); has TargetArn => (is => 'ro', isa => 'Str'); has TopicArn => (is => 'ro', isa => 'Str'); use MooseX::ClassAttribute; class_has _api_call => (isa => 'Str', is => 'ro', default => 'Publish'); class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SNS::PublishResponse'); class_has _result_key => (isa => 'Str', is => 'ro', default => 'PublishResult'); 1; ### main pod documentation begin ### =head1 NAME Paws::SNS::Publish - Arguments for method Publish on L =head1 DESCRIPTION This class represents the parameters used for calling the method Publish on the L service. Use the attributes of this class as arguments to method Publish. You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to Publish. =head1 SYNOPSIS my $sns = Paws->service('SNS'); my $PublishResponse = $sns->Publish( Message => 'Mymessage', MessageAttributes => { 'MyString' => { DataType => 'MyString', BinaryValue => 'BlobBinary', # OPTIONAL StringValue => 'MyString', }, }, # OPTIONAL MessageDeduplicationId => 'MyString', # OPTIONAL MessageGroupId => 'MyString', # OPTIONAL MessageStructure => 'MymessageStructure', # OPTIONAL PhoneNumber => 'MyString', # OPTIONAL Subject => 'Mysubject', # OPTIONAL TargetArn => 'MyString', # OPTIONAL TopicArn => 'MytopicARN', # OPTIONAL ); # Results: my $MessageId = $PublishResponse->MessageId; my $SequenceNumber = $PublishResponse->SequenceNumber; # Returns a L object. Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see L =head1 ATTRIBUTES =head2 B Message => Str The message you want to send. If you are publishing to a topic and you want to send the same message to all transport protocols, include the text of the message as a String value. If you want to send different messages for each transport protocol, set the value of the C parameter to C and use a JSON object for the C parameter. Constraints: =over =item * With the exception of SMS, messages must be UTF-8 encoded strings and at most 256 KB in size (262,144 bytes, not 262,144 characters). =item * For SMS, each message can contain up to 140 characters. This character limit depends on the encoding schema. For example, an SMS message can contain 160 GSM characters, 140 ASCII characters, or 70 UCS-2 characters. If you publish a message that exceeds this size limit, Amazon SNS sends the message as multiple messages, each fitting within the size limit. Messages aren't truncated mid-word but are cut off at whole-word boundaries. The total size limit for a single SMS C action is 1,600 characters. =back JSON-specific constraints: =over =item * Keys in the JSON object that correspond to supported transport protocols must have simple JSON string values. =item * The values will be parsed (unescaped) before they are used in outgoing messages. =item * Outbound notifications are JSON encoded (meaning that the characters will be reescaped for sending). =item * Values have a minimum length of 0 (the empty string, "", is allowed). =item * Values have a maximum length bounded by the overall message size (so, including multiple protocols may limit message sizes). =item * Non-string values will cause the key to be ignored. =item * Keys that do not correspond to supported transport protocols are ignored. =item * Duplicate keys are not allowed. =item * Failure to parse or validate any key or value in the message will cause the C call to return an error (no partial delivery). =back =head2 MessageAttributes => L Message attributes for Publish action. =head2 MessageDeduplicationId => Str This parameter applies only to FIFO (first-in-first-out) topics. The C can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) and punctuation C<(!"#$%&'()*+,-./:;E=E?@[\]^_`{|}~)>. Every message must have a unique C, which is a token used for deduplication of sent messages. If a message with a particular C is sent successfully, any message sent with the same C during the 5-minute deduplication interval is treated as a duplicate. If the topic has C set, the system generates a C based on the contents of the message. Your C overrides the generated one. =head2 MessageGroupId => Str This parameter applies only to FIFO (first-in-first-out) topics. The C can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) and punctuation C<(!"#$%&'()*+,-./:;E=E?@[\]^_`{|}~)>. The C is a tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). Every message must include a C. =head2 MessageStructure => Str Set C to C if you want to send a different message for each protocol. For example, using one publish action, you can send a short message to your SMS subscribers and a longer message to your email subscribers. If you set C to C, the value of the C parameter must: =over =item * be a syntactically valid JSON object; and =item * contain at least a top-level JSON key of "default" with a value that is a string. =back You can define other top-level keys that define the message you want to send to a specific transport protocol (e.g., "http"). Valid value: C =head2 PhoneNumber => Str The phone number to which you want to deliver an SMS message. Use E.164 format. If you don't specify a value for the C parameter, you must specify a value for the C or C parameters. =head2 Subject => Str Optional parameter to be used as the "Subject" line when the message is delivered to email endpoints. This field will also be included, if present, in the standard JSON messages delivered to other endpoints. Constraints: Subjects must be ASCII text that begins with a letter, number, or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long. =head2 TargetArn => Str If you don't specify a value for the C parameter, you must specify a value for the C or C parameters. =head2 TopicArn => Str The topic you want to publish to. If you don't specify a value for the C parameter, you must specify a value for the C or C parameters. =head1 SEE ALSO This class forms part of L, documenting arguments for method Publish in L =head1 BUGS and CONTRIBUTIONS The source code is located here: L Please report bugs to: L =cut