aws-sdk-elasticinference 1.22.0 → 1.23.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: dfdf3fe9b32dbc199fdfd380cda0c4f1f02d5d1b123251ecb01a0d0b5cd64f5c
4
- data.tar.gz: 8d724e755081b4bce687cb3ccbd62c714b04775ea38b7fd9ab024624703dc16f
3
+ metadata.gz: 82482e555d0f83d6b86a4faa80b4af743a3ebca622702292e43b340aa6a05f73
4
+ data.tar.gz: 2d0f7884a25e5c535f1ea9d0dae524d0f1b6753da26d82e7087b7876a0d974f4
5
5
  SHA512:
6
- metadata.gz: fef7d2df10021ce74d2ce28f7259879b80ef12065c3e6d6151071b9d3c87b82df382be134982391322433a9fbd98e8731c8dd77752ea7dc6bb59222ea7cae82d
7
- data.tar.gz: 8e17b66408aa56db2354c9cf15b015059310c615d451475f3b21baaae8c59896a494c309c35820187315ab8beb6deaed96f8791102de0fa1ec872403bc0a7c54
6
+ metadata.gz: a96cecff93be58dcdeb130307dc60c246fc6fcdf741916ffc30bf3386b9882162c650c746af92ef930760acdfba2386e3930e2442b9837a09a5b2aa9cf542a4d
7
+ data.tar.gz: cbfe4b0e4ba3f0df520ac168b19e4ee2185b03ae849ec48728f425775a3663919896fa6a3bb89e09103653ae6a3877ac8ab8848259e578548569b57627683f36
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.23.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.22.0 (2022-10-25)
5
12
  ------------------
6
13
 
@@ -120,4 +127,4 @@ Unreleased Changes
120
127
  1.0.0 (2019-11-26)
121
128
  ------------------
122
129
 
123
- * Feature - Initial release of `aws-sdk-elasticinference`.
130
+ * Feature - Initial release of `aws-sdk-elasticinference`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.22.0
1
+ 1.23.0
@@ -594,7 +594,7 @@ module Aws::ElasticInference
594
594
  params: params,
595
595
  config: config)
596
596
  context[:gem_name] = 'aws-sdk-elasticinference'
597
- context[:gem_version] = '1.22.0'
597
+ context[:gem_version] = '1.23.0'
598
598
  Seahorse::Client::Request.new(handlers, context)
599
599
  end
600
600
 
@@ -9,105 +9,43 @@
9
9
 
10
10
  module Aws::ElasticInference
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.elastic-inference-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.elastic-inference-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.elastic-inference.#{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.elastic-inference.#{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
- dGF0aW9uIjoiVGhlIEFXUyByZW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W3siY29uZGl0aW9ucyI6W10sImVuZHBv
100
- aW50Ijp7InVybCI6Imh0dHBzOi8vYXBpLmVsYXN0aWMtaW5mZXJlbmNlLntS
101
- ZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3VmZml4fSIs
102
- InByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2lu
103
- dCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMg
104
- ZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBE
105
- dWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10s
106
- ImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vYXBpLmVsYXN0aWMtaW5mZXJl
107
- bmNlLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIsInBy
108
- b3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9
109
- XX1dfQ==
110
-
111
- JSON
112
50
  end
113
51
  end
@@ -78,14 +78,6 @@ module Aws::ElasticInference
78
78
  include Aws::Structure
79
79
  end
80
80
 
81
- # @note When making an API call, you may pass DescribeAcceleratorOfferingsRequest
82
- # data as a hash:
83
- #
84
- # {
85
- # location_type: "region", # required, accepts region, availability-zone, availability-zone-id
86
- # accelerator_types: ["AcceleratorTypeName"],
87
- # }
88
- #
89
81
  # @!attribute [rw] location_type
90
82
  # The location type that you want to describe accelerator type
91
83
  # offerings for. It can assume the following values: region: will
@@ -139,21 +131,6 @@ module Aws::ElasticInference
139
131
  include Aws::Structure
140
132
  end
141
133
 
142
- # @note When making an API call, you may pass DescribeAcceleratorsRequest
143
- # data as a hash:
144
- #
145
- # {
146
- # accelerator_ids: ["AcceleratorId"],
147
- # filters: [
148
- # {
149
- # name: "FilterName",
150
- # values: ["String"],
151
- # },
152
- # ],
153
- # max_results: 1,
154
- # next_token: "NextToken",
155
- # }
156
- #
157
134
  # @!attribute [rw] accelerator_ids
158
135
  # The IDs of the accelerators to describe.
159
136
  # @return [Array<String>]
@@ -260,14 +237,6 @@ module Aws::ElasticInference
260
237
 
261
238
  # A filter expression for the Elastic Inference Accelerator list.
262
239
  #
263
- # @note When making an API call, you may pass Filter
264
- # data as a hash:
265
- #
266
- # {
267
- # name: "FilterName",
268
- # values: ["String"],
269
- # }
270
- #
271
240
  # @!attribute [rw] name
272
241
  # The filter name for the Elastic Inference Accelerator list. It can
273
242
  # assume the following values: accelerator-type: the type of Elastic
@@ -323,13 +292,6 @@ module Aws::ElasticInference
323
292
  include Aws::Structure
324
293
  end
325
294
 
326
- # @note When making an API call, you may pass ListTagsForResourceRequest
327
- # data as a hash:
328
- #
329
- # {
330
- # resource_arn: "ResourceARN", # required
331
- # }
332
- #
333
295
  # @!attribute [rw] resource_arn
334
296
  # The ARN of the Elastic Inference Accelerator to list the tags for.
335
297
  # @return [String]
@@ -381,16 +343,6 @@ module Aws::ElasticInference
381
343
  include Aws::Structure
382
344
  end
383
345
 
384
- # @note When making an API call, you may pass TagResourceRequest
385
- # data as a hash:
386
- #
387
- # {
388
- # resource_arn: "ResourceARN", # required
389
- # tags: { # required
390
- # "TagKey" => "TagValue",
391
- # },
392
- # }
393
- #
394
346
  # @!attribute [rw] resource_arn
395
347
  # The ARN of the Elastic Inference Accelerator to tag.
396
348
  # @return [String]
@@ -412,14 +364,6 @@ module Aws::ElasticInference
412
364
  #
413
365
  class TagResourceResult < Aws::EmptyStructure; end
414
366
 
415
- # @note When making an API call, you may pass UntagResourceRequest
416
- # data as a hash:
417
- #
418
- # {
419
- # resource_arn: "ResourceARN", # required
420
- # tag_keys: ["TagKey"], # required
421
- # }
422
- #
423
367
  # @!attribute [rw] resource_arn
424
368
  # The ARN of the Elastic Inference Accelerator to untag.
425
369
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-elasticinference/customizations'
52
52
  # @!group service
53
53
  module Aws::ElasticInference
54
54
 
55
- GEM_VERSION = '1.22.0'
55
+ GEM_VERSION = '1.23.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-elasticinference
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.23.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