aws-sdk-eksauth 1.14.0 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-eksauth/client.rb +1 -1
- data/lib/aws-sdk-eksauth/endpoint_parameters.rb +8 -3
- data/lib/aws-sdk-eksauth/endpoints.rb +3 -9
- data/lib/aws-sdk-eksauth/plugins/endpoints.rb +1 -8
- data/lib/aws-sdk-eksauth.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81f931f3f6e4bf4d7006b1e86f0d435d815ab73e7879258ca46d88159e53ae79
|
4
|
+
data.tar.gz: e718f124228f12574986e68d5ee461b8816a3a00a948d6891f29589f3a7f125e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c2dcf0d6a42e24fa7b3e8bc9d4bc2cc152a7aedabf3872c8331d0fee901c9ecb74fa65b6495a258f3748f676e5e6d29ee621f07abb9ec28c3ef8b9fa02c09a9
|
7
|
+
data.tar.gz: bdaa20d9a388efca125f1d5cacaba79a4c06796fd870bc610e23767d7a3a09f58bd6619cae4f1e45a6fdbd90e1762b06ac326412df84592b32dfe8d6758647f0
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.15.0
|
@@ -45,10 +45,15 @@ module Aws::EKSAuth
|
|
45
45
|
self[:region] = options[:region]
|
46
46
|
self[:use_fips] = options[:use_fips]
|
47
47
|
self[:use_fips] = false if self[:use_fips].nil?
|
48
|
-
if self[:use_fips].nil?
|
49
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
50
|
-
end
|
51
48
|
self[:endpoint] = options[:endpoint]
|
52
49
|
end
|
50
|
+
|
51
|
+
def self.create(config, options={})
|
52
|
+
new({
|
53
|
+
region: config.region,
|
54
|
+
use_fips: config.use_fips_endpoint,
|
55
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
56
|
+
}.merge(options))
|
57
|
+
end
|
53
58
|
end
|
54
59
|
end
|
@@ -12,15 +12,9 @@ module Aws::EKSAuth
|
|
12
12
|
# @api private
|
13
13
|
module Endpoints
|
14
14
|
|
15
|
-
class AssumeRoleForPodIdentity
|
16
|
-
def self.build(context)
|
17
|
-
Aws::EKSAuth::EndpointParameters.new(
|
18
|
-
region: context.config.region,
|
19
|
-
use_fips: context.config.use_fips_endpoint,
|
20
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
21
|
-
)
|
22
|
-
end
|
23
|
-
end
|
24
15
|
|
16
|
+
def self.parameters_for_operation(context)
|
17
|
+
Aws::EKSAuth::EndpointParameters.create(context.config)
|
18
|
+
end
|
25
19
|
end
|
26
20
|
end
|
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
27
27
|
class Handler < Seahorse::Client::Handler
|
28
28
|
def call(context)
|
29
29
|
unless context[:discovered_endpoint]
|
30
|
-
params = parameters_for_operation(context)
|
30
|
+
params = Aws::EKSAuth::Endpoints.parameters_for_operation(context)
|
31
31
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
32
|
|
33
33
|
context.http_request.endpoint = endpoint.url
|
@@ -67,13 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
67
67
|
context.http_request.headers[key] = value
|
68
68
|
end
|
69
69
|
end
|
70
|
-
|
71
|
-
def parameters_for_operation(context)
|
72
|
-
case context.operation_name
|
73
|
-
when :assume_role_for_pod_identity
|
74
|
-
Aws::EKSAuth::Endpoints::AssumeRoleForPodIdentity.build(context)
|
75
|
-
end
|
76
|
-
end
|
77
70
|
end
|
78
71
|
|
79
72
|
def add_handlers(handlers, _config)
|
data/lib/aws-sdk-eksauth.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-eksauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.15.0
|
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-
|
11
|
+
date: 2024-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.210.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.210.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|