aws-sdk-sqs 1.27.1 → 1.28.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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:
@@ -62,39 +64,39 @@ module Aws::SQS
62
64
  # The following lists the names, descriptions, and values of the special
63
65
  # request parameters that the `CreateQueue` action uses:
64
66
  #
65
- # * `DelaySeconds` - The length of time, in seconds, for which the
67
+ # * `DelaySeconds` The length of time, in seconds, for which the
66
68
  # delivery of all messages in the queue is delayed. Valid values: An
67
69
  # integer from 0 to 900 seconds (15 minutes). Default: 0.
68
70
  #
69
- # * `MaximumMessageSize` - The limit of how many bytes a message can
71
+ # * `MaximumMessageSize` The limit of how many bytes a message can
70
72
  # contain before Amazon SQS rejects it. Valid values: An integer from
71
73
  # 1,024 bytes (1 KiB) to 262,144 bytes (256 KiB). Default: 262,144
72
74
  # (256 KiB).
73
75
  #
74
- # * `MessageRetentionPeriod` - The length of time, in seconds, for which
76
+ # * `MessageRetentionPeriod` The length of time, in seconds, for which
75
77
  # Amazon SQS retains a message. Valid values: An integer from 60
76
78
  # seconds (1 minute) to 1,209,600 seconds (14 days). Default: 345,600
77
79
  # (4 days).
78
80
  #
79
- # * `Policy` - The queue's policy. A valid AWS policy. For more
81
+ # * `Policy` The queue's policy. A valid AWS policy. For more
80
82
  # information about policy structure, see [Overview of AWS IAM
81
83
  # Policies][1] in the *Amazon IAM User Guide*.
82
84
  #
83
- # * `ReceiveMessageWaitTimeSeconds` - The length of time, in seconds,
85
+ # * `ReceiveMessageWaitTimeSeconds` The length of time, in seconds,
84
86
  # for which a ` ReceiveMessage ` action waits for a message to arrive.
85
87
  # Valid values: An integer from 0 to 20 (seconds). Default: 0.
86
88
  #
87
- # * `RedrivePolicy` - The string that includes the parameters for the
88
- # dead-letter queue functionality of the source queue. For more
89
- # information about the redrive policy and dead-letter queues, see
90
- # [Using Amazon SQS Dead-Letter Queues][2] in the *Amazon Simple Queue
91
- # 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*.
92
94
  #
93
- # * `deadLetterTargetArn` - The Amazon Resource Name (ARN) of the
95
+ # * `deadLetterTargetArn` The Amazon Resource Name (ARN) of the
94
96
  # dead-letter queue to which Amazon SQS moves messages after the
95
97
  # value of `maxReceiveCount` is exceeded.
96
98
  #
97
- # * `maxReceiveCount` - The number of times a message is delivered to
99
+ # * `maxReceiveCount` The number of times a message is delivered to
98
100
  # the source queue before being moved to the dead-letter queue. When
99
101
  # the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
100
102
  # a queue, Amazon SQS moves the message to the dead-letter-queue.
@@ -105,7 +107,7 @@ module Aws::SQS
105
107
  #
106
108
  # </note>
107
109
  #
108
- # * `VisibilityTimeout` - The visibility timeout for the queue, in
110
+ # * `VisibilityTimeout` The visibility timeout for the queue, in
109
111
  # seconds. Valid values: An integer from 0 to 43,200 (12 hours).
110
112
  # Default: 30. For more information about the visibility timeout, see
111
113
  # [Visibility Timeout][3] in the *Amazon Simple Queue Service
@@ -113,14 +115,14 @@ module Aws::SQS
113
115
  #
114
116
  # The following attributes apply only to [server-side-encryption][4]\:
115
117
  #
116
- # * `KmsMasterKeyId` - The ID of an AWS-managed customer master key
118
+ # * `KmsMasterKeyId` The ID of an AWS-managed customer master key
117
119
  # (CMK) for Amazon SQS or a custom CMK. For more information, see [Key
118
120
  # Terms][5]. While the alias of the AWS-managed CMK for Amazon SQS is
119
121
  # always `alias/aws/sqs`, the alias of a custom CMK can, for example,
120
122
  # be `alias/MyAlias `. For more examples, see [KeyId][6] in the *AWS
121
123
  # Key Management Service API Reference*.
122
124
  #
123
- # * `KmsDataKeyReusePeriodSeconds` - The length of time, in seconds, for
125
+ # * `KmsDataKeyReusePeriodSeconds` The length of time, in seconds, for
124
126
  # which Amazon SQS can reuse a [data key][7] to encrypt or decrypt
125
127
  # messages before calling AWS KMS again. An integer representing
126
128
  # seconds, between 60 seconds (1 minute) and 86,400 seconds (24
@@ -132,7 +134,7 @@ module Aws::SQS
132
134
  # The following attributes apply only to [FIFO (first-in-first-out)
133
135
  # queues][9]\:
134
136
  #
135
- # * `FifoQueue` - Designates a queue as FIFO. Valid values: `true`,
137
+ # * `FifoQueue` Designates a queue as FIFO. Valid values: `true`,
136
138
  # `false`. If you don't specify the `FifoQueue` attribute, Amazon SQS
137
139
  # creates a standard queue. You can provide this attribute only during
138
140
  # queue creation. You can't change it for an existing queue. When you
@@ -142,7 +144,7 @@ module Aws::SQS
142
144
  # For more information, see [FIFO Queue Logic][10] in the *Amazon
143
145
  # Simple Queue Service Developer Guide*.
144
146
  #
145
- # * `ContentBasedDeduplication` - Enables content-based deduplication.
147
+ # * `ContentBasedDeduplication` Enables content-based deduplication.
146
148
  # Valid values: `true`, `false`. For more information, see
147
149
  # [Exactly-Once Processing][11] in the *Amazon Simple Queue Service
148
150
  # Developer Guide*.
@@ -280,15 +282,17 @@ module Aws::SQS
280
282
  # @return [Queue::Collection]
281
283
  def queues(options = {})
282
284
  batches = Enumerator.new do |y|
283
- batch = []
284
285
  resp = @client.list_queues(options)
285
- resp.data.queue_urls.each do |q|
286
- batch << Queue.new(
287
- url: q,
288
- client: @client
289
- )
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)
290
295
  end
291
- y.yield(batch)
292
296
  end
293
297
  Queue::Collection.new(batches)
294
298
  end