aws-sdk-core 3.226.1 → 3.228.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 +30 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/credential_provider_chain.rb +1 -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/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 +85 -70
- 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/shared_config.rb +1 -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/xml/error_handler.rb +1 -0
- data/lib/aws-sdk-sso/client.rb +19 -9
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +19 -9
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +19 -9
- 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/request_context.rb +2 -2
- metadata +15 -1
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -97,7 +97,7 @@ 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 an instance of any one of the
|
100
|
+
# Your AWS credentials used for authentication. This can be an instance of any one of the
|
101
101
|
# following classes:
|
102
102
|
#
|
103
103
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
@@ -130,18 +130,23 @@ module Aws::STS
|
|
130
130
|
# locations will be searched for credentials:
|
131
131
|
#
|
132
132
|
# * `Aws.config[:credentials]`
|
133
|
+
#
|
133
134
|
# * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
|
134
135
|
# `:account_id` options.
|
135
|
-
#
|
136
|
-
#
|
136
|
+
#
|
137
|
+
# * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
|
138
|
+
# `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
|
139
|
+
#
|
137
140
|
# * `~/.aws/credentials`
|
141
|
+
#
|
138
142
|
# * `~/.aws/config`
|
143
|
+
#
|
139
144
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
140
145
|
# are very aggressive. Construct and pass an instance of
|
141
146
|
# `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
142
147
|
# enable retries and extended timeouts. Instance profile credential
|
143
|
-
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
144
|
-
# to true
|
148
|
+
# fetching can be disabled by setting `ENV['AWS_EC2_METADATA_DISABLED']`
|
149
|
+
# to `true`.
|
145
150
|
#
|
146
151
|
# @option options [required, String] :region
|
147
152
|
# The AWS region to connect to. The configured `:region` is
|
@@ -169,6 +174,11 @@ module Aws::STS
|
|
169
174
|
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
170
175
|
# not retry instead of sleeping.
|
171
176
|
#
|
177
|
+
# @option options [Array<String>] :auth_scheme_preference
|
178
|
+
# A list of preferred authentication schemes to use when making a request. Supported values are:
|
179
|
+
# `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
|
180
|
+
# shared config as `auth_scheme_preference`, the value should be a comma-separated list.
|
181
|
+
#
|
172
182
|
# @option options [Boolean] :client_side_monitoring (false)
|
173
183
|
# When `true`, client-side metrics will be collected for all API requests from
|
174
184
|
# this client.
|
@@ -255,8 +265,8 @@ module Aws::STS
|
|
255
265
|
# 4 times. Used in `standard` and `adaptive` retry modes.
|
256
266
|
#
|
257
267
|
# @option options [String] :profile ("default")
|
258
|
-
# Used when loading credentials from the shared credentials file
|
259
|
-
#
|
268
|
+
# Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
|
269
|
+
# When not specified, 'default' is used.
|
260
270
|
#
|
261
271
|
# @option options [String] :request_checksum_calculation ("when_supported")
|
262
272
|
# Determines when a checksum will be calculated for request payloads. Values are:
|
@@ -374,7 +384,7 @@ module Aws::STS
|
|
374
384
|
# `Aws::Telemetry::OTelProvider` for telemetry provider.
|
375
385
|
#
|
376
386
|
# @option options [Aws::TokenProvider] :token_provider
|
377
|
-
#
|
387
|
+
# Your Bearer token used for authentication. This can be an instance of any one of the
|
378
388
|
# following classes:
|
379
389
|
#
|
380
390
|
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
@@ -2594,7 +2604,7 @@ module Aws::STS
|
|
2594
2604
|
tracer: tracer
|
2595
2605
|
)
|
2596
2606
|
context[:gem_name] = 'aws-sdk-core'
|
2597
|
-
context[:gem_version] = '3.
|
2607
|
+
context[:gem_version] = '3.228.0'
|
2598
2608
|
Seahorse::Client::Request.new(handlers, context)
|
2599
2609
|
end
|
2600
2610
|
|
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]
|
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.228.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
|