aws-sdk-eks 1.82.0 → 1.83.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9b4968db51335c0c88c1ac88526deed1a9850f13561f520eb66f5569f3a81bb
4
- data.tar.gz: 17c49b9504cc4e2d489f0cbc070994ebdf5c6ea591c6c085ca4dd96f64585b0a
3
+ metadata.gz: 7acb8eb05cbb40939efd267379f329fee4facce5d3a92b5a3e1296d43a303b67
4
+ data.tar.gz: 37df9a600243db868cfaf0017a715610b432bab43d9740a745760a781dce4e49
5
5
  SHA512:
6
- metadata.gz: b06168d9390ba63e0d1a2548e19501e1e1a1d14cea873a9409147c4adc543569b9bfb9368b9cf4348577c98aa2630d52ecf677057409a70f651b11f212a44ccb
7
- data.tar.gz: 87a97a8efe3c5682d74e6469ebf933f0d4b55574ec4b9f38ccdd29810e7b3a7ac43188dab0ab69906552b0e9ba74c52174e4c076be2a5752ce7645b708cbcff5
6
+ metadata.gz: 29a49f1d27d6990925c56e62d4254ee01c1c7cabdac186019326e097b08d4aa6e40b69937e21f7527a8431364bdbd0bc08ce550969162b1e3ba625c8d2a4eed2
7
+ data.tar.gz: 57a3274547a62cacd5d463e98285c992eb45f6693cfdaccec2cc970540d073e0f93f74450231a0012a156f58506ee59b87de9269e30c3fac04e0f5f3bfc20391
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.83.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
4
11
  1.82.0 (2022-12-15)
5
12
  ------------------
6
13
 
@@ -420,4 +427,4 @@ Unreleased Changes
420
427
  1.0.0 (2018-06-04)
421
428
  ------------------
422
429
 
423
- * Feature - Initial release of `aws-sdk-eks`.
430
+ * Feature - Initial release of `aws-sdk-eks`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.82.0
1
+ 1.83.0
@@ -3515,7 +3515,7 @@ module Aws::EKS
3515
3515
  params: params,
3516
3516
  config: config)
3517
3517
  context[:gem_name] = 'aws-sdk-eks'
3518
- context[:gem_version] = '1.82.0'
3518
+ context[:gem_version] = '1.83.0'
3519
3519
  Seahorse::Client::Request.new(handlers, context)
3520
3520
  end
3521
3521
 
@@ -9,112 +9,49 @@
9
9
 
10
10
  module Aws::EKS
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://eks-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://fips.eks.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
39
+ return Aws::Endpoints::Endpoint.new(url: "https://eks.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
+ end
41
+ return Aws::Endpoints::Endpoint.new(url: "https://eks-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
44
+ end
45
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
46
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
47
+ return Aws::Endpoints::Endpoint.new(url: "https://eks.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
48
+ end
49
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
50
+ end
51
+ return Aws::Endpoints::Endpoint.new(url: "https://eks.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
52
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
53
+ raise ArgumentError, 'No endpoint could be resolved'
24
54
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
55
  end
28
-
29
- # @api private
30
- R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25zIjpbXSwiZW5k
114
- cG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9la3Mue1JlZ2lvbn0ue1BhcnRpdGlv
115
- blJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMi
116
- Ont9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
117
-
118
- JSON
119
56
  end
120
57
  end
data/lib/aws-sdk-eks.rb CHANGED
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-eks/customizations'
53
53
  # @!group service
54
54
  module Aws::EKS
55
55
 
56
- GEM_VERSION = '1.82.0'
56
+ GEM_VERSION = '1.83.0'
57
57
 
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-eks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.82.0
4
+ version: 1.83.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: 2022-12-15 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core