aws-sdk-greengrass 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: b3d2e2b9c4829c5fdfc314a71978babb007154eede1e164ceb08cc31ace6cb63
4
- data.tar.gz: 19f8a3b63800132b34dc5363a21cf1b59786d7f1e0edc221c64c7085d6842a67
3
+ metadata.gz: ea265ffdc44ba5314d3dffecfd6cd011dafb9c881741f606995f871ffbac9ecc
4
+ data.tar.gz: 5f2b47e9bdce08db0f4a083e37205ef2d0e04d3b9091ebd651bc13cb4fa3b57f
5
5
  SHA512:
6
- metadata.gz: 3568dda297b8a08ecb741256f084dd1731f87c77db6493587b58f2b9190d7f0a208698c5038f078ec5fe3a77876f6474571bc4f8b417cf2b20598b72a157d9b6
7
- data.tar.gz: 4b58aa8bd9856796948351e7e004beb6d5d622d6f68411746fa25a85c65b1e3b3de7956ad293a4ead8e8b00d21656e90936feadc2a544383bcc655bf4a14db60
6
+ metadata.gz: 993c6a9d3bf3554d563f7904eccb3d2249fb84aff3f57813f78304c710adf10204b814c479c69ba21345f5d2e9ba7875f0436f57945315901111823adf0788a7
7
+ data.tar.gz: 5001946eb7a87f8633f44701a419ff51075d9241ae25f7a8ccc9da22f71245dd8e80e3aab59ba3539c73e09cd98e2536c6ade7571be7487415f8bbf15af60c5b
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
 
@@ -295,4 +302,4 @@ Unreleased Changes
295
302
  1.0.0.rc1 (2017-06-26)
296
303
  ------------------
297
304
 
298
- * Feature - Initial release of `aws-sdk-greengrass`.
305
+ * Feature - Initial release of `aws-sdk-greengrass`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.51.0
1
+ 1.52.0
@@ -4138,7 +4138,7 @@ module Aws::Greengrass
4138
4138
  params: params,
4139
4139
  config: config)
4140
4140
  context[:gem_name] = 'aws-sdk-greengrass'
4141
- context[:gem_version] = '1.51.0'
4141
+ context[:gem_version] = '1.52.0'
4142
4142
  Seahorse::Client::Request.new(handlers, context)
4143
4143
  end
4144
4144
 
@@ -9,114 +9,49 @@
9
9
 
10
10
  module Aws::Greengrass
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://greengrass-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://greengrass-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://greengrass.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ if Aws::Endpoints::Matchers.string_equals?(region, "dataplane-us-gov-west-1")
46
+ return Aws::Endpoints::Endpoint.new(url: "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
47
+ end
48
+ if Aws::Endpoints::Matchers.string_equals?(region, "dataplane-us-gov-east-1")
49
+ return Aws::Endpoints::Endpoint.new(url: "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
50
+ end
51
+ return Aws::Endpoints::Endpoint.new(url: "https://greengrass.#{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_endpo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ncmVlbmdyYXNzLWF0cy5pb3QudXMtZ292LWVhc3QtMS5hbWF6b25h
114
- d3MuY29tIiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6
115
- ImVuZHBvaW50In0seyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJs
116
- IjoiaHR0cHM6Ly9ncmVlbmdyYXNzLntSZWdpb259LntQYXJ0aXRpb25SZXN1
117
- bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0s
118
- InR5cGUiOiJlbmRwb2ludCJ9XX1dfV19
119
-
120
- JSON
121
56
  end
122
57
  end