aws-sdk-core 3.224.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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +57 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-core/credential_provider_chain.rb +1 -1
  5. data/lib/aws-sdk-core/endpoints/matchers.rb +2 -1
  6. data/lib/aws-sdk-core/endpoints.rb +37 -13
  7. data/lib/aws-sdk-core/error_handler.rb +5 -0
  8. data/lib/aws-sdk-core/event_emitter.rb +1 -1
  9. data/lib/aws-sdk-core/instance_profile_credentials.rb +146 -157
  10. data/lib/aws-sdk-core/json/error_handler.rb +14 -4
  11. data/lib/aws-sdk-core/plugins/credentials_configuration.rb +85 -70
  12. data/lib/aws-sdk-core/plugins/sign.rb +23 -28
  13. data/lib/aws-sdk-core/plugins/stub_responses.rb +6 -0
  14. data/lib/aws-sdk-core/plugins/user_agent.rb +2 -1
  15. data/lib/aws-sdk-core/rpc_v2/error_handler.rb +26 -16
  16. data/lib/aws-sdk-core/rpc_v2/parser.rb +8 -0
  17. data/lib/aws-sdk-core/shared_config.rb +1 -0
  18. data/lib/aws-sdk-core/static_token_provider.rb +1 -2
  19. data/lib/aws-sdk-core/token.rb +3 -3
  20. data/lib/aws-sdk-core/token_provider.rb +4 -0
  21. data/lib/aws-sdk-core/token_provider_chain.rb +2 -6
  22. data/lib/aws-sdk-core/util.rb +2 -1
  23. data/lib/aws-sdk-core/xml/error_handler.rb +3 -1
  24. data/lib/aws-sdk-sso/client.rb +19 -9
  25. data/lib/aws-sdk-sso.rb +1 -1
  26. data/lib/aws-sdk-ssooidc/client.rb +19 -9
  27. data/lib/aws-sdk-ssooidc.rb +1 -1
  28. data/lib/aws-sdk-sts/client.rb +19 -9
  29. data/lib/aws-sdk-sts/client_api.rb +2 -0
  30. data/lib/aws-sdk-sts/errors.rb +0 -1
  31. data/lib/aws-sdk-sts/presigner.rb +2 -6
  32. data/lib/aws-sdk-sts.rb +1 -1
  33. data/lib/seahorse/client/net_http/connection_pool.rb +2 -1
  34. data/lib/seahorse/client/request_context.rb +2 -2
  35. data/lib/seahorse/util.rb +2 -1
  36. metadata +16 -2
@@ -95,7 +95,7 @@ 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 an instance of any one of the
98
+ # Your AWS credentials used for authentication. This can be an instance of any one of the
99
99
  # following classes:
100
100
  #
101
101
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
@@ -128,18 +128,23 @@ module Aws::SSOOIDC
128
128
  # locations will be searched for credentials:
129
129
  #
130
130
  # * `Aws.config[:credentials]`
131
+ #
131
132
  # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
132
133
  # `:account_id` options.
133
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
134
- # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
134
+ #
135
+ # * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
136
+ # `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
137
+ #
135
138
  # * `~/.aws/credentials`
139
+ #
136
140
  # * `~/.aws/config`
141
+ #
137
142
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
138
143
  # are very aggressive. Construct and pass an instance of
139
144
  # `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
140
145
  # enable retries and extended timeouts. Instance profile credential
141
- # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
142
- # to true.
146
+ # fetching can be disabled by setting `ENV['AWS_EC2_METADATA_DISABLED']`
147
+ # to `true`.
143
148
  #
144
149
  # @option options [required, String] :region
145
150
  # The AWS region to connect to. The configured `:region` is
@@ -167,6 +172,11 @@ module Aws::SSOOIDC
167
172
  # When false, the request will raise a `RetryCapacityNotAvailableError` and will
168
173
  # not retry instead of sleeping.
169
174
  #
175
+ # @option options [Array<String>] :auth_scheme_preference
176
+ # A list of preferred authentication schemes to use when making a request. Supported values are:
177
+ # `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
178
+ # shared config as `auth_scheme_preference`, the value should be a comma-separated list.
179
+ #
170
180
  # @option options [Boolean] :client_side_monitoring (false)
171
181
  # When `true`, client-side metrics will be collected for all API requests from
172
182
  # this client.
@@ -253,8 +263,8 @@ module Aws::SSOOIDC
253
263
  # 4 times. Used in `standard` and `adaptive` retry modes.
254
264
  #
255
265
  # @option options [String] :profile ("default")
256
- # Used when loading credentials from the shared credentials file
257
- # at HOME/.aws/credentials. When not specified, 'default' is used.
266
+ # Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
267
+ # When not specified, 'default' is used.
258
268
  #
259
269
  # @option options [String] :request_checksum_calculation ("when_supported")
260
270
  # Determines when a checksum will be calculated for request payloads. Values are:
@@ -367,7 +377,7 @@ module Aws::SSOOIDC
367
377
  # `Aws::Telemetry::OTelProvider` for telemetry provider.
368
378
  #
369
379
  # @option options [Aws::TokenProvider] :token_provider
370
- # A Bearer Token Provider. This can be an instance of any one of the
380
+ # Your Bearer token used for authentication. This can be an instance of any one of the
371
381
  # following classes:
372
382
  #
373
383
  # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
@@ -1061,7 +1071,7 @@ module Aws::SSOOIDC
1061
1071
  tracer: tracer
1062
1072
  )
1063
1073
  context[:gem_name] = 'aws-sdk-core'
1064
- context[:gem_version] = '3.224.1'
1074
+ context[:gem_version] = '3.228.0'
1065
1075
  Seahorse::Client::Request.new(handlers, context)
1066
1076
  end
1067
1077
 
@@ -56,7 +56,7 @@ module Aws::SSOOIDC
56
56
  autoload :EndpointProvider, 'aws-sdk-ssooidc/endpoint_provider'
57
57
  autoload :Endpoints, 'aws-sdk-ssooidc/endpoints'
58
58
 
59
- GEM_VERSION = '3.224.1'
59
+ GEM_VERSION = '3.228.0'
60
60
 
61
61
  end
62
62
 
@@ -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
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
136
- # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
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
- # at HOME/.aws/credentials. When not specified, 'default' is used.
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
- # A Bearer Token Provider. This can be an instance of any one of the
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.224.1'
2607
+ context[:gem_version] = '3.228.0'
2598
2608
  Seahorse::Client::Request.new(handlers, context)
2599
2609
  end
2600
2610
 
@@ -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)
@@ -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
@@ -56,7 +56,7 @@ module Aws::STS
56
56
  autoload :EndpointProvider, 'aws-sdk-sts/endpoint_provider'
57
57
  autoload :Endpoints, 'aws-sdk-sts/endpoints'
58
58
 
59
- GEM_VERSION = '3.224.1'
59
+ GEM_VERSION = '3.228.0'
60
60
 
61
61
  end
62
62
 
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'cgi'
3
+ require "cgi/escape"
4
+ require "cgi/util" if RUBY_VERSION < "3.5"
4
5
  require 'net/http'
5
6
  require 'net/https'
6
7
  require 'delegate'
@@ -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
- # @options options [Hash] :metadata ({})
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
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'cgi'
3
+ require "cgi/escape"
4
+ require "cgi/util" if RUBY_VERSION < "3.5"
4
5
 
5
6
  module Seahorse
6
7
  # @api private
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.224.1
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
@@ -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.5'
439
+ version: '2.7'
426
440
  required_rubygems_version: !ruby/object:Gem::Requirement
427
441
  requirements:
428
442
  - - ">="