File Coverage

blib/lib/Paws/SQS/GetQueueAttributes.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::SQS::GetQueueAttributes;
3 1     1   284 use Moose;
  1     1   2  
  1         6  
  1         275  
  1         2  
  1         5  
4             has AttributeNames => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5             has QueueUrl => (is => 'ro', isa => 'Str', required => 1);
6              
7 1     1   5342 use MooseX::ClassAttribute;
  1     1   2  
  1         6  
  1         5277  
  1         2  
  1         5  
8              
9             class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetQueueAttributes');
10             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SQS::GetQueueAttributesResult');
11             class_has _result_key => (isa => 'Str', is => 'ro', default => 'GetQueueAttributesResult');
12             1;
13              
14             ### main pod documentation begin ###
15              
16             =head1 NAME
17              
18             Paws::SQS::GetQueueAttributes - Arguments for method GetQueueAttributes on Paws::SQS
19              
20             =head1 DESCRIPTION
21              
22             This class represents the parameters used for calling the method GetQueueAttributes on the
23             Amazon Simple Queue Service service. Use the attributes of this class
24             as arguments to method GetQueueAttributes.
25              
26             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetQueueAttributes.
27              
28             As an example:
29              
30             $service_obj->GetQueueAttributes(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 AttributeNames => ArrayRef[Str|Undef]
38              
39             A list of attributes for which to retrieve information.
40              
41             In the future, new attributes might be added. If you write code that
42             calls this action, we recommend that you structure your code so that it
43             can handle new attributes gracefully.
44              
45             The following attributes are supported:
46              
47             =over
48              
49             =item *
50              
51             C<All> - Returns all values.
52              
53             =item *
54              
55             C<ApproximateNumberOfMessages> - Returns the approximate number of
56             visible messages in a queue. For more information, see Resources
57             Required to Process Messages in the I<Amazon SQS Developer Guide>.
58              
59             =item *
60              
61             C<ApproximateNumberOfMessagesDelayed> - Returns the approximate number
62             of messages that are waiting to be added to the queue.
63              
64             =item *
65              
66             C<ApproximateNumberOfMessagesNotVisible> - Returns the approximate
67             number of messages that have not timed-out and aren't deleted. For more
68             information, see Resources Required to Process Messages in the I<Amazon
69             SQS Developer Guide>.
70              
71             =item *
72              
73             C<CreatedTimestamp> - Returns the time when the queue was created in
74             seconds (epoch time).
75              
76             =item *
77              
78             C<DelaySeconds> - Returns the default delay on the queue in seconds.
79              
80             =item *
81              
82             C<LastModifiedTimestamp> - Returns the time when the queue was last
83             changed in seconds (epoch time).
84              
85             =item *
86              
87             C<MaximumMessageSize> - Returns the limit of how many bytes a message
88             can contain before Amazon SQS rejects it.
89              
90             =item *
91              
92             C<MessageRetentionPeriod> - Returns the length of time, in seconds, for
93             which Amazon SQS retains a message.
94              
95             =item *
96              
97             C<Policy> - Returns the policy of the queue.
98              
99             =item *
100              
101             C<QueueArn> - Returns the Amazon resource name (ARN) of the queue.
102              
103             =item *
104              
105             C<ReceiveMessageWaitTimeSeconds> - Returns the length of time, in
106             seconds, for which the C<ReceiveMessage> action waits for a message to
107             arrive.
108              
109             =item *
110              
111             C<RedrivePolicy> - Returns the string that includes the parameters for
112             dead-letter queue functionality of the source queue. For more
113             information about the redrive policy and dead-letter queues, see Using
114             Amazon SQS Dead-Letter Queues in the I<Amazon SQS Developer Guide>.
115              
116             =over
117              
118             =item *
119              
120             C<deadLetterTargetArn> - The Amazon Resource Name (ARN) of the
121             dead-letter queue to which Amazon SQS moves messages after the value of
122             C<maxReceiveCount> is exceeded.
123              
124             =item *
125              
126             C<maxReceiveCount> - The number of times a message is delivered to the
127             source queue before being moved to the dead-letter queue.
128              
129             =back
130              
131             =item *
132              
133             C<VisibilityTimeout> - Returns the visibility timeout for the queue.
134             For more information about the visibility timeout, see Visibility
135             Timeout in the I<Amazon SQS Developer Guide>.
136              
137             =back
138              
139             The following attributes apply only to server-side-encryption:
140              
141             =over
142              
143             =item *
144              
145             C<KmsMasterKeyId> - Returns the ID of an AWS-managed customer master
146             key (CMK) for Amazon SQS or a custom CMK. For more information, see Key
147             Terms.
148              
149             =item *
150              
151             C<KmsDataKeyReusePeriodSeconds> - Returns the length of time, in
152             seconds, for which Amazon SQS can reuse a data key to encrypt or
153             decrypt messages before calling AWS KMS again. For more information,
154             see How Does the Data Key Reuse Period Work?.
155              
156             =back
157              
158             The following attributes apply only to FIFO (first-in-first-out)
159             queues:
160              
161             =over
162              
163             =item *
164              
165             C<FifoQueue> - Returns whether the queue is FIFO. For more information,
166             see FIFO Queue Logic in the I<Amazon SQS Developer Guide>.
167              
168             To determine whether a queue is FIFO, you can check whether
169             C<QueueName> ends with the C<.fifo> suffix.
170              
171             =item *
172              
173             C<ContentBasedDeduplication> - Returns whether content-based
174             deduplication is enabled for the queue. For more information, see
175             Exactly-Once Processing in the I<Amazon SQS Developer Guide>.
176              
177             =back
178              
179              
180              
181              
182             =head2 B<REQUIRED> QueueUrl => Str
183              
184             The URL of the Amazon SQS queue whose attribute information is
185             retrieved.
186              
187             Queue URLs are case-sensitive.
188              
189              
190              
191              
192             =head1 SEE ALSO
193              
194             This class forms part of L<Paws>, documenting arguments for method GetQueueAttributes in L<Paws::SQS>
195              
196             =head1 BUGS and CONTRIBUTIONS
197              
198             The source code is located here: https://github.com/pplu/aws-sdk-perl
199              
200             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
201              
202             =cut
203