aws-sdk-sqs 1.110.0 → 1.111.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 +4 -1
- data/lib/aws-sdk-sqs/plugins/queue_urls.rb +15 -0
- data/lib/aws-sdk-sqs.rb +1 -1
- data/sig/client.rbs +1 -0
- data/sig/resource.rbs +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86f6c58be2b36fefa07d48750b82ce457a9037ac64d68b646419f2d6cba27379
|
|
4
|
+
data.tar.gz: c2ca52609d26c188ab1d49c4040fe34f9ad3c312a8a697d05e74ab72969de681
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00cf7e858f7e0efc7bb96b4d9edecf0978ee8298e1d73c0a5321cc87bc122dd162c3cb06ab0575ef1b8ea7e7d186d9919566e9bc6c0ac5c60b5aac141dbe51b7
|
|
7
|
+
data.tar.gz: 31ab4a109369a7f84d0890149dad3827bbf7de7ea1672e998ae647b4d4ac181dd8a34753d0cff224b0ca5b91dd95ae10183c77078dc9c8e9c2bf5e9b6f05c39e
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.111.0
|
data/lib/aws-sdk-sqs/client.rb
CHANGED
|
@@ -213,6 +213,9 @@ module Aws::SQS
|
|
|
213
213
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
|
214
214
|
# When `true`, the SDK will not prepend the modeled host prefix to the endpoint.
|
|
215
215
|
#
|
|
216
|
+
# @option options [Boolean] :disable_queue_url_region_detection (false)
|
|
217
|
+
# When set to `true`, the region will not be extracted from a provided queue url. Defaults to `false`.
|
|
218
|
+
#
|
|
216
219
|
# @option options [Boolean] :disable_request_compression (false)
|
|
217
220
|
# When set to 'true' the request body will not be compressed
|
|
218
221
|
# for supported operations.
|
|
@@ -2980,7 +2983,7 @@ module Aws::SQS
|
|
|
2980
2983
|
tracer: tracer
|
|
2981
2984
|
)
|
|
2982
2985
|
context[:gem_name] = 'aws-sdk-sqs'
|
|
2983
|
-
context[:gem_version] = '1.
|
|
2986
|
+
context[:gem_version] = '1.111.0'
|
|
2984
2987
|
Seahorse::Client::Request.new(handlers, context)
|
|
2985
2988
|
end
|
|
2986
2989
|
|
|
@@ -5,6 +5,19 @@ module Aws
|
|
|
5
5
|
module Plugins
|
|
6
6
|
# @api private
|
|
7
7
|
class QueueUrls < Seahorse::Client::Plugin
|
|
8
|
+
# When set to `true`, the signing region will not be modified if the configured
|
|
9
|
+
# region does not match the region extracted from a provided queue url.
|
|
10
|
+
#
|
|
11
|
+
# When set to 'false', the signing region will be modified to use the region
|
|
12
|
+
# extracted from a provided queue url if it differs from the configured region.
|
|
13
|
+
option(
|
|
14
|
+
:disable_queue_url_region_detection,
|
|
15
|
+
default: false,
|
|
16
|
+
doc_type: 'Boolean',
|
|
17
|
+
docstring: <<~DOCS)
|
|
18
|
+
When set to `true`, the region will not be extracted from a provided queue url. Defaults to `false`.
|
|
19
|
+
DOCS
|
|
20
|
+
|
|
8
21
|
# Extract region from a provided queue_url
|
|
9
22
|
class Handler < Seahorse::Client::Handler
|
|
10
23
|
def call(context)
|
|
@@ -22,6 +35,8 @@ module Aws
|
|
|
22
35
|
# If the region in the queue url is not the configured
|
|
23
36
|
# region, then we will modify signing to use it
|
|
24
37
|
def update_region(context, queue_url)
|
|
38
|
+
return if context.config.disable_queue_url_region_detection
|
|
39
|
+
|
|
25
40
|
if (queue_region = parse_region(queue_url)) &&
|
|
26
41
|
queue_region != context.config.region
|
|
27
42
|
context[:auth_scheme]['signingRegion'] = queue_region
|
data/lib/aws-sdk-sqs.rb
CHANGED
data/sig/client.rbs
CHANGED
data/sig/resource.rbs
CHANGED