aws-sdk-sqs 1.49.0 → 1.51.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47f88e5079ef8421178d7b10a9608d74914d722e389b748e585c68dac2f58d1f
4
- data.tar.gz: 425642fc2800ebbdb8c5f7270b55d36d3719ab72a2833bbd512bfa18c53a92ba
3
+ metadata.gz: 2bac70020cb8b5fe20d0b38b5cd856af384eef9aee80a701d909ca062b657cfa
4
+ data.tar.gz: b972f049341de73326d00fc6dd119a109adda17280c738d3f6cb797f7516a888
5
5
  SHA512:
6
- metadata.gz: 3322f508168c6a946a03945e248e1724235b42aec5918cf98a748a5f028508025ab5e98e739a9ce76ab922025b4f9950c292d672f299b99cd5f3cfa14289714d
7
- data.tar.gz: 958ee5bc903aa5580b8e8bb0db06d232400725773399c03827db07ccc26d5367dc3101c41ed48916bf2c3434e350646595290ed0dbad5e8b6da75d5a2dfbbbc8
6
+ metadata.gz: cf02aa1920e2d81380a32cae0451d0e4baeef2fe3ee2de212f4086ba3c5852cdb038c1f754514530f76be1cbd2a0e761bf118bf6539ce16753102a34fae4f5c8
7
+ data.tar.gz: 71111f49013ca9d1398ca3e0bce36c42699894386a80b70cdc5254281cdaaff413aca6f9774b77ed8eb62380c18b3aaf13b2e32ec198c9bde9110067a3629211
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.51.1 (2022-05-02)
5
+ ------------------
6
+
7
+ * Issue - Parse the region from the `queue_url` param only if the component is exactly `sqs`.
8
+
9
+ 1.51.0 (2022-02-24)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.50.0 (2022-02-03)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
4
19
  1.49.0 (2021-12-21)
5
20
  ------------------
6
21
 
@@ -335,4 +350,4 @@ Unreleased Changes
335
350
  1.0.0.rc1 (2016-12-05)
336
351
  ------------------
337
352
 
338
- * Feature - Initial preview release of the `aws-sdk-sqs` gem.
353
+ * Feature - Initial preview release of the `aws-sdk-sqs` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.49.0
1
+ 1.51.1
@@ -27,7 +27,9 @@ 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/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
31
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
32
34
  require 'aws-sdk-core/plugins/protocols/query.rb'
33
35
  require 'aws-sdk-sqs/plugins/queue_urls.rb'
@@ -76,7 +78,9 @@ module Aws::SQS
76
78
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
77
79
  add_plugin(Aws::Plugins::TransferEncoding)
78
80
  add_plugin(Aws::Plugins::HttpChecksum)
81
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
79
82
  add_plugin(Aws::Plugins::DefaultsMode)
83
+ add_plugin(Aws::Plugins::RecursionDetection)
80
84
  add_plugin(Aws::Plugins::SignatureV4)
81
85
  add_plugin(Aws::Plugins::Protocols::Query)
82
86
  add_plugin(Aws::SQS::Plugins::QueueUrls)
@@ -2482,7 +2486,7 @@ module Aws::SQS
2482
2486
  params: params,
2483
2487
  config: config)
2484
2488
  context[:gem_name] = 'aws-sdk-sqs'
2485
- context[:gem_version] = '1.49.0'
2489
+ context[:gem_version] = '1.51.1'
2486
2490
  Seahorse::Client::Request.new(handlers, context)
2487
2491
  end
2488
2492
 
@@ -5,11 +5,10 @@ module Aws
5
5
  module Plugins
6
6
  # @api private
7
7
  class QueueUrls < Seahorse::Client::Plugin
8
-
8
+ # Extract region from a provided queue_url
9
9
  class Handler < Seahorse::Client::Handler
10
-
11
10
  def call(context)
12
- if queue_url = context.params[:queue_url]
11
+ if (queue_url = context.params[:queue_url])
13
12
  update_endpoint(context, queue_url)
14
13
  update_region(context, queue_url)
15
14
  end
@@ -24,7 +23,7 @@ module Aws
24
23
  # region, then we will modify the request to have
25
24
  # a sigv4 signer for the proper region.
26
25
  def update_region(context, queue_url)
27
- if queue_region = parse_region(queue_url)
26
+ if (queue_region = parse_region(queue_url))
28
27
  if queue_region != context.config.region
29
28
  config = context.config.dup
30
29
  config.region = queue_region
@@ -37,12 +36,21 @@ module Aws
37
36
 
38
37
  private
39
38
 
40
- # take the first component after service delimiter
41
- # https://sqs.us-east-1.amazonaws.com/1234567890/demo
42
- # https://vpce-x-y.sqs.us-east-1.vpce.amazonaws.com/1234567890/demo
39
+ # take the first component after the SQS service component
40
+ # Will return us-east-1 for:
41
+ # https://sqs.us-east-1.amazonaws.com/1234567890/demo
42
+ # https://vpce-x-y.sqs.us-east-1.vpce.amazonaws.com/1234567890/demo
43
+ # Will not return for:
44
+ # https://localstack-sqs.example.dev/queue/example
43
45
  def parse_region(url)
44
- parts = url.split('sqs.')
45
- parts[1].split('.').first if parts.size > 1
46
+ parts = URI.parse(url).host.split('.')
47
+ parts.each_with_index do |part, index|
48
+ if part == 'sqs'
49
+ # assume region is the part right after the 'sqs' part
50
+ return parts[index + 1]
51
+ end
52
+ end
53
+ nil # no region found
46
54
  end
47
55
 
48
56
  end
data/lib/aws-sdk-sqs.rb CHANGED
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-sqs/customizations'
50
50
  # @!group service
51
51
  module Aws::SQS
52
52
 
53
- GEM_VERSION = '1.49.0'
53
+ GEM_VERSION = '1.51.1'
54
54
 
55
55
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.49.0
4
+ version: 1.51.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-21 00:00:00.000000000 Z
11
+ date: 2022-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.125.0
22
+ version: 3.127.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.125.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement