aws-sdk-sqs 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-sqs.rb +1 -1
- data/lib/aws-sdk-sqs/client.rb +269 -273
- data/lib/aws-sdk-sqs/client_api.rb +1 -0
- data/lib/aws-sdk-sqs/message.rb +23 -7
- data/lib/aws-sdk-sqs/queue.rb +49 -105
- data/lib/aws-sdk-sqs/resource.rb +21 -34
- data/lib/aws-sdk-sqs/types.rb +161 -201
- metadata +2 -2
@@ -332,6 +332,7 @@ module Aws::SQS
|
|
332
332
|
"protocol" => "query",
|
333
333
|
"serviceAbbreviation" => "Amazon SQS",
|
334
334
|
"serviceFullName" => "Amazon Simple Queue Service",
|
335
|
+
"serviceId" => "SQS",
|
335
336
|
"signatureVersion" => "v4",
|
336
337
|
"uid" => "sqs-2012-11-05",
|
337
338
|
"xmlNamespace" => "http://queue.amazonaws.com/doc/2012-11-05/",
|
data/lib/aws-sdk-sqs/message.rb
CHANGED
@@ -57,10 +57,26 @@ module Aws::SQS
|
|
57
57
|
data[:body]
|
58
58
|
end
|
59
59
|
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
60
|
+
# A map of the attributes requested in ` ReceiveMessage ` to their
|
61
|
+
# respective values. Supported attributes:
|
62
|
+
#
|
63
|
+
# * `ApproximateReceiveCount`
|
64
|
+
#
|
65
|
+
# * `ApproximateFirstReceiveTimestamp`
|
66
|
+
#
|
67
|
+
# * `MessageDeduplicationId`
|
68
|
+
#
|
69
|
+
# * `MessageGroupId`
|
70
|
+
#
|
71
|
+
# * `SenderId`
|
72
|
+
#
|
73
|
+
# * `SentTimestamp`
|
74
|
+
#
|
75
|
+
# * `SequenceNumber`
|
76
|
+
#
|
77
|
+
# `ApproximateFirstReceiveTimestamp` and `SentTimestamp` are each
|
78
|
+
# returned as an integer representing the [epoch time][1] in
|
79
|
+
# milliseconds.
|
64
80
|
#
|
65
81
|
#
|
66
82
|
#
|
@@ -84,12 +100,12 @@ module Aws::SQS
|
|
84
100
|
end
|
85
101
|
|
86
102
|
# Each message attribute consists of a `Name`, `Type`, and `Value`. For
|
87
|
-
# more information, see [
|
88
|
-
#
|
103
|
+
# more information, see [Amazon SQS Message Attributes][1] in the
|
104
|
+
# *Amazon Simple Queue Service Developer Guide*.
|
89
105
|
#
|
90
106
|
#
|
91
107
|
#
|
92
|
-
# [1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html
|
108
|
+
# [1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html
|
93
109
|
# @return [Hash<String,Types::MessageAttributeValue>]
|
94
110
|
def message_attributes
|
95
111
|
data[:message_attributes]
|
data/lib/aws-sdk-sqs/queue.rb
CHANGED
@@ -99,27 +99,14 @@ module Aws::SQS
|
|
99
99
|
#
|
100
100
|
#
|
101
101
|
# [1]: http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P
|
102
|
-
# [2]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
102
|
+
# [2]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-making-api-requests.html#sqs-api-request-authentication
|
103
103
|
# @option options [required, Array<String>] :actions
|
104
|
-
# The action the client wants to allow for the specified principal.
|
105
|
-
#
|
104
|
+
# The action the client wants to allow for the specified principal.
|
105
|
+
# Valid values: the name of any action or `*`.
|
106
106
|
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
# *
|
110
|
-
#
|
111
|
-
# * `DeleteMessage`
|
112
|
-
#
|
113
|
-
# * `GetQueueAttributes`
|
114
|
-
#
|
115
|
-
# * `GetQueueUrl`
|
116
|
-
#
|
117
|
-
# * `ReceiveMessage`
|
118
|
-
#
|
119
|
-
# * `SendMessage`
|
120
|
-
#
|
121
|
-
# For more information about these actions, see [Understanding
|
122
|
-
# Permissions][1] in the *Amazon Simple Queue Service Developer Guide*.
|
107
|
+
# For more information about these actions, see [Overview of Managing
|
108
|
+
# Access Permissions to Your Amazon Simple Queue Service Resource][1] in
|
109
|
+
# the *Amazon Simple Queue Service Developer Guide*.
|
123
110
|
#
|
124
111
|
# Specifying `SendMessage`, `DeleteMessage`, or
|
125
112
|
# `ChangeMessageVisibility` for `ActionName.n` also grants permissions
|
@@ -129,7 +116,7 @@ module Aws::SQS
|
|
129
116
|
#
|
130
117
|
#
|
131
118
|
#
|
132
|
-
# [1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
119
|
+
# [1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-overview-of-managing-access.html
|
133
120
|
# @return [EmptyStructure]
|
134
121
|
def add_permission(options = {})
|
135
122
|
options = options.merge(queue_url: @url)
|
@@ -213,8 +200,8 @@ module Aws::SQS
|
|
213
200
|
# })
|
214
201
|
# @param [Hash] options ({})
|
215
202
|
# @option options [Array<String>] :attribute_names
|
216
|
-
# A list of
|
217
|
-
#
|
203
|
+
# A list of s that need to be returned along with each message. These
|
204
|
+
# attributes include:
|
218
205
|
#
|
219
206
|
# * `All` - Returns all values.
|
220
207
|
#
|
@@ -235,48 +222,15 @@ module Aws::SQS
|
|
235
222
|
# * `SentTimestamp` - Returns the time the message was sent to the queue
|
236
223
|
# ([epoch time][1] in milliseconds).
|
237
224
|
#
|
238
|
-
# * `MessageDeduplicationId` - Returns the value provided by the
|
239
|
-
# that calls the ` SendMessage ` action.
|
225
|
+
# * `MessageDeduplicationId` - Returns the value provided by the
|
226
|
+
# producer that calls the ` SendMessage ` action.
|
240
227
|
#
|
241
|
-
# * `MessageGroupId` - Returns the value provided by the
|
228
|
+
# * `MessageGroupId` - Returns the value provided by the producer that
|
242
229
|
# calls the ` SendMessage ` action. Messages with the same
|
243
230
|
# `MessageGroupId` are returned in sequence.
|
244
231
|
#
|
245
232
|
# * `SequenceNumber` - Returns the value provided by Amazon SQS.
|
246
233
|
#
|
247
|
-
# Any other valid special request parameters (such as the following) are
|
248
|
-
# ignored:
|
249
|
-
#
|
250
|
-
# * `ApproximateNumberOfMessages`
|
251
|
-
#
|
252
|
-
# * `ApproximateNumberOfMessagesDelayed`
|
253
|
-
#
|
254
|
-
# * `ApproximateNumberOfMessagesNotVisible`
|
255
|
-
#
|
256
|
-
# * `CreatedTimestamp`
|
257
|
-
#
|
258
|
-
# * `ContentBasedDeduplication`
|
259
|
-
#
|
260
|
-
# * `DelaySeconds`
|
261
|
-
#
|
262
|
-
# * `FifoQueue`
|
263
|
-
#
|
264
|
-
# * `LastModifiedTimestamp`
|
265
|
-
#
|
266
|
-
# * `MaximumMessageSize`
|
267
|
-
#
|
268
|
-
# * `MessageRetentionPeriod`
|
269
|
-
#
|
270
|
-
# * `Policy`
|
271
|
-
#
|
272
|
-
# * `QueueArn`,
|
273
|
-
#
|
274
|
-
# * `ReceiveMessageWaitTimeSeconds`
|
275
|
-
#
|
276
|
-
# * `RedrivePolicy`
|
277
|
-
#
|
278
|
-
# * `VisibilityTimeout`
|
279
|
-
#
|
280
234
|
#
|
281
235
|
#
|
282
236
|
# [1]: http://en.wikipedia.org/wiki/Unix_time
|
@@ -304,7 +258,7 @@ module Aws::SQS
|
|
304
258
|
# @option options [Integer] :max_number_of_messages
|
305
259
|
# The maximum number of messages to return. Amazon SQS never returns
|
306
260
|
# more messages than this value (however, fewer messages might be
|
307
|
-
# returned). Valid values
|
261
|
+
# returned). Valid values: 1 to 10. Default: 1.
|
308
262
|
# @option options [Integer] :visibility_timeout
|
309
263
|
# The duration (in seconds) that the received messages are hidden from
|
310
264
|
# subsequent retrieve requests after being retrieved by a
|
@@ -345,13 +299,12 @@ module Aws::SQS
|
|
345
299
|
# resets the visibility timeout. For more information, see [Visibility
|
346
300
|
# Timeout][1] in the *Amazon Simple Queue Service Developer Guide*.
|
347
301
|
#
|
348
|
-
# If a caller of the `ReceiveMessage` action
|
349
|
-
#
|
350
|
-
#
|
351
|
-
#
|
352
|
-
#
|
353
|
-
#
|
354
|
-
# error.
|
302
|
+
# If a caller of the `ReceiveMessage` action still processes messages
|
303
|
+
# when the visibility timeout expires and messages become visible,
|
304
|
+
# another worker consuming from the same queue can receive the same
|
305
|
+
# messages and therefore process duplicates. Also, if a consumer whose
|
306
|
+
# message processing time is longer than the visibility timeout tries
|
307
|
+
# to delete the processed messages, the action fails with an error.
|
355
308
|
#
|
356
309
|
# To mitigate this effect, ensure that your application observes a
|
357
310
|
# safe threshold before the visibility timeout expires and extend the
|
@@ -379,7 +332,7 @@ module Aws::SQS
|
|
379
332
|
#
|
380
333
|
#
|
381
334
|
# [1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
|
382
|
-
# [2]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
335
|
+
# [2]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-receiverequestattemptid-request-parameter.html
|
383
336
|
# @return [Message::Collection]
|
384
337
|
def receive_messages(options = {})
|
385
338
|
batch = []
|
@@ -458,12 +411,12 @@ module Aws::SQS
|
|
458
411
|
# </note>
|
459
412
|
# @option options [Hash<String,Types::MessageAttributeValue>] :message_attributes
|
460
413
|
# Each message attribute consists of a `Name`, `Type`, and `Value`. For
|
461
|
-
# more information, see [
|
462
|
-
#
|
414
|
+
# more information, see [Amazon SQS Message Attributes][1] in the
|
415
|
+
# *Amazon Simple Queue Service Developer Guide*.
|
463
416
|
#
|
464
417
|
#
|
465
418
|
#
|
466
|
-
# [1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html
|
419
|
+
# [1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html
|
467
420
|
# @option options [String] :message_deduplication_id
|
468
421
|
# This parameter applies only to FIFO (first-in-first-out) queues.
|
469
422
|
#
|
@@ -500,13 +453,16 @@ module Aws::SQS
|
|
500
453
|
# the two messages are treated as duplicates and only one copy of the
|
501
454
|
# message is delivered.
|
502
455
|
#
|
503
|
-
# <note markdown="1"> The `MessageDeduplicationId` is available to the
|
456
|
+
# <note markdown="1"> The `MessageDeduplicationId` is available to the consumer of the
|
504
457
|
# message (this can be useful for troubleshooting delivery issues).
|
505
458
|
#
|
506
459
|
# If a message is sent successfully but the acknowledgement is lost and
|
507
460
|
# the message is resent with the same `MessageDeduplicationId` after the
|
508
461
|
# deduplication interval, Amazon SQS can't detect duplicate messages.
|
509
462
|
#
|
463
|
+
# Amazon SQS continues to keep track of the message deduplication ID
|
464
|
+
# even after the message is received and deleted.
|
465
|
+
#
|
510
466
|
# </note>
|
511
467
|
#
|
512
468
|
# The length of `MessageDeduplicationId` is 128 characters.
|
@@ -521,7 +477,7 @@ module Aws::SQS
|
|
521
477
|
#
|
522
478
|
#
|
523
479
|
# [1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing
|
524
|
-
# [2]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
480
|
+
# [2]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html
|
525
481
|
# @option options [String] :message_group_id
|
526
482
|
# This parameter applies only to FIFO (first-in-first-out) queues.
|
527
483
|
#
|
@@ -530,7 +486,7 @@ module Aws::SQS
|
|
530
486
|
# a FIFO manner (however, messages in different message groups might be
|
531
487
|
# processed out of order). To interleave multiple ordered streams within
|
532
488
|
# a single queue, use `MessageGroupId` values (for example, session data
|
533
|
-
# for multiple users). In this scenario, multiple
|
489
|
+
# for multiple users). In this scenario, multiple consumers can process
|
534
490
|
# the queue, but the session data of each user is processed in a FIFO
|
535
491
|
# fashion.
|
536
492
|
#
|
@@ -541,7 +497,7 @@ module Aws::SQS
|
|
541
497
|
# `MessageGroupId` values. For each `MessageGroupId`, the messages are
|
542
498
|
# sorted by time sent. The caller can't specify a `MessageGroupId`.
|
543
499
|
#
|
544
|
-
# The length of `MessageGroupId` is 128 characters. Valid values
|
500
|
+
# The length of `MessageGroupId` is 128 characters. Valid values:
|
545
501
|
# alphanumeric characters and punctuation ``
|
546
502
|
# (!"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~) ``.
|
547
503
|
#
|
@@ -554,7 +510,7 @@ module Aws::SQS
|
|
554
510
|
#
|
555
511
|
#
|
556
512
|
#
|
557
|
-
# [1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
513
|
+
# [1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagegroupid-property.html
|
558
514
|
# @return [Types::SendMessageResult]
|
559
515
|
def send_message(options = {})
|
560
516
|
options = options.merge(queue_url: @url)
|
@@ -610,17 +566,17 @@ module Aws::SQS
|
|
610
566
|
#
|
611
567
|
# * `DelaySeconds` - The length of time, in seconds, for which the
|
612
568
|
# delivery of all messages in the queue is delayed. Valid values: An
|
613
|
-
# integer from 0 to 900 (15 minutes).
|
569
|
+
# integer from 0 to 900 (15 minutes). Default: 0.
|
614
570
|
#
|
615
571
|
# * `MaximumMessageSize` - The limit of how many bytes a message can
|
616
572
|
# contain before Amazon SQS rejects it. Valid values: An integer from
|
617
|
-
# 1,024 bytes (1 KiB) up to 262,144 bytes (256 KiB).
|
618
|
-
#
|
573
|
+
# 1,024 bytes (1 KiB) up to 262,144 bytes (256 KiB). Default: 262,144
|
574
|
+
# (256 KiB).
|
619
575
|
#
|
620
576
|
# * `MessageRetentionPeriod` - The length of time, in seconds, for which
|
621
577
|
# Amazon SQS retains a message. Valid values: An integer representing
|
622
|
-
# seconds, from 60 (1 minute) to 1,209,600 (14 days).
|
623
|
-
#
|
578
|
+
# seconds, from 60 (1 minute) to 1,209,600 (14 days). Default: 345,600
|
579
|
+
# (4 days).
|
624
580
|
#
|
625
581
|
# * `Policy` - The queue's policy. A valid AWS policy. For more
|
626
582
|
# information about policy structure, see [Overview of AWS IAM
|
@@ -628,7 +584,7 @@ module Aws::SQS
|
|
628
584
|
#
|
629
585
|
# * `ReceiveMessageWaitTimeSeconds` - The length of time, in seconds,
|
630
586
|
# for which a ` ReceiveMessage ` action waits for a message to arrive.
|
631
|
-
# Valid values: an integer from 0 to 20 (seconds).
|
587
|
+
# Valid values: an integer from 0 to 20 (seconds). Default: 0.
|
632
588
|
#
|
633
589
|
# * `RedrivePolicy` - The string that includes the parameters for the
|
634
590
|
# dead-letter queue functionality of the source queue. For more
|
@@ -641,7 +597,9 @@ module Aws::SQS
|
|
641
597
|
# value of `maxReceiveCount` is exceeded.
|
642
598
|
#
|
643
599
|
# * `maxReceiveCount` - The number of times a message is delivered to
|
644
|
-
# the source queue before being moved to the dead-letter queue.
|
600
|
+
# the source queue before being moved to the dead-letter queue. When
|
601
|
+
# the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
|
602
|
+
# a queue, Amazon SQS moves the message to the dead-letter-queue.
|
645
603
|
#
|
646
604
|
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
647
605
|
# Similarly, the dead-letter queue of a standard queue must also be a
|
@@ -649,10 +607,11 @@ module Aws::SQS
|
|
649
607
|
#
|
650
608
|
# </note>
|
651
609
|
#
|
652
|
-
# * `VisibilityTimeout` - The visibility timeout for the queue
|
653
|
-
# values: an integer from 0 to 43,200 (12 hours).
|
654
|
-
# For more information about the visibility timeout, see
|
655
|
-
# Timeout][3] in the *Amazon Simple Queue Service
|
610
|
+
# * `VisibilityTimeout` - The visibility timeout for the queue, in
|
611
|
+
# seconds. Valid values: an integer from 0 to 43,200 (12 hours).
|
612
|
+
# Default: 30. For more information about the visibility timeout, see
|
613
|
+
# [Visibility Timeout][3] in the *Amazon Simple Queue Service
|
614
|
+
# Developer Guide*.
|
656
615
|
#
|
657
616
|
# The following attributes apply only to [server-side-encryption][4]\:
|
658
617
|
#
|
@@ -667,10 +626,10 @@ module Aws::SQS
|
|
667
626
|
# which Amazon SQS can reuse a [data key][7] to encrypt or decrypt
|
668
627
|
# messages before calling AWS KMS again. An integer representing
|
669
628
|
# seconds, between 60 seconds (1 minute) and 86,400 seconds (24
|
670
|
-
# hours).
|
671
|
-
#
|
672
|
-
#
|
673
|
-
#
|
629
|
+
# hours). Default: 300 (5 minutes). A shorter time period provides
|
630
|
+
# better security but results in more calls to KMS which might incur
|
631
|
+
# charges after Free Tier. For more information, see [How Does the
|
632
|
+
# Data Key Reuse Period Work?][8].
|
674
633
|
#
|
675
634
|
# The following attribute applies only to [FIFO (first-in-first-out)
|
676
635
|
# queues][9]\:
|
@@ -707,21 +666,6 @@ module Aws::SQS
|
|
707
666
|
# `MessageDeduplicationId`, the two messages are treated as
|
708
667
|
# duplicates and only one copy of the message is delivered.
|
709
668
|
#
|
710
|
-
# Any other valid special request parameters (such as the following) are
|
711
|
-
# ignored:
|
712
|
-
#
|
713
|
-
# * `ApproximateNumberOfMessages`
|
714
|
-
#
|
715
|
-
# * `ApproximateNumberOfMessagesDelayed`
|
716
|
-
#
|
717
|
-
# * `ApproximateNumberOfMessagesNotVisible`
|
718
|
-
#
|
719
|
-
# * `CreatedTimestamp`
|
720
|
-
#
|
721
|
-
# * `LastModifiedTimestamp`
|
722
|
-
#
|
723
|
-
# * `QueueArn`
|
724
|
-
#
|
725
669
|
#
|
726
670
|
#
|
727
671
|
# [1]: http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html
|
data/lib/aws-sdk-sqs/resource.rb
CHANGED
@@ -40,7 +40,7 @@ module Aws::SQS
|
|
40
40
|
#
|
41
41
|
# * A FIFO queue name must end with the `.fifo` suffix.
|
42
42
|
#
|
43
|
-
# Queue names are case-sensitive.
|
43
|
+
# Queue URLs and names are case-sensitive.
|
44
44
|
# @option options [Hash<String,String>] :attributes
|
45
45
|
# A map of attributes with their corresponding values.
|
46
46
|
#
|
@@ -49,17 +49,17 @@ module Aws::SQS
|
|
49
49
|
#
|
50
50
|
# * `DelaySeconds` - The length of time, in seconds, for which the
|
51
51
|
# delivery of all messages in the queue is delayed. Valid values: An
|
52
|
-
# integer from 0 to 900 seconds (15 minutes).
|
52
|
+
# integer from 0 to 900 seconds (15 minutes). Default: 0.
|
53
53
|
#
|
54
54
|
# * `MaximumMessageSize` - The limit of how many bytes a message can
|
55
55
|
# contain before Amazon SQS rejects it. Valid values: An integer from
|
56
|
-
# 1,024 bytes (1 KiB) to 262,144 bytes (256 KiB).
|
57
|
-
#
|
56
|
+
# 1,024 bytes (1 KiB) to 262,144 bytes (256 KiB). Default: 262,144
|
57
|
+
# (256 KiB).
|
58
58
|
#
|
59
59
|
# * `MessageRetentionPeriod` - The length of time, in seconds, for which
|
60
60
|
# Amazon SQS retains a message. Valid values: An integer from 60
|
61
|
-
# seconds (1 minute) to 1,209,600 seconds (14 days).
|
62
|
-
#
|
61
|
+
# seconds (1 minute) to 1,209,600 seconds (14 days). Default: 345,600
|
62
|
+
# (4 days).
|
63
63
|
#
|
64
64
|
# * `Policy` - The queue's policy. A valid AWS policy. For more
|
65
65
|
# information about policy structure, see [Overview of AWS IAM
|
@@ -67,8 +67,7 @@ module Aws::SQS
|
|
67
67
|
#
|
68
68
|
# * `ReceiveMessageWaitTimeSeconds` - The length of time, in seconds,
|
69
69
|
# for which a ` ReceiveMessage ` action waits for a message to arrive.
|
70
|
-
# Valid values: An integer from 0 to 20 (seconds).
|
71
|
-
# (zero).
|
70
|
+
# Valid values: An integer from 0 to 20 (seconds). Default: 0.
|
72
71
|
#
|
73
72
|
# * `RedrivePolicy` - The string that includes the parameters for the
|
74
73
|
# dead-letter queue functionality of the source queue. For more
|
@@ -81,7 +80,9 @@ module Aws::SQS
|
|
81
80
|
# value of `maxReceiveCount` is exceeded.
|
82
81
|
#
|
83
82
|
# * `maxReceiveCount` - The number of times a message is delivered to
|
84
|
-
# the source queue before being moved to the dead-letter queue.
|
83
|
+
# the source queue before being moved to the dead-letter queue. When
|
84
|
+
# the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
|
85
|
+
# a queue, Amazon SQS moves the message to the dead-letter-queue.
|
85
86
|
#
|
86
87
|
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
87
88
|
# Similarly, the dead-letter queue of a standard queue must also be a
|
@@ -89,10 +90,11 @@ module Aws::SQS
|
|
89
90
|
#
|
90
91
|
# </note>
|
91
92
|
#
|
92
|
-
# * `VisibilityTimeout` - The visibility timeout for the queue
|
93
|
-
# values: An integer from 0 to 43,200 (12 hours).
|
94
|
-
# For more information about the visibility timeout, see
|
95
|
-
# Timeout][3] in the *Amazon Simple Queue Service
|
93
|
+
# * `VisibilityTimeout` - The visibility timeout for the queue, in
|
94
|
+
# seconds. Valid values: An integer from 0 to 43,200 (12 hours).
|
95
|
+
# Default: 30. For more information about the visibility timeout, see
|
96
|
+
# [Visibility Timeout][3] in the *Amazon Simple Queue Service
|
97
|
+
# Developer Guide*.
|
96
98
|
#
|
97
99
|
# The following attributes apply only to [server-side-encryption][4]\:
|
98
100
|
#
|
@@ -107,10 +109,10 @@ module Aws::SQS
|
|
107
109
|
# which Amazon SQS can reuse a [data key][7] to encrypt or decrypt
|
108
110
|
# messages before calling AWS KMS again. An integer representing
|
109
111
|
# seconds, between 60 seconds (1 minute) and 86,400 seconds (24
|
110
|
-
# hours).
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
112
|
+
# hours). Default: 300 (5 minutes). A shorter time period provides
|
113
|
+
# better security but results in more calls to KMS which might incur
|
114
|
+
# charges after Free Tier. For more information, see [How Does the
|
115
|
+
# Data Key Reuse Period Work?][8].
|
114
116
|
#
|
115
117
|
# The following attributes apply only to [FIFO (first-in-first-out)
|
116
118
|
# queues][9]\:
|
@@ -157,21 +159,6 @@ module Aws::SQS
|
|
157
159
|
# `MessageDeduplicationId`, the two messages are treated as
|
158
160
|
# duplicates and only one copy of the message is delivered.
|
159
161
|
#
|
160
|
-
# Any other valid special request parameters (such as the following) are
|
161
|
-
# ignored:
|
162
|
-
#
|
163
|
-
# * `ApproximateNumberOfMessages`
|
164
|
-
#
|
165
|
-
# * `ApproximateNumberOfMessagesDelayed`
|
166
|
-
#
|
167
|
-
# * `ApproximateNumberOfMessagesNotVisible`
|
168
|
-
#
|
169
|
-
# * `CreatedTimestamp`
|
170
|
-
#
|
171
|
-
# * `LastModifiedTimestamp`
|
172
|
-
#
|
173
|
-
# * `QueueArn`
|
174
|
-
#
|
175
162
|
#
|
176
163
|
#
|
177
164
|
# [1]: http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html
|
@@ -206,7 +193,7 @@ module Aws::SQS
|
|
206
193
|
# characters. Valid values: alphanumeric characters, hyphens (`-`), and
|
207
194
|
# underscores (`_`).
|
208
195
|
#
|
209
|
-
# Queue names are case-sensitive.
|
196
|
+
# Queue URLs and names are case-sensitive.
|
210
197
|
# @option options [String] :queue_owner_aws_account_id
|
211
198
|
# The AWS account ID of the account that created the queue.
|
212
199
|
# @return [Queue]
|
@@ -239,7 +226,7 @@ module Aws::SQS
|
|
239
226
|
# A string to use for filtering the list results. Only those queues
|
240
227
|
# whose name begins with the specified string are returned.
|
241
228
|
#
|
242
|
-
# Queue names are case-sensitive.
|
229
|
+
# Queue URLs and names are case-sensitive.
|
243
230
|
# @return [Queue::Collection]
|
244
231
|
def queues(options = {})
|
245
232
|
batches = Enumerator.new do |y|
|