aws-sdk-sqs 1.64.0 → 1.73.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68eb8fe977b86cb00d0fc688ebc168d08cff78fdf9a332304fcbc825c7d381cb
4
- data.tar.gz: 88fe34be85f87be90ff063d796ec49a42098e8882b43cefede85feeb324ef5a4
3
+ metadata.gz: deed491ffeeba68062bb3476ef20639e61fd828a93ec0f3729e1f37070a0128d
4
+ data.tar.gz: 389ec66b3528d28972e921726bffe2af5f3bacf3832b23c536077861250436d8
5
5
  SHA512:
6
- metadata.gz: '02289264a550230e36c1c9d0cb73a532ca0a2fc5c6ff550fb6390dd7d21c99f77f042fc99153605deaad2a7c945a8b963af34c5dfcf0e96357f83eeea79ba3c1'
7
- data.tar.gz: 976aee45c5cb6a9db8d884e4f8abb44807aca6b6c567b3815565864a24e7e775ee32bc3fa23a052a8b8ca378cf7266e79ea0d6539ab32f97ede21f4aa1ad6b71
6
+ metadata.gz: f826805b81fc7cdc235e418891379457c6232545f0b9d917e81d53d8e30ba057628e5bb7c3c670b26feba786e31641c5555e15f2ff90a3a23c36f9e73e7adcae
7
+ data.tar.gz: c9c97a0b286d87978e3394125e163b355a8598cce6c9cc8a8a7a4fb81c9fd8a440c59b54f254e26f55625f7d8d591e921cd90f696c30ab91e0a591d8a99fdbf7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,51 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.73.0 (2024-05-08)
5
+ ------------------
6
+
7
+ * Feature - This release adds MessageSystemAttributeNames to ReceiveMessageRequest to replace AttributeNames.
8
+
9
+ 1.72.0 (2024-04-30)
10
+ ------------------
11
+
12
+ * Feature - Handle System Message Attributes MD5 verification.
13
+
14
+ 1.71.0 (2024-04-25)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.70.0 (2024-01-26)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.69.0 (2023-11-28)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.68.0 (2023-11-22)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.67.0 (2023-11-09)
35
+ ------------------
36
+
37
+ * Feature - This release enables customers to call SQS using AWS JSON-1.0 protocol and bug fix.
38
+
39
+ 1.66.0 (2023-11-08)
40
+ ------------------
41
+
42
+ * Feature - This release enables customers to call SQS using AWS JSON-1.0 protocol.
43
+
44
+ 1.65.0 (2023-10-31)
45
+ ------------------
46
+
47
+ * Feature - Update `QueuePoller` to allow for the definition of an `after_empty_receive` callback which is triggered when a polling request returns no records.
48
+
4
49
  1.64.0 (2023-10-02)
5
50
  ------------------
6
51
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.64.0
1
+ 1.73.0
@@ -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'
@@ -32,7 +33,7 @@ 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'
34
35
  require 'aws-sdk-core/plugins/sign.rb'
35
- require 'aws-sdk-core/plugins/protocols/query.rb'
36
+ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
36
37
  require 'aws-sdk-sqs/plugins/queue_urls.rb'
37
38
  require 'aws-sdk-sqs/plugins/md5s.rb'
38
39
 
@@ -74,6 +75,7 @@ module Aws::SQS
74
75
  add_plugin(Aws::Plugins::ResponsePaging)
75
76
  add_plugin(Aws::Plugins::StubResponses)
76
77
  add_plugin(Aws::Plugins::IdempotencyToken)
78
+ add_plugin(Aws::Plugins::InvocationId)
77
79
  add_plugin(Aws::Plugins::JsonvalueConverter)
78
80
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
79
81
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -84,7 +86,7 @@ module Aws::SQS
84
86
  add_plugin(Aws::Plugins::DefaultsMode)
85
87
  add_plugin(Aws::Plugins::RecursionDetection)
86
88
  add_plugin(Aws::Plugins::Sign)
87
- add_plugin(Aws::Plugins::Protocols::Query)
89
+ add_plugin(Aws::Plugins::Protocols::JsonRpc)
88
90
  add_plugin(Aws::SQS::Plugins::QueueUrls)
89
91
  add_plugin(Aws::SQS::Plugins::Md5s)
90
92
  add_plugin(Aws::SQS::Plugins::Endpoints)
@@ -200,10 +202,17 @@ module Aws::SQS
200
202
  # When set to 'true' the request body will not be compressed
201
203
  # for supported operations.
202
204
  #
203
- # @option options [String] :endpoint
204
- # The client endpoint is normally constructed from the `:region`
205
- # option. You should only configure an `:endpoint` when connecting
206
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
205
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
206
+ # Normally you should not configure the `:endpoint` option
207
+ # directly. This is normally constructed from the `:region`
208
+ # option. Configuring `:endpoint` is normally reserved for
209
+ # connecting to test or custom endpoints. The endpoint should
210
+ # be a URI formatted like:
211
+ #
212
+ # 'http://example.com'
213
+ # 'https://example.com'
214
+ # 'http://example.com:123'
215
+ #
207
216
  #
208
217
  # @option options [Integer] :endpoint_cache_max_entries (1000)
209
218
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -303,6 +312,16 @@ module Aws::SQS
303
312
  #
304
313
  # @option options [String] :session_token
305
314
  #
315
+ # @option options [Boolean] :simple_json (false)
316
+ # Disables request parameter conversion, validation, and formatting.
317
+ # Also disable response data type conversions. This option is useful
318
+ # when you want to ensure the highest level of performance by
319
+ # avoiding overhead of walking request parameters and response data
320
+ # structures.
321
+ #
322
+ # When `:simple_json` is enabled, the request parameters hash must
323
+ # be formatted exactly as the DynamoDB API expects.
324
+ #
306
325
  # @option options [Boolean] :stub_responses (false)
307
326
  # Causes the client to return stubbed responses. By default
308
327
  # fake responses are generated and returned. You can specify
@@ -347,50 +366,65 @@ module Aws::SQS
347
366
  # @option options [Aws::SQS::EndpointProvider] :endpoint_provider
348
367
  # 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`
349
368
  #
350
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
351
- # requests through. Formatted like 'http://proxy.com:123'.
352
- #
353
- # @option options [Float] :http_open_timeout (15) The number of
354
- # seconds to wait when opening a HTTP session before raising a
355
- # `Timeout::Error`.
356
- #
357
- # @option options [Float] :http_read_timeout (60) The default
358
- # number of seconds to wait for response data. This value can
359
- # safely be set per-request on the session.
360
- #
361
- # @option options [Float] :http_idle_timeout (5) The number of
362
- # seconds a connection is allowed to sit idle before it is
363
- # considered stale. Stale connections are closed and removed
364
- # from the pool before making a request.
365
- #
366
- # @option options [Float] :http_continue_timeout (1) The number of
367
- # seconds to wait for a 100-continue response before sending the
368
- # request body. This option has no effect unless the request has
369
- # "Expect" header set to "100-continue". Defaults to `nil` which
370
- # disables this behaviour. This value can safely be set per
371
- # request on the session.
372
- #
373
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
374
- # in seconds.
375
- #
376
- # @option options [Boolean] :http_wire_trace (false) When `true`,
377
- # HTTP debug output will be sent to the `:logger`.
369
+ # @option options [Float] :http_continue_timeout (1)
370
+ # The number of seconds to wait for a 100-continue response before sending the
371
+ # request body. This option has no effect unless the request has "Expect"
372
+ # header set to "100-continue". Defaults to `nil` which disables this
373
+ # behaviour. This value can safely be set per request on the session.
374
+ #
375
+ # @option options [Float] :http_idle_timeout (5)
376
+ # The number of seconds a connection is allowed to sit idle before it
377
+ # is considered stale. Stale connections are closed and removed from the
378
+ # pool before making a request.
379
+ #
380
+ # @option options [Float] :http_open_timeout (15)
381
+ # The default number of seconds to wait for response data.
382
+ # This value can safely be set per-request on the session.
383
+ #
384
+ # @option options [URI::HTTP,String] :http_proxy
385
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
386
+ #
387
+ # @option options [Float] :http_read_timeout (60)
388
+ # The default number of seconds to wait for response data.
389
+ # This value can safely be set per-request on the session.
390
+ #
391
+ # @option options [Boolean] :http_wire_trace (false)
392
+ # When `true`, HTTP debug output will be sent to the `:logger`.
393
+ #
394
+ # @option options [Proc] :on_chunk_received
395
+ # When a Proc object is provided, it will be used as callback when each chunk
396
+ # of the response body is received. It provides three arguments: the chunk,
397
+ # the number of bytes received, and the total number of
398
+ # bytes in the response (or nil if the server did not send a `content-length`).
399
+ #
400
+ # @option options [Proc] :on_chunk_sent
401
+ # When a Proc object is provided, it will be used as callback when each chunk
402
+ # of the request body is sent. It provides three arguments: the chunk,
403
+ # the number of bytes read from the body, and the total number of
404
+ # bytes in the body.
405
+ #
406
+ # @option options [Boolean] :raise_response_errors (true)
407
+ # When `true`, response errors are raised.
408
+ #
409
+ # @option options [String] :ssl_ca_bundle
410
+ # Full path to the SSL certificate authority bundle file that should be used when
411
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
412
+ # `:ssl_ca_directory` the the system default will be used if available.
413
+ #
414
+ # @option options [String] :ssl_ca_directory
415
+ # Full path of the directory that contains the unbundled SSL certificate
416
+ # authority files for verifying peer certificates. If you do
417
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
418
+ # default will be used if available.
378
419
  #
379
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
380
- # SSL peer certificates are verified when establishing a
381
- # connection.
420
+ # @option options [String] :ssl_ca_store
421
+ # Sets the X509::Store to verify peer certificate.
382
422
  #
383
- # @option options [String] :ssl_ca_bundle Full path to the SSL
384
- # certificate authority bundle file that should be used when
385
- # verifying peer certificates. If you do not pass
386
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
387
- # will be used if available.
423
+ # @option options [Float] :ssl_timeout
424
+ # Sets the SSL timeout in seconds
388
425
  #
389
- # @option options [String] :ssl_ca_directory Full path of the
390
- # directory that contains the unbundled SSL certificate
391
- # authority files for verifying peer certificates. If you do
392
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
393
- # system default will be used if available.
426
+ # @option options [Boolean] :ssl_verify_peer (true)
427
+ # When `true`, SSL peer certificates are verified when establishing a connection.
394
428
  #
395
429
  def initialize(*args)
396
430
  super
@@ -508,8 +542,6 @@ module Aws::SQS
508
542
  # can be the original source queue (from which the messages were
509
543
  # driven to the dead-letter-queue), or a custom destination queue.
510
544
  #
511
- # * Currently, only standard queues are supported.
512
- #
513
545
  # * Only one active message movement task is supported per queue at any
514
546
  # given time.
515
547
  #
@@ -1536,8 +1568,6 @@ module Aws::SQS
1536
1568
  # can be the original source queue (from which the messages were
1537
1569
  # driven to the dead-letter-queue), or a custom destination queue.
1538
1570
  #
1539
- # * Currently, only standard queues are supported.
1540
- #
1541
1571
  # * Only one active message movement task is supported per queue at any
1542
1572
  # given time.
1543
1573
  #
@@ -1799,6 +1829,54 @@ module Aws::SQS
1799
1829
  # Queue URLs and names are case-sensitive.
1800
1830
  #
1801
1831
  # @option params [Array<String>] :attribute_names
1832
+ # This parameter has been deprecated but will be supported for backward
1833
+ # compatibility. To provide attribute names, you are encouraged to use
1834
+ # `MessageSystemAttributeNames`.
1835
+ #
1836
+ # A list of attributes that need to be returned along with each message.
1837
+ # These attributes include:
1838
+ #
1839
+ # * `All` – Returns all values.
1840
+ #
1841
+ # * `ApproximateFirstReceiveTimestamp` – Returns the time the message
1842
+ # was first received from the queue ([epoch time][1] in milliseconds).
1843
+ #
1844
+ # * `ApproximateReceiveCount` – Returns the number of times a message
1845
+ # has been received across all queues but not deleted.
1846
+ #
1847
+ # * `AWSTraceHeader` – Returns the X-Ray trace header string.
1848
+ #
1849
+ # * `SenderId`
1850
+ #
1851
+ # * For a user, returns the user ID, for example
1852
+ # `ABCDEFGHI1JKLMNOPQ23R`.
1853
+ #
1854
+ # * For an IAM role, returns the IAM role ID, for example
1855
+ # `ABCDE1F2GH3I4JK5LMNOP:i-a123b456`.
1856
+ #
1857
+ # * `SentTimestamp` – Returns the time the message was sent to the queue
1858
+ # ([epoch time][1] in milliseconds).
1859
+ #
1860
+ # * `SqsManagedSseEnabled` – Enables server-side queue encryption using
1861
+ # SQS owned encryption keys. Only one server-side encryption option is
1862
+ # supported per queue (for example, [SSE-KMS][2] or [SSE-SQS][3]).
1863
+ #
1864
+ # * `MessageDeduplicationId` – Returns the value provided by the
1865
+ # producer that calls the ` SendMessage ` action.
1866
+ #
1867
+ # * `MessageGroupId` – Returns the value provided by the producer that
1868
+ # calls the ` SendMessage ` action. Messages with the same
1869
+ # `MessageGroupId` are returned in sequence.
1870
+ #
1871
+ # * `SequenceNumber` – Returns the value provided by Amazon SQS.
1872
+ #
1873
+ #
1874
+ #
1875
+ # [1]: http://en.wikipedia.org/wiki/Unix_time
1876
+ # [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html
1877
+ # [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html
1878
+ #
1879
+ # @option params [Array<String>] :message_system_attribute_names
1802
1880
  # A list of attributes that need to be returned along with each message.
1803
1881
  # These attributes include:
1804
1882
  #
@@ -1878,8 +1956,8 @@ module Aws::SQS
1878
1956
  # The duration (in seconds) for which the call waits for a message to
1879
1957
  # arrive in the queue before returning. If a message is available, the
1880
1958
  # call returns sooner than `WaitTimeSeconds`. If no messages are
1881
- # available and the wait time expires, the call returns successfully
1882
- # with an empty list of messages.
1959
+ # available and the wait time expires, the call does not return a
1960
+ # message list.
1883
1961
  #
1884
1962
  # To avoid HTTP errors, ensure that the HTTP response timeout for
1885
1963
  # `ReceiveMessage` requests is longer than the `WaitTimeSeconds`
@@ -1908,10 +1986,6 @@ module Aws::SQS
1908
1986
  # * When you set `FifoQueue`, a caller of the `ReceiveMessage` action
1909
1987
  # can provide a `ReceiveRequestAttemptId` explicitly.
1910
1988
  #
1911
- # * If a caller of the `ReceiveMessage` action doesn't provide a
1912
- # `ReceiveRequestAttemptId`, Amazon SQS generates a
1913
- # `ReceiveRequestAttemptId`.
1914
- #
1915
1989
  # * It is possible to retry the `ReceiveMessage` action with the same
1916
1990
  # `ReceiveRequestAttemptId` if none of the messages have been modified
1917
1991
  # (deleted or had their visibility changes).
@@ -1966,6 +2040,7 @@ module Aws::SQS
1966
2040
  # resp = client.receive_message({
1967
2041
  # queue_url: "String", # required
1968
2042
  # 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
2043
+ # message_system_attribute_names: ["All"], # accepts All, SenderId, SentTimestamp, ApproximateReceiveCount, ApproximateFirstReceiveTimestamp, SequenceNumber, MessageDeduplicationId, MessageGroupId, AWSTraceHeader, DeadLetterQueueSourceArn
1969
2044
  # message_attribute_names: ["MessageAttributeName"],
1970
2045
  # max_number_of_messages: 1,
1971
2046
  # visibility_timeout: 1,
@@ -2197,8 +2272,8 @@ module Aws::SQS
2197
2272
  # `MessageGroupId` values. For each `MessageGroupId`, the messages are
2198
2273
  # sorted by time sent. The caller can't specify a `MessageGroupId`.
2199
2274
  #
2200
- # The length of `MessageGroupId` is 128 characters. Valid values:
2201
- # alphanumeric characters and punctuation ``
2275
+ # The maximum length of `MessageGroupId` is 128 characters. Valid
2276
+ # values: alphanumeric characters and punctuation ``
2202
2277
  # (!"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~) ``.
2203
2278
  #
2204
2279
  # For best practices of using `MessageGroupId`, see [Using the
@@ -2365,13 +2440,14 @@ module Aws::SQS
2365
2440
  req.send_request(options)
2366
2441
  end
2367
2442
 
2368
- # Sets the value of one or more queue attributes. When you change a
2369
- # queue's attributes, the change can take up to 60 seconds for most of
2370
- # the attributes to propagate throughout the Amazon SQS system. Changes
2371
- # made to the `MessageRetentionPeriod` attribute can take up to 15
2372
- # minutes and will impact existing messages in the queue potentially
2373
- # causing them to be expired and deleted if the `MessageRetentionPeriod`
2374
- # is reduced below the age of existing messages.
2443
+ # Sets the value of one or more queue attributes, like a policy. When
2444
+ # you change a queue's attributes, the change can take up to 60 seconds
2445
+ # for most of the attributes to propagate throughout the Amazon SQS
2446
+ # system. Changes made to the `MessageRetentionPeriod` attribute can
2447
+ # take up to 15 minutes and will impact existing messages in the queue
2448
+ # potentially causing them to be expired and deleted if the
2449
+ # `MessageRetentionPeriod` is reduced below the age of existing
2450
+ # messages.
2375
2451
  #
2376
2452
  # <note markdown="1"> * In the future, new attributes might be added. If you write code that
2377
2453
  # calls this action, we recommend that you structure your code so that
@@ -2619,9 +2695,6 @@ module Aws::SQS
2619
2695
  # original source queue (from which the messages were driven to the
2620
2696
  # dead-letter-queue), or a custom destination queue.
2621
2697
  #
2622
- # * Currently, only standard queues support redrive. FIFO queues don't
2623
- # support redrive.
2624
- #
2625
2698
  # * Only one active message movement task is supported per queue at any
2626
2699
  # given time.
2627
2700
  #
@@ -2786,7 +2859,7 @@ module Aws::SQS
2786
2859
  params: params,
2787
2860
  config: config)
2788
2861
  context[:gem_name] = 'aws-sdk-sqs'
2789
- context[:gem_version] = '1.64.0'
2862
+ context[:gem_version] = '1.73.0'
2790
2863
  Seahorse::Client::Request.new(handlers, context)
2791
2864
  end
2792
2865