aws-sdk-sqs 1.70.0 → 1.83.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 +65 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sqs/client.rb +194 -86
- data/lib/aws-sdk-sqs/client_api.rb +7 -1
- data/lib/aws-sdk-sqs/endpoints.rb +23 -92
- data/lib/aws-sdk-sqs/message.rb +3 -3
- data/lib/aws-sdk-sqs/plugins/endpoints.rb +10 -1
- data/lib/aws-sdk-sqs/plugins/md5s.rb +84 -35
- data/lib/aws-sdk-sqs/queue.rb +71 -23
- data/lib/aws-sdk-sqs/resource.rb +3 -3
- data/lib/aws-sdk-sqs/types.rb +66 -13
- data/lib/aws-sdk-sqs.rb +1 -1
- data/sig/client.rbs +3 -0
- data/sig/message.rbs +1 -1
- data/sig/queue.rbs +1 -0
- data/sig/resource.rbs +2 -0
- data/sig/types.rbs +2 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf1123cfc76c0d0c1a969f67812835bc4e88b835624b49c8446324ced1107745
|
4
|
+
data.tar.gz: 7dc14c64aa78671c0648b19af651edfeb27a77cdd62fb0fbd9d8fa2f0e103455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07d9366903932b402b5b166b1da87261dd6390cc758037f0c712ebf88ec2d1ee5f83bdd834f79ce220fc5819174ade3cfa42266311f849fe8a59738eec23060f
|
7
|
+
data.tar.gz: dfd03741f08cc8c8f37b807df635e7174a1dd25dfa33532413a7c93da87a76518022495d891fc11373cee3542a8281cc23eeee9164fd3932f5682c3392fdc29d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,71 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.83.0 (2024-09-11)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.82.0 (2024-09-10)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.81.0 (2024-09-03)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.80.0 (2024-07-02)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
24
|
+
1.79.0 (2024-06-28)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
28
|
+
|
29
|
+
1.78.0 (2024-06-25)
|
30
|
+
------------------
|
31
|
+
|
32
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
33
|
+
|
34
|
+
1.77.0 (2024-06-24)
|
35
|
+
------------------
|
36
|
+
|
37
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
38
|
+
|
39
|
+
1.76.0 (2024-06-06)
|
40
|
+
------------------
|
41
|
+
|
42
|
+
* Feature - Doc only updates for SQS. These updates include customer-reported issues and TCX3 modifications.
|
43
|
+
|
44
|
+
1.75.0 (2024-06-05)
|
45
|
+
------------------
|
46
|
+
|
47
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
48
|
+
|
49
|
+
1.74.0 (2024-05-13)
|
50
|
+
------------------
|
51
|
+
|
52
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
53
|
+
|
54
|
+
1.73.0 (2024-05-08)
|
55
|
+
------------------
|
56
|
+
|
57
|
+
* Feature - This release adds MessageSystemAttributeNames to ReceiveMessageRequest to replace AttributeNames.
|
58
|
+
|
59
|
+
1.72.0 (2024-04-30)
|
60
|
+
------------------
|
61
|
+
|
62
|
+
* Feature - Handle System Message Attributes MD5 verification.
|
63
|
+
|
64
|
+
1.71.0 (2024-04-25)
|
65
|
+
------------------
|
66
|
+
|
67
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
68
|
+
|
4
69
|
1.70.0 (2024-01-26)
|
5
70
|
------------------
|
6
71
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.83.0
|
data/lib/aws-sdk-sqs/client.rb
CHANGED
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
|
|
22
22
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
23
23
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
24
24
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
25
|
+
require 'aws-sdk-core/plugins/invocation_id.rb'
|
25
26
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
26
27
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
27
28
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
@@ -31,6 +32,7 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
|
31
32
|
require 'aws-sdk-core/plugins/request_compression.rb'
|
32
33
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
33
34
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
35
|
+
require 'aws-sdk-core/plugins/telemetry.rb'
|
34
36
|
require 'aws-sdk-core/plugins/sign.rb'
|
35
37
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
36
38
|
require 'aws-sdk-sqs/plugins/queue_urls.rb'
|
@@ -74,6 +76,7 @@ module Aws::SQS
|
|
74
76
|
add_plugin(Aws::Plugins::ResponsePaging)
|
75
77
|
add_plugin(Aws::Plugins::StubResponses)
|
76
78
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
79
|
+
add_plugin(Aws::Plugins::InvocationId)
|
77
80
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
78
81
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
79
82
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
@@ -83,6 +86,7 @@ module Aws::SQS
|
|
83
86
|
add_plugin(Aws::Plugins::RequestCompression)
|
84
87
|
add_plugin(Aws::Plugins::DefaultsMode)
|
85
88
|
add_plugin(Aws::Plugins::RecursionDetection)
|
89
|
+
add_plugin(Aws::Plugins::Telemetry)
|
86
90
|
add_plugin(Aws::Plugins::Sign)
|
87
91
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
88
92
|
add_plugin(Aws::SQS::Plugins::QueueUrls)
|
@@ -91,6 +95,11 @@ module Aws::SQS
|
|
91
95
|
|
92
96
|
# @overload initialize(options)
|
93
97
|
# @param [Hash] options
|
98
|
+
#
|
99
|
+
# @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
|
100
|
+
# A list of plugins to apply to the client. Each plugin is either a
|
101
|
+
# class name or an instance of a plugin class.
|
102
|
+
#
|
94
103
|
# @option options [required, Aws::CredentialProvider] :credentials
|
95
104
|
# Your AWS credentials. This can be an instance of any one of the
|
96
105
|
# following classes:
|
@@ -200,10 +209,16 @@ module Aws::SQS
|
|
200
209
|
# When set to 'true' the request body will not be compressed
|
201
210
|
# for supported operations.
|
202
211
|
#
|
203
|
-
# @option options [String] :endpoint
|
204
|
-
#
|
205
|
-
#
|
206
|
-
#
|
212
|
+
# @option options [String, URI::HTTPS, URI::HTTP] :endpoint
|
213
|
+
# Normally you should not configure the `:endpoint` option
|
214
|
+
# directly. This is normally constructed from the `:region`
|
215
|
+
# option. Configuring `:endpoint` is normally reserved for
|
216
|
+
# connecting to test or custom endpoints. The endpoint should
|
217
|
+
# be a URI formatted like:
|
218
|
+
#
|
219
|
+
# 'http://example.com'
|
220
|
+
# 'https://example.com'
|
221
|
+
# 'http://example.com:123'
|
207
222
|
#
|
208
223
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
209
224
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -293,25 +308,31 @@ module Aws::SQS
|
|
293
308
|
# throttling. This is a provisional mode that may change behavior
|
294
309
|
# in the future.
|
295
310
|
#
|
296
|
-
#
|
297
311
|
# @option options [String] :sdk_ua_app_id
|
298
312
|
# A unique and opaque application ID that is appended to the
|
299
|
-
# User-Agent header as app
|
300
|
-
# maximum length of 50.
|
313
|
+
# User-Agent header as app/sdk_ua_app_id. It should have a
|
314
|
+
# maximum length of 50. This variable is sourced from environment
|
315
|
+
# variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
|
301
316
|
#
|
302
317
|
# @option options [String] :secret_access_key
|
303
318
|
#
|
304
319
|
# @option options [String] :session_token
|
305
320
|
#
|
321
|
+
# @option options [Array] :sigv4a_signing_region_set
|
322
|
+
# A list of regions that should be signed with SigV4a signing. When
|
323
|
+
# not passed, a default `:sigv4a_signing_region_set` is searched for
|
324
|
+
# in the following locations:
|
325
|
+
#
|
326
|
+
# * `Aws.config[:sigv4a_signing_region_set]`
|
327
|
+
# * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
|
328
|
+
# * `~/.aws/config`
|
329
|
+
#
|
306
330
|
# @option options [Boolean] :simple_json (false)
|
307
331
|
# Disables request parameter conversion, validation, and formatting.
|
308
|
-
# Also
|
309
|
-
#
|
310
|
-
#
|
311
|
-
# structures.
|
312
|
-
#
|
313
|
-
# When `:simple_json` is enabled, the request parameters hash must
|
314
|
-
# be formatted exactly as the DynamoDB API expects.
|
332
|
+
# Also disables response data type conversions. The request parameters
|
333
|
+
# hash must be formatted exactly as the API expects.This option is useful
|
334
|
+
# when you want to ensure the highest level of performance by avoiding
|
335
|
+
# overhead of walking request parameters and response data structures.
|
315
336
|
#
|
316
337
|
# @option options [Boolean] :stub_responses (false)
|
317
338
|
# Causes the client to return stubbed responses. By default
|
@@ -322,6 +343,16 @@ module Aws::SQS
|
|
322
343
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
323
344
|
# requests are made, and retries are disabled.
|
324
345
|
#
|
346
|
+
# @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
|
347
|
+
# Allows you to provide a telemetry provider, which is used to
|
348
|
+
# emit telemetry data. By default, uses `NoOpTelemetryProvider` which
|
349
|
+
# will not record or emit any telemetry data. The SDK supports the
|
350
|
+
# following telemetry providers:
|
351
|
+
#
|
352
|
+
# * OpenTelemetry (OTel) - To use the OTel provider, install and require the
|
353
|
+
# `opentelemetry-sdk` gem and then, pass in an instance of a
|
354
|
+
# `Aws::Telemetry::OTelProvider` for telemetry provider.
|
355
|
+
#
|
325
356
|
# @option options [Aws::TokenProvider] :token_provider
|
326
357
|
# A Bearer Token Provider. This can be an instance of any one of the
|
327
358
|
# following classes:
|
@@ -357,50 +388,71 @@ module Aws::SQS
|
|
357
388
|
# @option options [Aws::SQS::EndpointProvider] :endpoint_provider
|
358
389
|
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::SQS::EndpointParameters`
|
359
390
|
#
|
360
|
-
# @option options [
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
368
|
-
#
|
369
|
-
#
|
370
|
-
#
|
371
|
-
# @option options [Float] :
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
375
|
-
#
|
376
|
-
#
|
377
|
-
#
|
378
|
-
#
|
379
|
-
#
|
380
|
-
#
|
381
|
-
#
|
391
|
+
# @option options [Float] :http_continue_timeout (1)
|
392
|
+
# The number of seconds to wait for a 100-continue response before sending the
|
393
|
+
# request body. This option has no effect unless the request has "Expect"
|
394
|
+
# header set to "100-continue". Defaults to `nil` which disables this
|
395
|
+
# behaviour. This value can safely be set per request on the session.
|
396
|
+
#
|
397
|
+
# @option options [Float] :http_idle_timeout (5)
|
398
|
+
# The number of seconds a connection is allowed to sit idle before it
|
399
|
+
# is considered stale. Stale connections are closed and removed from the
|
400
|
+
# pool before making a request.
|
401
|
+
#
|
402
|
+
# @option options [Float] :http_open_timeout (15)
|
403
|
+
# The default number of seconds to wait for response data.
|
404
|
+
# This value can safely be set per-request on the session.
|
405
|
+
#
|
406
|
+
# @option options [URI::HTTP,String] :http_proxy
|
407
|
+
# A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
408
|
+
#
|
409
|
+
# @option options [Float] :http_read_timeout (60)
|
410
|
+
# The default number of seconds to wait for response data.
|
411
|
+
# This value can safely be set per-request on the session.
|
412
|
+
#
|
413
|
+
# @option options [Boolean] :http_wire_trace (false)
|
414
|
+
# When `true`, HTTP debug output will be sent to the `:logger`.
|
415
|
+
#
|
416
|
+
# @option options [Proc] :on_chunk_received
|
417
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
418
|
+
# of the response body is received. It provides three arguments: the chunk,
|
419
|
+
# the number of bytes received, and the total number of
|
420
|
+
# bytes in the response (or nil if the server did not send a `content-length`).
|
421
|
+
#
|
422
|
+
# @option options [Proc] :on_chunk_sent
|
423
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
424
|
+
# of the request body is sent. It provides three arguments: the chunk,
|
425
|
+
# the number of bytes read from the body, and the total number of
|
426
|
+
# bytes in the body.
|
427
|
+
#
|
428
|
+
# @option options [Boolean] :raise_response_errors (true)
|
429
|
+
# When `true`, response errors are raised.
|
430
|
+
#
|
431
|
+
# @option options [String] :ssl_ca_bundle
|
432
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
433
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
434
|
+
# `:ssl_ca_directory` the the system default will be used if available.
|
435
|
+
#
|
436
|
+
# @option options [String] :ssl_ca_directory
|
437
|
+
# Full path of the directory that contains the unbundled SSL certificate
|
438
|
+
# authority files for verifying peer certificates. If you do
|
439
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
440
|
+
# default will be used if available.
|
382
441
|
#
|
383
|
-
# @option options [
|
384
|
-
#
|
442
|
+
# @option options [String] :ssl_ca_store
|
443
|
+
# Sets the X509::Store to verify peer certificate.
|
385
444
|
#
|
386
|
-
# @option options [
|
387
|
-
#
|
445
|
+
# @option options [OpenSSL::X509::Certificate] :ssl_cert
|
446
|
+
# Sets a client certificate when creating http connections.
|
388
447
|
#
|
389
|
-
# @option options [
|
390
|
-
#
|
391
|
-
# connection.
|
448
|
+
# @option options [OpenSSL::PKey] :ssl_key
|
449
|
+
# Sets a client key when creating http connections.
|
392
450
|
#
|
393
|
-
# @option options [
|
394
|
-
#
|
395
|
-
# verifying peer certificates. If you do not pass
|
396
|
-
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
397
|
-
# will be used if available.
|
451
|
+
# @option options [Float] :ssl_timeout
|
452
|
+
# Sets the SSL timeout in seconds
|
398
453
|
#
|
399
|
-
# @option options [
|
400
|
-
#
|
401
|
-
# authority files for verifying peer certificates. If you do
|
402
|
-
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
403
|
-
# system default will be used if available.
|
454
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
455
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
404
456
|
#
|
405
457
|
def initialize(*args)
|
406
458
|
super
|
@@ -518,8 +570,6 @@ module Aws::SQS
|
|
518
570
|
# can be the original source queue (from which the messages were
|
519
571
|
# driven to the dead-letter-queue), or a custom destination queue.
|
520
572
|
#
|
521
|
-
# * Currently, only standard queues are supported.
|
522
|
-
#
|
523
573
|
# * Only one active message movement task is supported per queue at any
|
524
574
|
# given time.
|
525
575
|
#
|
@@ -1546,8 +1596,6 @@ module Aws::SQS
|
|
1546
1596
|
# can be the original source queue (from which the messages were
|
1547
1597
|
# driven to the dead-letter-queue), or a custom destination queue.
|
1548
1598
|
#
|
1549
|
-
# * Currently, only standard queues are supported.
|
1550
|
-
#
|
1551
1599
|
# * Only one active message movement task is supported per queue at any
|
1552
1600
|
# given time.
|
1553
1601
|
#
|
@@ -1809,6 +1857,54 @@ module Aws::SQS
|
|
1809
1857
|
# Queue URLs and names are case-sensitive.
|
1810
1858
|
#
|
1811
1859
|
# @option params [Array<String>] :attribute_names
|
1860
|
+
# This parameter has been deprecated but will be supported for backward
|
1861
|
+
# compatibility. To provide attribute names, you are encouraged to use
|
1862
|
+
# `MessageSystemAttributeNames`.
|
1863
|
+
#
|
1864
|
+
# A list of attributes that need to be returned along with each message.
|
1865
|
+
# These attributes include:
|
1866
|
+
#
|
1867
|
+
# * `All` – Returns all values.
|
1868
|
+
#
|
1869
|
+
# * `ApproximateFirstReceiveTimestamp` – Returns the time the message
|
1870
|
+
# was first received from the queue ([epoch time][1] in milliseconds).
|
1871
|
+
#
|
1872
|
+
# * `ApproximateReceiveCount` – Returns the number of times a message
|
1873
|
+
# has been received across all queues but not deleted.
|
1874
|
+
#
|
1875
|
+
# * `AWSTraceHeader` – Returns the X-Ray trace header string.
|
1876
|
+
#
|
1877
|
+
# * `SenderId`
|
1878
|
+
#
|
1879
|
+
# * For a user, returns the user ID, for example
|
1880
|
+
# `ABCDEFGHI1JKLMNOPQ23R`.
|
1881
|
+
#
|
1882
|
+
# * For an IAM role, returns the IAM role ID, for example
|
1883
|
+
# `ABCDE1F2GH3I4JK5LMNOP:i-a123b456`.
|
1884
|
+
#
|
1885
|
+
# * `SentTimestamp` – Returns the time the message was sent to the queue
|
1886
|
+
# ([epoch time][1] in milliseconds).
|
1887
|
+
#
|
1888
|
+
# * `SqsManagedSseEnabled` – Enables server-side queue encryption using
|
1889
|
+
# SQS owned encryption keys. Only one server-side encryption option is
|
1890
|
+
# supported per queue (for example, [SSE-KMS][2] or [SSE-SQS][3]).
|
1891
|
+
#
|
1892
|
+
# * `MessageDeduplicationId` – Returns the value provided by the
|
1893
|
+
# producer that calls the ` SendMessage ` action.
|
1894
|
+
#
|
1895
|
+
# * `MessageGroupId` – Returns the value provided by the producer that
|
1896
|
+
# calls the ` SendMessage ` action. Messages with the same
|
1897
|
+
# `MessageGroupId` are returned in sequence.
|
1898
|
+
#
|
1899
|
+
# * `SequenceNumber` – Returns the value provided by Amazon SQS.
|
1900
|
+
#
|
1901
|
+
#
|
1902
|
+
#
|
1903
|
+
# [1]: http://en.wikipedia.org/wiki/Unix_time
|
1904
|
+
# [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
|
1905
|
+
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
|
1906
|
+
#
|
1907
|
+
# @option params [Array<String>] :message_system_attribute_names
|
1812
1908
|
# A list of attributes that need to be returned along with each message.
|
1813
1909
|
# These attributes include:
|
1814
1910
|
#
|
@@ -1888,8 +1984,8 @@ module Aws::SQS
|
|
1888
1984
|
# The duration (in seconds) for which the call waits for a message to
|
1889
1985
|
# arrive in the queue before returning. If a message is available, the
|
1890
1986
|
# call returns sooner than `WaitTimeSeconds`. If no messages are
|
1891
|
-
# available and the wait time expires, the call
|
1892
|
-
#
|
1987
|
+
# available and the wait time expires, the call does not return a
|
1988
|
+
# message list.
|
1893
1989
|
#
|
1894
1990
|
# To avoid HTTP errors, ensure that the HTTP response timeout for
|
1895
1991
|
# `ReceiveMessage` requests is longer than the `WaitTimeSeconds`
|
@@ -1918,10 +2014,6 @@ module Aws::SQS
|
|
1918
2014
|
# * When you set `FifoQueue`, a caller of the `ReceiveMessage` action
|
1919
2015
|
# can provide a `ReceiveRequestAttemptId` explicitly.
|
1920
2016
|
#
|
1921
|
-
# * If a caller of the `ReceiveMessage` action doesn't provide a
|
1922
|
-
# `ReceiveRequestAttemptId`, Amazon SQS generates a
|
1923
|
-
# `ReceiveRequestAttemptId`.
|
1924
|
-
#
|
1925
2017
|
# * It is possible to retry the `ReceiveMessage` action with the same
|
1926
2018
|
# `ReceiveRequestAttemptId` if none of the messages have been modified
|
1927
2019
|
# (deleted or had their visibility changes).
|
@@ -1976,6 +2068,7 @@ module Aws::SQS
|
|
1976
2068
|
# resp = client.receive_message({
|
1977
2069
|
# queue_url: "String", # required
|
1978
2070
|
# 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
|
2071
|
+
# message_system_attribute_names: ["All"], # accepts All, SenderId, SentTimestamp, ApproximateReceiveCount, ApproximateFirstReceiveTimestamp, SequenceNumber, MessageDeduplicationId, MessageGroupId, AWSTraceHeader, DeadLetterQueueSourceArn
|
1979
2072
|
# message_attribute_names: ["MessageAttributeName"],
|
1980
2073
|
# max_number_of_messages: 1,
|
1981
2074
|
# visibility_timeout: 1,
|
@@ -2060,13 +2153,17 @@ module Aws::SQS
|
|
2060
2153
|
# Delivers a message to the specified queue.
|
2061
2154
|
#
|
2062
2155
|
# A message can include only XML, JSON, and unformatted text. The
|
2063
|
-
# following Unicode characters are allowed
|
2156
|
+
# following Unicode characters are allowed. For more information, see
|
2157
|
+
# the [W3C specification for characters][1].
|
2064
2158
|
#
|
2065
2159
|
# `#x9` \| `#xA` \| `#xD` \| `#x20` to `#xD7FF` \| `#xE000` to `#xFFFD`
|
2066
2160
|
# \| `#x10000` to `#x10FFFF`
|
2067
2161
|
#
|
2068
|
-
#
|
2069
|
-
#
|
2162
|
+
# Amazon SQS does not throw an exception or completely reject the
|
2163
|
+
# message if it contains invalid characters. Instead, it replaces those
|
2164
|
+
# invalid characters with `U+FFFD` before storing the message in the
|
2165
|
+
# queue, as long as the message body contains at least one valid
|
2166
|
+
# character.
|
2070
2167
|
#
|
2071
2168
|
#
|
2072
2169
|
#
|
@@ -2082,13 +2179,17 @@ module Aws::SQS
|
|
2082
2179
|
# size is 256 KiB.
|
2083
2180
|
#
|
2084
2181
|
# A message can include only XML, JSON, and unformatted text. The
|
2085
|
-
# following Unicode characters are allowed
|
2182
|
+
# following Unicode characters are allowed. For more information, see
|
2183
|
+
# the [W3C specification for characters][1].
|
2086
2184
|
#
|
2087
2185
|
# `#x9` \| `#xA` \| `#xD` \| `#x20` to `#xD7FF` \| `#xE000` to `#xFFFD`
|
2088
2186
|
# \| `#x10000` to `#x10FFFF`
|
2089
2187
|
#
|
2090
|
-
#
|
2091
|
-
#
|
2188
|
+
# Amazon SQS does not throw an exception or completely reject the
|
2189
|
+
# message if it contains invalid characters. Instead, it replaces those
|
2190
|
+
# invalid characters with `U+FFFD` before storing the message in the
|
2191
|
+
# queue, as long as the message body contains at least one valid
|
2192
|
+
# character.
|
2092
2193
|
#
|
2093
2194
|
#
|
2094
2195
|
#
|
@@ -2207,8 +2308,8 @@ module Aws::SQS
|
|
2207
2308
|
# `MessageGroupId` values. For each `MessageGroupId`, the messages are
|
2208
2309
|
# sorted by time sent. The caller can't specify a `MessageGroupId`.
|
2209
2310
|
#
|
2210
|
-
# The length of `MessageGroupId` is 128 characters. Valid
|
2211
|
-
# alphanumeric characters and punctuation ``
|
2311
|
+
# The maximum length of `MessageGroupId` is 128 characters. Valid
|
2312
|
+
# values: alphanumeric characters and punctuation ``
|
2212
2313
|
# (!"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~) ``.
|
2213
2314
|
#
|
2214
2315
|
# For best practices of using `MessageGroupId`, see [Using the
|
@@ -2290,13 +2391,17 @@ module Aws::SQS
|
|
2290
2391
|
# messages) are both 256 KiB (262,144 bytes).
|
2291
2392
|
#
|
2292
2393
|
# A message can include only XML, JSON, and unformatted text. The
|
2293
|
-
# following Unicode characters are allowed
|
2394
|
+
# following Unicode characters are allowed. For more information, see
|
2395
|
+
# the [W3C specification for characters][1].
|
2294
2396
|
#
|
2295
2397
|
# `#x9` \| `#xA` \| `#xD` \| `#x20` to `#xD7FF` \| `#xE000` to `#xFFFD`
|
2296
2398
|
# \| `#x10000` to `#x10FFFF`
|
2297
2399
|
#
|
2298
|
-
#
|
2299
|
-
#
|
2400
|
+
# Amazon SQS does not throw an exception or completely reject the
|
2401
|
+
# message if it contains invalid characters. Instead, it replaces those
|
2402
|
+
# invalid characters with `U+FFFD` before storing the message in the
|
2403
|
+
# queue, as long as the message body contains at least one valid
|
2404
|
+
# character.
|
2300
2405
|
#
|
2301
2406
|
# If you don't specify the `DelaySeconds` parameter for an entry,
|
2302
2407
|
# Amazon SQS uses the default value for the queue.
|
@@ -2375,13 +2480,14 @@ module Aws::SQS
|
|
2375
2480
|
req.send_request(options)
|
2376
2481
|
end
|
2377
2482
|
|
2378
|
-
# Sets the value of one or more queue attributes
|
2379
|
-
# queue's attributes, the change can take up to 60 seconds
|
2380
|
-
# the attributes to propagate throughout the Amazon SQS
|
2381
|
-
# made to the `MessageRetentionPeriod` attribute can
|
2382
|
-
# minutes and will impact existing messages in the queue
|
2383
|
-
# causing them to be expired and deleted if the
|
2384
|
-
# is reduced below the age of existing
|
2483
|
+
# Sets the value of one or more queue attributes, like a policy. When
|
2484
|
+
# you change a queue's attributes, the change can take up to 60 seconds
|
2485
|
+
# for most of the attributes to propagate throughout the Amazon SQS
|
2486
|
+
# system. Changes made to the `MessageRetentionPeriod` attribute can
|
2487
|
+
# take up to 15 minutes and will impact existing messages in the queue
|
2488
|
+
# potentially causing them to be expired and deleted if the
|
2489
|
+
# `MessageRetentionPeriod` is reduced below the age of existing
|
2490
|
+
# messages.
|
2385
2491
|
#
|
2386
2492
|
# <note markdown="1"> * In the future, new attributes might be added. If you write code that
|
2387
2493
|
# calls this action, we recommend that you structure your code so that
|
@@ -2629,9 +2735,6 @@ module Aws::SQS
|
|
2629
2735
|
# original source queue (from which the messages were driven to the
|
2630
2736
|
# dead-letter-queue), or a custom destination queue.
|
2631
2737
|
#
|
2632
|
-
# * Currently, only standard queues support redrive. FIFO queues don't
|
2633
|
-
# support redrive.
|
2634
|
-
#
|
2635
2738
|
# * Only one active message movement task is supported per queue at any
|
2636
2739
|
# given time.
|
2637
2740
|
#
|
@@ -2789,14 +2892,19 @@ module Aws::SQS
|
|
2789
2892
|
# @api private
|
2790
2893
|
def build_request(operation_name, params = {})
|
2791
2894
|
handlers = @handlers.for(operation_name)
|
2895
|
+
tracer = config.telemetry_provider.tracer_provider.tracer(
|
2896
|
+
Aws::Telemetry.module_to_tracer_name('Aws::SQS')
|
2897
|
+
)
|
2792
2898
|
context = Seahorse::Client::RequestContext.new(
|
2793
2899
|
operation_name: operation_name,
|
2794
2900
|
operation: config.api.operation(operation_name),
|
2795
2901
|
client: self,
|
2796
2902
|
params: params,
|
2797
|
-
config: config
|
2903
|
+
config: config,
|
2904
|
+
tracer: tracer
|
2905
|
+
)
|
2798
2906
|
context[:gem_name] = 'aws-sdk-sqs'
|
2799
|
-
context[:gem_version] = '1.
|
2907
|
+
context[:gem_version] = '1.83.0'
|
2800
2908
|
Seahorse::Client::Request.new(handlers, context)
|
2801
2909
|
end
|
2802
2910
|
|
@@ -83,6 +83,7 @@ module Aws::SQS
|
|
83
83
|
MessageBodySystemAttributeMap = Shapes::MapShape.new(name: 'MessageBodySystemAttributeMap', flattened: true)
|
84
84
|
MessageList = Shapes::ListShape.new(name: 'MessageList', flattened: true)
|
85
85
|
MessageNotInflight = Shapes::StructureShape.new(name: 'MessageNotInflight')
|
86
|
+
MessageSystemAttributeList = Shapes::ListShape.new(name: 'MessageSystemAttributeList', flattened: true)
|
86
87
|
MessageSystemAttributeMap = Shapes::MapShape.new(name: 'MessageSystemAttributeMap', flattened: true)
|
87
88
|
MessageSystemAttributeName = Shapes::StringShape.new(name: 'MessageSystemAttributeName')
|
88
89
|
MessageSystemAttributeNameForSends = Shapes::StringShape.new(name: 'MessageSystemAttributeNameForSends')
|
@@ -350,6 +351,8 @@ module Aws::SQS
|
|
350
351
|
|
351
352
|
MessageNotInflight.struct_class = Types::MessageNotInflight
|
352
353
|
|
354
|
+
MessageSystemAttributeList.member = Shapes::ShapeRef.new(shape: MessageSystemAttributeName)
|
355
|
+
|
353
356
|
MessageSystemAttributeMap.key = Shapes::ShapeRef.new(shape: MessageSystemAttributeName)
|
354
357
|
MessageSystemAttributeMap.value = Shapes::ShapeRef.new(shape: String)
|
355
358
|
|
@@ -387,7 +390,8 @@ module Aws::SQS
|
|
387
390
|
ReceiptHandleIsInvalid.struct_class = Types::ReceiptHandleIsInvalid
|
388
391
|
|
389
392
|
ReceiveMessageRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
390
|
-
ReceiveMessageRequest.add_member(:attribute_names, Shapes::ShapeRef.new(shape: AttributeNameList, location_name: "AttributeNames"))
|
393
|
+
ReceiveMessageRequest.add_member(:attribute_names, Shapes::ShapeRef.new(shape: AttributeNameList, deprecated: true, location_name: "AttributeNames", metadata: {"deprecatedMessage"=>"AttributeNames has been replaced by MessageSystemAttributeNames"}))
|
394
|
+
ReceiveMessageRequest.add_member(:message_system_attribute_names, Shapes::ShapeRef.new(shape: MessageSystemAttributeList, location_name: "MessageSystemAttributeNames"))
|
391
395
|
ReceiveMessageRequest.add_member(:message_attribute_names, Shapes::ShapeRef.new(shape: MessageAttributeNameList, location_name: "MessageAttributeNames"))
|
392
396
|
ReceiveMessageRequest.add_member(:max_number_of_messages, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "MaxNumberOfMessages"))
|
393
397
|
ReceiveMessageRequest.add_member(:visibility_timeout, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "VisibilityTimeout"))
|
@@ -494,11 +498,13 @@ module Aws::SQS
|
|
494
498
|
|
495
499
|
api.metadata = {
|
496
500
|
"apiVersion" => "2012-11-05",
|
501
|
+
"auth" => ["aws.auth#sigv4"],
|
497
502
|
"awsQueryCompatible" => {},
|
498
503
|
"endpointPrefix" => "sqs",
|
499
504
|
"errorPrefix" => "AWS.SimpleQueueService.",
|
500
505
|
"jsonVersion" => "1.0",
|
501
506
|
"protocol" => "json",
|
507
|
+
"protocols" => ["json"],
|
502
508
|
"serviceAbbreviation" => "Amazon SQS",
|
503
509
|
"serviceFullName" => "Amazon Simple Queue Service",
|
504
510
|
"serviceId" => "SQS",
|