aws-sdk-sqs 1.45.0 → 1.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sqs/client.rb +109 -159
- data/lib/aws-sdk-sqs/message.rb +2 -1
- data/lib/aws-sdk-sqs/queue.rb +38 -53
- data/lib/aws-sdk-sqs/resource.rb +31 -51
- data/lib/aws-sdk-sqs/types.rb +101 -159
- data/lib/aws-sdk-sqs.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd44e3714f617064ac83222231c79e64d560d5791c3a2613712c23ce8fd391d3
|
4
|
+
data.tar.gz: 14f6bf7093fdda16e585962880a3fc3ea2d7a0b1ce9156667390493c45819caa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 218ef9452b999b0acf56d065c5afb907333aa6488291da28680dac9e4bcb9e39a4da09a964f30fdb7b8579f4020c3dad862854f21e4aaf155db8b8cfb1870c22
|
7
|
+
data.tar.gz: 3f1deafe9bcb20ec749910e6ba613f8231ab4a6a6d22cd92237a9a35621395c43698dc21c84970099e8db7ecc2fa90edac5bc12c6fb1d1fdfac51e55f49b79b1
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.48.0 (2021-11-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.47.0 (2021-11-23)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Amazon SQS adds a new queue attribute, SqsManagedSseEnabled, which enables server-side queue encryption using SQS owned encryption keys.
|
13
|
+
|
14
|
+
1.46.0 (2021-11-04)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
4
19
|
1.45.0 (2021-10-18)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.48.0
|
data/lib/aws-sdk-sqs/client.rb
CHANGED
@@ -123,7 +123,9 @@ module Aws::SQS
|
|
123
123
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
124
124
|
# are very aggressive. Construct and pass an instance of
|
125
125
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
126
|
-
# enable retries and extended timeouts.
|
126
|
+
# enable retries and extended timeouts. Instance profile credential
|
127
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
128
|
+
# to true.
|
127
129
|
#
|
128
130
|
# @option options [required, String] :region
|
129
131
|
# The AWS region to connect to. The configured `:region` is
|
@@ -279,6 +281,15 @@ module Aws::SQS
|
|
279
281
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
280
282
|
# requests are made, and retries are disabled.
|
281
283
|
#
|
284
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
285
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
286
|
+
# will be used if available.
|
287
|
+
#
|
288
|
+
# @option options [Boolean] :use_fips_endpoint
|
289
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
290
|
+
# When a `fips` region is used, the region is normalized and this config
|
291
|
+
# is set to `true`.
|
292
|
+
#
|
282
293
|
# @option options [Boolean] :validate_params (true)
|
283
294
|
# When `true`, request parameters are validated before
|
284
295
|
# sending the request.
|
@@ -392,10 +403,10 @@ module Aws::SQS
|
|
392
403
|
# underscores (`_`).
|
393
404
|
#
|
394
405
|
# @option params [required, Array<String>] :aws_account_ids
|
395
|
-
# The account numbers of the [principals][1] who are
|
396
|
-
# permission. For information about locating the
|
397
|
-
# see [Your Amazon Web Services
|
398
|
-
# Developer Guide*.
|
406
|
+
# The Amazon Web Services account numbers of the [principals][1] who are
|
407
|
+
# to receive permission. For information about locating the Amazon Web
|
408
|
+
# Services account identification, see [Your Amazon Web Services
|
409
|
+
# Identifiers][2] in the *Amazon SQS Developer Guide*.
|
399
410
|
#
|
400
411
|
#
|
401
412
|
#
|
@@ -703,16 +714,11 @@ module Aws::SQS
|
|
703
714
|
# for which a ` ReceiveMessage ` action waits for a message to arrive.
|
704
715
|
# Valid values: An integer from 0 to 20 (seconds). Default: 0.
|
705
716
|
#
|
706
|
-
# * `VisibilityTimeout` – The visibility timeout for the queue, in
|
707
|
-
# seconds. Valid values: An integer from 0 to 43,200 (12 hours).
|
708
|
-
# Default: 30. For more information about the visibility timeout, see
|
709
|
-
# [Visibility Timeout][2] in the *Amazon SQS Developer Guide*.
|
710
|
-
#
|
711
|
-
# The following attributes apply only to [dead-letter queues:][3]
|
712
|
-
#
|
713
717
|
# * `RedrivePolicy` – The string that includes the parameters for the
|
714
718
|
# dead-letter queue functionality of the source queue as a JSON
|
715
|
-
# object.
|
719
|
+
# object. For more information about the redrive policy and
|
720
|
+
# dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
|
721
|
+
# the *Amazon SQS Developer Guide*.
|
716
722
|
#
|
717
723
|
# * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
|
718
724
|
# dead-letter queue to which Amazon SQS moves messages after the
|
@@ -723,38 +729,16 @@ module Aws::SQS
|
|
723
729
|
# the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
|
724
730
|
# a queue, Amazon SQS moves the message to the dead-letter-queue.
|
725
731
|
#
|
726
|
-
#
|
727
|
-
#
|
728
|
-
#
|
729
|
-
# The parameters are as follows:
|
730
|
-
#
|
731
|
-
# * `redrivePermission` – The permission type that defines which
|
732
|
-
# source queues can specify the current queue as the dead-letter
|
733
|
-
# queue. Valid values are:
|
732
|
+
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
733
|
+
# Similarly, the dead-letter queue of a standard queue must also be a
|
734
|
+
# standard queue.
|
734
735
|
#
|
735
|
-
#
|
736
|
-
# Services account in the same Region can specify this queue as
|
737
|
-
# the dead-letter queue.
|
738
|
-
#
|
739
|
-
# * `denyAll` – No source queues can specify this queue as the
|
740
|
-
# dead-letter queue.
|
741
|
-
#
|
742
|
-
# * `byQueue` – Only queues specified by the `sourceQueueArns`
|
743
|
-
# parameter can specify this queue as the dead-letter queue.
|
744
|
-
#
|
745
|
-
# * `sourceQueueArns` – The Amazon Resource Names (ARN)s of the source
|
746
|
-
# queues that can specify this queue as the dead-letter queue and
|
747
|
-
# redrive messages. You can specify this parameter only when the
|
748
|
-
# `redrivePermission` parameter is set to `byQueue`. You can specify
|
749
|
-
# up to 10 source queue ARNs. To allow more than 10 source queues to
|
750
|
-
# specify dead-letter queues, set the `redrivePermission` parameter
|
751
|
-
# to `allowAll`.
|
752
|
-
#
|
753
|
-
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
754
|
-
# Similarly, the dead-letter queue of a standard queue must also be a
|
755
|
-
# standard queue.
|
736
|
+
# </note>
|
756
737
|
#
|
757
|
-
#
|
738
|
+
# * `VisibilityTimeout` – The visibility timeout for the queue, in
|
739
|
+
# seconds. Valid values: An integer from 0 to 43,200 (12 hours).
|
740
|
+
# Default: 30. For more information about the visibility timeout, see
|
741
|
+
# [Visibility Timeout][3] in the *Amazon SQS Developer Guide*.
|
758
742
|
#
|
759
743
|
# The following attributes apply only to [server-side-encryption][4]\:
|
760
744
|
#
|
@@ -775,8 +759,12 @@ module Aws::SQS
|
|
775
759
|
# after Free Tier. For more information, see [How Does the Data Key
|
776
760
|
# Reuse Period Work?][8].
|
777
761
|
#
|
762
|
+
# * `SqsManagedSseEnabled` – Enables server-side queue encryption using
|
763
|
+
# SQS owned encryption keys. Only one server-side encryption option is
|
764
|
+
# supported per queue (e.g. [SSE-KMS][9] or [SSE-SQS][10]).
|
765
|
+
#
|
778
766
|
# The following attributes apply only to [FIFO (first-in-first-out)
|
779
|
-
# queues][
|
767
|
+
# queues][11]\:
|
780
768
|
#
|
781
769
|
# * `FifoQueue` – Designates a queue as FIFO. Valid values are `true`
|
782
770
|
# and `false`. If you don't specify the `FifoQueue` attribute, Amazon
|
@@ -785,12 +773,12 @@ module Aws::SQS
|
|
785
773
|
# When you set this attribute, you must also provide the
|
786
774
|
# `MessageGroupId` for your messages explicitly.
|
787
775
|
#
|
788
|
-
# For more information, see [FIFO queue logic][
|
776
|
+
# For more information, see [FIFO queue logic][12] in the *Amazon SQS
|
789
777
|
# Developer Guide*.
|
790
778
|
#
|
791
779
|
# * `ContentBasedDeduplication` – Enables content-based deduplication.
|
792
780
|
# Valid values are `true` and `false`. For more information, see
|
793
|
-
# [Exactly-once processing][
|
781
|
+
# [Exactly-once processing][13] in the *Amazon SQS Developer Guide*.
|
794
782
|
# Note the following:
|
795
783
|
#
|
796
784
|
# * Every message must have a unique `MessageDeduplicationId`.
|
@@ -822,7 +810,7 @@ module Aws::SQS
|
|
822
810
|
# duplicates and only one copy of the message is delivered.
|
823
811
|
#
|
824
812
|
# The following attributes apply only to [high throughput for FIFO
|
825
|
-
# queues][
|
813
|
+
# queues][14]\:
|
826
814
|
#
|
827
815
|
# * `DeduplicationScope` – Specifies whether message deduplication
|
828
816
|
# occurs at the message group or queue level. Valid values are
|
@@ -845,23 +833,25 @@ module Aws::SQS
|
|
845
833
|
# deduplication occurs as specified.
|
846
834
|
#
|
847
835
|
# For information on throughput quotas, see [Quotas related to
|
848
|
-
# messages][
|
836
|
+
# messages][15] in the *Amazon SQS Developer Guide*.
|
849
837
|
#
|
850
838
|
#
|
851
839
|
#
|
852
840
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html
|
853
|
-
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-
|
854
|
-
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-
|
841
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
|
842
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
|
855
843
|
# [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
|
856
844
|
# [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
|
857
845
|
# [6]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
858
846
|
# [7]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys
|
859
847
|
# [8]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work
|
860
|
-
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
861
|
-
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
862
|
-
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues
|
863
|
-
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
864
|
-
# [13]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
848
|
+
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
849
|
+
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
850
|
+
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
|
851
|
+
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html
|
852
|
+
# [13]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html
|
853
|
+
# [14]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
|
854
|
+
# [15]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
|
865
855
|
#
|
866
856
|
# @option params [Hash<String,String>] :tags
|
867
857
|
# Add cost allocation tags to the specified Amazon SQS queue. For an
|
@@ -1160,15 +1150,11 @@ module Aws::SQS
|
|
1160
1150
|
# seconds, for which the `ReceiveMessage` action waits for a message
|
1161
1151
|
# to arrive.
|
1162
1152
|
#
|
1163
|
-
# * `VisibilityTimeout` – Returns the visibility timeout for the queue.
|
1164
|
-
# For more information about the visibility timeout, see [Visibility
|
1165
|
-
# Timeout][2] in the *Amazon SQS Developer Guide*.
|
1166
|
-
#
|
1167
|
-
# The following attributes apply only to [dead-letter queues:][3]
|
1168
|
-
#
|
1169
1153
|
# * `RedrivePolicy` – The string that includes the parameters for the
|
1170
1154
|
# dead-letter queue functionality of the source queue as a JSON
|
1171
|
-
# object.
|
1155
|
+
# object. For more information about the redrive policy and
|
1156
|
+
# dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
|
1157
|
+
# the *Amazon SQS Developer Guide*.
|
1172
1158
|
#
|
1173
1159
|
# * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
|
1174
1160
|
# dead-letter queue to which Amazon SQS moves messages after the
|
@@ -1179,38 +1165,9 @@ module Aws::SQS
|
|
1179
1165
|
# the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
|
1180
1166
|
# a queue, Amazon SQS moves the message to the dead-letter-queue.
|
1181
1167
|
#
|
1182
|
-
# * `
|
1183
|
-
#
|
1184
|
-
#
|
1185
|
-
# The parameters are as follows:
|
1186
|
-
#
|
1187
|
-
# * `redrivePermission` – The permission type that defines which
|
1188
|
-
# source queues can specify the current queue as the dead-letter
|
1189
|
-
# queue. Valid values are:
|
1190
|
-
#
|
1191
|
-
# * `allowAll` – (Default) Any source queues in this Amazon Web
|
1192
|
-
# Services account in the same Region can specify this queue as
|
1193
|
-
# the dead-letter queue.
|
1194
|
-
#
|
1195
|
-
# * `denyAll` – No source queues can specify this queue as the
|
1196
|
-
# dead-letter queue.
|
1197
|
-
#
|
1198
|
-
# * `byQueue` – Only queues specified by the `sourceQueueArns`
|
1199
|
-
# parameter can specify this queue as the dead-letter queue.
|
1200
|
-
#
|
1201
|
-
# * `sourceQueueArns` – The Amazon Resource Names (ARN)s of the source
|
1202
|
-
# queues that can specify this queue as the dead-letter queue and
|
1203
|
-
# redrive messages. You can specify this parameter only when the
|
1204
|
-
# `redrivePermission` parameter is set to `byQueue`. You can specify
|
1205
|
-
# up to 10 source queue ARNs. To allow more than 10 source queues to
|
1206
|
-
# specify dead-letter queues, set the `redrivePermission` parameter
|
1207
|
-
# to `allowAll`.
|
1208
|
-
#
|
1209
|
-
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
1210
|
-
# Similarly, the dead-letter queue of a standard queue must also be a
|
1211
|
-
# standard queue.
|
1212
|
-
#
|
1213
|
-
# </note>
|
1168
|
+
# * `VisibilityTimeout` – Returns the visibility timeout for the queue.
|
1169
|
+
# For more information about the visibility timeout, see [Visibility
|
1170
|
+
# Timeout][3] in the *Amazon SQS Developer Guide*.
|
1214
1171
|
#
|
1215
1172
|
# The following attributes apply only to [server-side-encryption][4]\:
|
1216
1173
|
#
|
@@ -1223,24 +1180,29 @@ module Aws::SQS
|
|
1223
1180
|
# decrypt messages before calling KMS again. For more information, see
|
1224
1181
|
# [How Does the Data Key Reuse Period Work?][6].
|
1225
1182
|
#
|
1183
|
+
# * `SqsManagedSseEnabled` – Returns information about whether the queue
|
1184
|
+
# is using SSE-SQS encryption using SQS owned encryption keys. Only
|
1185
|
+
# one server-side encryption option is supported per queue (e.g.
|
1186
|
+
# [SSE-KMS][7] or [SSE-SQS][8]).
|
1187
|
+
#
|
1226
1188
|
# The following attributes apply only to [FIFO (first-in-first-out)
|
1227
|
-
# queues][
|
1189
|
+
# queues][9]\:
|
1228
1190
|
#
|
1229
1191
|
# * `FifoQueue` – Returns information about whether the queue is FIFO.
|
1230
|
-
# For more information, see [FIFO queue logic][
|
1192
|
+
# For more information, see [FIFO queue logic][10] in the *Amazon SQS
|
1231
1193
|
# Developer Guide*.
|
1232
1194
|
#
|
1233
|
-
# <note markdown="1"> To determine whether a queue is [FIFO][
|
1195
|
+
# <note markdown="1"> To determine whether a queue is [FIFO][9], you can check whether
|
1234
1196
|
# `QueueName` ends with the `.fifo` suffix.
|
1235
1197
|
#
|
1236
1198
|
# </note>
|
1237
1199
|
#
|
1238
1200
|
# * `ContentBasedDeduplication` – Returns whether content-based
|
1239
1201
|
# deduplication is enabled for the queue. For more information, see
|
1240
|
-
# [Exactly-once processing][
|
1202
|
+
# [Exactly-once processing][11] in the *Amazon SQS Developer Guide*.
|
1241
1203
|
#
|
1242
1204
|
# The following attributes apply only to [high throughput for FIFO
|
1243
|
-
# queues][
|
1205
|
+
# queues][12]\:
|
1244
1206
|
#
|
1245
1207
|
# * `DeduplicationScope` – Specifies whether message deduplication
|
1246
1208
|
# occurs at the message group or queue level. Valid values are
|
@@ -1263,21 +1225,23 @@ module Aws::SQS
|
|
1263
1225
|
# deduplication occurs as specified.
|
1264
1226
|
#
|
1265
1227
|
# For information on throughput quotas, see [Quotas related to
|
1266
|
-
# messages][
|
1228
|
+
# messages][13] in the *Amazon SQS Developer Guide*.
|
1267
1229
|
#
|
1268
1230
|
#
|
1269
1231
|
#
|
1270
1232
|
# [1]: http://en.wikipedia.org/wiki/Unix_time
|
1271
|
-
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-
|
1272
|
-
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-
|
1233
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
|
1234
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
|
1273
1235
|
# [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
|
1274
1236
|
# [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
|
1275
1237
|
# [6]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work
|
1276
|
-
# [7]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
1277
|
-
# [8]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
1278
|
-
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues
|
1279
|
-
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
1280
|
-
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
1238
|
+
# [7]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
1239
|
+
# [8]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
1240
|
+
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
|
1241
|
+
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html
|
1242
|
+
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html
|
1243
|
+
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
|
1244
|
+
# [13]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
|
1281
1245
|
#
|
1282
1246
|
# @return [Types::GetQueueAttributesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1283
1247
|
#
|
@@ -1287,7 +1251,7 @@ module Aws::SQS
|
|
1287
1251
|
#
|
1288
1252
|
# resp = client.get_queue_attributes({
|
1289
1253
|
# queue_url: "String", # required
|
1290
|
-
# attribute_names: ["All"], # accepts All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds, DeduplicationScope, FifoThroughputLimit, RedriveAllowPolicy
|
1254
|
+
# attribute_names: ["All"], # accepts All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds, DeduplicationScope, FifoThroughputLimit, RedriveAllowPolicy, SqsManagedSseEnabled
|
1291
1255
|
# })
|
1292
1256
|
#
|
1293
1257
|
# @example Response structure
|
@@ -1325,7 +1289,8 @@ module Aws::SQS
|
|
1325
1289
|
# Queue URLs and names are case-sensitive.
|
1326
1290
|
#
|
1327
1291
|
# @option params [String] :queue_owner_aws_account_id
|
1328
|
-
# The account ID of the account that created the
|
1292
|
+
# The Amazon Web Services account ID of the account that created the
|
1293
|
+
# queue.
|
1329
1294
|
#
|
1330
1295
|
# @return [Types::GetQueueUrlResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1331
1296
|
#
|
@@ -1647,6 +1612,10 @@ module Aws::SQS
|
|
1647
1612
|
# * `SentTimestamp` – Returns the time the message was sent to the queue
|
1648
1613
|
# ([epoch time][1] in milliseconds).
|
1649
1614
|
#
|
1615
|
+
# * `SqsManagedSseEnabled` – Enables server-side queue encryption using
|
1616
|
+
# SQS owned encryption keys. Only one server-side encryption option is
|
1617
|
+
# supported per queue (e.g. [SSE-KMS][2] or [SSE-SQS][3]).
|
1618
|
+
#
|
1650
1619
|
# * `MessageDeduplicationId` – Returns the value provided by the
|
1651
1620
|
# producer that calls the ` SendMessage ` action.
|
1652
1621
|
#
|
@@ -1659,6 +1628,8 @@ module Aws::SQS
|
|
1659
1628
|
#
|
1660
1629
|
#
|
1661
1630
|
# [1]: http://en.wikipedia.org/wiki/Unix_time
|
1631
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
1632
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
1662
1633
|
#
|
1663
1634
|
# @option params [Array<String>] :message_attribute_names
|
1664
1635
|
# The name of the message attribute, where *N* is the index.
|
@@ -1783,7 +1754,7 @@ module Aws::SQS
|
|
1783
1754
|
#
|
1784
1755
|
# resp = client.receive_message({
|
1785
1756
|
# queue_url: "String", # required
|
1786
|
-
# attribute_names: ["All"], # accepts All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds, DeduplicationScope, FifoThroughputLimit, RedriveAllowPolicy
|
1757
|
+
# attribute_names: ["All"], # accepts All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds, DeduplicationScope, FifoThroughputLimit, RedriveAllowPolicy, SqsManagedSseEnabled
|
1787
1758
|
# message_attribute_names: ["MessageAttributeName"],
|
1788
1759
|
# max_number_of_messages: 1,
|
1789
1760
|
# visibility_timeout: 1,
|
@@ -2247,16 +2218,11 @@ module Aws::SQS
|
|
2247
2218
|
# for which a ` ReceiveMessage ` action waits for a message to arrive.
|
2248
2219
|
# Valid values: An integer from 0 to 20 (seconds). Default: 0.
|
2249
2220
|
#
|
2250
|
-
# * `VisibilityTimeout` – The visibility timeout for the queue, in
|
2251
|
-
# seconds. Valid values: An integer from 0 to 43,200 (12 hours).
|
2252
|
-
# Default: 30. For more information about the visibility timeout, see
|
2253
|
-
# [Visibility Timeout][2] in the *Amazon SQS Developer Guide*.
|
2254
|
-
#
|
2255
|
-
# The following attributes apply only to [dead-letter queues:][3]
|
2256
|
-
#
|
2257
2221
|
# * `RedrivePolicy` – The string that includes the parameters for the
|
2258
2222
|
# dead-letter queue functionality of the source queue as a JSON
|
2259
|
-
# object.
|
2223
|
+
# object. For more information about the redrive policy and
|
2224
|
+
# dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
|
2225
|
+
# the *Amazon SQS Developer Guide*.
|
2260
2226
|
#
|
2261
2227
|
# * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
|
2262
2228
|
# dead-letter queue to which Amazon SQS moves messages after the
|
@@ -2267,38 +2233,16 @@ module Aws::SQS
|
|
2267
2233
|
# the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
|
2268
2234
|
# a queue, Amazon SQS moves the message to the dead-letter-queue.
|
2269
2235
|
#
|
2270
|
-
#
|
2271
|
-
#
|
2272
|
-
#
|
2273
|
-
# The parameters are as follows:
|
2274
|
-
#
|
2275
|
-
# * `redrivePermission` – The permission type that defines which
|
2276
|
-
# source queues can specify the current queue as the dead-letter
|
2277
|
-
# queue. Valid values are:
|
2236
|
+
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
2237
|
+
# Similarly, the dead-letter queue of a standard queue must also be a
|
2238
|
+
# standard queue.
|
2278
2239
|
#
|
2279
|
-
#
|
2280
|
-
# Services account in the same Region can specify this queue as
|
2281
|
-
# the dead-letter queue.
|
2282
|
-
#
|
2283
|
-
# * `denyAll` – No source queues can specify this queue as the
|
2284
|
-
# dead-letter queue.
|
2285
|
-
#
|
2286
|
-
# * `byQueue` – Only queues specified by the `sourceQueueArns`
|
2287
|
-
# parameter can specify this queue as the dead-letter queue.
|
2288
|
-
#
|
2289
|
-
# * `sourceQueueArns` – The Amazon Resource Names (ARN)s of the source
|
2290
|
-
# queues that can specify this queue as the dead-letter queue and
|
2291
|
-
# redrive messages. You can specify this parameter only when the
|
2292
|
-
# `redrivePermission` parameter is set to `byQueue`. You can specify
|
2293
|
-
# up to 10 source queue ARNs. To allow more than 10 source queues to
|
2294
|
-
# specify dead-letter queues, set the `redrivePermission` parameter
|
2295
|
-
# to `allowAll`.
|
2296
|
-
#
|
2297
|
-
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
2298
|
-
# Similarly, the dead-letter queue of a standard queue must also be a
|
2299
|
-
# standard queue.
|
2240
|
+
# </note>
|
2300
2241
|
#
|
2301
|
-
#
|
2242
|
+
# * `VisibilityTimeout` – The visibility timeout for the queue, in
|
2243
|
+
# seconds. Valid values: An integer from 0 to 43,200 (12 hours).
|
2244
|
+
# Default: 30. For more information about the visibility timeout, see
|
2245
|
+
# [Visibility Timeout][3] in the *Amazon SQS Developer Guide*.
|
2302
2246
|
#
|
2303
2247
|
# The following attributes apply only to [server-side-encryption][4]\:
|
2304
2248
|
#
|
@@ -2318,11 +2262,15 @@ module Aws::SQS
|
|
2318
2262
|
# after Free Tier. For more information, see [How Does the Data Key
|
2319
2263
|
# Reuse Period Work?][8].
|
2320
2264
|
#
|
2265
|
+
# * `SqsManagedSseEnabled` – Enables server-side queue encryption using
|
2266
|
+
# SQS owned encryption keys. Only one server-side encryption option is
|
2267
|
+
# supported per queue (e.g. [SSE-KMS][9] or [SSE-SQS][10]).
|
2268
|
+
#
|
2321
2269
|
# The following attribute applies only to [FIFO (first-in-first-out)
|
2322
|
-
# queues][
|
2270
|
+
# queues][11]\:
|
2323
2271
|
#
|
2324
2272
|
# * `ContentBasedDeduplication` – Enables content-based deduplication.
|
2325
|
-
# For more information, see [Exactly-once processing][
|
2273
|
+
# For more information, see [Exactly-once processing][12] in the
|
2326
2274
|
# *Amazon SQS Developer Guide*. Note the following:
|
2327
2275
|
#
|
2328
2276
|
# * Every message must have a unique `MessageDeduplicationId`.
|
@@ -2354,7 +2302,7 @@ module Aws::SQS
|
|
2354
2302
|
# duplicates and only one copy of the message is delivered.
|
2355
2303
|
#
|
2356
2304
|
# The following attributes apply only to [high throughput for FIFO
|
2357
|
-
# queues][
|
2305
|
+
# queues][13]\:
|
2358
2306
|
#
|
2359
2307
|
# * `DeduplicationScope` – Specifies whether message deduplication
|
2360
2308
|
# occurs at the message group or queue level. Valid values are
|
@@ -2377,22 +2325,24 @@ module Aws::SQS
|
|
2377
2325
|
# deduplication occurs as specified.
|
2378
2326
|
#
|
2379
2327
|
# For information on throughput quotas, see [Quotas related to
|
2380
|
-
# messages][
|
2328
|
+
# messages][14] in the *Amazon SQS Developer Guide*.
|
2381
2329
|
#
|
2382
2330
|
#
|
2383
2331
|
#
|
2384
2332
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html
|
2385
|
-
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-
|
2386
|
-
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-
|
2333
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
|
2334
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
|
2387
2335
|
# [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
|
2388
2336
|
# [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
|
2389
2337
|
# [6]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
2390
2338
|
# [7]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys
|
2391
2339
|
# [8]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work
|
2392
|
-
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
2393
|
-
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
2394
|
-
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
2395
|
-
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
2340
|
+
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
2341
|
+
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
2342
|
+
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
|
2343
|
+
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html
|
2344
|
+
# [13]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
|
2345
|
+
# [14]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
|
2396
2346
|
#
|
2397
2347
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2398
2348
|
#
|
@@ -2523,7 +2473,7 @@ module Aws::SQS
|
|
2523
2473
|
params: params,
|
2524
2474
|
config: config)
|
2525
2475
|
context[:gem_name] = 'aws-sdk-sqs'
|
2526
|
-
context[:gem_version] = '1.
|
2476
|
+
context[:gem_version] = '1.48.0'
|
2527
2477
|
Seahorse::Client::Request.new(handlers, context)
|
2528
2478
|
end
|
2529
2479
|
|
data/lib/aws-sdk-sqs/message.rb
CHANGED
@@ -43,7 +43,8 @@ module Aws::SQS
|
|
43
43
|
end
|
44
44
|
|
45
45
|
# A unique identifier for the message. A `MessageId`is considered unique
|
46
|
-
# across all accounts for an extended period of
|
46
|
+
# across all Amazon Web Services accounts for an extended period of
|
47
|
+
# time.
|
47
48
|
# @return [String]
|
48
49
|
def message_id
|
49
50
|
data[:message_id]
|