aws-sdk-core 3.224.1 → 3.232.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 +85 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/credential_provider_chain.rb +1 -1
- data/lib/aws-sdk-core/endpoints/matchers.rb +2 -1
- data/lib/aws-sdk-core/endpoints.rb +37 -13
- data/lib/aws-sdk-core/error_handler.rb +5 -0
- data/lib/aws-sdk-core/event_emitter.rb +1 -1
- data/lib/aws-sdk-core/instance_profile_credentials.rb +146 -157
- data/lib/aws-sdk-core/json/error_handler.rb +14 -4
- data/lib/aws-sdk-core/plugins/credentials_configuration.rb +75 -59
- data/lib/aws-sdk-core/plugins/sign.rb +23 -28
- data/lib/aws-sdk-core/plugins/stub_responses.rb +6 -0
- data/lib/aws-sdk-core/plugins/user_agent.rb +2 -1
- data/lib/aws-sdk-core/rpc_v2/error_handler.rb +26 -16
- data/lib/aws-sdk-core/rpc_v2/parser.rb +8 -0
- data/lib/aws-sdk-core/shared_config.rb +10 -0
- data/lib/aws-sdk-core/static_token_provider.rb +1 -2
- data/lib/aws-sdk-core/token.rb +3 -3
- data/lib/aws-sdk-core/token_provider.rb +4 -0
- data/lib/aws-sdk-core/token_provider_chain.rb +2 -6
- data/lib/aws-sdk-core/util.rb +2 -1
- data/lib/aws-sdk-core/xml/error_handler.rb +3 -1
- data/lib/aws-sdk-sso/client.rb +24 -17
- data/lib/aws-sdk-sso/endpoint_provider.rb +2 -2
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +24 -17
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +24 -17
- data/lib/aws-sdk-sts/client_api.rb +2 -0
- data/lib/aws-sdk-sts/errors.rb +0 -1
- data/lib/aws-sdk-sts/presigner.rb +2 -6
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/seahorse/client/net_http/connection_pool.rb +2 -1
- data/lib/seahorse/client/request_context.rb +2 -2
- data/lib/seahorse/util.rb +2 -1
- metadata +16 -2
data/lib/aws-sdk-sso.rb
CHANGED
@@ -95,8 +95,8 @@ module Aws::SSOOIDC
|
|
95
95
|
# class name or an instance of a plugin class.
|
96
96
|
#
|
97
97
|
# @option options [required, Aws::CredentialProvider] :credentials
|
98
|
-
# Your AWS credentials. This can be
|
99
|
-
# following classes:
|
98
|
+
# Your AWS credentials used for authentication. This can be any class that includes and implements
|
99
|
+
# `Aws::CredentialProvider`, or instance of any one of the following classes:
|
100
100
|
#
|
101
101
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
102
102
|
# credentials.
|
@@ -124,22 +124,24 @@ module Aws::SSOOIDC
|
|
124
124
|
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
125
125
|
# from the Cognito Identity service.
|
126
126
|
#
|
127
|
-
# When `:credentials` are not configured directly, the following
|
128
|
-
# locations will be searched for credentials:
|
127
|
+
# When `:credentials` are not configured directly, the following locations will be searched for credentials:
|
129
128
|
#
|
130
129
|
# * `Aws.config[:credentials]`
|
130
|
+
#
|
131
131
|
# * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
|
132
132
|
# `:account_id` options.
|
133
|
-
#
|
134
|
-
#
|
133
|
+
#
|
134
|
+
# * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
|
135
|
+
# `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
|
136
|
+
#
|
135
137
|
# * `~/.aws/credentials`
|
138
|
+
#
|
136
139
|
# * `~/.aws/config`
|
137
|
-
#
|
138
|
-
#
|
139
|
-
# `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
140
|
-
# enable retries and extended timeouts. Instance profile credential
|
141
|
-
#
|
142
|
-
# to true.
|
140
|
+
#
|
141
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive.
|
142
|
+
# Construct and pass an instance of `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
143
|
+
# enable retries and extended timeouts. Instance profile credential fetching can be disabled by
|
144
|
+
# setting `ENV['AWS_EC2_METADATA_DISABLED']` to `true`.
|
143
145
|
#
|
144
146
|
# @option options [required, String] :region
|
145
147
|
# The AWS region to connect to. The configured `:region` is
|
@@ -167,6 +169,11 @@ module Aws::SSOOIDC
|
|
167
169
|
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
168
170
|
# not retry instead of sleeping.
|
169
171
|
#
|
172
|
+
# @option options [Array<String>] :auth_scheme_preference
|
173
|
+
# A list of preferred authentication schemes to use when making a request. Supported values are:
|
174
|
+
# `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
|
175
|
+
# shared config as `auth_scheme_preference`, the value should be a comma-separated list.
|
176
|
+
#
|
170
177
|
# @option options [Boolean] :client_side_monitoring (false)
|
171
178
|
# When `true`, client-side metrics will be collected for all API requests from
|
172
179
|
# this client.
|
@@ -253,8 +260,8 @@ module Aws::SSOOIDC
|
|
253
260
|
# 4 times. Used in `standard` and `adaptive` retry modes.
|
254
261
|
#
|
255
262
|
# @option options [String] :profile ("default")
|
256
|
-
# Used when loading credentials from the shared credentials file
|
257
|
-
#
|
263
|
+
# Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
|
264
|
+
# When not specified, 'default' is used.
|
258
265
|
#
|
259
266
|
# @option options [String] :request_checksum_calculation ("when_supported")
|
260
267
|
# Determines when a checksum will be calculated for request payloads. Values are:
|
@@ -367,8 +374,8 @@ module Aws::SSOOIDC
|
|
367
374
|
# `Aws::Telemetry::OTelProvider` for telemetry provider.
|
368
375
|
#
|
369
376
|
# @option options [Aws::TokenProvider] :token_provider
|
370
|
-
#
|
371
|
-
# following classes:
|
377
|
+
# Your Bearer token used for authentication. This can be any class that includes and implements
|
378
|
+
# `Aws::TokenProvider`, or instance of any one of the following classes:
|
372
379
|
#
|
373
380
|
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
374
381
|
# tokens.
|
@@ -1061,7 +1068,7 @@ module Aws::SSOOIDC
|
|
1061
1068
|
tracer: tracer
|
1062
1069
|
)
|
1063
1070
|
context[:gem_name] = 'aws-sdk-core'
|
1064
|
-
context[:gem_version] = '3.
|
1071
|
+
context[:gem_version] = '3.232.0'
|
1065
1072
|
Seahorse::Client::Request.new(handlers, context)
|
1066
1073
|
end
|
1067
1074
|
|
data/lib/aws-sdk-ssooidc.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -97,8 +97,8 @@ module Aws::STS
|
|
97
97
|
# class name or an instance of a plugin class.
|
98
98
|
#
|
99
99
|
# @option options [required, Aws::CredentialProvider] :credentials
|
100
|
-
# Your AWS credentials. This can be
|
101
|
-
# following classes:
|
100
|
+
# Your AWS credentials used for authentication. This can be any class that includes and implements
|
101
|
+
# `Aws::CredentialProvider`, or instance of any one of the following classes:
|
102
102
|
#
|
103
103
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
104
104
|
# credentials.
|
@@ -126,22 +126,24 @@ module Aws::STS
|
|
126
126
|
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
127
127
|
# from the Cognito Identity service.
|
128
128
|
#
|
129
|
-
# When `:credentials` are not configured directly, the following
|
130
|
-
# locations will be searched for credentials:
|
129
|
+
# When `:credentials` are not configured directly, the following locations will be searched for credentials:
|
131
130
|
#
|
132
131
|
# * `Aws.config[:credentials]`
|
132
|
+
#
|
133
133
|
# * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
|
134
134
|
# `:account_id` options.
|
135
|
-
#
|
136
|
-
#
|
135
|
+
#
|
136
|
+
# * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
|
137
|
+
# `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
|
138
|
+
#
|
137
139
|
# * `~/.aws/credentials`
|
140
|
+
#
|
138
141
|
# * `~/.aws/config`
|
139
|
-
#
|
140
|
-
#
|
141
|
-
# `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
142
|
-
# enable retries and extended timeouts. Instance profile credential
|
143
|
-
#
|
144
|
-
# to true.
|
142
|
+
#
|
143
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive.
|
144
|
+
# Construct and pass an instance of `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
145
|
+
# enable retries and extended timeouts. Instance profile credential fetching can be disabled by
|
146
|
+
# setting `ENV['AWS_EC2_METADATA_DISABLED']` to `true`.
|
145
147
|
#
|
146
148
|
# @option options [required, String] :region
|
147
149
|
# The AWS region to connect to. The configured `:region` is
|
@@ -169,6 +171,11 @@ module Aws::STS
|
|
169
171
|
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
170
172
|
# not retry instead of sleeping.
|
171
173
|
#
|
174
|
+
# @option options [Array<String>] :auth_scheme_preference
|
175
|
+
# A list of preferred authentication schemes to use when making a request. Supported values are:
|
176
|
+
# `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
|
177
|
+
# shared config as `auth_scheme_preference`, the value should be a comma-separated list.
|
178
|
+
#
|
172
179
|
# @option options [Boolean] :client_side_monitoring (false)
|
173
180
|
# When `true`, client-side metrics will be collected for all API requests from
|
174
181
|
# this client.
|
@@ -255,8 +262,8 @@ module Aws::STS
|
|
255
262
|
# 4 times. Used in `standard` and `adaptive` retry modes.
|
256
263
|
#
|
257
264
|
# @option options [String] :profile ("default")
|
258
|
-
# Used when loading credentials from the shared credentials file
|
259
|
-
#
|
265
|
+
# Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
|
266
|
+
# When not specified, 'default' is used.
|
260
267
|
#
|
261
268
|
# @option options [String] :request_checksum_calculation ("when_supported")
|
262
269
|
# Determines when a checksum will be calculated for request payloads. Values are:
|
@@ -374,8 +381,8 @@ module Aws::STS
|
|
374
381
|
# `Aws::Telemetry::OTelProvider` for telemetry provider.
|
375
382
|
#
|
376
383
|
# @option options [Aws::TokenProvider] :token_provider
|
377
|
-
#
|
378
|
-
# following classes:
|
384
|
+
# Your Bearer token used for authentication. This can be any class that includes and implements
|
385
|
+
# `Aws::TokenProvider`, or instance of any one of the following classes:
|
379
386
|
#
|
380
387
|
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
381
388
|
# tokens.
|
@@ -2594,7 +2601,7 @@ module Aws::STS
|
|
2594
2601
|
tracer: tracer
|
2595
2602
|
)
|
2596
2603
|
context[:gem_name] = 'aws-sdk-core'
|
2597
|
-
context[:gem_version] = '3.
|
2604
|
+
context[:gem_version] = '3.232.0'
|
2598
2605
|
Seahorse::Client::Request.new(handlers, context)
|
2599
2606
|
end
|
2600
2607
|
|
@@ -294,6 +294,7 @@ module Aws::STS
|
|
294
294
|
o.name = "AssumeRoleWithSAML"
|
295
295
|
o.http_method = "POST"
|
296
296
|
o.http_request_uri = "/"
|
297
|
+
o['authtype'] = "none"
|
297
298
|
o['auth'] = ["smithy.api#noAuth"]
|
298
299
|
o.input = Shapes::ShapeRef.new(shape: AssumeRoleWithSAMLRequest)
|
299
300
|
o.output = Shapes::ShapeRef.new(shape: AssumeRoleWithSAMLResponse)
|
@@ -309,6 +310,7 @@ module Aws::STS
|
|
309
310
|
o.name = "AssumeRoleWithWebIdentity"
|
310
311
|
o.http_method = "POST"
|
311
312
|
o.http_request_uri = "/"
|
313
|
+
o['authtype'] = "none"
|
312
314
|
o['auth'] = ["smithy.api#noAuth"]
|
313
315
|
o.input = Shapes::ShapeRef.new(shape: AssumeRoleWithWebIdentityRequest)
|
314
316
|
o.output = Shapes::ShapeRef.new(shape: AssumeRoleWithWebIdentityResponse)
|
data/lib/aws-sdk-sts/errors.rb
CHANGED
@@ -43,7 +43,6 @@ module Aws::STS
|
|
43
43
|
#
|
44
44
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
45
45
|
# if they are not defined above.
|
46
|
-
# Some existing error classes may use a different class name than the one documented.
|
47
46
|
module Errors
|
48
47
|
|
49
48
|
extend Aws::Errors::DynamicErrors
|
@@ -53,13 +53,9 @@ module Aws
|
|
53
53
|
use_fips: context.config.use_fips_endpoint,
|
54
54
|
use_global_endpoint: context.config.sts_regional_endpoints == 'legacy'
|
55
55
|
)
|
56
|
-
endpoint = context.config.endpoint_provider
|
57
|
-
.resolve_endpoint(endpoint_params)
|
56
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(endpoint_params)
|
58
57
|
auth_scheme = Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
59
|
-
|
60
|
-
signer = Aws::Plugins::Sign.signer_for(
|
61
|
-
auth_scheme, context.config
|
62
|
-
)
|
58
|
+
signer = Aws::Plugins::Sign.signer_for(auth_scheme, context.config)
|
63
59
|
|
64
60
|
signer.presign_url(
|
65
61
|
http_method: 'GET',
|
data/lib/aws-sdk-sts.rb
CHANGED
@@ -5,7 +5,7 @@ require 'stringio'
|
|
5
5
|
module Seahorse
|
6
6
|
module Client
|
7
7
|
class RequestContext
|
8
|
-
|
8
|
+
# @param [Hash] options
|
9
9
|
# @option options [required,Symbol] :operation_name (nil)
|
10
10
|
# @option options [required,Model::Operation] :operation (nil)
|
11
11
|
# @option options [Model::Authorizer] :authorizer (nil)
|
@@ -16,7 +16,7 @@ module Seahorse
|
|
16
16
|
# @option options [Http::Response] :http_response (Http::Response.new)
|
17
17
|
# @option options [Integer] :retries (0)
|
18
18
|
# @option options [Aws::Telemetry::TracerBase] :tracer (Aws::Telemetry::NoOpTracer.new)
|
19
|
-
# @
|
19
|
+
# @option options [Hash] :metadata ({})
|
20
20
|
def initialize(options = {})
|
21
21
|
@operation_name = options[:operation_name]
|
22
22
|
@operation = options[:operation]
|
data/lib/seahorse/util.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.232.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
@@ -77,6 +77,20 @@ dependencies:
|
|
77
77
|
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: bigdecimal
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
type: :runtime
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
80
94
|
- !ruby/object:Gem::Dependency
|
81
95
|
name: jmespath
|
82
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -422,7 +436,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
422
436
|
requirements:
|
423
437
|
- - ">="
|
424
438
|
- !ruby/object:Gem::Version
|
425
|
-
version: '2.
|
439
|
+
version: '2.7'
|
426
440
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
427
441
|
requirements:
|
428
442
|
- - ">="
|