aws-sdk-batch 1.66.0 → 1.67.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: 29419f565a7733d1d4d135266495d3201f23f93125dd83e2c50522cc9272b90c
4
- data.tar.gz: b783d3c86eef1b36e5a1b0b028c924fc8008d08869a92cbd79651e16eee76bd8
3
+ metadata.gz: dac54b0ce62d71706672bf25cb0ccb51b1df8b336f0f828fedbb41bc40c9faa3
4
+ data.tar.gz: 692b918f87f8aeb5b99947a9fd9d0597b844459504054f1ffb0908957c72963b
5
5
  SHA512:
6
- metadata.gz: bd61d9d233fa2cb3182838882c78cfee6ce686da86b765ee4171ce60363c93f65895e2366f05664dff74fcd2fb5f31436fa1a0a530026e0b84c0dc616f348c5f
7
- data.tar.gz: 6ce69fcf3bea8afceedbe8b7877ff41f1b47e6ad0398a59f8e63f464d85246aa482d9b95792e0f0924fa5bd3d0ab4a1788d037c30c96b0ea1dc26ec6ef3fd100
6
+ metadata.gz: da67951a08f34044c8383cdd9450d12875c05f34cc07175c18a597622ae8496d40b5e13fcfbbf1ab1781b053384f5d6cc3dff56345a64cbb4d0c4232fa3d6f71
7
+ data.tar.gz: 14b4abd37a67fe80041b4568575aeda1154019633f7d958fd1996f2c686433ef5221fee010f29882a7e5db103292286e04d8f1b6a0b4570193287e4228b0951f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.67.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.66.0 (2022-12-20)
5
12
  ------------------
6
13
 
@@ -400,4 +407,4 @@ Unreleased Changes
400
407
  1.0.0.rc1 (2017-01-24)
401
408
  ------------------
402
409
 
403
- * Feature - Initial preview release of `aws-sdk-batch` gem.
410
+ * Feature - Initial preview release of `aws-sdk-batch` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.66.0
1
+ 1.67.0
@@ -3594,7 +3594,7 @@ module Aws::Batch
3594
3594
  params: params,
3595
3595
  config: config)
3596
3596
  context[:gem_name] = 'aws-sdk-batch'
3597
- context[:gem_version] = '1.66.0'
3597
+ context[:gem_version] = '1.67.0'
3598
3598
  Seahorse::Client::Request.new(handlers, context)
3599
3599
  end
3600
3600
 
@@ -9,112 +9,49 @@
9
9
 
10
10
  module Aws::Batch
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://batch-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.batch.#{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://batch.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
+ end
41
+ return Aws::Endpoints::Endpoint.new(url: "https://batch-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://batch.#{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://batch.#{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
  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CJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9u
114
- cyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vYmF0Y2gue1JlZ2lv
115
- bn0ue1BhcnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6
116
- e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
117
-
118
- JSON
119
56
  end
120
57
  end
data/lib/aws-sdk-batch.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-batch/customizations'
52
52
  # @!group service
53
53
  module Aws::Batch
54
54
 
55
- GEM_VERSION = '1.66.0'
55
+ GEM_VERSION = '1.67.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-batch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.66.0
4
+ version: 1.67.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-20 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