line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::SQS::SendMessage; |
3
|
1
|
|
|
1
|
|
285
|
use Moose; |
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
340
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
5
|
|
4
|
|
|
|
|
|
|
has DelaySeconds => (is => 'ro', isa => 'Int'); |
5
|
|
|
|
|
|
|
has MessageAttributes => (is => 'ro', isa => 'Paws::SQS::MessageBodyAttributeMap', traits => ['NameInRequest'], request_name => 'MessageAttribute' ); |
6
|
|
|
|
|
|
|
has MessageBody => (is => 'ro', isa => 'Str', required => 1); |
7
|
|
|
|
|
|
|
has MessageDeduplicationId => (is => 'ro', isa => 'Str'); |
8
|
|
|
|
|
|
|
has MessageGroupId => (is => 'ro', isa => 'Str'); |
9
|
|
|
|
|
|
|
has QueueUrl => (is => 'ro', isa => 'Str', required => 1); |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
5434
|
use MooseX::ClassAttribute; |
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
5783
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'SendMessage'); |
14
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SQS::SendMessageResult'); |
15
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro', default => 'SendMessageResult'); |
16
|
|
|
|
|
|
|
1; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
### main pod documentation begin ### |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Paws::SQS::SendMessage - Arguments for method SendMessage on Paws::SQS |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 DESCRIPTION |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
This class represents the parameters used for calling the method SendMessage on the |
27
|
|
|
|
|
|
|
Amazon Simple Queue Service service. Use the attributes of this class |
28
|
|
|
|
|
|
|
as arguments to method SendMessage. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SendMessage. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
As an example: |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
$service_obj->SendMessage(Att1 => $value1, Att2 => $value2, ...); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
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. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head2 DelaySeconds => Int |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
The length of time, in seconds, for which to delay a specific message. |
44
|
|
|
|
|
|
|
Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive |
45
|
|
|
|
|
|
|
C<DelaySeconds> value become available for processing after the delay |
46
|
|
|
|
|
|
|
period is finished. If you don't specify a value, the default value for |
47
|
|
|
|
|
|
|
the queue applies. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
When you set C<FifoQueue>, you can't set C<DelaySeconds> per message. |
50
|
|
|
|
|
|
|
You can set this parameter only on a queue level. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 MessageAttributes => L<Paws::SQS::MessageBodyAttributeMap> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Each message attribute consists of a C<Name>, C<Type>, and C<Value>. |
57
|
|
|
|
|
|
|
For more information, see Message Attribute Items and Validation in the |
58
|
|
|
|
|
|
|
I<Amazon SQS Developer Guide>. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 B<REQUIRED> MessageBody => Str |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
The message to send. The maximum string size is 256 KB. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
A message can include only XML, JSON, and unformatted text. The |
67
|
|
|
|
|
|
|
following Unicode characters are allowed: |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
C<#x9> | C<#xA> | C<#xD> | C<#x20> to C<#xD7FF> | C<#xE000> to |
70
|
|
|
|
|
|
|
C<#xFFFD> | C<#x10000> to C<#x10FFFF> |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Any characters not included in this list will be rejected. For more |
73
|
|
|
|
|
|
|
information, see the W3C specification for characters. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head2 MessageDeduplicationId => Str |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This parameter applies only to FIFO (first-in-first-out) queues. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
The token used for deduplication of sent messages. If a message with a |
82
|
|
|
|
|
|
|
particular C<MessageDeduplicationId> is sent successfully, any messages |
83
|
|
|
|
|
|
|
sent with the same C<MessageDeduplicationId> are accepted successfully |
84
|
|
|
|
|
|
|
but aren't delivered during the 5-minute deduplication interval. For |
85
|
|
|
|
|
|
|
more information, see Exactly-Once Processing in the I<Amazon SQS |
86
|
|
|
|
|
|
|
Developer Guide>. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=over |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=item * |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Every message must have a unique C<MessageDeduplicationId>, |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=over |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=item * |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
You may provide a C<MessageDeduplicationId> explicitly. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=item * |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
If you aren't able to provide a C<MessageDeduplicationId> and you |
103
|
|
|
|
|
|
|
enable C<ContentBasedDeduplication> for your queue, Amazon SQS uses a |
104
|
|
|
|
|
|
|
SHA-256 hash to generate the C<MessageDeduplicationId> using the body |
105
|
|
|
|
|
|
|
of the message (but not the attributes of the message). |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=item * |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
If you don't provide a C<MessageDeduplicationId> and the queue doesn't |
110
|
|
|
|
|
|
|
have C<ContentBasedDeduplication> set, the action fails with an error. |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=item * |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
If the queue has C<ContentBasedDeduplication> set, your |
115
|
|
|
|
|
|
|
C<MessageDeduplicationId> overrides the generated one. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=back |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=item * |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
When C<ContentBasedDeduplication> is in effect, messages with identical |
122
|
|
|
|
|
|
|
content sent within the deduplication interval are treated as |
123
|
|
|
|
|
|
|
duplicates and only one copy of the message is delivered. |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=item * |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
If you send one message with C<ContentBasedDeduplication> enabled and |
128
|
|
|
|
|
|
|
then another message with a C<MessageDeduplicationId> that is the same |
129
|
|
|
|
|
|
|
as the one generated for the first C<MessageDeduplicationId>, the two |
130
|
|
|
|
|
|
|
messages are treated as duplicates and only one copy of the message is |
131
|
|
|
|
|
|
|
delivered. |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
=back |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
The C<MessageDeduplicationId> is available to the recipient of the |
136
|
|
|
|
|
|
|
message (this can be useful for troubleshooting delivery issues). |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
If a message is sent successfully but the acknowledgement is lost and |
139
|
|
|
|
|
|
|
the message is resent with the same C<MessageDeduplicationId> after the |
140
|
|
|
|
|
|
|
deduplication interval, Amazon SQS can't detect duplicate messages. |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
The length of C<MessageDeduplicationId> is 128 characters. |
143
|
|
|
|
|
|
|
C<MessageDeduplicationId> can contain alphanumeric characters (C<a-z>, |
144
|
|
|
|
|
|
|
C<A-Z>, C<0-9>) and punctuation |
145
|
|
|
|
|
|
|
(C<!"#$%&'()*+,-./:;E<lt>=E<gt>?@[\]^_`{|}~>). |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
For best practices of using C<MessageDeduplicationId>, see Using the |
148
|
|
|
|
|
|
|
MessageDeduplicationId Property in the I<Amazon Simple Queue Service |
149
|
|
|
|
|
|
|
Developer Guide>. |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=head2 MessageGroupId => Str |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
This parameter applies only to FIFO (first-in-first-out) queues. |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
The tag that specifies that a message belongs to a specific message |
158
|
|
|
|
|
|
|
group. Messages that belong to the same message group are processed in |
159
|
|
|
|
|
|
|
a FIFO manner (however, messages in different message groups might be |
160
|
|
|
|
|
|
|
processed out of order). To interleave multiple ordered streams within |
161
|
|
|
|
|
|
|
a single queue, use C<MessageGroupId> values (for example, session data |
162
|
|
|
|
|
|
|
for multiple users). In this scenario, multiple readers can process the |
163
|
|
|
|
|
|
|
queue, but the session data of each user is processed in a FIFO |
164
|
|
|
|
|
|
|
fashion. |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=over |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=item * |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
You must associate a non-empty C<MessageGroupId> with a message. If you |
171
|
|
|
|
|
|
|
don't provide a C<MessageGroupId>, the action fails. |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
=item * |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
C<ReceiveMessage> might return messages with multiple C<MessageGroupId> |
176
|
|
|
|
|
|
|
values. For each C<MessageGroupId>, the messages are sorted by time |
177
|
|
|
|
|
|
|
sent. The caller can't specify a C<MessageGroupId>. |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
=back |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
The length of C<MessageGroupId> is 128 characters. Valid values are |
182
|
|
|
|
|
|
|
alphanumeric characters and punctuation |
183
|
|
|
|
|
|
|
C<(!"#$%&'()*+,-./:;E<lt>=E<gt>?@[\]^_`{|}~)>. |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
For best practices of using C<MessageGroupId>, see Using the |
186
|
|
|
|
|
|
|
MessageGroupId Property in the I<Amazon Simple Queue Service Developer |
187
|
|
|
|
|
|
|
Guide>. |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
C<MessageGroupId> is required for FIFO queues. You can't use it for |
190
|
|
|
|
|
|
|
Standard queues. |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
=head2 B<REQUIRED> QueueUrl => Str |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
The URL of the Amazon SQS queue to which a message is sent. |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
Queue URLs are case-sensitive. |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
=head1 SEE ALSO |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method SendMessage in L<Paws::SQS> |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
210
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
=cut |
214
|
|
|
|
|
|
|
|