aws-sdk-core 3.130.1 → 3.130.2

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: dffefda7cd68861a99856de10c4774c57ffcdb1c3f22d16eacb0a2096a5e5c32
4
- data.tar.gz: 60628acc0b4bb23629da2de4b5f821c91037e2e7c0b56b63dbdc4e7b771f2167
3
+ metadata.gz: ff22a0d39db864fb7a965fedeb1f45730a70840d8ae4475e2222529604e3a707
4
+ data.tar.gz: 90117e48ef4377412254102c08d95718c14b407c64be26b8bb0c62b4b349bfa2
5
5
  SHA512:
6
- metadata.gz: 6b16327c66f2fb83c9dceeec13cb5d0f9cbb519b5f999c27aa3e9f0ee0824a0545bc8b5bcc48823242fadf07b03c83fc196207a1806c7f162736bd1073af37db
7
- data.tar.gz: 0540f8d1095132e67d9d00841b2c6c594870e5addf3de30a228a0e091bcb83280aef8270a2fe3af31815ea3c354abeebe637fa4aa2d27917e51d201a9c397f2b
6
+ metadata.gz: dded90c284f709ca41f859ffb832c243728e2d19d630a84c6ba960052e8004af3e90c292f307c8ab76d2f0578ae2259402c4b96ad3a73c7a7e48e9b72c23a919
7
+ data.tar.gz: bf2b97dc6ce9aafca32582f0e06b0245bf0741f897cfe1ebadf7369f1e7344604247803b396aedc6da37415594baacdce933cd22afba09abc61684884dafe135
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 3.130.2 (2022-04-22)
5
+ ------------------
6
+
7
+ * Issue - Don't pass `:before_refresh` to Client constructors in RefreshingCredential implementations (#2690).
8
+
4
9
  3.130.1 (2022-04-12)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.130.1
1
+ 3.130.2
@@ -49,7 +49,7 @@ module Aws
49
49
  options.each_pair do |key, value|
50
50
  if self.class.assume_role_options.include?(key)
51
51
  @assume_role_params[key] = value
52
- else
52
+ elsif !CLIENT_EXCLUDE_OPTIONS.include?(key)
53
53
  client_opts[key] = value
54
54
  end
55
55
  end
@@ -52,7 +52,7 @@ module Aws
52
52
  options.each_pair do |key, value|
53
53
  if self.class.assume_role_web_identity_options.include?(key)
54
54
  @assume_role_web_identity_params[key] = value
55
- else
55
+ elsif !CLIENT_EXCLUDE_OPTIONS.include?(key)
56
56
  client_opts[key] = value
57
57
  end
58
58
  end
@@ -100,11 +100,10 @@ module Aws
100
100
  # @api private
101
101
  def assume_role_web_identity_options
102
102
  @arwio ||= begin
103
- input = STS::Client.api.operation(:assume_role_with_web_identity).input
103
+ input = Aws::STS::Client.api.operation(:assume_role_with_web_identity).input
104
104
  Set.new(input.shape.member_names)
105
105
  end
106
106
  end
107
-
108
107
  end
109
108
  end
110
109
  end
@@ -20,6 +20,8 @@ module Aws
20
20
  SYNC_EXPIRATION_LENGTH = 300 # 5 minutes
21
21
  ASYNC_EXPIRATION_LENGTH = 600 # 10 minutes
22
22
 
23
+ CLIENT_EXCLUDE_OPTIONS = Set.new([:before_refresh]).freeze
24
+
23
25
  def initialize(options = {})
24
26
  @mutex = Mutex.new
25
27
  @before_refresh = options.delete(:before_refresh) if Hash === options
@@ -83,9 +83,13 @@ module Aws
83
83
  # validate we can read the token file
84
84
  read_cached_token
85
85
 
86
- options[:region] = @sso_region
87
- options[:credentials] = nil
88
- @client = options[:client] || Aws::SSO::Client.new(options)
86
+
87
+ client_opts = {}
88
+ options.each_pair { |k,v| client_opts[k] = v unless CLIENT_EXCLUDE_OPTIONS.include?(k) }
89
+ client_opts[:region] = @sso_region
90
+ client_opts[:credentials] = nil
91
+
92
+ @client = options[:client] || Aws::SSO::Client.new(client_opts)
89
93
  @async_refresh = true
90
94
  super
91
95
  end
@@ -545,7 +545,7 @@ module Aws::SSO
545
545
  params: params,
546
546
  config: config)
547
547
  context[:gem_name] = 'aws-sdk-core'
548
- context[:gem_version] = '3.130.1'
548
+ context[:gem_version] = '3.130.2'
549
549
  Seahorse::Client::Request.new(handlers, context)
550
550
  end
551
551
 
data/lib/aws-sdk-sso.rb CHANGED
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-sso/customizations'
50
50
  # @!group service
51
51
  module Aws::SSO
52
52
 
53
- GEM_VERSION = '3.130.1'
53
+ GEM_VERSION = '3.130.2'
54
54
 
55
55
  end
@@ -2290,7 +2290,7 @@ module Aws::STS
2290
2290
  params: params,
2291
2291
  config: config)
2292
2292
  context[:gem_name] = 'aws-sdk-core'
2293
- context[:gem_version] = '3.130.1'
2293
+ context[:gem_version] = '3.130.2'
2294
2294
  Seahorse::Client::Request.new(handlers, context)
2295
2295
  end
2296
2296
 
data/lib/aws-sdk-sts.rb CHANGED
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-sts/customizations'
50
50
  # @!group service
51
51
  module Aws::STS
52
52
 
53
- GEM_VERSION = '3.130.1'
53
+ GEM_VERSION = '3.130.2'
54
54
 
55
55
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.130.1
4
+ version: 3.130.2
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: 2022-04-12 00:00:00.000000000 Z
11
+ date: 2022-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath