aws-sdk-sqs 1.46.0 → 1.47.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sqs/client.rb +97 -158
- 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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4314b9618e1dd3901ba8c4231eb897df9708d8fff9e91f5563b407b16ec1162
|
4
|
+
data.tar.gz: f38a9506b4550f51890ac1b12341ae98f197fa990013e088f29ff8c185f5eb1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61c959f9e7bea486f0411d61d56002c3cf0a222b137d35d06af27a73b72f498afcb71edd3570a476bcbb981e8f775727c659624cffd1e64308b43209b7a32b7b
|
7
|
+
data.tar.gz: 3016cf5a8bffa74341b4cacc658b1c0cad2648909ae94cbc97dbbe144ebc6c4d333c3bb20891f813ce61203aca04274602a53e377bb79e8c3154f2420162d303
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.47.0 (2021-11-23)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon SQS adds a new queue attribute, SqsManagedSseEnabled, which enables server-side queue encryption using SQS owned encryption keys.
|
8
|
+
|
4
9
|
1.46.0 (2021-11-04)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.47.0
|
data/lib/aws-sdk-sqs/client.rb
CHANGED
@@ -401,10 +401,10 @@ module Aws::SQS
|
|
401
401
|
# underscores (`_`).
|
402
402
|
#
|
403
403
|
# @option params [required, Array<String>] :aws_account_ids
|
404
|
-
# The account numbers of the [principals][1] who are
|
405
|
-
# permission. For information about locating the
|
406
|
-
# see [Your Amazon Web Services
|
407
|
-
# Developer Guide*.
|
404
|
+
# The Amazon Web Services account numbers of the [principals][1] who are
|
405
|
+
# to receive permission. For information about locating the Amazon Web
|
406
|
+
# Services account identification, see [Your Amazon Web Services
|
407
|
+
# Identifiers][2] in the *Amazon SQS Developer Guide*.
|
408
408
|
#
|
409
409
|
#
|
410
410
|
#
|
@@ -712,16 +712,11 @@ module Aws::SQS
|
|
712
712
|
# for which a ` ReceiveMessage ` action waits for a message to arrive.
|
713
713
|
# Valid values: An integer from 0 to 20 (seconds). Default: 0.
|
714
714
|
#
|
715
|
-
# * `VisibilityTimeout` – The visibility timeout for the queue, in
|
716
|
-
# seconds. Valid values: An integer from 0 to 43,200 (12 hours).
|
717
|
-
# Default: 30. For more information about the visibility timeout, see
|
718
|
-
# [Visibility Timeout][2] in the *Amazon SQS Developer Guide*.
|
719
|
-
#
|
720
|
-
# The following attributes apply only to [dead-letter queues:][3]
|
721
|
-
#
|
722
715
|
# * `RedrivePolicy` – The string that includes the parameters for the
|
723
716
|
# dead-letter queue functionality of the source queue as a JSON
|
724
|
-
# object.
|
717
|
+
# object. For more information about the redrive policy and
|
718
|
+
# dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
|
719
|
+
# the *Amazon SQS Developer Guide*.
|
725
720
|
#
|
726
721
|
# * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
|
727
722
|
# dead-letter queue to which Amazon SQS moves messages after the
|
@@ -732,38 +727,16 @@ module Aws::SQS
|
|
732
727
|
# the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
|
733
728
|
# a queue, Amazon SQS moves the message to the dead-letter-queue.
|
734
729
|
#
|
735
|
-
#
|
736
|
-
#
|
737
|
-
#
|
738
|
-
# The parameters are as follows:
|
739
|
-
#
|
740
|
-
# * `redrivePermission` – The permission type that defines which
|
741
|
-
# source queues can specify the current queue as the dead-letter
|
742
|
-
# queue. Valid values are:
|
743
|
-
#
|
744
|
-
# * `allowAll` – (Default) Any source queues in this Amazon Web
|
745
|
-
# Services account in the same Region can specify this queue as
|
746
|
-
# the dead-letter queue.
|
747
|
-
#
|
748
|
-
# * `denyAll` – No source queues can specify this queue as the
|
749
|
-
# dead-letter queue.
|
750
|
-
#
|
751
|
-
# * `byQueue` – Only queues specified by the `sourceQueueArns`
|
752
|
-
# parameter can specify this queue as the dead-letter queue.
|
730
|
+
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
731
|
+
# Similarly, the dead-letter queue of a standard queue must also be a
|
732
|
+
# standard queue.
|
753
733
|
#
|
754
|
-
#
|
755
|
-
# queues that can specify this queue as the dead-letter queue and
|
756
|
-
# redrive messages. You can specify this parameter only when the
|
757
|
-
# `redrivePermission` parameter is set to `byQueue`. You can specify
|
758
|
-
# up to 10 source queue ARNs. To allow more than 10 source queues to
|
759
|
-
# specify dead-letter queues, set the `redrivePermission` parameter
|
760
|
-
# to `allowAll`.
|
761
|
-
#
|
762
|
-
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
763
|
-
# Similarly, the dead-letter queue of a standard queue must also be a
|
764
|
-
# standard queue.
|
734
|
+
# </note>
|
765
735
|
#
|
766
|
-
#
|
736
|
+
# * `VisibilityTimeout` – The visibility timeout for the queue, in
|
737
|
+
# seconds. Valid values: An integer from 0 to 43,200 (12 hours).
|
738
|
+
# Default: 30. For more information about the visibility timeout, see
|
739
|
+
# [Visibility Timeout][3] in the *Amazon SQS Developer Guide*.
|
767
740
|
#
|
768
741
|
# The following attributes apply only to [server-side-encryption][4]\:
|
769
742
|
#
|
@@ -784,8 +757,12 @@ module Aws::SQS
|
|
784
757
|
# after Free Tier. For more information, see [How Does the Data Key
|
785
758
|
# Reuse Period Work?][8].
|
786
759
|
#
|
760
|
+
# * `SqsManagedSseEnabled` – Enables server-side queue encryption using
|
761
|
+
# SQS owned encryption keys. Only one server-side encryption option is
|
762
|
+
# supported per queue (e.g. [SSE-KMS][9] or [SSE-SQS][10]).
|
763
|
+
#
|
787
764
|
# The following attributes apply only to [FIFO (first-in-first-out)
|
788
|
-
# queues][
|
765
|
+
# queues][11]\:
|
789
766
|
#
|
790
767
|
# * `FifoQueue` – Designates a queue as FIFO. Valid values are `true`
|
791
768
|
# and `false`. If you don't specify the `FifoQueue` attribute, Amazon
|
@@ -794,12 +771,12 @@ module Aws::SQS
|
|
794
771
|
# When you set this attribute, you must also provide the
|
795
772
|
# `MessageGroupId` for your messages explicitly.
|
796
773
|
#
|
797
|
-
# For more information, see [FIFO queue logic][
|
774
|
+
# For more information, see [FIFO queue logic][12] in the *Amazon SQS
|
798
775
|
# Developer Guide*.
|
799
776
|
#
|
800
777
|
# * `ContentBasedDeduplication` – Enables content-based deduplication.
|
801
778
|
# Valid values are `true` and `false`. For more information, see
|
802
|
-
# [Exactly-once processing][
|
779
|
+
# [Exactly-once processing][13] in the *Amazon SQS Developer Guide*.
|
803
780
|
# Note the following:
|
804
781
|
#
|
805
782
|
# * Every message must have a unique `MessageDeduplicationId`.
|
@@ -831,7 +808,7 @@ module Aws::SQS
|
|
831
808
|
# duplicates and only one copy of the message is delivered.
|
832
809
|
#
|
833
810
|
# The following attributes apply only to [high throughput for FIFO
|
834
|
-
# queues][
|
811
|
+
# queues][14]\:
|
835
812
|
#
|
836
813
|
# * `DeduplicationScope` – Specifies whether message deduplication
|
837
814
|
# occurs at the message group or queue level. Valid values are
|
@@ -854,23 +831,25 @@ module Aws::SQS
|
|
854
831
|
# deduplication occurs as specified.
|
855
832
|
#
|
856
833
|
# For information on throughput quotas, see [Quotas related to
|
857
|
-
# messages][
|
834
|
+
# messages][15] in the *Amazon SQS Developer Guide*.
|
858
835
|
#
|
859
836
|
#
|
860
837
|
#
|
861
838
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html
|
862
|
-
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-
|
863
|
-
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-
|
839
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
|
840
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
|
864
841
|
# [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
|
865
842
|
# [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
|
866
843
|
# [6]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
867
844
|
# [7]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys
|
868
845
|
# [8]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work
|
869
|
-
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
870
|
-
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
871
|
-
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues
|
872
|
-
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
873
|
-
# [13]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
846
|
+
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
847
|
+
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
848
|
+
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
|
849
|
+
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html
|
850
|
+
# [13]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html
|
851
|
+
# [14]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
|
852
|
+
# [15]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
|
874
853
|
#
|
875
854
|
# @option params [Hash<String,String>] :tags
|
876
855
|
# Add cost allocation tags to the specified Amazon SQS queue. For an
|
@@ -1169,15 +1148,11 @@ module Aws::SQS
|
|
1169
1148
|
# seconds, for which the `ReceiveMessage` action waits for a message
|
1170
1149
|
# to arrive.
|
1171
1150
|
#
|
1172
|
-
# * `VisibilityTimeout` – Returns the visibility timeout for the queue.
|
1173
|
-
# For more information about the visibility timeout, see [Visibility
|
1174
|
-
# Timeout][2] in the *Amazon SQS Developer Guide*.
|
1175
|
-
#
|
1176
|
-
# The following attributes apply only to [dead-letter queues:][3]
|
1177
|
-
#
|
1178
1151
|
# * `RedrivePolicy` – The string that includes the parameters for the
|
1179
1152
|
# dead-letter queue functionality of the source queue as a JSON
|
1180
|
-
# object.
|
1153
|
+
# object. For more information about the redrive policy and
|
1154
|
+
# dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
|
1155
|
+
# the *Amazon SQS Developer Guide*.
|
1181
1156
|
#
|
1182
1157
|
# * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
|
1183
1158
|
# dead-letter queue to which Amazon SQS moves messages after the
|
@@ -1188,38 +1163,9 @@ module Aws::SQS
|
|
1188
1163
|
# the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
|
1189
1164
|
# a queue, Amazon SQS moves the message to the dead-letter-queue.
|
1190
1165
|
#
|
1191
|
-
# * `
|
1192
|
-
#
|
1193
|
-
#
|
1194
|
-
# The parameters are as follows:
|
1195
|
-
#
|
1196
|
-
# * `redrivePermission` – The permission type that defines which
|
1197
|
-
# source queues can specify the current queue as the dead-letter
|
1198
|
-
# queue. Valid values are:
|
1199
|
-
#
|
1200
|
-
# * `allowAll` – (Default) Any source queues in this Amazon Web
|
1201
|
-
# Services account in the same Region can specify this queue as
|
1202
|
-
# the dead-letter queue.
|
1203
|
-
#
|
1204
|
-
# * `denyAll` – No source queues can specify this queue as the
|
1205
|
-
# dead-letter queue.
|
1206
|
-
#
|
1207
|
-
# * `byQueue` – Only queues specified by the `sourceQueueArns`
|
1208
|
-
# parameter can specify this queue as the dead-letter queue.
|
1209
|
-
#
|
1210
|
-
# * `sourceQueueArns` – The Amazon Resource Names (ARN)s of the source
|
1211
|
-
# queues that can specify this queue as the dead-letter queue and
|
1212
|
-
# redrive messages. You can specify this parameter only when the
|
1213
|
-
# `redrivePermission` parameter is set to `byQueue`. You can specify
|
1214
|
-
# up to 10 source queue ARNs. To allow more than 10 source queues to
|
1215
|
-
# specify dead-letter queues, set the `redrivePermission` parameter
|
1216
|
-
# to `allowAll`.
|
1217
|
-
#
|
1218
|
-
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
1219
|
-
# Similarly, the dead-letter queue of a standard queue must also be a
|
1220
|
-
# standard queue.
|
1221
|
-
#
|
1222
|
-
# </note>
|
1166
|
+
# * `VisibilityTimeout` – Returns the visibility timeout for the queue.
|
1167
|
+
# For more information about the visibility timeout, see [Visibility
|
1168
|
+
# Timeout][3] in the *Amazon SQS Developer Guide*.
|
1223
1169
|
#
|
1224
1170
|
# The following attributes apply only to [server-side-encryption][4]\:
|
1225
1171
|
#
|
@@ -1232,24 +1178,29 @@ module Aws::SQS
|
|
1232
1178
|
# decrypt messages before calling KMS again. For more information, see
|
1233
1179
|
# [How Does the Data Key Reuse Period Work?][6].
|
1234
1180
|
#
|
1181
|
+
# * `SqsManagedSseEnabled` – Returns information about whether the queue
|
1182
|
+
# is using SSE-SQS encryption using SQS owned encryption keys. Only
|
1183
|
+
# one server-side encryption option is supported per queue (e.g.
|
1184
|
+
# [SSE-KMS][7] or [SSE-SQS][8]).
|
1185
|
+
#
|
1235
1186
|
# The following attributes apply only to [FIFO (first-in-first-out)
|
1236
|
-
# queues][
|
1187
|
+
# queues][9]\:
|
1237
1188
|
#
|
1238
1189
|
# * `FifoQueue` – Returns information about whether the queue is FIFO.
|
1239
|
-
# For more information, see [FIFO queue logic][
|
1190
|
+
# For more information, see [FIFO queue logic][10] in the *Amazon SQS
|
1240
1191
|
# Developer Guide*.
|
1241
1192
|
#
|
1242
|
-
# <note markdown="1"> To determine whether a queue is [FIFO][
|
1193
|
+
# <note markdown="1"> To determine whether a queue is [FIFO][9], you can check whether
|
1243
1194
|
# `QueueName` ends with the `.fifo` suffix.
|
1244
1195
|
#
|
1245
1196
|
# </note>
|
1246
1197
|
#
|
1247
1198
|
# * `ContentBasedDeduplication` – Returns whether content-based
|
1248
1199
|
# deduplication is enabled for the queue. For more information, see
|
1249
|
-
# [Exactly-once processing][
|
1200
|
+
# [Exactly-once processing][11] in the *Amazon SQS Developer Guide*.
|
1250
1201
|
#
|
1251
1202
|
# The following attributes apply only to [high throughput for FIFO
|
1252
|
-
# queues][
|
1203
|
+
# queues][12]\:
|
1253
1204
|
#
|
1254
1205
|
# * `DeduplicationScope` – Specifies whether message deduplication
|
1255
1206
|
# occurs at the message group or queue level. Valid values are
|
@@ -1272,21 +1223,23 @@ module Aws::SQS
|
|
1272
1223
|
# deduplication occurs as specified.
|
1273
1224
|
#
|
1274
1225
|
# For information on throughput quotas, see [Quotas related to
|
1275
|
-
# messages][
|
1226
|
+
# messages][13] in the *Amazon SQS Developer Guide*.
|
1276
1227
|
#
|
1277
1228
|
#
|
1278
1229
|
#
|
1279
1230
|
# [1]: http://en.wikipedia.org/wiki/Unix_time
|
1280
|
-
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-
|
1281
|
-
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-
|
1231
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
|
1232
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
|
1282
1233
|
# [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
|
1283
1234
|
# [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
|
1284
1235
|
# [6]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work
|
1285
|
-
# [7]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
1286
|
-
# [8]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
1287
|
-
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues
|
1288
|
-
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
1289
|
-
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
1236
|
+
# [7]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
1237
|
+
# [8]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
1238
|
+
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
|
1239
|
+
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html
|
1240
|
+
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html
|
1241
|
+
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
|
1242
|
+
# [13]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
|
1290
1243
|
#
|
1291
1244
|
# @return [Types::GetQueueAttributesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1292
1245
|
#
|
@@ -1296,7 +1249,7 @@ module Aws::SQS
|
|
1296
1249
|
#
|
1297
1250
|
# resp = client.get_queue_attributes({
|
1298
1251
|
# queue_url: "String", # required
|
1299
|
-
# 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
|
1252
|
+
# 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
|
1300
1253
|
# })
|
1301
1254
|
#
|
1302
1255
|
# @example Response structure
|
@@ -1334,7 +1287,8 @@ module Aws::SQS
|
|
1334
1287
|
# Queue URLs and names are case-sensitive.
|
1335
1288
|
#
|
1336
1289
|
# @option params [String] :queue_owner_aws_account_id
|
1337
|
-
# The account ID of the account that created the
|
1290
|
+
# The Amazon Web Services account ID of the account that created the
|
1291
|
+
# queue.
|
1338
1292
|
#
|
1339
1293
|
# @return [Types::GetQueueUrlResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1340
1294
|
#
|
@@ -1656,6 +1610,10 @@ module Aws::SQS
|
|
1656
1610
|
# * `SentTimestamp` – Returns the time the message was sent to the queue
|
1657
1611
|
# ([epoch time][1] in milliseconds).
|
1658
1612
|
#
|
1613
|
+
# * `SqsManagedSseEnabled` – Enables server-side queue encryption using
|
1614
|
+
# SQS owned encryption keys. Only one server-side encryption option is
|
1615
|
+
# supported per queue (e.g. [SSE-KMS][2] or [SSE-SQS][3]).
|
1616
|
+
#
|
1659
1617
|
# * `MessageDeduplicationId` – Returns the value provided by the
|
1660
1618
|
# producer that calls the ` SendMessage ` action.
|
1661
1619
|
#
|
@@ -1668,6 +1626,8 @@ module Aws::SQS
|
|
1668
1626
|
#
|
1669
1627
|
#
|
1670
1628
|
# [1]: http://en.wikipedia.org/wiki/Unix_time
|
1629
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
1630
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
1671
1631
|
#
|
1672
1632
|
# @option params [Array<String>] :message_attribute_names
|
1673
1633
|
# The name of the message attribute, where *N* is the index.
|
@@ -1792,7 +1752,7 @@ module Aws::SQS
|
|
1792
1752
|
#
|
1793
1753
|
# resp = client.receive_message({
|
1794
1754
|
# queue_url: "String", # required
|
1795
|
-
# 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
|
1755
|
+
# 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
|
1796
1756
|
# message_attribute_names: ["MessageAttributeName"],
|
1797
1757
|
# max_number_of_messages: 1,
|
1798
1758
|
# visibility_timeout: 1,
|
@@ -2256,16 +2216,11 @@ module Aws::SQS
|
|
2256
2216
|
# for which a ` ReceiveMessage ` action waits for a message to arrive.
|
2257
2217
|
# Valid values: An integer from 0 to 20 (seconds). Default: 0.
|
2258
2218
|
#
|
2259
|
-
# * `VisibilityTimeout` – The visibility timeout for the queue, in
|
2260
|
-
# seconds. Valid values: An integer from 0 to 43,200 (12 hours).
|
2261
|
-
# Default: 30. For more information about the visibility timeout, see
|
2262
|
-
# [Visibility Timeout][2] in the *Amazon SQS Developer Guide*.
|
2263
|
-
#
|
2264
|
-
# The following attributes apply only to [dead-letter queues:][3]
|
2265
|
-
#
|
2266
2219
|
# * `RedrivePolicy` – The string that includes the parameters for the
|
2267
2220
|
# dead-letter queue functionality of the source queue as a JSON
|
2268
|
-
# object.
|
2221
|
+
# object. For more information about the redrive policy and
|
2222
|
+
# dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
|
2223
|
+
# the *Amazon SQS Developer Guide*.
|
2269
2224
|
#
|
2270
2225
|
# * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
|
2271
2226
|
# dead-letter queue to which Amazon SQS moves messages after the
|
@@ -2276,38 +2231,16 @@ module Aws::SQS
|
|
2276
2231
|
# the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
|
2277
2232
|
# a queue, Amazon SQS moves the message to the dead-letter-queue.
|
2278
2233
|
#
|
2279
|
-
#
|
2280
|
-
#
|
2281
|
-
#
|
2282
|
-
# The parameters are as follows:
|
2283
|
-
#
|
2284
|
-
# * `redrivePermission` – The permission type that defines which
|
2285
|
-
# source queues can specify the current queue as the dead-letter
|
2286
|
-
# queue. Valid values are:
|
2287
|
-
#
|
2288
|
-
# * `allowAll` – (Default) Any source queues in this Amazon Web
|
2289
|
-
# Services account in the same Region can specify this queue as
|
2290
|
-
# the dead-letter queue.
|
2234
|
+
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
2235
|
+
# Similarly, the dead-letter queue of a standard queue must also be a
|
2236
|
+
# standard queue.
|
2291
2237
|
#
|
2292
|
-
#
|
2293
|
-
# dead-letter queue.
|
2294
|
-
#
|
2295
|
-
# * `byQueue` – Only queues specified by the `sourceQueueArns`
|
2296
|
-
# parameter can specify this queue as the dead-letter queue.
|
2297
|
-
#
|
2298
|
-
# * `sourceQueueArns` – The Amazon Resource Names (ARN)s of the source
|
2299
|
-
# queues that can specify this queue as the dead-letter queue and
|
2300
|
-
# redrive messages. You can specify this parameter only when the
|
2301
|
-
# `redrivePermission` parameter is set to `byQueue`. You can specify
|
2302
|
-
# up to 10 source queue ARNs. To allow more than 10 source queues to
|
2303
|
-
# specify dead-letter queues, set the `redrivePermission` parameter
|
2304
|
-
# to `allowAll`.
|
2305
|
-
#
|
2306
|
-
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
2307
|
-
# Similarly, the dead-letter queue of a standard queue must also be a
|
2308
|
-
# standard queue.
|
2238
|
+
# </note>
|
2309
2239
|
#
|
2310
|
-
#
|
2240
|
+
# * `VisibilityTimeout` – The visibility timeout for the queue, in
|
2241
|
+
# seconds. Valid values: An integer from 0 to 43,200 (12 hours).
|
2242
|
+
# Default: 30. For more information about the visibility timeout, see
|
2243
|
+
# [Visibility Timeout][3] in the *Amazon SQS Developer Guide*.
|
2311
2244
|
#
|
2312
2245
|
# The following attributes apply only to [server-side-encryption][4]\:
|
2313
2246
|
#
|
@@ -2327,11 +2260,15 @@ module Aws::SQS
|
|
2327
2260
|
# after Free Tier. For more information, see [How Does the Data Key
|
2328
2261
|
# Reuse Period Work?][8].
|
2329
2262
|
#
|
2263
|
+
# * `SqsManagedSseEnabled` – Enables server-side queue encryption using
|
2264
|
+
# SQS owned encryption keys. Only one server-side encryption option is
|
2265
|
+
# supported per queue (e.g. [SSE-KMS][9] or [SSE-SQS][10]).
|
2266
|
+
#
|
2330
2267
|
# The following attribute applies only to [FIFO (first-in-first-out)
|
2331
|
-
# queues][
|
2268
|
+
# queues][11]\:
|
2332
2269
|
#
|
2333
2270
|
# * `ContentBasedDeduplication` – Enables content-based deduplication.
|
2334
|
-
# For more information, see [Exactly-once processing][
|
2271
|
+
# For more information, see [Exactly-once processing][12] in the
|
2335
2272
|
# *Amazon SQS Developer Guide*. Note the following:
|
2336
2273
|
#
|
2337
2274
|
# * Every message must have a unique `MessageDeduplicationId`.
|
@@ -2363,7 +2300,7 @@ module Aws::SQS
|
|
2363
2300
|
# duplicates and only one copy of the message is delivered.
|
2364
2301
|
#
|
2365
2302
|
# The following attributes apply only to [high throughput for FIFO
|
2366
|
-
# queues][
|
2303
|
+
# queues][13]\:
|
2367
2304
|
#
|
2368
2305
|
# * `DeduplicationScope` – Specifies whether message deduplication
|
2369
2306
|
# occurs at the message group or queue level. Valid values are
|
@@ -2386,22 +2323,24 @@ module Aws::SQS
|
|
2386
2323
|
# deduplication occurs as specified.
|
2387
2324
|
#
|
2388
2325
|
# For information on throughput quotas, see [Quotas related to
|
2389
|
-
# messages][
|
2326
|
+
# messages][14] in the *Amazon SQS Developer Guide*.
|
2390
2327
|
#
|
2391
2328
|
#
|
2392
2329
|
#
|
2393
2330
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html
|
2394
|
-
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-
|
2395
|
-
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-
|
2331
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
|
2332
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
|
2396
2333
|
# [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
|
2397
2334
|
# [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
|
2398
2335
|
# [6]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
2399
2336
|
# [7]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys
|
2400
2337
|
# [8]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work
|
2401
|
-
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
2402
|
-
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
2403
|
-
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
2404
|
-
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
|
2338
|
+
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
2339
|
+
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
2340
|
+
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
|
2341
|
+
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html
|
2342
|
+
# [13]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
|
2343
|
+
# [14]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
|
2405
2344
|
#
|
2406
2345
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2407
2346
|
#
|
@@ -2532,7 +2471,7 @@ module Aws::SQS
|
|
2532
2471
|
params: params,
|
2533
2472
|
config: config)
|
2534
2473
|
context[:gem_name] = 'aws-sdk-sqs'
|
2535
|
-
context[:gem_version] = '1.
|
2474
|
+
context[:gem_version] = '1.47.0'
|
2536
2475
|
Seahorse::Client::Request.new(handlers, context)
|
2537
2476
|
end
|
2538
2477
|
|
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]
|