File Coverage

blib/lib/Paws/SQS/SetQueueAttributes.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::SQS::SetQueueAttributes;
3 1     1   702 use Moose;
  1         3  
  1         15  
4             has Attributes => (is => 'ro', isa => 'Paws::SQS::QueueAttributeMap', traits => ['NameInRequest'], request_name => 'Attribute' , required => 1);
5             has QueueUrl => (is => 'ro', isa => 'Str', required => 1);
6              
7 1     1   9223 use MooseX::ClassAttribute;
  1         3  
  1         11  
8              
9             class_has _api_call => (isa => 'Str', is => 'ro', default => 'SetQueueAttributes');
10             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
11             class_has _result_key => (isa => 'Str', is => 'ro');
12             1;
13              
14             ### main pod documentation begin ###
15              
16             =head1 NAME
17              
18             Paws::SQS::SetQueueAttributes - Arguments for method SetQueueAttributes on Paws::SQS
19              
20             =head1 DESCRIPTION
21              
22             This class represents the parameters used for calling the method SetQueueAttributes on the
23             Amazon Simple Queue Service service. Use the attributes of this class
24             as arguments to method SetQueueAttributes.
25              
26             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SetQueueAttributes.
27              
28             As an example:
29              
30             $service_obj->SetQueueAttributes(Att1 => $value1, Att2 => $value2, ...);
31              
32             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.
33              
34             =head1 ATTRIBUTES
35              
36              
37             =head2 B<REQUIRED> Attributes => L<Paws::SQS::QueueAttributeMap>
38              
39             A map of attributes to set.
40              
41             The following lists the names, descriptions, and values of the special
42             request parameters that the C<SetQueueAttributes> action uses:
43              
44             =over
45              
46             =item *
47              
48             C<DelaySeconds> - The length of time, in seconds, for which the
49             delivery of all messages in the queue is delayed. Valid values: An
50             integer from 0 to 900 (15 minutes). The default is 0 (zero).
51              
52             =item *
53              
54             C<MaximumMessageSize> - The limit of how many bytes a message can
55             contain before Amazon SQS rejects it. Valid values: An integer from
56             1,024 bytes (1 KiB) up to 262,144 bytes (256 KiB). The default is
57             262,144 (256 KiB).
58              
59             =item *
60              
61             C<MessageRetentionPeriod> - The length of time, in seconds, for which
62             Amazon SQS retains a message. Valid values: An integer representing
63             seconds, from 60 (1 minute) to 1,209,600 (14 days). The default is
64             345,600 (4 days).
65              
66             =item *
67              
68             C<Policy> - The queue's policy. A valid AWS policy. For more
69             information about policy structure, see Overview of AWS IAM Policies in
70             the I<Amazon IAM User Guide>.
71              
72             =item *
73              
74             C<ReceiveMessageWaitTimeSeconds> - The length of time, in seconds, for
75             which a C< ReceiveMessage > action waits for a message to arrive. Valid
76             values: an integer from 0 to 20 (seconds). The default is 0.
77              
78             =item *
79              
80             C<RedrivePolicy> - The parameters for the dead letter queue
81             functionality of the source queue. For more information about the
82             redrive policy and dead letter queues, see Using Amazon SQS Dead Letter
83             Queues in the I<Amazon SQS Developer Guide>.
84              
85             The dead letter queue of a FIFO queue must also be a FIFO queue.
86             Similarly, the dead letter queue of a standard queue must also be a
87             standard queue.
88              
89             =item *
90              
91             C<VisibilityTimeout> - The visibility timeout for the queue. Valid
92             values: an integer from 0 to 43,200 (12 hours). The default is 30. For
93             more information about the visibility timeout, see Visibility Timeout
94             in the I<Amazon SQS Developer Guide>.
95              
96             =back
97              
98             The following attributes apply only to server-side-encryption:
99              
100             =over
101              
102             =item *
103              
104             C<KmsMasterKeyId> - The ID of an AWS-managed customer master key (CMK)
105             for Amazon SQS or a custom CMK. For more information, see Key Terms.
106             While the alias of the AWS-managed CMK for Amazon SQS is always
107             C<alias/aws/sqs>, the alias of a custom CMK can, for example, be
108             C<alias/aws/sqs>. For more examples, see KeyId in the I<AWS Key
109             Management Service API Reference>.
110              
111             =item *
112              
113             C<KmsDataKeyReusePeriodSeconds> - The length of time, in seconds, for
114             which Amazon SQS can reuse a data key to encrypt or decrypt messages
115             before calling AWS KMS again. An integer representing seconds, between
116             60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300
117             (5 minutes). A shorter time period provides better security but results
118             in more calls to KMS which incur charges after Free Tier. For more
119             information, see How Does the Data Key Reuse Period Work?.
120              
121             =back
122              
123             The following attribute applies only to FIFO (first-in-first-out)
124             queues:
125              
126             =over
127              
128             =item *
129              
130             C<ContentBasedDeduplication> - Enables content-based deduplication. For
131             more information, see Exactly-Once Processing in the I<Amazon SQS
132             Developer Guide>.
133              
134             =over
135              
136             =item *
137              
138             Every message must have a unique C<MessageDeduplicationId>,
139              
140             =over
141              
142             =item *
143              
144             You may provide a C<MessageDeduplicationId> explicitly.
145              
146             =item *
147              
148             If you aren't able to provide a C<MessageDeduplicationId> and you
149             enable C<ContentBasedDeduplication> for your queue, Amazon SQS uses a
150             SHA-256 hash to generate the C<MessageDeduplicationId> using the body
151             of the message (but not the attributes of the message).
152              
153             =item *
154              
155             If you don't provide a C<MessageDeduplicationId> and the queue doesn't
156             have C<ContentBasedDeduplication> set, the action fails with an error.
157              
158             =item *
159              
160             If the queue has C<ContentBasedDeduplication> set, your
161             C<MessageDeduplicationId> overrides the generated one.
162              
163             =back
164              
165             =item *
166              
167             When C<ContentBasedDeduplication> is in effect, messages with identical
168             content sent within the deduplication interval are treated as
169             duplicates and only one copy of the message is delivered.
170              
171             =item *
172              
173             If you send one message with C<ContentBasedDeduplication> enabled and
174             then another message with a C<MessageDeduplicationId> that is the same
175             as the one generated for the first C<MessageDeduplicationId>, the two
176             messages are treated as duplicates and only one copy of the message is
177             delivered.
178              
179             =back
180              
181             =back
182              
183             Any other valid special request parameters (such as the following) are
184             ignored:
185              
186             =over
187              
188             =item *
189              
190             C<ApproximateNumberOfMessages>
191              
192             =item *
193              
194             C<ApproximateNumberOfMessagesDelayed>
195              
196             =item *
197              
198             C<ApproximateNumberOfMessagesNotVisible>
199              
200             =item *
201              
202             C<CreatedTimestamp>
203              
204             =item *
205              
206             C<LastModifiedTimestamp>
207              
208             =item *
209              
210             C<QueueArn>
211              
212             =back
213              
214              
215              
216              
217             =head2 B<REQUIRED> QueueUrl => Str
218              
219             The URL of the Amazon SQS queue whose attributes are set.
220              
221             Queue URLs are case-sensitive.
222              
223              
224              
225              
226             =head1 SEE ALSO
227              
228             This class forms part of L<Paws>, documenting arguments for method SetQueueAttributes in L<Paws::SQS>
229              
230             =head1 BUGS and CONTRIBUTIONS
231              
232             The source code is located here: https://github.com/pplu/aws-sdk-perl
233              
234             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
235              
236             =cut
237