aws-sdk-iotfleethub 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbaeed86f8ee69af855f643b0b39041719fb1957c6db504b20163c6b954f614b
4
- data.tar.gz: 767027369e3924c248abb36a298b02d33c8ffc698b7813e690c0ae85a872c63f
3
+ metadata.gz: a862598fdbd6395d6df292fd94d82c22839c6d0f702f7b003bd421cff5117588
4
+ data.tar.gz: '05795771fb25b5402feeb1cd9a4d5d343db6735e4051c5c193ef1a0689f3b839'
5
5
  SHA512:
6
- metadata.gz: 5c0ae6d8d10b6317ea712a3456d34bfdff7c38e4b28caa1bcbe94730f17d9768a2bd1181f4b1a52ee8df1abc2bea2430e68baa2134f5c97ab5a0889fd191f14a
7
- data.tar.gz: 2d5a72c1d63a9b1c0485a19505cab6723b7fa9c2b011c8b2b05447609ef1f0f11e54065356a278bb33107fd0ce17b2b8f7dfee9c1fcd7c0a294a2c5411c44a20
6
+ metadata.gz: 51d155ae459e2df47ae0b4ab005ae92855f59e333f4f461ca9292ba9c4fc202bcf2735dede7a37731f1f3077953c2b7a67e38cd214294da6c25ec0f71c4fc76d
7
+ data.tar.gz: 80a7eb9362c6822f01a8c7b91aa331d19baf345d03ee87fb2e49d96a89f20c4915f8afb41ac08a96ec853cf29466e6d6b0dedbedd8ffd0e1934e453728b30cae
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.13.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.12.0 (2022-10-25)
5
12
  ------------------
6
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.12.0
1
+ 1.13.0
@@ -712,7 +712,7 @@ module Aws::IoTFleetHub
712
712
  params: params,
713
713
  config: config)
714
714
  context[:gem_name] = 'aws-sdk-iotfleethub'
715
- context[:gem_version] = '1.12.0'
715
+ context[:gem_version] = '1.13.0'
716
716
  Seahorse::Client::Request.new(handlers, context)
717
717
  end
718
718
 
@@ -9,104 +9,43 @@
9
9
 
10
10
  module Aws::IoTFleetHub
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://api.fleethub.iot-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://api.fleethub.iot-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://api.fleethub.iot.#{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://api.fleethub.iot.#{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
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdG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FN0YWNrRG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9
102
- LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJjb25kaXRp
103
- b25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhp
104
- cyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBl
105
- IjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVy
106
- bCI6Imh0dHBzOi8vYXBpLmZsZWV0aHViLmlvdC57UmVnaW9ufS57UGFydGl0
107
- aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVy
108
- cyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX0=
109
-
110
- JSON
111
50
  end
112
51
  end
@@ -70,19 +70,6 @@ module Aws::IoTFleetHub
70
70
  include Aws::Structure
71
71
  end
72
72
 
73
- # @note When making an API call, you may pass CreateApplicationRequest
74
- # data as a hash:
75
- #
76
- # {
77
- # application_name: "Name", # required
78
- # application_description: "Description",
79
- # client_token: "ClientRequestToken",
80
- # role_arn: "Arn", # required
81
- # tags: {
82
- # "TagKey" => "TagValue",
83
- # },
84
- # }
85
- #
86
73
  # @!attribute [rw] application_name
87
74
  # The name of the web application.
88
75
  # @return [String]
@@ -140,14 +127,6 @@ module Aws::IoTFleetHub
140
127
  include Aws::Structure
141
128
  end
142
129
 
143
- # @note When making an API call, you may pass DeleteApplicationRequest
144
- # data as a hash:
145
- #
146
- # {
147
- # application_id: "Id", # required
148
- # client_token: "ClientRequestToken",
149
- # }
150
- #
151
130
  # @!attribute [rw] application_id
152
131
  # The unique Id of the web application.
153
132
  # @return [String]
@@ -170,13 +149,6 @@ module Aws::IoTFleetHub
170
149
 
171
150
  class DeleteApplicationResponse < Aws::EmptyStructure; end
172
151
 
173
- # @note When making an API call, you may pass DescribeApplicationRequest
174
- # data as a hash:
175
- #
176
- # {
177
- # application_id: "Id", # required
178
- # }
179
- #
180
152
  # @!attribute [rw] application_id
181
153
  # The unique Id of the web application.
182
154
  # @return [String]
@@ -288,13 +260,6 @@ module Aws::IoTFleetHub
288
260
  include Aws::Structure
289
261
  end
290
262
 
291
- # @note When making an API call, you may pass ListApplicationsRequest
292
- # data as a hash:
293
- #
294
- # {
295
- # next_token: "NextToken",
296
- # }
297
- #
298
263
  # @!attribute [rw] next_token
299
264
  # A token used to get the next set of results.
300
265
  # @return [String]
@@ -321,13 +286,6 @@ module Aws::IoTFleetHub
321
286
  include Aws::Structure
322
287
  end
323
288
 
324
- # @note When making an API call, you may pass ListTagsForResourceRequest
325
- # data as a hash:
326
- #
327
- # {
328
- # resource_arn: "ResourceArn", # required
329
- # }
330
- #
331
289
  # @!attribute [rw] resource_arn
332
290
  # The ARN of the resource.
333
291
  # @return [String]
@@ -359,16 +317,6 @@ module Aws::IoTFleetHub
359
317
  include Aws::Structure
360
318
  end
361
319
 
362
- # @note When making an API call, you may pass TagResourceRequest
363
- # data as a hash:
364
- #
365
- # {
366
- # resource_arn: "ResourceArn", # required
367
- # tags: { # required
368
- # "TagKey" => "TagValue",
369
- # },
370
- # }
371
- #
372
320
  # @!attribute [rw] resource_arn
373
321
  # The ARN of the resource.
374
322
  # @return [String]
@@ -397,14 +345,6 @@ module Aws::IoTFleetHub
397
345
  include Aws::Structure
398
346
  end
399
347
 
400
- # @note When making an API call, you may pass UntagResourceRequest
401
- # data as a hash:
402
- #
403
- # {
404
- # resource_arn: "ResourceArn", # required
405
- # tag_keys: ["TagKey"], # required
406
- # }
407
- #
408
348
  # @!attribute [rw] resource_arn
409
349
  # The ARN of the resource.
410
350
  # @return [String]
@@ -422,16 +362,6 @@ module Aws::IoTFleetHub
422
362
 
423
363
  class UntagResourceResponse < Aws::EmptyStructure; end
424
364
 
425
- # @note When making an API call, you may pass UpdateApplicationRequest
426
- # data as a hash:
427
- #
428
- # {
429
- # application_id: "Id", # required
430
- # application_name: "Name",
431
- # application_description: "Description",
432
- # client_token: "ClientRequestToken",
433
- # }
434
- #
435
365
  # @!attribute [rw] application_id
436
366
  # The unique Id of the web application.
437
367
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-iotfleethub/customizations'
52
52
  # @!group service
53
53
  module Aws::IoTFleetHub
54
54
 
55
- GEM_VERSION = '1.12.0'
55
+ GEM_VERSION = '1.13.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-iotfleethub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.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-10-25 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