aws-sdk-core 3.197.2 → 3.198.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 +11 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/plugins/global_configuration.rb +8 -9
- data/lib/aws-sdk-core/plugins/retry_errors.rb +0 -1
- data/lib/aws-sdk-sso/client.rb +6 -3
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +6 -3
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +6 -3
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/seahorse/client/base.rb +17 -7
- data/lib/seahorse/client/plugins/endpoint.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b0adce6eef1d5e8601f303dec4bd1cf5ead7dfecafed0130061f6649ec778e9
|
4
|
+
data.tar.gz: 6cee7400cd7a7da15cdfd7a834a9a124c6bf46eb1169a6652d3355ec91d5a0df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e1f493384514d0f4f23b38b8869a6714dd20389f74ee382b66dc381d6483fef41e31a058a5473a434a182b00e92d3933d6112ed9de413eb91fe0547d65a3801
|
7
|
+
data.tar.gz: dafb321f4b580a86eeb35f180dbac05efab41255c46355c85824256d066ee73c27bd4656d6ad5d07c7ada8af84937a9dcdc47d49d7ce16a5104ea7a9a802b385
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
3.198.0 (2024-06-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Updated Aws::STS::Client with the latest API changes.
|
8
|
+
|
9
|
+
* Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
|
10
|
+
|
11
|
+
* Feature - Updated Aws::SSO::Client with the latest API changes.
|
12
|
+
|
13
|
+
* Feature - Support `:plugins` option on all Clients or using `Aws.config[:plugins]`.
|
14
|
+
|
4
15
|
3.197.2 (2024-06-20)
|
5
16
|
------------------
|
6
17
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.198.0
|
@@ -43,7 +43,7 @@ module Aws
|
|
43
43
|
# @api private
|
44
44
|
class GlobalConfiguration < Seahorse::Client::Plugin
|
45
45
|
|
46
|
-
@identifiers = Set.new
|
46
|
+
@identifiers = Set.new
|
47
47
|
|
48
48
|
# @api private
|
49
49
|
def before_initialize(client_class, options)
|
@@ -55,17 +55,18 @@ module Aws
|
|
55
55
|
private
|
56
56
|
|
57
57
|
def apply_service_defaults(client_class, options)
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
58
|
+
return unless (defaults = Aws.config[client_class.identifier])
|
59
|
+
|
60
|
+
defaults.each do |option_name, default|
|
61
|
+
options[option_name] = default unless options.key?(option_name)
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
def apply_aws_defaults(
|
65
|
+
def apply_aws_defaults(_client_class, options)
|
66
66
|
Aws.config.each do |option_name, default|
|
67
67
|
next if self.class.identifiers.include?(option_name)
|
68
68
|
next if options.key?(option_name)
|
69
|
+
|
69
70
|
options[option_name] = default
|
70
71
|
end
|
71
72
|
end
|
@@ -80,9 +81,7 @@ module Aws
|
|
80
81
|
|
81
82
|
# @return [Set<String>]
|
82
83
|
# @api private
|
83
|
-
|
84
|
-
@identifiers
|
85
|
-
end
|
84
|
+
attr_reader :identifiers
|
86
85
|
|
87
86
|
end
|
88
87
|
end
|
@@ -113,7 +113,6 @@ Specifies which retry algorithm to use. Values are:
|
|
113
113
|
functionality of `standard` mode along with automatic client side
|
114
114
|
throttling. This is a provisional mode that may change behavior
|
115
115
|
in the future.
|
116
|
-
|
117
116
|
DOCS
|
118
117
|
resolve_retry_mode(cfg)
|
119
118
|
end
|
data/lib/aws-sdk-sso/client.rb
CHANGED
@@ -89,6 +89,11 @@ module Aws::SSO
|
|
89
89
|
|
90
90
|
# @overload initialize(options)
|
91
91
|
# @param [Hash] options
|
92
|
+
#
|
93
|
+
# @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
|
94
|
+
# A list of plugins to apply to the client. Each plugin is either a
|
95
|
+
# class name or an instance of a plugin class.
|
96
|
+
#
|
92
97
|
# @option options [required, Aws::CredentialProvider] :credentials
|
93
98
|
# Your AWS credentials. This can be an instance of any one of the
|
94
99
|
# following classes:
|
@@ -209,7 +214,6 @@ module Aws::SSO
|
|
209
214
|
# 'https://example.com'
|
210
215
|
# 'http://example.com:123'
|
211
216
|
#
|
212
|
-
#
|
213
217
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
214
218
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
215
219
|
# for endpoint discovery enabled operations. Defaults to 1000.
|
@@ -298,7 +302,6 @@ module Aws::SSO
|
|
298
302
|
# throttling. This is a provisional mode that may change behavior
|
299
303
|
# in the future.
|
300
304
|
#
|
301
|
-
#
|
302
305
|
# @option options [String] :sdk_ua_app_id
|
303
306
|
# A unique and opaque application ID that is appended to the
|
304
307
|
# User-Agent header as app/sdk_ua_app_id. It should have a
|
@@ -630,7 +633,7 @@ module Aws::SSO
|
|
630
633
|
params: params,
|
631
634
|
config: config)
|
632
635
|
context[:gem_name] = 'aws-sdk-core'
|
633
|
-
context[:gem_version] = '3.
|
636
|
+
context[:gem_version] = '3.198.0'
|
634
637
|
Seahorse::Client::Request.new(handlers, context)
|
635
638
|
end
|
636
639
|
|
data/lib/aws-sdk-sso.rb
CHANGED
@@ -89,6 +89,11 @@ module Aws::SSOOIDC
|
|
89
89
|
|
90
90
|
# @overload initialize(options)
|
91
91
|
# @param [Hash] options
|
92
|
+
#
|
93
|
+
# @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
|
94
|
+
# A list of plugins to apply to the client. Each plugin is either a
|
95
|
+
# class name or an instance of a plugin class.
|
96
|
+
#
|
92
97
|
# @option options [required, Aws::CredentialProvider] :credentials
|
93
98
|
# Your AWS credentials. This can be an instance of any one of the
|
94
99
|
# following classes:
|
@@ -209,7 +214,6 @@ module Aws::SSOOIDC
|
|
209
214
|
# 'https://example.com'
|
210
215
|
# 'http://example.com:123'
|
211
216
|
#
|
212
|
-
#
|
213
217
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
214
218
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
215
219
|
# for endpoint discovery enabled operations. Defaults to 1000.
|
@@ -298,7 +302,6 @@ module Aws::SSOOIDC
|
|
298
302
|
# throttling. This is a provisional mode that may change behavior
|
299
303
|
# in the future.
|
300
304
|
#
|
301
|
-
#
|
302
305
|
# @option options [String] :sdk_ua_app_id
|
303
306
|
# A unique and opaque application ID that is appended to the
|
304
307
|
# User-Agent header as app/sdk_ua_app_id. It should have a
|
@@ -983,7 +986,7 @@ module Aws::SSOOIDC
|
|
983
986
|
params: params,
|
984
987
|
config: config)
|
985
988
|
context[:gem_name] = 'aws-sdk-core'
|
986
|
-
context[:gem_version] = '3.
|
989
|
+
context[:gem_version] = '3.198.0'
|
987
990
|
Seahorse::Client::Request.new(handlers, context)
|
988
991
|
end
|
989
992
|
|
data/lib/aws-sdk-ssooidc.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -91,6 +91,11 @@ module Aws::STS
|
|
91
91
|
|
92
92
|
# @overload initialize(options)
|
93
93
|
# @param [Hash] options
|
94
|
+
#
|
95
|
+
# @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
|
96
|
+
# A list of plugins to apply to the client. Each plugin is either a
|
97
|
+
# class name or an instance of a plugin class.
|
98
|
+
#
|
94
99
|
# @option options [required, Aws::CredentialProvider] :credentials
|
95
100
|
# Your AWS credentials. This can be an instance of any one of the
|
96
101
|
# following classes:
|
@@ -211,7 +216,6 @@ module Aws::STS
|
|
211
216
|
# 'https://example.com'
|
212
217
|
# 'http://example.com:123'
|
213
218
|
#
|
214
|
-
#
|
215
219
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
216
220
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
217
221
|
# for endpoint discovery enabled operations. Defaults to 1000.
|
@@ -300,7 +304,6 @@ module Aws::STS
|
|
300
304
|
# throttling. This is a provisional mode that may change behavior
|
301
305
|
# in the future.
|
302
306
|
#
|
303
|
-
#
|
304
307
|
# @option options [String] :sdk_ua_app_id
|
305
308
|
# A unique and opaque application ID that is appended to the
|
306
309
|
# User-Agent header as app/sdk_ua_app_id. It should have a
|
@@ -2377,7 +2380,7 @@ module Aws::STS
|
|
2377
2380
|
params: params,
|
2378
2381
|
config: config)
|
2379
2382
|
context[:gem_name] = 'aws-sdk-core'
|
2380
|
-
context[:gem_version] = '3.
|
2383
|
+
context[:gem_version] = '3.198.0'
|
2381
2384
|
Seahorse::Client::Request.new(handlers, context)
|
2382
2385
|
end
|
2383
2386
|
|
data/lib/aws-sdk-sts.rb
CHANGED
data/lib/seahorse/client/base.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'thread'
|
4
|
-
|
5
3
|
module Seahorse
|
6
4
|
module Client
|
7
5
|
class Base
|
@@ -60,6 +58,7 @@ module Seahorse
|
|
60
58
|
def build_config(plugins, options)
|
61
59
|
config = Configuration.new
|
62
60
|
config.add_option(:api)
|
61
|
+
config.add_option(:plugins)
|
63
62
|
plugins.each do |plugin|
|
64
63
|
plugin.add_options(config) if plugin.respond_to?(:add_options)
|
65
64
|
end
|
@@ -96,9 +95,9 @@ module Seahorse
|
|
96
95
|
class << self
|
97
96
|
|
98
97
|
def new(options = {})
|
99
|
-
plugins = build_plugins
|
100
98
|
options = options.dup
|
101
|
-
|
99
|
+
plugins = build_plugins(self.plugins + options.fetch(:plugins, []))
|
100
|
+
plugins = before_initialize(plugins, options)
|
102
101
|
client = allocate
|
103
102
|
client.send(:initialize, plugins, options)
|
104
103
|
client
|
@@ -209,17 +208,28 @@ module Seahorse
|
|
209
208
|
include(operations_module)
|
210
209
|
end
|
211
210
|
|
212
|
-
def build_plugins
|
211
|
+
def build_plugins(plugins)
|
213
212
|
plugins.map { |plugin| plugin.is_a?(Class) ? plugin.new : plugin }
|
214
213
|
end
|
215
214
|
|
216
215
|
def before_initialize(plugins, options)
|
217
|
-
|
218
|
-
|
216
|
+
queue = Queue.new
|
217
|
+
plugins.each { |plugin| queue.push(plugin) }
|
218
|
+
until queue.empty?
|
219
|
+
plugin = queue.pop
|
220
|
+
next unless plugin.respond_to?(:before_initialize)
|
221
|
+
|
222
|
+
plugins_before = options.fetch(:plugins, [])
|
223
|
+
plugin.before_initialize(self, options)
|
224
|
+
plugins_after = build_plugins(options.fetch(:plugins, []) - plugins_before)
|
225
|
+
# Plugins with before_initialize can add other plugins
|
226
|
+
plugins_after.each { |p| queue.push(p); plugins << p }
|
219
227
|
end
|
228
|
+
plugins
|
220
229
|
end
|
221
230
|
|
222
231
|
def inherited(subclass)
|
232
|
+
super
|
223
233
|
subclass.instance_variable_set('@plugins', PluginList.new(@plugins))
|
224
234
|
end
|
225
235
|
|
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.
|
4
|
+
version: 3.198.0
|
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: 2024-06-
|
11
|
+
date: 2024-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|