aws-sdk-arczonalshift 1.0.0 → 1.1.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: 58ac5f8ce818ab005538eff2d5718b7d7c47d6ad835b83a6b4e3d1a45bb59129
4
- data.tar.gz: 1a93683b5e46b6d5a789ff8e0db6eefe170733967d9b68f30cde7a55c404bc26
3
+ metadata.gz: 2a20a9289dd04c98812bd7437e64adc5e52f6357b8e13a9de1dc6dd54075ea4a
4
+ data.tar.gz: 7289857214611415ebb938b952916835a86de5e3e5d29fcf293644e415267601
5
5
  SHA512:
6
- metadata.gz: 1145f2528ccf47f1f59c27f257c1cde476b82c03071bd1bb46fa5c204d93b91384b745b9f23e187500f063407309ed23cb064ca92e5bdbecaac882f36b9aa745
7
- data.tar.gz: f86959236297933b8f87e890113021d491ed6e468ff41d78655f50b6f2c8d5e279f039ca12c7fa157a12cf02f7787a7272abd58df3610fe68d593f85039bc975
6
+ metadata.gz: 65fff10d3d2a9ac6b127951f98b5340497e127915ce7a2074b4d3f39feb10625714108529c8c54184e888d780e884eb5b4859eec3a1a7a942c5072d39ffdae23
7
+ data.tar.gz: 4e32e51c0267bc7e50b78524887cb06ab6175379853fbaea6f22c0309132a87e009e25bc09ae04d821888fce34fbd17576d820538620b6f3b510013bbbd5b519
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.1.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.0.0 (2022-11-29)
5
12
  ------------------
6
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -754,7 +754,7 @@ module Aws::ARCZonalShift
754
754
  params: params,
755
755
  config: config)
756
756
  context[:gem_name] = 'aws-sdk-arczonalshift'
757
- context[:gem_version] = '1.0.0'
757
+ context[:gem_version] = '1.1.0'
758
758
  Seahorse::Client::Request.new(handlers, context)
759
759
  end
760
760
 
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::ARCZonalShift
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://arc-zonal-shift-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://arc-zonal-shift-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://arc-zonal-shift.#{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://arc-zonal-shift.#{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
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZW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lbmFibGVkIGJ1dCB0aGlz
103
- IHBhcnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0IER1YWxTdGFjayIsInR5cGUi
104
- OiJlcnJvciJ9XX0seyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJs
105
- IjoiaHR0cHM6Ly9hcmMtem9uYWwtc2hpZnQue1JlZ2lvbn0ue1BhcnRpdGlv
106
- blJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMi
107
- Ont9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
108
-
109
- JSON
110
50
  end
111
51
  end
@@ -23,13 +23,6 @@ module Aws::ARCZonalShift
23
23
  include Aws::Structure
24
24
  end
25
25
 
26
- # @note When making an API call, you may pass CancelZonalShiftRequest
27
- # data as a hash:
28
- #
29
- # {
30
- # zonal_shift_id: "ZonalShiftId", # required
31
- # }
32
- #
33
26
  # @!attribute [rw] zonal_shift_id
34
27
  # The internally-generated identifier of a zonal shift.
35
28
  # @return [String]
@@ -66,13 +59,6 @@ module Aws::ARCZonalShift
66
59
  include Aws::Structure
67
60
  end
68
61
 
69
- # @note When making an API call, you may pass GetManagedResourceRequest
70
- # data as a hash:
71
- #
72
- # {
73
- # resource_identifier: "ResourceIdentifier", # required
74
- # }
75
- #
76
62
  # @!attribute [rw] resource_identifier
77
63
  # The identifier for the resource to include in a zonal shift. The
78
64
  # identifier is the Amazon Resource Name (ARN) for the resource.
@@ -133,14 +119,6 @@ module Aws::ARCZonalShift
133
119
  include Aws::Structure
134
120
  end
135
121
 
136
- # @note When making an API call, you may pass ListManagedResourcesRequest
137
- # data as a hash:
138
- #
139
- # {
140
- # max_results: 1,
141
- # next_token: "String",
142
- # }
143
- #
144
122
  # @!attribute [rw] max_results
145
123
  # The number of objects that you want to return with this call.
146
124
  # @return [Integer]
@@ -183,15 +161,6 @@ module Aws::ARCZonalShift
183
161
  include Aws::Structure
184
162
  end
185
163
 
186
- # @note When making an API call, you may pass ListZonalShiftsRequest
187
- # data as a hash:
188
- #
189
- # {
190
- # max_results: 1,
191
- # next_token: "String",
192
- # status: "ACTIVE", # accepts ACTIVE, EXPIRED, CANCELED
193
- # }
194
- #
195
164
  # @!attribute [rw] max_results
196
165
  # The number of objects that you want to return with this call.
197
166
  # @return [Integer]
@@ -297,16 +266,6 @@ module Aws::ARCZonalShift
297
266
  include Aws::Structure
298
267
  end
299
268
 
300
- # @note When making an API call, you may pass StartZonalShiftRequest
301
- # data as a hash:
302
- #
303
- # {
304
- # away_from: "AvailabilityZone", # required
305
- # comment: "ZonalShiftComment", # required
306
- # expires_in: "ExpiresIn", # required
307
- # resource_identifier: "ResourceIdentifier", # required
308
- # }
309
- #
310
269
  # @!attribute [rw] away_from
311
270
  # The Availability Zone that traffic is moved away from for a resource
312
271
  # when you start a zonal shift. Until the zonal shift expires or you
@@ -370,15 +329,6 @@ module Aws::ARCZonalShift
370
329
  include Aws::Structure
371
330
  end
372
331
 
373
- # @note When making an API call, you may pass UpdateZonalShiftRequest
374
- # data as a hash:
375
- #
376
- # {
377
- # comment: "ZonalShiftComment",
378
- # expires_in: "ExpiresIn",
379
- # zonal_shift_id: "ZonalShiftId", # required
380
- # }
381
- #
382
332
  # @!attribute [rw] comment
383
333
  # A comment that you enter about the zonal shift. Only the latest
384
334
  # comment is retained; no comment history is maintained. A new comment
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-arczonalshift/customizations'
52
52
  # @!group service
53
53
  module Aws::ARCZonalShift
54
54
 
55
- GEM_VERSION = '1.0.0'
55
+ GEM_VERSION = '1.1.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-arczonalshift
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.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-11-29 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