aws-sdk-codedeploy 1.51.0 → 1.52.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: d503776f9daea742dcb9814187d7c71f4da39cc6a705ea75fde35d2b53821d61
4
- data.tar.gz: b0ffc8c9e0f7ec49f74bfc7561dd5e4917ae00195c2950feed15368329be1e6a
3
+ metadata.gz: c2a2bd4c8cac51fff3c4ad05b5fb314ef2c489b0bdf00e4008db52e7f73cc61d
4
+ data.tar.gz: e4616ef0d1c1ef94ac7d34ad8b547b338e46510ad29af5f74ca0c9fdeb366169
5
5
  SHA512:
6
- metadata.gz: 04cc8113fba5e21ca4b031d2f471416f68c7b70be7b0b4de38774ca806ffddd8c8243b7645396bf7db871e9b4d1cd0dc5e3755f5d436e876cd3fbfd7563ab7d2
7
- data.tar.gz: e8dbe7745cfe2ebf244aaff8b463d7bd8f53d65fc9bf630462117a8079fd1f2159934dc98bcc8ea0afc9731c7db4407856567def1fbb4bca21541e235432d986
6
+ metadata.gz: 475a65e74caa2871491a3cc923978d4f83c63ce112dd2263dd0d87dd1c7ee9d6cfc3adf572038aec3c9efc3887987ca3e88cf0bfb0c95e5541b740598b761b8f
7
+ data.tar.gz: 9ce977cd3be67878aaf7c818aad359c75a9ba0751aa4638fad2a4bc35e1fce9843b63ffbc4472138b7ce0db87c9869f393deb01041bb6cd9c2481cfd8052e6d4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.52.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.51.0 (2022-10-25)
5
12
  ------------------
6
13
 
@@ -335,4 +342,4 @@ Unreleased Changes
335
342
  1.0.0.rc1 (2016-12-05)
336
343
  ------------------
337
344
 
338
- * Feature - Initial preview release of the `aws-sdk-codedeploy` gem.
345
+ * Feature - Initial preview release of the `aws-sdk-codedeploy` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.51.0
1
+ 1.52.0
@@ -3467,7 +3467,7 @@ module Aws::CodeDeploy
3467
3467
  params: params,
3468
3468
  config: config)
3469
3469
  context[:gem_name] = 'aws-sdk-codedeploy'
3470
- context[:gem_version] = '1.51.0'
3470
+ context[:gem_version] = '1.52.0'
3471
3471
  Seahorse::Client::Request.new(handlers, context)
3472
3472
  end
3473
3473
 
@@ -9,104 +9,43 @@
9
9
 
10
10
  module Aws::CodeDeploy
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) && (url = Aws::Endpoints::Matchers.parse_url(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://codedeploy-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
+ return Aws::Endpoints::Endpoint.new(url: "https://codedeploy-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://codedeploy.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://codedeploy.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEF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