aws-sdk-resourcegroups 1.47.0 → 1.48.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: 83e16472fd02f14ad8439251d5bf696610093e13efdbcb96744c65116af91e11
4
- data.tar.gz: 2963fa3de5ff6c8d72acf4023f4ed990690a126da1f416996f0299e0de0c1e58
3
+ metadata.gz: ae89a29c79f2189521d4d8c750e8383dcf3395ab68b131aeaa2f53851b12d3ca
4
+ data.tar.gz: 7c3b681c00d123046cc881258c5ecc56676d1c32529ea42983523a3778095a68
5
5
  SHA512:
6
- metadata.gz: cef0df700a3e2e4ed268695ab9b6809796b46cc37d8d254f6122c1be063ae695ffe72847e037e63c6a2794ebbc8d271581f826ddb51896244b611c7f053df65d
7
- data.tar.gz: 7c1c08dc23c428f3f35be4cfd2a3db0887ea36ef0a31b4de440d0b36383877a8ca909b23d27570f2ad394477e860a55387ce41da96408f7a119991b8b1d917e7
6
+ metadata.gz: b78763f2cc1f33645423ef2bc395739ae78d0352de1483d25279908f0cb1867add401d9805f7f4d6e76f3c7ef6bd2a96b203f27aa403f5a1f7fcca10481b1504
7
+ data.tar.gz: db39ead0cf3e2a8baae9758ca0cd87daaa6c845f629649fec384e619d13e97e05e729b3cbb945d379857157dcd49e27d5b4bdbe1eceacd24463d627864c40eb3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.48.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.47.0 (2023-01-13)
5
12
  ------------------
6
13
 
@@ -250,4 +257,4 @@ Unreleased Changes
250
257
  1.0.0 (2017-11-30)
251
258
  ------------------
252
259
 
253
- * Feature - Initial release of `aws-sdk-resourcegroups`.
260
+ * Feature - Initial release of `aws-sdk-resourcegroups`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.47.0
1
+ 1.48.0
@@ -1470,7 +1470,7 @@ module Aws::ResourceGroups
1470
1470
  params: params,
1471
1471
  config: config)
1472
1472
  context[:gem_name] = 'aws-sdk-resourcegroups'
1473
- context[:gem_version] = '1.47.0'
1473
+ context[:gem_version] = '1.48.0'
1474
1474
  Seahorse::Client::Request.new(handlers, context)
1475
1475
  end
1476
1476
 
@@ -9,108 +9,46 @@
9
9
 
10
10
  module Aws::ResourceGroups
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://resource-groups-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-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://resource-groups.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ return Aws::Endpoints::Endpoint.new(url: "https://resource-groups-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
39
+ end
40
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
41
+ end
42
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
43
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
44
+ return Aws::Endpoints::Endpoint.new(url: "https://resource-groups.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
45
+ end
46
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
47
+ end
48
+ return Aws::Endpoints::Endpoint.new(url: "https://resource-groups.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
49
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
50
+ raise ArgumentError, 'No endpoint could be resolved'
24
51
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
52
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9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99
- IjoiVXNlRHVhbFN0YWNrIn0sdHJ1ZV19XSwidHlwZSI6InRyZWUiLCJydWxl
100
- cyI6W3siY29uZGl0aW9ucyI6W3siZm4iOiJib29sZWFuRXF1YWxzIiwiYXJn
101
- diI6W3RydWUseyJmbiI6ImdldEF0dHIiLCJhcmd2IjpbeyJyZWYiOiJQYXJ0
102
- aXRpb25SZXN1bHQifSwic3VwcG9ydHNEdWFsU3RhY2siXX1dfV0sInR5cGUi
103
- OiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6
104
- eyJ1cmwiOiJodHRwczovL3Jlc291cmNlLWdyb3Vwcy57UmVnaW9ufS57UGFy
105
- dGl0aW9uUmVzdWx0I2R1YWxTdGFja0Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVz
106
- Ijp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19LHsiY29u
107
- ZGl0aW9ucyI6W10sImVycm9yIjoiRHVhbFN0YWNrIGlzIGVuYWJsZWQgYnV0
108
- IHRoaXMgcGFydGl0aW9uIGRvZXMgbm90IHN1cHBvcnQgRHVhbFN0YWNrIiwi
109
- dHlwZSI6ImVycm9yIn1dfSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6
110
- eyJ1cmwiOiJodHRwczovL3Jlc291cmNlLWdyb3Vwcy57UmVnaW9ufS57UGFy
111
- dGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVh
112
- ZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX0=
113
-
114
- JSON
115
53
  end
116
54
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-resourcegroups/customizations'
52
52
  # @!group service
53
53
  module Aws::ResourceGroups
54
54
 
55
- GEM_VERSION = '1.47.0'
55
+ GEM_VERSION = '1.48.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-resourcegroups
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.47.0
4
+ version: 1.48.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: 2023-01-13 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