aws-sdk-core 3.241.4 → 3.242.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 446881a7694ec32ddd9779796abb691278749b55b21199789ee4773da295d5ec
4
- data.tar.gz: d6109a708315a07649dbd2ce6c75d9cb0669e21eea89ec41aa6d9451518488d0
3
+ metadata.gz: 03f274216d8a7ed78fe23dd57164fddf9d1c9b5504164ec6aaccfa4afc78888e
4
+ data.tar.gz: ef07f8ac8edbd3fbaac6dc5e889f5633f465789ad2fb8ea69d804b4c93918579
5
5
  SHA512:
6
- metadata.gz: 0b0db8ef58dbecb5df47d8afde16ca89a742019dcc72d636084d47b2484a108f6bc1454e75a654991ef587e97a1001d0734f9ce6a0f092af0079beba95f3953f
7
- data.tar.gz: e8fc665636d2c45d1e48428214b4f4583f53928802c95b16c29c446babe3f8ecb45a0388bde34ae6109fac7505479cadc4a39fea231c2553f2768ca3959a3900
6
+ metadata.gz: 93f5d176b80e65f896f033d40bfebf7c5d8f34657abaa2cb7927e9e03369545bde0399f139eccb01998f69ab86d93bf1eb718eb3b4a308f4337ccce536577f28
7
+ data.tar.gz: 972197c73d71aecaaa2f1bf57003a4d3c046c22b435cff088fa8413f6db5eef6368cfe0a5b13195980d82414c574a4e2b31c6f381439fde1872718f913cb484c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 3.242.0 (2026-02-02)
5
+ ------------------
6
+
7
+ * Feature - Include HTTP status code and body in errors whehn retrieving ECS credentials and Instance Profile credentials.
8
+
4
9
  3.241.4 (2026-01-16)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.241.4
1
+ 3.242.0
@@ -15,7 +15,17 @@ module Aws
15
15
  include RefreshingCredentials
16
16
 
17
17
  # @api private
18
- class Non200Response < RuntimeError; end
18
+ class Non200Response < RuntimeError
19
+ attr_reader :status_code, :body
20
+
21
+ def initialize(status_code, body = nil)
22
+ @status_code = status_code
23
+ @body = body
24
+ msg = "HTTP #{status_code}"
25
+ msg += ": #{body}" if body && !body.empty?
26
+ super(msg)
27
+ end
28
+ end
19
29
 
20
30
  # Raised when the token file cannot be read.
21
31
  class TokenFileReadError < RuntimeError; end
@@ -251,7 +261,7 @@ module Aws
251
261
  request = Net::HTTP::Get.new(path)
252
262
  set_authorization_token(request)
253
263
  response = connection.request(request)
254
- raise Non200Response unless response.code.to_i == 200
264
+ raise Non200Response.new(response.code.to_i, response.body) unless response.code.to_i == 200
255
265
 
256
266
  response.body
257
267
  end
@@ -26,7 +26,17 @@ module Aws
26
26
  include RefreshingCredentials
27
27
 
28
28
  # @api private
29
- class Non200Response < RuntimeError; end
29
+ class Non200Response < RuntimeError
30
+ attr_reader :status_code, :body
31
+
32
+ def initialize(status_code, body = nil)
33
+ @status_code = status_code
34
+ @body = body
35
+ msg = "HTTP #{status_code}"
36
+ msg += ": #{body}" if body && !body.empty?
37
+ super(msg)
38
+ end
39
+ end
30
40
 
31
41
  # @api private
32
42
  class TokenRetrivalError < RuntimeError; end
@@ -249,7 +259,7 @@ module Aws
249
259
  # The next retry should fetch it
250
260
  @token = nil
251
261
  @imds_v1_fallback = false
252
- raise Non200Response
262
+ raise Non200Response.new(401, 'Token expired')
253
263
  end
254
264
 
255
265
  def token_set?
@@ -278,7 +288,7 @@ module Aws
278
288
  when 401
279
289
  raise TokenExpiredError
280
290
  else
281
- raise Non200Response
291
+ raise Non200Response.new(response.code.to_i, response.body)
282
292
  end
283
293
  end
284
294
 
@@ -298,7 +308,7 @@ module Aws
298
308
  when 400
299
309
  raise TokenRetrivalError
300
310
  else
301
- raise Non200Response
311
+ raise Non200Response.new(response.code.to_i, response.body)
302
312
  end
303
313
  end
304
314
 
@@ -579,7 +579,7 @@ module Aws::Signin
579
579
  tracer: tracer
580
580
  )
581
581
  context[:gem_name] = 'aws-sdk-core'
582
- context[:gem_version] = '3.241.4'
582
+ context[:gem_version] = '3.242.0'
583
583
  Seahorse::Client::Request.new(handlers, context)
584
584
  end
585
585
 
@@ -56,7 +56,7 @@ module Aws::Signin
56
56
  autoload :EndpointProvider, 'aws-sdk-signin/endpoint_provider'
57
57
  autoload :Endpoints, 'aws-sdk-signin/endpoints'
58
58
 
59
- GEM_VERSION = '3.241.4'
59
+ GEM_VERSION = '3.242.0'
60
60
 
61
61
  end
62
62
 
@@ -698,7 +698,7 @@ module Aws::SSO
698
698
  tracer: tracer
699
699
  )
700
700
  context[:gem_name] = 'aws-sdk-core'
701
- context[:gem_version] = '3.241.4'
701
+ context[:gem_version] = '3.242.0'
702
702
  Seahorse::Client::Request.new(handlers, context)
703
703
  end
704
704
 
data/lib/aws-sdk-sso.rb CHANGED
@@ -56,7 +56,7 @@ module Aws::SSO
56
56
  autoload :EndpointProvider, 'aws-sdk-sso/endpoint_provider'
57
57
  autoload :Endpoints, 'aws-sdk-sso/endpoints'
58
58
 
59
- GEM_VERSION = '3.241.4'
59
+ GEM_VERSION = '3.242.0'
60
60
 
61
61
  end
62
62
 
@@ -1081,7 +1081,7 @@ module Aws::SSOOIDC
1081
1081
  tracer: tracer
1082
1082
  )
1083
1083
  context[:gem_name] = 'aws-sdk-core'
1084
- context[:gem_version] = '3.241.4'
1084
+ context[:gem_version] = '3.242.0'
1085
1085
  Seahorse::Client::Request.new(handlers, context)
1086
1086
  end
1087
1087
 
@@ -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.241.4'
59
+ GEM_VERSION = '3.242.0'
60
60
 
61
61
  end
62
62
 
@@ -2725,7 +2725,7 @@ module Aws::STS
2725
2725
  tracer: tracer
2726
2726
  )
2727
2727
  context[:gem_name] = 'aws-sdk-core'
2728
- context[:gem_version] = '3.241.4'
2728
+ context[:gem_version] = '3.242.0'
2729
2729
  Seahorse::Client::Request.new(handlers, context)
2730
2730
  end
2731
2731
 
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.241.4'
59
+ GEM_VERSION = '3.242.0'
60
60
 
61
61
  end
62
62
 
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.241.4
4
+ version: 3.242.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services