aws-sdk-sqs 1.24.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -22,6 +24,7 @@ module Aws::SQS
22
24
  Binary = Shapes::BlobShape.new(name: 'Binary')
23
25
  BinaryList = Shapes::ListShape.new(name: 'BinaryList', flattened: true)
24
26
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
27
+ BoxedInteger = Shapes::IntegerShape.new(name: 'BoxedInteger')
25
28
  ChangeMessageVisibilityBatchRequest = Shapes::StructureShape.new(name: 'ChangeMessageVisibilityBatchRequest')
26
29
  ChangeMessageVisibilityBatchRequestEntry = Shapes::StructureShape.new(name: 'ChangeMessageVisibilityBatchRequestEntry')
27
30
  ChangeMessageVisibilityBatchRequestEntryList = Shapes::ListShape.new(name: 'ChangeMessageVisibilityBatchRequestEntryList', flattened: true)
@@ -96,6 +99,7 @@ module Aws::SQS
96
99
  TagMap = Shapes::MapShape.new(name: 'TagMap', flattened: true)
97
100
  TagQueueRequest = Shapes::StructureShape.new(name: 'TagQueueRequest')
98
101
  TagValue = Shapes::StringShape.new(name: 'TagValue')
102
+ Token = Shapes::StringShape.new(name: 'Token')
99
103
  TooManyEntriesInBatchRequest = Shapes::StructureShape.new(name: 'TooManyEntriesInBatchRequest')
100
104
  UnsupportedOperation = Shapes::StructureShape.new(name: 'UnsupportedOperation')
101
105
  UntagQueueRequest = Shapes::StructureShape.new(name: 'UntagQueueRequest')
@@ -210,9 +214,12 @@ module Aws::SQS
210
214
  InvalidMessageContents.struct_class = Types::InvalidMessageContents
211
215
 
212
216
  ListDeadLetterSourceQueuesRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
217
+ ListDeadLetterSourceQueuesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
218
+ ListDeadLetterSourceQueuesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "MaxResults"))
213
219
  ListDeadLetterSourceQueuesRequest.struct_class = Types::ListDeadLetterSourceQueuesRequest
214
220
 
215
221
  ListDeadLetterSourceQueuesResult.add_member(:queue_urls, Shapes::ShapeRef.new(shape: QueueUrlList, required: true, location_name: "queueUrls"))
222
+ ListDeadLetterSourceQueuesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
216
223
  ListDeadLetterSourceQueuesResult.struct_class = Types::ListDeadLetterSourceQueuesResult
217
224
 
218
225
  ListQueueTagsRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
@@ -222,9 +229,12 @@ module Aws::SQS
222
229
  ListQueueTagsResult.struct_class = Types::ListQueueTagsResult
223
230
 
224
231
  ListQueuesRequest.add_member(:queue_name_prefix, Shapes::ShapeRef.new(shape: String, location_name: "QueueNamePrefix"))
232
+ ListQueuesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
233
+ ListQueuesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "MaxResults"))
225
234
  ListQueuesRequest.struct_class = Types::ListQueuesRequest
226
235
 
227
236
  ListQueuesResult.add_member(:queue_urls, Shapes::ShapeRef.new(shape: QueueUrlList, location_name: "QueueUrls"))
237
+ ListQueuesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
228
238
  ListQueuesResult.struct_class = Types::ListQueuesResult
229
239
 
230
240
  Message.add_member(:message_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageId"))
@@ -484,6 +494,12 @@ module Aws::SQS
484
494
  o.input = Shapes::ShapeRef.new(shape: ListDeadLetterSourceQueuesRequest)
485
495
  o.output = Shapes::ShapeRef.new(shape: ListDeadLetterSourceQueuesResult)
486
496
  o.errors << Shapes::ShapeRef.new(shape: QueueDoesNotExist)
497
+ o[:pager] = Aws::Pager.new(
498
+ limit_key: "max_results",
499
+ tokens: {
500
+ "next_token" => "next_token"
501
+ }
502
+ )
487
503
  end)
488
504
 
489
505
  api.add_operation(:list_queue_tags, Seahorse::Model::Operation.new.tap do |o|
@@ -500,6 +516,12 @@ module Aws::SQS
500
516
  o.http_request_uri = "/"
501
517
  o.input = Shapes::ShapeRef.new(shape: ListQueuesRequest)
502
518
  o.output = Shapes::ShapeRef.new(shape: ListQueuesResult)
519
+ o[:pager] = Aws::Pager.new(
520
+ limit_key: "max_results",
521
+ tokens: {
522
+ "next_token" => "next_token"
523
+ }
524
+ )
503
525
  end)
504
526
 
505
527
  api.add_operation(:purge_queue, Seahorse::Model::Operation.new.tap do |o|
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # utility classes
2
4
  require 'aws-sdk-sqs/queue_poller'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'openssl'
2
4
 
3
5
  module Aws
@@ -119,14 +121,12 @@ module Aws
119
121
  end
120
122
 
121
123
  def mismatch_error_message(section, local_md5, returned_md5, response)
122
- m = "MD5 returned by SQS does not match " <<
123
- "the calculation on the original request. ("
124
-
124
+ m = 'MD5 returned by SQS does not match '\
125
+ 'the calculation on the original request. ('
125
126
  if response.respond_to?(:id) && !response.id.nil?
126
- m << "Message ID: #{response.id}, "
127
+ m = "#{m}Message ID: #{response.id}, "
127
128
  end
128
-
129
- m << "MD5 calculated by the #{section}: " <<
129
+ "#{m}MD5 calculated by the #{section}: "\
130
130
  "'#{local_md5}', MD5 checksum returned: '#{returned_md5}')"
131
131
  end
132
132
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Aws
2
4
  module SQS
3
5
  module Plugins
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -205,15 +207,15 @@ module Aws::SQS
205
207
  # A list of attributes that need to be returned along with each message.
206
208
  # These attributes include:
207
209
  #
208
- # * `All` - Returns all values.
210
+ # * `All` Returns all values.
209
211
  #
210
- # * `ApproximateFirstReceiveTimestamp` - Returns the time the message
212
+ # * `ApproximateFirstReceiveTimestamp` Returns the time the message
211
213
  # was first received from the queue ([epoch time][1] in milliseconds).
212
214
  #
213
- # * `ApproximateReceiveCount` - Returns the number of times a message
214
- # has been received from the queue but not deleted.
215
+ # * `ApproximateReceiveCount` Returns the number of times a message
216
+ # has been received across all queues but not deleted.
215
217
  #
216
- # * `AWSTraceHeader` - Returns the AWS X-Ray trace header string.
218
+ # * `AWSTraceHeader` Returns the AWS X-Ray trace header string.
217
219
  #
218
220
  # * `SenderId`
219
221
  #
@@ -223,17 +225,17 @@ module Aws::SQS
223
225
  # * For an IAM role, returns the IAM role ID, for example
224
226
  # `ABCDE1F2GH3I4JK5LMNOP:i-a123b456`.
225
227
  #
226
- # * `SentTimestamp` - Returns the time the message was sent to the queue
228
+ # * `SentTimestamp` Returns the time the message was sent to the queue
227
229
  # ([epoch time][1] in milliseconds).
228
230
  #
229
- # * `MessageDeduplicationId` - Returns the value provided by the
231
+ # * `MessageDeduplicationId` Returns the value provided by the
230
232
  # producer that calls the ` SendMessage ` action.
231
233
  #
232
- # * `MessageGroupId` - Returns the value provided by the producer that
234
+ # * `MessageGroupId` Returns the value provided by the producer that
233
235
  # calls the ` SendMessage ` action. Messages with the same
234
236
  # `MessageGroupId` are returned in sequence.
235
237
  #
236
- # * `SequenceNumber` - Returns the value provided by Amazon SQS.
238
+ # * `SequenceNumber` Returns the value provided by Amazon SQS.
237
239
  #
238
240
  #
239
241
  #
@@ -273,14 +275,25 @@ module Aws::SQS
273
275
  # call returns sooner than `WaitTimeSeconds`. If no messages are
274
276
  # available and the wait time expires, the call returns successfully
275
277
  # with an empty list of messages.
278
+ #
279
+ # To avoid HTTP errors, ensure that the HTTP response timeout for
280
+ # `ReceiveMessage` requests is longer than the `WaitTimeSeconds`
281
+ # parameter. For example, with the Java SDK, you can set HTTP transport
282
+ # settings using the [ NettyNioAsyncHttpClient][1] for asynchronous
283
+ # clients, or the [ ApacheHttpClient][2] for synchronous clients.
284
+ #
285
+ #
286
+ #
287
+ # [1]: https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/nio/netty/NettyNioAsyncHttpClient.html
288
+ # [2]: https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.html
276
289
  # @option options [String] :receive_request_attempt_id
277
290
  # This parameter applies only to FIFO (first-in-first-out) queues.
278
291
  #
279
292
  # The token used for deduplication of `ReceiveMessage` calls. If a
280
293
  # networking issue occurs after a `ReceiveMessage` action, and instead
281
- # of a response you receive a generic error, you can retry the same
282
- # action with an identical `ReceiveRequestAttemptId` to retrieve the
283
- # same set of messages, even if their visibility timeout has not yet
294
+ # of a response you receive a generic error, it is possible to retry the
295
+ # same action with an identical `ReceiveRequestAttemptId` to retrieve
296
+ # the same set of messages, even if their visibility timeout has not yet
284
297
  # expired.
285
298
  #
286
299
  # * You can use `ReceiveRequestAttemptId` only for 5 minutes after a
@@ -293,7 +306,7 @@ module Aws::SQS
293
306
  # `ReceiveRequestAttemptId`, Amazon SQS generates a
294
307
  # `ReceiveRequestAttemptId`.
295
308
  #
296
- # * You can retry the `ReceiveMessage` action with the same
309
+ # * It is possible to retry the `ReceiveMessage` action with the same
297
310
  # `ReceiveRequestAttemptId` if none of the messages have been modified
298
311
  # (deleted or had their visibility changes).
299
312
  #
@@ -324,7 +337,7 @@ module Aws::SQS
324
337
  # visibility timeout expires. As a result, delays might occur but the
325
338
  # messages in the queue remain in a strict order.
326
339
  #
327
- # The length of `ReceiveRequestAttemptId` is 128 characters.
340
+ # The maximum length of `ReceiveRequestAttemptId` is 128 characters.
328
341
  # `ReceiveRequestAttemptId` can contain alphanumeric characters (`a-z`,
329
342
  # `A-Z`, `0-9`) and punctuation (`` !"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~
330
343
  # ``).
@@ -436,7 +449,7 @@ module Aws::SQS
436
449
  #
437
450
  # * Currently, the only supported message system attribute is
438
451
  # `AWSTraceHeader`. Its type must be `String` and its value must be a
439
- # correctly formatted AWS X-Ray trace string.
452
+ # correctly formatted AWS X-Ray trace header string.
440
453
  #
441
454
  # * The size of a message system attribute doesn't count towards the
442
455
  # total size of a message.
@@ -488,7 +501,7 @@ module Aws::SQS
488
501
  #
489
502
  # </note>
490
503
  #
491
- # The length of `MessageDeduplicationId` is 128 characters.
504
+ # The maximum length of `MessageDeduplicationId` is 128 characters.
492
505
  # `MessageDeduplicationId` can contain alphanumeric characters (`a-z`,
493
506
  # `A-Z`, `0-9`) and punctuation (`` !"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~
494
507
  # ``).
@@ -596,39 +609,39 @@ module Aws::SQS
596
609
  # The following lists the names, descriptions, and values of the special
597
610
  # request parameters that the `SetQueueAttributes` action uses:
598
611
  #
599
- # * `DelaySeconds` - The length of time, in seconds, for which the
612
+ # * `DelaySeconds` The length of time, in seconds, for which the
600
613
  # delivery of all messages in the queue is delayed. Valid values: An
601
614
  # integer from 0 to 900 (15 minutes). Default: 0.
602
615
  #
603
- # * `MaximumMessageSize` - The limit of how many bytes a message can
616
+ # * `MaximumMessageSize` The limit of how many bytes a message can
604
617
  # contain before Amazon SQS rejects it. Valid values: An integer from
605
618
  # 1,024 bytes (1 KiB) up to 262,144 bytes (256 KiB). Default: 262,144
606
619
  # (256 KiB).
607
620
  #
608
- # * `MessageRetentionPeriod` - The length of time, in seconds, for which
621
+ # * `MessageRetentionPeriod` The length of time, in seconds, for which
609
622
  # Amazon SQS retains a message. Valid values: An integer representing
610
623
  # seconds, from 60 (1 minute) to 1,209,600 (14 days). Default: 345,600
611
624
  # (4 days).
612
625
  #
613
- # * `Policy` - The queue's policy. A valid AWS policy. For more
626
+ # * `Policy` The queue's policy. A valid AWS policy. For more
614
627
  # information about policy structure, see [Overview of AWS IAM
615
628
  # Policies][1] in the *Amazon IAM User Guide*.
616
629
  #
617
- # * `ReceiveMessageWaitTimeSeconds` - The length of time, in seconds,
630
+ # * `ReceiveMessageWaitTimeSeconds` The length of time, in seconds,
618
631
  # for which a ` ReceiveMessage ` action waits for a message to arrive.
619
- # Valid values: an integer from 0 to 20 (seconds). Default: 0.
632
+ # Valid values: An integer from 0 to 20 (seconds). Default: 0.
620
633
  #
621
- # * `RedrivePolicy` - The string that includes the parameters for the
622
- # dead-letter queue functionality of the source queue. For more
623
- # information about the redrive policy and dead-letter queues, see
624
- # [Using Amazon SQS Dead-Letter Queues][2] in the *Amazon Simple Queue
625
- # Service Developer Guide*.
634
+ # * `RedrivePolicy` The string that includes the parameters for the
635
+ # dead-letter queue functionality of the source queue as a JSON
636
+ # object. For more information about the redrive policy and
637
+ # dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
638
+ # the *Amazon Simple Queue Service Developer Guide*.
626
639
  #
627
- # * `deadLetterTargetArn` - The Amazon Resource Name (ARN) of the
640
+ # * `deadLetterTargetArn` The Amazon Resource Name (ARN) of the
628
641
  # dead-letter queue to which Amazon SQS moves messages after the
629
642
  # value of `maxReceiveCount` is exceeded.
630
643
  #
631
- # * `maxReceiveCount` - The number of times a message is delivered to
644
+ # * `maxReceiveCount` The number of times a message is delivered to
632
645
  # the source queue before being moved to the dead-letter queue. When
633
646
  # the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
634
647
  # a queue, Amazon SQS moves the message to the dead-letter-queue.
@@ -639,22 +652,22 @@ module Aws::SQS
639
652
  #
640
653
  # </note>
641
654
  #
642
- # * `VisibilityTimeout` - The visibility timeout for the queue, in
643
- # seconds. Valid values: an integer from 0 to 43,200 (12 hours).
655
+ # * `VisibilityTimeout` The visibility timeout for the queue, in
656
+ # seconds. Valid values: An integer from 0 to 43,200 (12 hours).
644
657
  # Default: 30. For more information about the visibility timeout, see
645
658
  # [Visibility Timeout][3] in the *Amazon Simple Queue Service
646
659
  # Developer Guide*.
647
660
  #
648
661
  # The following attributes apply only to [server-side-encryption][4]\:
649
662
  #
650
- # * `KmsMasterKeyId` - The ID of an AWS-managed customer master key
663
+ # * `KmsMasterKeyId` The ID of an AWS-managed customer master key
651
664
  # (CMK) for Amazon SQS or a custom CMK. For more information, see [Key
652
665
  # Terms][5]. While the alias of the AWS-managed CMK for Amazon SQS is
653
666
  # always `alias/aws/sqs`, the alias of a custom CMK can, for example,
654
667
  # be `alias/MyAlias `. For more examples, see [KeyId][6] in the *AWS
655
668
  # Key Management Service API Reference*.
656
669
  #
657
- # * `KmsDataKeyReusePeriodSeconds` - The length of time, in seconds, for
670
+ # * `KmsDataKeyReusePeriodSeconds` The length of time, in seconds, for
658
671
  # which Amazon SQS can reuse a [data key][7] to encrypt or decrypt
659
672
  # messages before calling AWS KMS again. An integer representing
660
673
  # seconds, between 60 seconds (1 minute) and 86,400 seconds (24
@@ -666,7 +679,7 @@ module Aws::SQS
666
679
  # The following attribute applies only to [FIFO (first-in-first-out)
667
680
  # queues][9]\:
668
681
  #
669
- # * `ContentBasedDeduplication` - Enables content-based deduplication.
682
+ # * `ContentBasedDeduplication` Enables content-based deduplication.
670
683
  # For more information, see [Exactly-Once Processing][10] in the
671
684
  # *Amazon Simple Queue Service Developer Guide*.
672
685
  #
@@ -726,16 +739,18 @@ module Aws::SQS
726
739
  # @return [Queue::Collection]
727
740
  def dead_letter_source_queues(options = {})
728
741
  batches = Enumerator.new do |y|
729
- batch = []
730
742
  options = options.merge(queue_url: @url)
731
743
  resp = @client.list_dead_letter_source_queues(options)
732
- resp.data.queue_urls.each do |q|
733
- batch << Queue.new(
734
- url: q,
735
- client: @client
736
- )
744
+ resp.each_page do |page|
745
+ batch = []
746
+ page.data.queue_urls.each do |q|
747
+ batch << Queue.new(
748
+ url: q,
749
+ client: @client
750
+ )
751
+ end
752
+ y.yield(batch)
737
753
  end
738
- y.yield(batch)
739
754
  end
740
755
  Queue::Collection.new(batches)
741
756
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'set'
2
4
 
3
5
  module Aws
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -6,13 +8,18 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::SQS
11
+
9
12
  # This class provides a resource oriented interface for SQS.
10
13
  # To create a resource object:
14
+ #
11
15
  # resource = Aws::SQS::Resource.new(region: 'us-west-2')
16
+ #
12
17
  # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
18
+ # If you do not pass `:client`, a default client will be constructed.
19
+ #
14
20
  # client = Aws::SQS::Client.new(region: 'us-west-2')
15
21
  # resource = Aws::SQS::Resource.new(client: client)
22
+ #
16
23
  class Resource
17
24
 
18
25
  # @param options ({})
@@ -57,39 +64,39 @@ module Aws::SQS
57
64
  # The following lists the names, descriptions, and values of the special
58
65
  # request parameters that the `CreateQueue` action uses:
59
66
  #
60
- # * `DelaySeconds` - The length of time, in seconds, for which the
67
+ # * `DelaySeconds` The length of time, in seconds, for which the
61
68
  # delivery of all messages in the queue is delayed. Valid values: An
62
69
  # integer from 0 to 900 seconds (15 minutes). Default: 0.
63
70
  #
64
- # * `MaximumMessageSize` - The limit of how many bytes a message can
71
+ # * `MaximumMessageSize` The limit of how many bytes a message can
65
72
  # contain before Amazon SQS rejects it. Valid values: An integer from
66
73
  # 1,024 bytes (1 KiB) to 262,144 bytes (256 KiB). Default: 262,144
67
74
  # (256 KiB).
68
75
  #
69
- # * `MessageRetentionPeriod` - The length of time, in seconds, for which
76
+ # * `MessageRetentionPeriod` The length of time, in seconds, for which
70
77
  # Amazon SQS retains a message. Valid values: An integer from 60
71
78
  # seconds (1 minute) to 1,209,600 seconds (14 days). Default: 345,600
72
79
  # (4 days).
73
80
  #
74
- # * `Policy` - The queue's policy. A valid AWS policy. For more
81
+ # * `Policy` The queue's policy. A valid AWS policy. For more
75
82
  # information about policy structure, see [Overview of AWS IAM
76
83
  # Policies][1] in the *Amazon IAM User Guide*.
77
84
  #
78
- # * `ReceiveMessageWaitTimeSeconds` - The length of time, in seconds,
85
+ # * `ReceiveMessageWaitTimeSeconds` The length of time, in seconds,
79
86
  # for which a ` ReceiveMessage ` action waits for a message to arrive.
80
87
  # Valid values: An integer from 0 to 20 (seconds). Default: 0.
81
88
  #
82
- # * `RedrivePolicy` - The string that includes the parameters for the
83
- # dead-letter queue functionality of the source queue. For more
84
- # information about the redrive policy and dead-letter queues, see
85
- # [Using Amazon SQS Dead-Letter Queues][2] in the *Amazon Simple Queue
86
- # Service Developer Guide*.
89
+ # * `RedrivePolicy` The string that includes the parameters for the
90
+ # dead-letter queue functionality of the source queue as a JSON
91
+ # object. For more information about the redrive policy and
92
+ # dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
93
+ # the *Amazon Simple Queue Service Developer Guide*.
87
94
  #
88
- # * `deadLetterTargetArn` - The Amazon Resource Name (ARN) of the
95
+ # * `deadLetterTargetArn` The Amazon Resource Name (ARN) of the
89
96
  # dead-letter queue to which Amazon SQS moves messages after the
90
97
  # value of `maxReceiveCount` is exceeded.
91
98
  #
92
- # * `maxReceiveCount` - The number of times a message is delivered to
99
+ # * `maxReceiveCount` The number of times a message is delivered to
93
100
  # the source queue before being moved to the dead-letter queue. When
94
101
  # the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
95
102
  # a queue, Amazon SQS moves the message to the dead-letter-queue.
@@ -100,7 +107,7 @@ module Aws::SQS
100
107
  #
101
108
  # </note>
102
109
  #
103
- # * `VisibilityTimeout` - The visibility timeout for the queue, in
110
+ # * `VisibilityTimeout` The visibility timeout for the queue, in
104
111
  # seconds. Valid values: An integer from 0 to 43,200 (12 hours).
105
112
  # Default: 30. For more information about the visibility timeout, see
106
113
  # [Visibility Timeout][3] in the *Amazon Simple Queue Service
@@ -108,14 +115,14 @@ module Aws::SQS
108
115
  #
109
116
  # The following attributes apply only to [server-side-encryption][4]\:
110
117
  #
111
- # * `KmsMasterKeyId` - The ID of an AWS-managed customer master key
118
+ # * `KmsMasterKeyId` The ID of an AWS-managed customer master key
112
119
  # (CMK) for Amazon SQS or a custom CMK. For more information, see [Key
113
120
  # Terms][5]. While the alias of the AWS-managed CMK for Amazon SQS is
114
121
  # always `alias/aws/sqs`, the alias of a custom CMK can, for example,
115
122
  # be `alias/MyAlias `. For more examples, see [KeyId][6] in the *AWS
116
123
  # Key Management Service API Reference*.
117
124
  #
118
- # * `KmsDataKeyReusePeriodSeconds` - The length of time, in seconds, for
125
+ # * `KmsDataKeyReusePeriodSeconds` The length of time, in seconds, for
119
126
  # which Amazon SQS can reuse a [data key][7] to encrypt or decrypt
120
127
  # messages before calling AWS KMS again. An integer representing
121
128
  # seconds, between 60 seconds (1 minute) and 86,400 seconds (24
@@ -127,7 +134,7 @@ module Aws::SQS
127
134
  # The following attributes apply only to [FIFO (first-in-first-out)
128
135
  # queues][9]\:
129
136
  #
130
- # * `FifoQueue` - Designates a queue as FIFO. Valid values: `true`,
137
+ # * `FifoQueue` Designates a queue as FIFO. Valid values: `true`,
131
138
  # `false`. If you don't specify the `FifoQueue` attribute, Amazon SQS
132
139
  # creates a standard queue. You can provide this attribute only during
133
140
  # queue creation. You can't change it for an existing queue. When you
@@ -137,7 +144,7 @@ module Aws::SQS
137
144
  # For more information, see [FIFO Queue Logic][10] in the *Amazon
138
145
  # Simple Queue Service Developer Guide*.
139
146
  #
140
- # * `ContentBasedDeduplication` - Enables content-based deduplication.
147
+ # * `ContentBasedDeduplication` Enables content-based deduplication.
141
148
  # Valid values: `true`, `false`. For more information, see
142
149
  # [Exactly-Once Processing][11] in the *Amazon Simple Queue Service
143
150
  # Developer Guide*.
@@ -275,15 +282,17 @@ module Aws::SQS
275
282
  # @return [Queue::Collection]
276
283
  def queues(options = {})
277
284
  batches = Enumerator.new do |y|
278
- batch = []
279
285
  resp = @client.list_queues(options)
280
- resp.data.queue_urls.each do |q|
281
- batch << Queue.new(
282
- url: q,
283
- client: @client
284
- )
286
+ resp.each_page do |page|
287
+ batch = []
288
+ page.data.queue_urls.each do |q|
289
+ batch << Queue.new(
290
+ url: q,
291
+ client: @client
292
+ )
293
+ end
294
+ y.yield(batch)
285
295
  end
286
- y.yield(batch)
287
296
  end
288
297
  Queue::Collection.new(batches)
289
298
  end