blib/lib/Paws/SQS/SendMessageBatchRequestEntry.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/SQS/SendMessageBatch.pm ↑ Summary blib/lib/Paws/SQS/SendMessageBatchResult.pm »
1 # Generated by default/object.tt
2 package Paws::SQS::SendMessageBatchRequestEntry;
3 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 has DelaySeconds => (is => 'ro', isa => 'Int');
5 2 has Id => (is => 'ro', isa => 'Str', required => 1);
6 2 has MessageAttributes => (is => 'ro', isa => 'Paws::SQS::MessageBodyAttributeMap', request_name => 'MessageAttribute', traits => ['NameInRequest']);
7 2 has MessageBody => (is => 'ro', isa => 'Str', required => 1);
8 2 has MessageDeduplicationId => (is => 'ro', isa => 'Str');
9 2 has MessageGroupId => (is => 'ro', isa => 'Str');
10 2 has MessageSystemAttributes => (is => 'ro', isa => 'Paws::SQS::MessageBodySystemAttributeMap', request_name => 'MessageSystemAttribute', traits => ['NameInRequest']);
11  
12 2 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::SQS::SendMessageBatchRequestEntry
19  
20 =head1 USAGE
21  
22 This class represents one of two things:
23  
24 =head3 Arguments in a call to a service
25  
26 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
27 Each attribute should be used as a named argument in the calls that expect this type of object.
28  
29 As an example, if Att1 is expected to be a Paws::SQS::SendMessageBatchRequestEntry object:
30  
31 $service_obj->Method(Att1 => { DelaySeconds => $value, ..., MessageSystemAttributes => $value });
32  
33 =head3 Results returned from an API call
34  
35 Use accessors for each attribute. If Att1 is expected to be an Paws::SQS::SendMessageBatchRequestEntry object:
36  
37 $result = $service_obj->Method(...);
38 $result->Att1->DelaySeconds
39  
40 =head1 DESCRIPTION
41  
42 Contains the details of a single Amazon SQS message along with an
43 C<Id>.
44  
45 =head1 ATTRIBUTES
46  
47  
48 =head2 DelaySeconds => Int
49  
50 The length of time, in seconds, for which a specific message is
51 delayed. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a
52 positive C<DelaySeconds> value become available for processing after
53 the delay period is finished. If you don't specify a value, the default
54 value for the queue is applied.
55  
56 When you set C<FifoQueue>, you can't set C<DelaySeconds> per message.
57 You can set this parameter only on a queue level.
58  
59  
60 =head2 B<REQUIRED> Id => Str
61  
62 An identifier for a message in this batch used to communicate the
63 result.
64  
65 The C<Id>s of a batch request need to be unique within a request.
66  
67 This identifier can have up to 80 characters. The following characters
68 are accepted: alphanumeric characters, hyphens(-), and underscores (_).
69  
70  
71 =head2 MessageAttributes => L<Paws::SQS::MessageBodyAttributeMap>
72  
73 Each message attribute consists of a C<Name>, C<Type>, and C<Value>.
74 For more information, see Amazon SQS message attributes
75 (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes)
76 in the I<Amazon SQS Developer Guide>.
77  
78  
79 =head2 B<REQUIRED> MessageBody => Str
80  
81 The body of the message.
82  
83  
84 =head2 MessageDeduplicationId => Str
85  
86 This parameter applies only to FIFO (first-in-first-out) queues.
87  
88 The token used for deduplication of messages within a 5-minute minimum
89 deduplication interval. If a message with a particular
90 C<MessageDeduplicationId> is sent successfully, subsequent messages
91 with the same C<MessageDeduplicationId> are accepted successfully but
92 aren't delivered. For more information, see Exactly-once processing
93 (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html)
94 in the I<Amazon SQS Developer Guide>.
95  
96 =over
97  
98 =item *
99  
100 Every message must have a unique C<MessageDeduplicationId>,
101  
102 =over
103  
104 =item *
105  
106 You may provide a C<MessageDeduplicationId> explicitly.
107  
108 =item *
109  
110 If you aren't able to provide a C<MessageDeduplicationId> and you
111 enable C<ContentBasedDeduplication> for your queue, Amazon SQS uses a
112 SHA-256 hash to generate the C<MessageDeduplicationId> using the body
113 of the message (but not the attributes of the message).
114  
115 =item *
116  
117 If you don't provide a C<MessageDeduplicationId> and the queue doesn't
118 have C<ContentBasedDeduplication> set, the action fails with an error.
119  
120 =item *
121  
122 If the queue has C<ContentBasedDeduplication> set, your
123 C<MessageDeduplicationId> overrides the generated one.
124  
125 =back
126  
127 =item *
128  
129 When C<ContentBasedDeduplication> is in effect, messages with identical
130 content sent within the deduplication interval are treated as
131 duplicates and only one copy of the message is delivered.
132  
133 =item *
134  
135 If you send one message with C<ContentBasedDeduplication> enabled and
136 then another message with a C<MessageDeduplicationId> that is the same
137 as the one generated for the first C<MessageDeduplicationId>, the two
138 messages are treated as duplicates and only one copy of the message is
139 delivered.
140  
141 =back
142  
143 The C<MessageDeduplicationId> is available to the consumer of the
144 message (this can be useful for troubleshooting delivery issues).
145  
146 If a message is sent successfully but the acknowledgement is lost and
147 the message is resent with the same C<MessageDeduplicationId> after the
148 deduplication interval, Amazon SQS can't detect duplicate messages.
149  
150 Amazon SQS continues to keep track of the message deduplication ID even
151 after the message is received and deleted.
152  
153 The length of C<MessageDeduplicationId> is 128 characters.
154 C<MessageDeduplicationId> can contain alphanumeric characters (C<a-z>,
155 C<A-Z>, C<0-9>) and punctuation
156 (C<!"#$%&'()*+,-./:;E<lt>=E<gt>?@[\]^_`{|}~>).
157  
158 For best practices of using C<MessageDeduplicationId>, see Using the
159 MessageDeduplicationId Property
160 (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html)
161 in the I<Amazon SQS Developer Guide>.
162  
163  
164 =head2 MessageGroupId => Str
165  
166 This parameter applies only to FIFO (first-in-first-out) queues.
167  
168 The tag that specifies that a message belongs to a specific message
169 group. Messages that belong to the same message group are processed in
170 a FIFO manner (however, messages in different message groups might be
171 processed out of order). To interleave multiple ordered streams within
172 a single queue, use C<MessageGroupId> values (for example, session data
173 for multiple users). In this scenario, multiple consumers can process
174 the queue, but the session data of each user is processed in a FIFO
175 fashion.
176  
177 =over
178  
179 =item *
180  
181 You must associate a non-empty C<MessageGroupId> with a message. If you
182 don't provide a C<MessageGroupId>, the action fails.
183  
184 =item *
185  
186 C<ReceiveMessage> might return messages with multiple C<MessageGroupId>
187 values. For each C<MessageGroupId>, the messages are sorted by time
188 sent. The caller can't specify a C<MessageGroupId>.
189  
190 =back
191  
192 The length of C<MessageGroupId> is 128 characters. Valid values:
193 alphanumeric characters and punctuation
194 C<(!"#$%&'()*+,-./:;E<lt>=E<gt>?@[\]^_`{|}~)>.
195  
196 For best practices of using C<MessageGroupId>, see Using the
197 MessageGroupId Property
198 (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagegroupid-property.html)
199 in the I<Amazon SQS Developer Guide>.
200  
201 C<MessageGroupId> is required for FIFO queues. You can't use it for
202 Standard queues.
203  
204  
205 =head2 MessageSystemAttributes => L<Paws::SQS::MessageBodySystemAttributeMap>
206  
207 The message system attribute to send Each message system attribute
208 consists of a C<Name>, C<Type>, and C<Value>.
209  
210 =over
211  
212 =item *
213  
214 Currently, the only supported message system attribute is
215 C<AWSTraceHeader>. Its type must be C<String> and its value must be a
216 correctly formatted X-Ray trace header string.
217  
218 =item *
219  
220 The size of a message system attribute doesn't count towards the total
221 size of a message.
222  
223 =back
224  
225  
226  
227  
228 =head1 SEE ALSO
229  
230 This class forms part of L<Paws>, describing an object used in L<Paws::SQS>
231  
232 =head1 BUGS and CONTRIBUTIONS
233  
234 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
235  
236 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
237  
238 =cut
239  
« blib/lib/Paws/SQS/SendMessageBatch.pm ↑ Summary blib/lib/Paws/SQS/SendMessageBatchResult.pm »