aws-sdk-core 3.208.0 → 3.209.1

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: 59f8f6c52562ec022b0f0704a048efffbcd809684d1956d59ae6779ff33a4b63
4
- data.tar.gz: 2831d114b0470f6fd0215e1d6cb9c2faed71becff6a6edea35395160ef2b2838
3
+ metadata.gz: b21a55766ac3b065464e202f9e5e8eaa449fb1b186776cc439f9ef6859c51923
4
+ data.tar.gz: d0602af7e12f340646722e0ca65ebbe1b9950d8b7ac7da1da2bfaf22a6723fbb
5
5
  SHA512:
6
- metadata.gz: 5a3c3c5faf343d53ab298d725ddf43ab2a7b10aeed87f96181b6627cae24222ee4271c6589746d9b9e06d8a84fa549d6a9dd76c74bfce12fc0cbbcb750ebd4f7
7
- data.tar.gz: d6b7abc267d08cbcbe476396fc6537a11911693bee14542a8adbd4cf6dcf7056ab1cc8a3babb6dd7ee999cabd569b4d0aca7f89bb3e13b888f3d59fa57ea78ad
6
+ metadata.gz: dce3b13eced2c29beecdbc6929836c9917cc0d7524033cb76e0ea7ae6cf6f01c87b9f0f07a88a17197cb2989c4addf3a9c303acbdb6cf5fb331ecb328d16feec
7
+ data.tar.gz: ace0cb1e6d8e05083601c36607a3c8d6902a72a36cec481081939626ce8399fa43b603b42d6fb026cddce1ec51ab98f405a02e6fa4eb861aabe23aa658519457
data/CHANGELOG.md CHANGED
@@ -1,6 +1,24 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 3.209.1 (2024-09-25)
5
+ ------------------
6
+
7
+ * Issue - Add all core plugins to autoloads.
8
+
9
+ 3.209.0 (2024-09-24)
10
+ ------------------
11
+
12
+ * Feature - Updated Aws::STS::Client with the latest API changes.
13
+
14
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
15
+
16
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
17
+
18
+ * Issue - Add service identifiers to GlobalConfig's list of identifiers outside of autoload (#3113).
19
+
20
+ * Issue - Ignore invalid ARNs when trying to parse accountId in assume role credentials.
21
+
4
22
  3.208.0 (2024-09-23)
5
23
  ------------------
6
24
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.208.0
1
+ 3.209.1
@@ -62,17 +62,22 @@ module Aws
62
62
  private
63
63
 
64
64
  def refresh
65
- c = @client.assume_role(@assume_role_params)
66
- creds = c.credentials
65
+ resp = @client.assume_role(@assume_role_params)
66
+ creds = resp.credentials
67
67
  @credentials = Credentials.new(
68
68
  creds.access_key_id,
69
69
  creds.secret_access_key,
70
70
  creds.session_token,
71
- account_id: ARNParser.parse(c.assumed_role_user.arn).account_id
71
+ account_id: parse_account_id(resp)
72
72
  )
73
73
  @expiration = creds.expiration
74
74
  end
75
75
 
76
+ def parse_account_id(resp)
77
+ arn = resp.assumed_role_user&.arn
78
+ ARNParser.parse(arn).account_id if ARNParser.arn?(arn)
79
+ end
80
+
76
81
  class << self
77
82
 
78
83
  # @api private
@@ -73,13 +73,13 @@ module Aws
73
73
  # read from token file everytime it refreshes
74
74
  @assume_role_web_identity_params[:web_identity_token] = _token_from_file(@token_file)
75
75
 
76
- c = @client.assume_role_with_web_identity(@assume_role_web_identity_params)
77
- creds = c.credentials
76
+ resp = @client.assume_role_with_web_identity(@assume_role_web_identity_params)
77
+ creds = resp.credentials
78
78
  @credentials = Credentials.new(
79
79
  creds.access_key_id,
80
80
  creds.secret_access_key,
81
81
  creds.session_token,
82
- account_id: ARNParser.parse(c.assumed_role_user.arn).account_id
82
+ account_id: parse_account_id(resp)
83
83
  )
84
84
  @expiration = creds.expiration
85
85
  end
@@ -95,6 +95,11 @@ module Aws
95
95
  Base64.strict_encode64(SecureRandom.uuid)
96
96
  end
97
97
 
98
+ def parse_account_id(resp)
99
+ arn = resp.assumed_role_user&.arn
100
+ ARNParser.parse(arn).account_id if ARNParser.arn?(arn)
101
+ end
102
+
98
103
  class << self
99
104
 
100
105
  # @api private
@@ -3,8 +3,37 @@
3
3
  module Aws
4
4
  # setup autoloading for Plugins
5
5
  # Most plugins are required explicitly from service clients
6
+ # but users may reference them outside of client usage.
6
7
  module Plugins
8
+ autoload :ApiKey, 'aws-sdk-core/plugins/api_key'
7
9
  autoload :BearerAuthorization, 'aws-sdk-core/plugins/bearer_authorization'
10
+ autoload :ChecksumAlgorithm, 'aws-sdk-core/plugins/checksum_algorithm'
11
+ autoload :ClientMetricsPlugin, 'aws-sdk-core/plugins/client_metrics_plugin'
12
+ autoload :ClientMetricsSendPlugin, 'aws-sdk-core/plugins/client_metrics_send_plugin'
13
+ autoload :CredentialsConfiguration, 'aws-sdk-core/plugins/credentials_configuration'
14
+ autoload :DefaultsMode, 'aws-sdk-core/plugins/defaults_mode'
15
+ autoload :EndpointDiscovery, 'aws-sdk-core/plugins/endpoint_discovery'
16
+ autoload :EndpointPattern, 'aws-sdk-core/plugins/endpoint_pattern'
17
+ autoload :EventStreamConfiguration, 'aws-sdk-core/plugins/event_stream_configuration'
18
+ autoload :GlobalConfiguration, 'aws-sdk-core/plugins/global_configuration'
19
+ autoload :HelpfulSocketErrors, 'aws-sdk-core/plugins/helpful_socket_errors'
20
+ autoload :HttpChecksum, 'aws-sdk-core/plugins/http_checksum'
21
+ autoload :IdempotencyToken, 'aws-sdk-core/plugins/idempotency_token'
22
+ autoload :InvocationId, 'aws-sdk-core/plugins/invocation_id'
23
+ autoload :JsonvalueConverter, 'aws-sdk-core/plugins/jsonvalue_converter'
24
+ autoload :Logging, 'aws-sdk-core/plugins/logging'
25
+ autoload :ParamConverter, 'aws-sdk-core/plugins/param_converter'
26
+ autoload :ParamValidator, 'aws-sdk-core/plugins/param_validator'
27
+ autoload :RecursionDetection, 'aws-sdk-core/plugins/recursion_detection'
28
+ autoload :RegionalEndpoint, 'aws-sdk-core/plugins/regional_endpoint'
29
+ autoload :RequestCompression, 'aws-sdk-core/plugins/request_compression'
30
+ autoload :ResponsePaging, 'aws-sdk-core/plugins/response_paging'
31
+ autoload :RetryErrors, 'aws-sdk-core/plugins/retry_errors'
32
+ autoload :Sign, 'aws-sdk-core/plugins/sign'
8
33
  autoload :SignatureV4, 'aws-sdk-core/plugins/signature_v4'
34
+ autoload :StubResponses, 'aws-sdk-core/plugins/stub_responses'
35
+ autoload :Telemetry, 'aws-sdk-core/plugins/telemetry'
36
+ autoload :TransferEncoding, 'aws-sdk-core/plugins/transfer_encoding'
37
+ autoload :UserAgent, 'aws-sdk-core/plugins/user_agent'
9
38
  end
10
39
  end
data/lib/aws-sdk-core.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require 'aws-partitions'
4
4
  require 'seahorse'
5
5
  require 'jmespath'
6
+ require 'aws-sigv4'
6
7
 
7
8
  require_relative 'aws-sdk-core/deprecations'
8
9
  # defaults
@@ -36,8 +36,6 @@ require 'aws-sdk-core/plugins/telemetry.rb'
36
36
  require 'aws-sdk-core/plugins/sign.rb'
37
37
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
38
38
 
39
- Aws::Plugins::GlobalConfiguration.add_identifier(:sso)
40
-
41
39
  module Aws::SSO
42
40
  # An API client for SSO. To construct a client, you need to configure a `:region` and `:credentials`.
43
41
  #
@@ -671,7 +669,7 @@ module Aws::SSO
671
669
  tracer: tracer
672
670
  )
673
671
  context[:gem_name] = 'aws-sdk-core'
674
- context[:gem_version] = '3.208.0'
672
+ context[:gem_version] = '3.209.1'
675
673
  Seahorse::Client::Request.new(handlers, context)
676
674
  end
677
675
 
data/lib/aws-sdk-sso.rb CHANGED
@@ -13,6 +13,8 @@ unless Module.const_defined?(:Aws)
13
13
  require 'aws-sigv4'
14
14
  end
15
15
 
16
+ Aws::Plugins::GlobalConfiguration.add_identifier(:sso)
17
+
16
18
  # This module provides support for AWS Single Sign-On. This module is available in the
17
19
  # `aws-sdk-core` gem.
18
20
  #
@@ -54,7 +56,7 @@ module Aws::SSO
54
56
  autoload :EndpointProvider, 'aws-sdk-sso/endpoint_provider'
55
57
  autoload :Endpoints, 'aws-sdk-sso/endpoints'
56
58
 
57
- GEM_VERSION = '3.208.0'
59
+ GEM_VERSION = '3.209.1'
58
60
 
59
61
  end
60
62
 
@@ -36,8 +36,6 @@ require 'aws-sdk-core/plugins/telemetry.rb'
36
36
  require 'aws-sdk-core/plugins/sign.rb'
37
37
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
38
38
 
39
- Aws::Plugins::GlobalConfiguration.add_identifier(:ssooidc)
40
-
41
39
  module Aws::SSOOIDC
42
40
  # An API client for SSOOIDC. To construct a client, you need to configure a `:region` and `:credentials`.
43
41
  #
@@ -1024,7 +1022,7 @@ module Aws::SSOOIDC
1024
1022
  tracer: tracer
1025
1023
  )
1026
1024
  context[:gem_name] = 'aws-sdk-core'
1027
- context[:gem_version] = '3.208.0'
1025
+ context[:gem_version] = '3.209.1'
1028
1026
  Seahorse::Client::Request.new(handlers, context)
1029
1027
  end
1030
1028
 
@@ -13,6 +13,8 @@ unless Module.const_defined?(:Aws)
13
13
  require 'aws-sigv4'
14
14
  end
15
15
 
16
+ Aws::Plugins::GlobalConfiguration.add_identifier(:ssooidc)
17
+
16
18
  # This module provides support for AWS SSO OIDC. This module is available in the
17
19
  # `aws-sdk-core` gem.
18
20
  #
@@ -54,7 +56,7 @@ module Aws::SSOOIDC
54
56
  autoload :EndpointProvider, 'aws-sdk-ssooidc/endpoint_provider'
55
57
  autoload :Endpoints, 'aws-sdk-ssooidc/endpoints'
56
58
 
57
- GEM_VERSION = '3.208.0'
59
+ GEM_VERSION = '3.209.1'
58
60
 
59
61
  end
60
62
 
@@ -37,8 +37,6 @@ require 'aws-sdk-core/plugins/sign.rb'
37
37
  require 'aws-sdk-core/plugins/protocols/query.rb'
38
38
  require 'aws-sdk-sts/plugins/sts_regional_endpoints.rb'
39
39
 
40
- Aws::Plugins::GlobalConfiguration.add_identifier(:sts)
41
-
42
40
  module Aws::STS
43
41
  # An API client for STS. To construct a client, you need to configure a `:region` and `:credentials`.
44
42
  #
@@ -2418,7 +2416,7 @@ module Aws::STS
2418
2416
  tracer: tracer
2419
2417
  )
2420
2418
  context[:gem_name] = 'aws-sdk-core'
2421
- context[:gem_version] = '3.208.0'
2419
+ context[:gem_version] = '3.209.1'
2422
2420
  Seahorse::Client::Request.new(handlers, context)
2423
2421
  end
2424
2422
 
data/lib/aws-sdk-sts.rb CHANGED
@@ -13,6 +13,8 @@ unless Module.const_defined?(:Aws)
13
13
  require 'aws-sigv4'
14
14
  end
15
15
 
16
+ Aws::Plugins::GlobalConfiguration.add_identifier(:sts)
17
+
16
18
  # This module provides support for AWS Security Token Service. This module is available in the
17
19
  # `aws-sdk-core` gem.
18
20
  #
@@ -54,7 +56,7 @@ module Aws::STS
54
56
  autoload :EndpointProvider, 'aws-sdk-sts/endpoint_provider'
55
57
  autoload :Endpoints, 'aws-sdk-sts/endpoints'
56
58
 
57
- GEM_VERSION = '3.208.0'
59
+ GEM_VERSION = '3.209.1'
58
60
 
59
61
  end
60
62
 
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.208.0
4
+ version: 3.209.1
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-09-23 00:00:00.000000000 Z
11
+ date: 2024-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath