aws-sdk-sqs 1.46.0 → 1.50.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sqs/client.rb +112 -160
- 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: 0bf106a4d93ea50b92e7da8357571f97ab838289632f02a73baa48f26bcc0dbf
|
4
|
+
data.tar.gz: 7987e06d43aedd445157f87d11ed47976b576a83e6b68e5a6669681de04d1b13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9a5dfc6fb99b25097f472904a1949b4fbbc54b3c6e65a46e0bea6cd0318d06ad2a4da47d5b5a6f5eb0f3174c01bad805678830654877de4acb0280b6a061a2e
|
7
|
+
data.tar.gz: b02c5f2b46df82fc7e3f862c6e37eb3902606af3f936abe48e813bf8ad9dbd68127473ba5ed50002c3052be20a0d50616d19d77380c5229af54e178f52b9c1db
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.50.0 (2022-02-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.49.0 (2021-12-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.48.0 (2021-11-30)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.47.0 (2021-11-23)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Amazon SQS adds a new queue attribute, SqsManagedSseEnabled, which enables server-side queue encryption using SQS owned encryption keys.
|
23
|
+
|
4
24
|
1.46.0 (2021-11-04)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.50.0
|
data/lib/aws-sdk-sqs/client.rb
CHANGED
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
30
32
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
33
|
require 'aws-sdk-core/plugins/protocols/query.rb'
|
32
34
|
require 'aws-sdk-sqs/plugins/queue_urls.rb'
|
@@ -75,6 +77,8 @@ module Aws::SQS
|
|
75
77
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
76
78
|
add_plugin(Aws::Plugins::TransferEncoding)
|
77
79
|
add_plugin(Aws::Plugins::HttpChecksum)
|
80
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
81
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
78
82
|
add_plugin(Aws::Plugins::SignatureV4)
|
79
83
|
add_plugin(Aws::Plugins::Protocols::Query)
|
80
84
|
add_plugin(Aws::SQS::Plugins::QueueUrls)
|
@@ -123,7 +127,9 @@ module Aws::SQS
|
|
123
127
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
124
128
|
# are very aggressive. Construct and pass an instance of
|
125
129
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
126
|
-
# enable retries and extended timeouts.
|
130
|
+
# enable retries and extended timeouts. Instance profile credential
|
131
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
132
|
+
# to true.
|
127
133
|
#
|
128
134
|
# @option options [required, String] :region
|
129
135
|
# The AWS region to connect to. The configured `:region` is
|
@@ -177,6 +183,10 @@ module Aws::SQS
|
|
177
183
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
178
184
|
# a clock skew correction and retry requests with skewed client clocks.
|
179
185
|
#
|
186
|
+
# @option options [String] :defaults_mode ("legacy")
|
187
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
188
|
+
# accepted modes and the configuration defaults that are included.
|
189
|
+
#
|
180
190
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
181
191
|
# Set to true to disable SDK automatically adding host prefix
|
182
192
|
# to default service endpoint when available.
|
@@ -305,7 +315,7 @@ module Aws::SQS
|
|
305
315
|
# seconds to wait when opening a HTTP session before raising a
|
306
316
|
# `Timeout::Error`.
|
307
317
|
#
|
308
|
-
# @option options [
|
318
|
+
# @option options [Float] :http_read_timeout (60) The default
|
309
319
|
# number of seconds to wait for response data. This value can
|
310
320
|
# safely be set per-request on the session.
|
311
321
|
#
|
@@ -321,6 +331,9 @@ module Aws::SQS
|
|
321
331
|
# disables this behaviour. This value can safely be set per
|
322
332
|
# request on the session.
|
323
333
|
#
|
334
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
335
|
+
# in seconds.
|
336
|
+
#
|
324
337
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
325
338
|
# HTTP debug output will be sent to the `:logger`.
|
326
339
|
#
|
@@ -401,10 +414,10 @@ module Aws::SQS
|
|
401
414
|
# underscores (`_`).
|
402
415
|
#
|
403
416
|
# @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*.
|
417
|
+
# The Amazon Web Services account numbers of the [principals][1] who are
|
418
|
+
# to receive permission. For information about locating the Amazon Web
|
419
|
+
# Services account identification, see [Your Amazon Web Services
|
420
|
+
# Identifiers][2] in the *Amazon SQS Developer Guide*.
|
408
421
|
#
|
409
422
|
#
|
410
423
|
#
|
@@ -712,16 +725,11 @@ module Aws::SQS
|
|
712
725
|
# for which a ` ReceiveMessage ` action waits for a message to arrive.
|
713
726
|
# Valid values: An integer from 0 to 20 (seconds). Default: 0.
|
714
727
|
#
|
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
728
|
# * `RedrivePolicy` – The string that includes the parameters for the
|
723
729
|
# dead-letter queue functionality of the source queue as a JSON
|
724
|
-
# object.
|
730
|
+
# object. For more information about the redrive policy and
|
731
|
+
# dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
|
732
|
+
# the *Amazon SQS Developer Guide*.
|
725
733
|
#
|
726
734
|
# * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
|
727
735
|
# dead-letter queue to which Amazon SQS moves messages after the
|
@@ -732,38 +740,16 @@ module Aws::SQS
|
|
732
740
|
# the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
|
733
741
|
# a queue, Amazon SQS moves the message to the dead-letter-queue.
|
734
742
|
#
|
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.
|
743
|
+
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
744
|
+
# Similarly, the dead-letter queue of a standard queue must also be a
|
745
|
+
# standard queue.
|
747
746
|
#
|
748
|
-
#
|
749
|
-
# dead-letter queue.
|
750
|
-
#
|
751
|
-
# * `byQueue` – Only queues specified by the `sourceQueueArns`
|
752
|
-
# parameter can specify this queue as the dead-letter queue.
|
753
|
-
#
|
754
|
-
# * `sourceQueueArns` – The Amazon Resource Names (ARN)s of the source
|
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.
|
747
|
+
# </note>
|
765
748
|
#
|
766
|
-
#
|
749
|
+
# * `VisibilityTimeout` – The visibility timeout for the queue, in
|
750
|
+
# seconds. Valid values: An integer from 0 to 43,200 (12 hours).
|
751
|
+
# Default: 30. For more information about the visibility timeout, see
|
752
|
+
# [Visibility Timeout][3] in the *Amazon SQS Developer Guide*.
|
767
753
|
#
|
768
754
|
# The following attributes apply only to [server-side-encryption][4]\:
|
769
755
|
#
|
@@ -784,8 +770,12 @@ module Aws::SQS
|
|
784
770
|
# after Free Tier. For more information, see [How Does the Data Key
|
785
771
|
# Reuse Period Work?][8].
|
786
772
|
#
|
773
|
+
# * `SqsManagedSseEnabled` – Enables server-side queue encryption using
|
774
|
+
# SQS owned encryption keys. Only one server-side encryption option is
|
775
|
+
# supported per queue (e.g. [SSE-KMS][9] or [SSE-SQS][10]).
|
776
|
+
#
|
787
777
|
# The following attributes apply only to [FIFO (first-in-first-out)
|
788
|
-
# queues][
|
778
|
+
# queues][11]\:
|
789
779
|
#
|
790
780
|
# * `FifoQueue` – Designates a queue as FIFO. Valid values are `true`
|
791
781
|
# and `false`. If you don't specify the `FifoQueue` attribute, Amazon
|
@@ -794,12 +784,12 @@ module Aws::SQS
|
|
794
784
|
# When you set this attribute, you must also provide the
|
795
785
|
# `MessageGroupId` for your messages explicitly.
|
796
786
|
#
|
797
|
-
# For more information, see [FIFO queue logic][
|
787
|
+
# For more information, see [FIFO queue logic][12] in the *Amazon SQS
|
798
788
|
# Developer Guide*.
|
799
789
|
#
|
800
790
|
# * `ContentBasedDeduplication` – Enables content-based deduplication.
|
801
791
|
# Valid values are `true` and `false`. For more information, see
|
802
|
-
# [Exactly-once processing][
|
792
|
+
# [Exactly-once processing][13] in the *Amazon SQS Developer Guide*.
|
803
793
|
# Note the following:
|
804
794
|
#
|
805
795
|
# * Every message must have a unique `MessageDeduplicationId`.
|
@@ -831,7 +821,7 @@ module Aws::SQS
|
|
831
821
|
# duplicates and only one copy of the message is delivered.
|
832
822
|
#
|
833
823
|
# The following attributes apply only to [high throughput for FIFO
|
834
|
-
# queues][
|
824
|
+
# queues][14]\:
|
835
825
|
#
|
836
826
|
# * `DeduplicationScope` – Specifies whether message deduplication
|
837
827
|
# occurs at the message group or queue level. Valid values are
|
@@ -854,23 +844,25 @@ module Aws::SQS
|
|
854
844
|
# deduplication occurs as specified.
|
855
845
|
#
|
856
846
|
# For information on throughput quotas, see [Quotas related to
|
857
|
-
# messages][
|
847
|
+
# messages][15] in the *Amazon SQS Developer Guide*.
|
858
848
|
#
|
859
849
|
#
|
860
850
|
#
|
861
851
|
# [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-
|
852
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
|
853
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
|
864
854
|
# [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
|
865
855
|
# [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
|
866
856
|
# [6]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
867
857
|
# [7]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys
|
868
858
|
# [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/
|
859
|
+
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
860
|
+
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
861
|
+
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
|
862
|
+
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html
|
863
|
+
# [13]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html
|
864
|
+
# [14]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
|
865
|
+
# [15]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
|
874
866
|
#
|
875
867
|
# @option params [Hash<String,String>] :tags
|
876
868
|
# Add cost allocation tags to the specified Amazon SQS queue. For an
|
@@ -1169,15 +1161,11 @@ module Aws::SQS
|
|
1169
1161
|
# seconds, for which the `ReceiveMessage` action waits for a message
|
1170
1162
|
# to arrive.
|
1171
1163
|
#
|
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
1164
|
# * `RedrivePolicy` – The string that includes the parameters for the
|
1179
1165
|
# dead-letter queue functionality of the source queue as a JSON
|
1180
|
-
# object.
|
1166
|
+
# object. For more information about the redrive policy and
|
1167
|
+
# dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
|
1168
|
+
# the *Amazon SQS Developer Guide*.
|
1181
1169
|
#
|
1182
1170
|
# * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
|
1183
1171
|
# dead-letter queue to which Amazon SQS moves messages after the
|
@@ -1188,38 +1176,9 @@ module Aws::SQS
|
|
1188
1176
|
# the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
|
1189
1177
|
# a queue, Amazon SQS moves the message to the dead-letter-queue.
|
1190
1178
|
#
|
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>
|
1179
|
+
# * `VisibilityTimeout` – Returns the visibility timeout for the queue.
|
1180
|
+
# For more information about the visibility timeout, see [Visibility
|
1181
|
+
# Timeout][3] in the *Amazon SQS Developer Guide*.
|
1223
1182
|
#
|
1224
1183
|
# The following attributes apply only to [server-side-encryption][4]\:
|
1225
1184
|
#
|
@@ -1232,24 +1191,29 @@ module Aws::SQS
|
|
1232
1191
|
# decrypt messages before calling KMS again. For more information, see
|
1233
1192
|
# [How Does the Data Key Reuse Period Work?][6].
|
1234
1193
|
#
|
1194
|
+
# * `SqsManagedSseEnabled` – Returns information about whether the queue
|
1195
|
+
# is using SSE-SQS encryption using SQS owned encryption keys. Only
|
1196
|
+
# one server-side encryption option is supported per queue (e.g.
|
1197
|
+
# [SSE-KMS][7] or [SSE-SQS][8]).
|
1198
|
+
#
|
1235
1199
|
# The following attributes apply only to [FIFO (first-in-first-out)
|
1236
|
-
# queues][
|
1200
|
+
# queues][9]\:
|
1237
1201
|
#
|
1238
1202
|
# * `FifoQueue` – Returns information about whether the queue is FIFO.
|
1239
|
-
# For more information, see [FIFO queue logic][
|
1203
|
+
# For more information, see [FIFO queue logic][10] in the *Amazon SQS
|
1240
1204
|
# Developer Guide*.
|
1241
1205
|
#
|
1242
|
-
# <note markdown="1"> To determine whether a queue is [FIFO][
|
1206
|
+
# <note markdown="1"> To determine whether a queue is [FIFO][9], you can check whether
|
1243
1207
|
# `QueueName` ends with the `.fifo` suffix.
|
1244
1208
|
#
|
1245
1209
|
# </note>
|
1246
1210
|
#
|
1247
1211
|
# * `ContentBasedDeduplication` – Returns whether content-based
|
1248
1212
|
# deduplication is enabled for the queue. For more information, see
|
1249
|
-
# [Exactly-once processing][
|
1213
|
+
# [Exactly-once processing][11] in the *Amazon SQS Developer Guide*.
|
1250
1214
|
#
|
1251
1215
|
# The following attributes apply only to [high throughput for FIFO
|
1252
|
-
# queues][
|
1216
|
+
# queues][12]\:
|
1253
1217
|
#
|
1254
1218
|
# * `DeduplicationScope` – Specifies whether message deduplication
|
1255
1219
|
# occurs at the message group or queue level. Valid values are
|
@@ -1272,21 +1236,23 @@ module Aws::SQS
|
|
1272
1236
|
# deduplication occurs as specified.
|
1273
1237
|
#
|
1274
1238
|
# For information on throughput quotas, see [Quotas related to
|
1275
|
-
# messages][
|
1239
|
+
# messages][13] in the *Amazon SQS Developer Guide*.
|
1276
1240
|
#
|
1277
1241
|
#
|
1278
1242
|
#
|
1279
1243
|
# [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-
|
1244
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
|
1245
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
|
1282
1246
|
# [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
|
1283
1247
|
# [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
|
1284
1248
|
# [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/
|
1249
|
+
# [7]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
1250
|
+
# [8]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
1251
|
+
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
|
1252
|
+
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html
|
1253
|
+
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html
|
1254
|
+
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
|
1255
|
+
# [13]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
|
1290
1256
|
#
|
1291
1257
|
# @return [Types::GetQueueAttributesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1292
1258
|
#
|
@@ -1296,7 +1262,7 @@ module Aws::SQS
|
|
1296
1262
|
#
|
1297
1263
|
# resp = client.get_queue_attributes({
|
1298
1264
|
# 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
|
1265
|
+
# 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
1266
|
# })
|
1301
1267
|
#
|
1302
1268
|
# @example Response structure
|
@@ -1334,7 +1300,8 @@ module Aws::SQS
|
|
1334
1300
|
# Queue URLs and names are case-sensitive.
|
1335
1301
|
#
|
1336
1302
|
# @option params [String] :queue_owner_aws_account_id
|
1337
|
-
# The account ID of the account that created the
|
1303
|
+
# The Amazon Web Services account ID of the account that created the
|
1304
|
+
# queue.
|
1338
1305
|
#
|
1339
1306
|
# @return [Types::GetQueueUrlResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1340
1307
|
#
|
@@ -1656,6 +1623,10 @@ module Aws::SQS
|
|
1656
1623
|
# * `SentTimestamp` – Returns the time the message was sent to the queue
|
1657
1624
|
# ([epoch time][1] in milliseconds).
|
1658
1625
|
#
|
1626
|
+
# * `SqsManagedSseEnabled` – Enables server-side queue encryption using
|
1627
|
+
# SQS owned encryption keys. Only one server-side encryption option is
|
1628
|
+
# supported per queue (e.g. [SSE-KMS][2] or [SSE-SQS][3]).
|
1629
|
+
#
|
1659
1630
|
# * `MessageDeduplicationId` – Returns the value provided by the
|
1660
1631
|
# producer that calls the ` SendMessage ` action.
|
1661
1632
|
#
|
@@ -1668,6 +1639,8 @@ module Aws::SQS
|
|
1668
1639
|
#
|
1669
1640
|
#
|
1670
1641
|
# [1]: http://en.wikipedia.org/wiki/Unix_time
|
1642
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
1643
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
1671
1644
|
#
|
1672
1645
|
# @option params [Array<String>] :message_attribute_names
|
1673
1646
|
# The name of the message attribute, where *N* is the index.
|
@@ -1792,7 +1765,7 @@ module Aws::SQS
|
|
1792
1765
|
#
|
1793
1766
|
# resp = client.receive_message({
|
1794
1767
|
# 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
|
1768
|
+
# 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
1769
|
# message_attribute_names: ["MessageAttributeName"],
|
1797
1770
|
# max_number_of_messages: 1,
|
1798
1771
|
# visibility_timeout: 1,
|
@@ -2256,16 +2229,11 @@ module Aws::SQS
|
|
2256
2229
|
# for which a ` ReceiveMessage ` action waits for a message to arrive.
|
2257
2230
|
# Valid values: An integer from 0 to 20 (seconds). Default: 0.
|
2258
2231
|
#
|
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
2232
|
# * `RedrivePolicy` – The string that includes the parameters for the
|
2267
2233
|
# dead-letter queue functionality of the source queue as a JSON
|
2268
|
-
# object.
|
2234
|
+
# object. For more information about the redrive policy and
|
2235
|
+
# dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
|
2236
|
+
# the *Amazon SQS Developer Guide*.
|
2269
2237
|
#
|
2270
2238
|
# * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
|
2271
2239
|
# dead-letter queue to which Amazon SQS moves messages after the
|
@@ -2276,38 +2244,16 @@ module Aws::SQS
|
|
2276
2244
|
# the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
|
2277
2245
|
# a queue, Amazon SQS moves the message to the dead-letter-queue.
|
2278
2246
|
#
|
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:
|
2247
|
+
# <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
|
2248
|
+
# Similarly, the dead-letter queue of a standard queue must also be a
|
2249
|
+
# standard queue.
|
2287
2250
|
#
|
2288
|
-
#
|
2289
|
-
# Services account in the same Region can specify this queue as
|
2290
|
-
# the dead-letter queue.
|
2291
|
-
#
|
2292
|
-
# * `denyAll` – No source queues can specify this queue as the
|
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.
|
2251
|
+
# </note>
|
2309
2252
|
#
|
2310
|
-
#
|
2253
|
+
# * `VisibilityTimeout` – The visibility timeout for the queue, in
|
2254
|
+
# seconds. Valid values: An integer from 0 to 43,200 (12 hours).
|
2255
|
+
# Default: 30. For more information about the visibility timeout, see
|
2256
|
+
# [Visibility Timeout][3] in the *Amazon SQS Developer Guide*.
|
2311
2257
|
#
|
2312
2258
|
# The following attributes apply only to [server-side-encryption][4]\:
|
2313
2259
|
#
|
@@ -2327,11 +2273,15 @@ module Aws::SQS
|
|
2327
2273
|
# after Free Tier. For more information, see [How Does the Data Key
|
2328
2274
|
# Reuse Period Work?][8].
|
2329
2275
|
#
|
2276
|
+
# * `SqsManagedSseEnabled` – Enables server-side queue encryption using
|
2277
|
+
# SQS owned encryption keys. Only one server-side encryption option is
|
2278
|
+
# supported per queue (e.g. [SSE-KMS][9] or [SSE-SQS][10]).
|
2279
|
+
#
|
2330
2280
|
# The following attribute applies only to [FIFO (first-in-first-out)
|
2331
|
-
# queues][
|
2281
|
+
# queues][11]\:
|
2332
2282
|
#
|
2333
2283
|
# * `ContentBasedDeduplication` – Enables content-based deduplication.
|
2334
|
-
# For more information, see [Exactly-once processing][
|
2284
|
+
# For more information, see [Exactly-once processing][12] in the
|
2335
2285
|
# *Amazon SQS Developer Guide*. Note the following:
|
2336
2286
|
#
|
2337
2287
|
# * Every message must have a unique `MessageDeduplicationId`.
|
@@ -2363,7 +2313,7 @@ module Aws::SQS
|
|
2363
2313
|
# duplicates and only one copy of the message is delivered.
|
2364
2314
|
#
|
2365
2315
|
# The following attributes apply only to [high throughput for FIFO
|
2366
|
-
# queues][
|
2316
|
+
# queues][13]\:
|
2367
2317
|
#
|
2368
2318
|
# * `DeduplicationScope` – Specifies whether message deduplication
|
2369
2319
|
# occurs at the message group or queue level. Valid values are
|
@@ -2386,22 +2336,24 @@ module Aws::SQS
|
|
2386
2336
|
# deduplication occurs as specified.
|
2387
2337
|
#
|
2388
2338
|
# For information on throughput quotas, see [Quotas related to
|
2389
|
-
# messages][
|
2339
|
+
# messages][14] in the *Amazon SQS Developer Guide*.
|
2390
2340
|
#
|
2391
2341
|
#
|
2392
2342
|
#
|
2393
2343
|
# [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-
|
2344
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
|
2345
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
|
2396
2346
|
# [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
|
2397
2347
|
# [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
|
2398
2348
|
# [6]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
2399
2349
|
# [7]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys
|
2400
2350
|
# [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/
|
2351
|
+
# [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
2352
|
+
# [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
2353
|
+
# [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
|
2354
|
+
# [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html
|
2355
|
+
# [13]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
|
2356
|
+
# [14]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
|
2405
2357
|
#
|
2406
2358
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2407
2359
|
#
|
@@ -2532,7 +2484,7 @@ module Aws::SQS
|
|
2532
2484
|
params: params,
|
2533
2485
|
config: config)
|
2534
2486
|
context[:gem_name] = 'aws-sdk-sqs'
|
2535
|
-
context[:gem_version] = '1.
|
2487
|
+
context[:gem_version] = '1.50.0'
|
2536
2488
|
Seahorse::Client::Request.new(handlers, context)
|
2537
2489
|
end
|
2538
2490
|
|
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]
|