| 1 | |||
| 2 | package Paws::SQS::GetQueueAttributes; | ||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | has AttributeNames => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); | |
| 5 | 1 | has QueueUrl => (is => 'ro', isa => 'Str', required => 1); | |
| 6 | |||
| 7 | 1 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetQueueAttributes'); | |
| 10 | 1 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SQS::GetQueueAttributesResult'); | |
| 11 | 1 | class_has _result_key => (isa => 'Str', is => 'ro', default => 'GetQueueAttributesResult'); | |
| 12 | 1 | 1; | |
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::SQS::GetQueueAttributes - Arguments for method GetQueueAttributes on L<Paws::SQS> | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This class represents the parameters used for calling the method GetQueueAttributes on the | ||
| 23 | L<Amazon Simple Queue Service|Paws::SQS> 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 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | my $sqs = Paws->service('SQS'); | ||
| 31 | my $GetQueueAttributesResult = $sqs->GetQueueAttributes( | ||
| 32 | QueueUrl => 'MyString', | ||
| 33 | AttributeNames => [ | ||
| 34 | 'SenderId', | ||
| 35 | ... # values: SenderId, SentTimestamp, ApproximateReceiveCount, ApproximateFirstReceiveTimestamp | ||
| 36 | ], # OPTIONAL | ||
| 37 | ); | ||
| 38 | |||
| 39 | # Results: | ||
| 40 | my $Attributes = $GetQueueAttributesResult->Attributes; | ||
| 41 | |||
| 42 | # Returns a L<Paws::SQS::GetQueueAttributesResult> object. | ||
| 43 | |||
| 44 | 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. | ||
| 45 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/sqs/GetQueueAttributes> | ||
| 46 | |||
| 47 | =head1 ATTRIBUTES | ||
| 48 | |||
| 49 | |||
| 50 | =head2 AttributeNames => ArrayRef[Str|Undef] | ||
| 51 | |||
| 52 | A list of attributes for which to retrieve information. | ||
| 53 | |||
| 54 | The C<AttributeName.N> parameter is optional, but if you don't specify | ||
| 55 | values for this parameter, the request returns empty results. | ||
| 56 | |||
| 57 | In the future, new attributes might be added. If you write code that | ||
| 58 | calls this action, we recommend that you structure your code so that it | ||
| 59 | can handle new attributes gracefully. | ||
| 60 | |||
| 61 | The following attributes are supported: | ||
| 62 | |||
| 63 | The C<ApproximateNumberOfMessagesDelayed>, | ||
| 64 | C<ApproximateNumberOfMessagesNotVisible>, and | ||
| 65 | C<ApproximateNumberOfMessagesVisible> metrics may not achieve | ||
| 66 | consistency until at least 1 minute after the producers stop sending | ||
| 67 | messages. This period is required for the queue metadata to reach | ||
| 68 | eventual consistency. | ||
| 69 | |||
| 70 | =over | ||
| 71 | |||
| 72 | =item * | ||
| 73 | |||
| 74 | C<All> E<ndash> Returns all values. | ||
| 75 | |||
| 76 | =item * | ||
| 77 | |||
| 78 | C<ApproximateNumberOfMessages> E<ndash> Returns the approximate number | ||
| 79 | of messages available for retrieval from the queue. | ||
| 80 | |||
| 81 | =item * | ||
| 82 | |||
| 83 | C<ApproximateNumberOfMessagesDelayed> E<ndash> Returns the approximate | ||
| 84 | number of messages in the queue that are delayed and not available for | ||
| 85 | reading immediately. This can happen when the queue is configured as a | ||
| 86 | delay queue or when a message has been sent with a delay parameter. | ||
| 87 | |||
| 88 | =item * | ||
| 89 | |||
| 90 | C<ApproximateNumberOfMessagesNotVisible> E<ndash> Returns the | ||
| 91 | approximate number of messages that are in flight. Messages are | ||
| 92 | considered to be I<in flight> if they have been sent to a client but | ||
| 93 | have not yet been deleted or have not yet reached the end of their | ||
| 94 | visibility window. | ||
| 95 | |||
| 96 | =item * | ||
| 97 | |||
| 98 | C<CreatedTimestamp> E<ndash> Returns the time when the queue was | ||
| 99 | created in seconds (epoch time | ||
| 100 | (http://en.wikipedia.org/wiki/Unix_time)). | ||
| 101 | |||
| 102 | =item * | ||
| 103 | |||
| 104 | C<DelaySeconds> E<ndash> Returns the default delay on the queue in | ||
| 105 | seconds. | ||
| 106 | |||
| 107 | =item * | ||
| 108 | |||
| 109 | C<LastModifiedTimestamp> E<ndash> Returns the time when the queue was | ||
| 110 | last changed in seconds (epoch time | ||
| 111 | (http://en.wikipedia.org/wiki/Unix_time)). | ||
| 112 | |||
| 113 | =item * | ||
| 114 | |||
| 115 | C<MaximumMessageSize> E<ndash> Returns the limit of how many bytes a | ||
| 116 | message can contain before Amazon SQS rejects it. | ||
| 117 | |||
| 118 | =item * | ||
| 119 | |||
| 120 | C<MessageRetentionPeriod> E<ndash> Returns the length of time, in | ||
| 121 | seconds, for which Amazon SQS retains a message. | ||
| 122 | |||
| 123 | =item * | ||
| 124 | |||
| 125 | C<Policy> E<ndash> Returns the policy of the queue. | ||
| 126 | |||
| 127 | =item * | ||
| 128 | |||
| 129 | C<QueueArn> E<ndash> Returns the Amazon resource name (ARN) of the | ||
| 130 | queue. | ||
| 131 | |||
| 132 | =item * | ||
| 133 | |||
| 134 | C<ReceiveMessageWaitTimeSeconds> E<ndash> Returns the length of time, | ||
| 135 | in seconds, for which the C<ReceiveMessage> action waits for a message | ||
| 136 | to arrive. | ||
| 137 | |||
| 138 | =item * | ||
| 139 | |||
| 140 | C<RedrivePolicy> E<ndash> The string that includes the parameters for | ||
| 141 | the dead-letter queue functionality of the source queue as a JSON | ||
| 142 | object. For more information about the redrive policy and dead-letter | ||
| 143 | queues, see Using Amazon SQS Dead-Letter Queues | ||
| 144 | (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) | ||
| 145 | in the I<Amazon SQS Developer Guide>. | ||
| 146 | |||
| 147 | =over | ||
| 148 | |||
| 149 | =item * | ||
| 150 | |||
| 151 | C<deadLetterTargetArn> E<ndash> The Amazon Resource Name (ARN) of the | ||
| 152 | dead-letter queue to which Amazon SQS moves messages after the value of | ||
| 153 | C<maxReceiveCount> is exceeded. | ||
| 154 | |||
| 155 | =item * | ||
| 156 | |||
| 157 | C<maxReceiveCount> E<ndash> The number of times a message is delivered | ||
| 158 | to the source queue before being moved to the dead-letter queue. When | ||
| 159 | the C<ReceiveCount> for a message exceeds the C<maxReceiveCount> for a | ||
| 160 | queue, Amazon SQS moves the message to the dead-letter-queue. | ||
| 161 | |||
| 162 | =back | ||
| 163 | |||
| 164 | =item * | ||
| 165 | |||
| 166 | C<VisibilityTimeout> E<ndash> Returns the visibility timeout for the | ||
| 167 | queue. For more information about the visibility timeout, see | ||
| 168 | Visibility Timeout | ||
| 169 | (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) | ||
| 170 | in the I<Amazon SQS Developer Guide>. | ||
| 171 | |||
| 172 | =back | ||
| 173 | |||
| 174 | The following attributes apply only to server-side-encryption | ||
| 175 | (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html): | ||
| 176 | |||
| 177 | =over | ||
| 178 | |||
| 179 | =item * | ||
| 180 | |||
| 181 | C<KmsMasterKeyId> E<ndash> Returns the ID of an Amazon Web Services | ||
| 182 | managed customer master key (CMK) for Amazon SQS or a custom CMK. For | ||
| 183 | more information, see Key Terms | ||
| 184 | (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms). | ||
| 185 | |||
| 186 | =item * | ||
| 187 | |||
| 188 | C<KmsDataKeyReusePeriodSeconds> E<ndash> Returns the length of time, in | ||
| 189 | seconds, for which Amazon SQS can reuse a data key to encrypt or | ||
| 190 | decrypt messages before calling KMS again. For more information, see | ||
| 191 | How Does the Data Key Reuse Period Work? | ||
| 192 | (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work). | ||
| 193 | |||
| 194 | =back | ||
| 195 | |||
| 196 | The following attributes apply only to FIFO (first-in-first-out) queues | ||
| 197 | (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html): | ||
| 198 | |||
| 199 | =over | ||
| 200 | |||
| 201 | =item * | ||
| 202 | |||
| 203 | C<FifoQueue> E<ndash> Returns information about whether the queue is | ||
| 204 | FIFO. For more information, see FIFO queue logic | ||
| 205 | (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html) | ||
| 206 | in the I<Amazon SQS Developer Guide>. | ||
| 207 | |||
| 208 | To determine whether a queue is FIFO | ||
| 209 | (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html), | ||
| 210 | you can check whether C<QueueName> ends with the C<.fifo> suffix. | ||
| 211 | |||
| 212 | =item * | ||
| 213 | |||
| 214 | C<ContentBasedDeduplication> E<ndash> Returns whether content-based | ||
| 215 | deduplication is enabled for the queue. For more information, see | ||
| 216 | Exactly-once processing | ||
| 217 | (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html) | ||
| 218 | in the I<Amazon SQS Developer Guide>. | ||
| 219 | |||
| 220 | =back | ||
| 221 | |||
| 222 | The following attributes apply only to high throughput for FIFO queues | ||
| 223 | (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html): | ||
| 224 | |||
| 225 | =over | ||
| 226 | |||
| 227 | =item * | ||
| 228 | |||
| 229 | C<DeduplicationScope> E<ndash> Specifies whether message deduplication | ||
| 230 | occurs at the message group or queue level. Valid values are | ||
| 231 | C<messageGroup> and C<queue>. | ||
| 232 | |||
| 233 | =item * | ||
| 234 | |||
| 235 | C<FifoThroughputLimit> E<ndash> Specifies whether the FIFO queue | ||
| 236 | throughput quota applies to the entire queue or per message group. | ||
| 237 | Valid values are C<perQueue> and C<perMessageGroupId>. The | ||
| 238 | C<perMessageGroupId> value is allowed only when the value for | ||
| 239 | C<DeduplicationScope> is C<messageGroup>. | ||
| 240 | |||
| 241 | =back | ||
| 242 | |||
| 243 | To enable high throughput for FIFO queues, do the following: | ||
| 244 | |||
| 245 | =over | ||
| 246 | |||
| 247 | =item * | ||
| 248 | |||
| 249 | Set C<DeduplicationScope> to C<messageGroup>. | ||
| 250 | |||
| 251 | =item * | ||
| 252 | |||
| 253 | Set C<FifoThroughputLimit> to C<perMessageGroupId>. | ||
| 254 | |||
| 255 | =back | ||
| 256 | |||
| 257 | If you set these attributes to anything other than the values shown for | ||
| 258 | enabling high throughput, normal throughput is in effect and | ||
| 259 | deduplication occurs as specified. | ||
| 260 | |||
| 261 | For information on throughput quotas, see Quotas related to messages | ||
| 262 | (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html) | ||
| 263 | in the I<Amazon SQS Developer Guide>. | ||
| 264 | |||
| 265 | |||
| 266 | |||
| 267 | =head2 B<REQUIRED> QueueUrl => Str | ||
| 268 | |||
| 269 | The URL of the Amazon SQS queue whose attribute information is | ||
| 270 | retrieved. | ||
| 271 | |||
| 272 | Queue URLs and names are case-sensitive. | ||
| 273 | |||
| 274 | |||
| 275 | |||
| 276 | |||
| 277 | =head1 SEE ALSO | ||
| 278 | |||
| 279 | This class forms part of L<Paws>, documenting arguments for method GetQueueAttributes in L<Paws::SQS> | ||
| 280 | |||
| 281 | =head1 BUGS and CONTRIBUTIONS | ||
| 282 | |||
| 283 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 284 | |||
| 285 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 286 | |||
| 287 | =cut | ||
| 288 | |||