aws-sdk-elasticinference 1.1.0 → 1.6.1

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
- SHA1:
3
- metadata.gz: 241e760ae8b38e986d4a7df0a2d58097413df0c9
4
- data.tar.gz: 3ab47f5d456e0ceadb4d6736718832dfcd88b0bd
2
+ SHA256:
3
+ metadata.gz: fa46bee5b9be9a28fffff28b9e9af57abe50671564f79f61d24b46f321c964d2
4
+ data.tar.gz: fc12e1a8549eb2cd7b994a50a07dae6c8eba398d7669cc23e10c667845e5bb25
5
5
  SHA512:
6
- metadata.gz: d8e202b39dfcad1ec723462b052f34896a0dae1aa2af581c8557e91a9cc37979116af45d3947d7c0e67b45ba99943060222682760854ed829902ec898ab8fcbc
7
- data.tar.gz: 252214b34b17a22a2c87152bb1a704f40384154950a5d312f79426db9b97d89dd2bf5654c13017dce1c51847bfa79cc49df96e3819b439ecd880dfb63a79efa8
6
+ metadata.gz: 3e8ba3823540f7635a850ff5c901f261f08215d0c5d3e7d0293f8861a05f63899da1a76e785b7ce05d5e0bb5e10fe1ba67b62b7e5e1150f523d394c226e6b73b
7
+ data.tar.gz: e3bf81e6386626b18ea5eadf0b62b2bf32353fa3b8c2ec010734049c1e6bd670826afe7aae80ac845d13fe0caafbd895b84fb5c777501529803292e74b0fb585
@@ -25,7 +25,7 @@ require_relative 'aws-sdk-elasticinference/customizations'
25
25
  # structure.
26
26
  #
27
27
  # elastic_inference = Aws::ElasticInference::Client.new
28
- # resp = elastic_inference.list_tags_for_resource(params)
28
+ # resp = elastic_inference.describe_accelerator_offerings(params)
29
29
  #
30
30
  # See {Client} for more information.
31
31
  #
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-elasticinference/customizations'
45
45
  # @service
46
46
  module Aws::ElasticInference
47
47
 
48
- GEM_VERSION = '1.1.0'
48
+ GEM_VERSION = '1.6.1'
49
49
 
50
50
  end
@@ -24,6 +24,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
24
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
25
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
26
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
27
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
30
 
@@ -32,11 +33,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:elasticinference)
32
33
  module Aws::ElasticInference
33
34
  # An API client for ElasticInference. To construct a client, you need to configure a `:region` and `:credentials`.
34
35
  #
35
- # client = Aws::ElasticInference::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
36
+ # client = Aws::ElasticInference::Client.new(
37
+ # region: region_name,
38
+ # credentials: credentials,
39
+ # # ...
40
+ # )
40
41
  #
41
42
  # For details on configuring region and credentials see
42
43
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -69,6 +70,7 @@ module Aws::ElasticInference
69
70
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
71
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
72
  add_plugin(Aws::Plugins::TransferEncoding)
73
+ add_plugin(Aws::Plugins::HttpChecksum)
72
74
  add_plugin(Aws::Plugins::SignatureV4)
73
75
  add_plugin(Aws::Plugins::Protocols::RestJson)
74
76
 
@@ -105,7 +107,7 @@ module Aws::ElasticInference
105
107
  # @option options [required, String] :region
106
108
  # The AWS region to connect to. The configured `:region` is
107
109
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
110
+ # a default `:region` is searched for in the following locations:
109
111
  #
110
112
  # * `Aws.config[:region]`
111
113
  # * `ENV['AWS_REGION']`
@@ -161,7 +163,7 @@ module Aws::ElasticInference
161
163
  # @option options [String] :endpoint
162
164
  # The client endpoint is normally constructed from the `:region`
163
165
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be avalid HTTP(S) URI.
166
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
167
  #
166
168
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
169
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +178,7 @@ module Aws::ElasticInference
176
178
  # requests fetching endpoints information. Defaults to 60 sec.
177
179
  #
178
180
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
181
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
182
  #
181
183
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
184
  # The log formatter.
@@ -229,15 +231,19 @@ module Aws::ElasticInference
229
231
  #
230
232
  # @option options [String] :retry_mode ("legacy")
231
233
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
234
+ #
235
+ # * `legacy` - The pre-existing retry behavior. This is default value if
236
+ # no retry mode is provided.
237
+ #
238
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
239
+ # This includes support for retry quotas, which limit the number of
240
+ # unsuccessful retries a client can make.
241
+ #
242
+ # * `adaptive` - An experimental retry mode that includes all the
243
+ # functionality of `standard` mode along with automatic client side
244
+ # throttling. This is a provisional mode that may change behavior
245
+ # in the future.
246
+ #
241
247
  #
242
248
  # @option options [String] :secret_access_key
243
249
  #
@@ -265,8 +271,7 @@ module Aws::ElasticInference
265
271
  #
266
272
  # @option options [Integer] :http_read_timeout (60) The default
267
273
  # number of seconds to wait for response data. This value can
268
- # safely be set
269
- # per-request on the session yielded by {#session_for}.
274
+ # safely be set per-request on the session.
270
275
  #
271
276
  # @option options [Float] :http_idle_timeout (5) The number of
272
277
  # seconds a connection is allowed to sit idle before it is
@@ -278,7 +283,7 @@ module Aws::ElasticInference
278
283
  # request body. This option has no effect unless the request has
279
284
  # "Expect" header set to "100-continue". Defaults to `nil` which
280
285
  # disables this behaviour. This value can safely be set per
281
- # request on the session yielded by {#session_for}.
286
+ # request on the session.
282
287
  #
283
288
  # @option options [Boolean] :http_wire_trace (false) When `true`,
284
289
  # HTTP debug output will be sent to the `:logger`.
@@ -305,6 +310,136 @@ module Aws::ElasticInference
305
310
 
306
311
  # @!group API Operations
307
312
 
313
+ # Describes the locations in which a given accelerator type or set of
314
+ # types is present in a given region.
315
+ #
316
+ # @option params [required, String] :location_type
317
+ # The location type that you want to describe accelerator type offerings
318
+ # for. It can assume the following values: region: will return the
319
+ # accelerator type offering at the regional level. availability-zone:
320
+ # will return the accelerator type offering at the availability zone
321
+ # level. availability-zone-id: will return the accelerator type offering
322
+ # at the availability zone level returning the availability zone id.
323
+ #
324
+ # @option params [Array<String>] :accelerator_types
325
+ # The list of accelerator types to describe.
326
+ #
327
+ # @return [Types::DescribeAcceleratorOfferingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
328
+ #
329
+ # * {Types::DescribeAcceleratorOfferingsResponse#accelerator_type_offerings #accelerator_type_offerings} => Array&lt;Types::AcceleratorTypeOffering&gt;
330
+ #
331
+ # @example Request syntax with placeholder values
332
+ #
333
+ # resp = client.describe_accelerator_offerings({
334
+ # location_type: "region", # required, accepts region, availability-zone, availability-zone-id
335
+ # accelerator_types: ["AcceleratorTypeName"],
336
+ # })
337
+ #
338
+ # @example Response structure
339
+ #
340
+ # resp.accelerator_type_offerings #=> Array
341
+ # resp.accelerator_type_offerings[0].accelerator_type #=> String
342
+ # resp.accelerator_type_offerings[0].location_type #=> String, one of "region", "availability-zone", "availability-zone-id"
343
+ # resp.accelerator_type_offerings[0].location #=> String
344
+ #
345
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAcceleratorOfferings AWS API Documentation
346
+ #
347
+ # @overload describe_accelerator_offerings(params = {})
348
+ # @param [Hash] params ({})
349
+ def describe_accelerator_offerings(params = {}, options = {})
350
+ req = build_request(:describe_accelerator_offerings, params)
351
+ req.send_request(options)
352
+ end
353
+
354
+ # Describes the accelerator types available in a given region, as well
355
+ # as their characteristics, such as memory and throughput.
356
+ #
357
+ # @return [Types::DescribeAcceleratorTypesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
358
+ #
359
+ # * {Types::DescribeAcceleratorTypesResponse#accelerator_types #accelerator_types} => Array&lt;Types::AcceleratorType&gt;
360
+ #
361
+ # @example Response structure
362
+ #
363
+ # resp.accelerator_types #=> Array
364
+ # resp.accelerator_types[0].accelerator_type_name #=> String
365
+ # resp.accelerator_types[0].memory_info.size_in_mi_b #=> Integer
366
+ # resp.accelerator_types[0].throughput_info #=> Array
367
+ # resp.accelerator_types[0].throughput_info[0].key #=> String
368
+ # resp.accelerator_types[0].throughput_info[0].value #=> Integer
369
+ #
370
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAcceleratorTypes AWS API Documentation
371
+ #
372
+ # @overload describe_accelerator_types(params = {})
373
+ # @param [Hash] params ({})
374
+ def describe_accelerator_types(params = {}, options = {})
375
+ req = build_request(:describe_accelerator_types, params)
376
+ req.send_request(options)
377
+ end
378
+
379
+ # Describes information over a provided set of accelerators belonging to
380
+ # an account.
381
+ #
382
+ # @option params [Array<String>] :accelerator_ids
383
+ # The IDs of the accelerators to describe.
384
+ #
385
+ # @option params [Array<Types::Filter>] :filters
386
+ # One or more filters. Filter names and values are case-sensitive. Valid
387
+ # filter names are: accelerator-types: can provide a list of accelerator
388
+ # type names to filter for. instance-id: can provide a list of EC2
389
+ # instance ids to filter for.
390
+ #
391
+ # @option params [Integer] :max_results
392
+ # The total number of items to return in the command's output. If the
393
+ # total number of items available is more than the value specified, a
394
+ # NextToken is provided in the command's output. To resume pagination,
395
+ # provide the NextToken value in the starting-token argument of a
396
+ # subsequent command. Do not use the NextToken response element directly
397
+ # outside of the AWS CLI.
398
+ #
399
+ # @option params [String] :next_token
400
+ # A token to specify where to start paginating. This is the NextToken
401
+ # from a previously truncated response.
402
+ #
403
+ # @return [Types::DescribeAcceleratorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
404
+ #
405
+ # * {Types::DescribeAcceleratorsResponse#accelerator_set #accelerator_set} => Array&lt;Types::ElasticInferenceAccelerator&gt;
406
+ # * {Types::DescribeAcceleratorsResponse#next_token #next_token} => String
407
+ #
408
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
409
+ #
410
+ # @example Request syntax with placeholder values
411
+ #
412
+ # resp = client.describe_accelerators({
413
+ # accelerator_ids: ["AcceleratorId"],
414
+ # filters: [
415
+ # {
416
+ # name: "FilterName",
417
+ # values: ["String"],
418
+ # },
419
+ # ],
420
+ # max_results: 1,
421
+ # next_token: "NextToken",
422
+ # })
423
+ #
424
+ # @example Response structure
425
+ #
426
+ # resp.accelerator_set #=> Array
427
+ # resp.accelerator_set[0].accelerator_health.status #=> String
428
+ # resp.accelerator_set[0].accelerator_type #=> String
429
+ # resp.accelerator_set[0].accelerator_id #=> String
430
+ # resp.accelerator_set[0].availability_zone #=> String
431
+ # resp.accelerator_set[0].attached_resource #=> String
432
+ # resp.next_token #=> String
433
+ #
434
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAccelerators AWS API Documentation
435
+ #
436
+ # @overload describe_accelerators(params = {})
437
+ # @param [Hash] params ({})
438
+ def describe_accelerators(params = {}, options = {})
439
+ req = build_request(:describe_accelerators, params)
440
+ req.send_request(options)
441
+ end
442
+
308
443
  # Returns all tags of an Elastic Inference Accelerator.
309
444
  #
310
445
  # @option params [required, String] :resource_arn
@@ -334,7 +469,7 @@ module Aws::ElasticInference
334
469
  req.send_request(options)
335
470
  end
336
471
 
337
- # Adds the specified tag(s) to an Elastic Inference Accelerator.
472
+ # Adds the specified tags to an Elastic Inference Accelerator.
338
473
  #
339
474
  # @option params [required, String] :resource_arn
340
475
  # The ARN of the Elastic Inference Accelerator to tag.
@@ -362,7 +497,7 @@ module Aws::ElasticInference
362
497
  req.send_request(options)
363
498
  end
364
499
 
365
- # Removes the specified tag(s) from an Elastic Inference Accelerator.
500
+ # Removes the specified tags from an Elastic Inference Accelerator.
366
501
  #
367
502
  # @option params [required, String] :resource_arn
368
503
  # The ARN of the Elastic Inference Accelerator to untag.
@@ -401,7 +536,7 @@ module Aws::ElasticInference
401
536
  params: params,
402
537
  config: config)
403
538
  context[:gem_name] = 'aws-sdk-elasticinference'
404
- context[:gem_version] = '1.1.0'
539
+ context[:gem_version] = '1.6.1'
405
540
  Seahorse::Client::Request.new(handlers, context)
406
541
  end
407
542
 
@@ -11,11 +11,42 @@ module Aws::ElasticInference
11
11
 
12
12
  include Seahorse::Model
13
13
 
14
+ AcceleratorHealthStatus = Shapes::StringShape.new(name: 'AcceleratorHealthStatus')
15
+ AcceleratorId = Shapes::StringShape.new(name: 'AcceleratorId')
16
+ AcceleratorIdList = Shapes::ListShape.new(name: 'AcceleratorIdList')
17
+ AcceleratorType = Shapes::StructureShape.new(name: 'AcceleratorType')
18
+ AcceleratorTypeList = Shapes::ListShape.new(name: 'AcceleratorTypeList')
19
+ AcceleratorTypeName = Shapes::StringShape.new(name: 'AcceleratorTypeName')
20
+ AcceleratorTypeNameList = Shapes::ListShape.new(name: 'AcceleratorTypeNameList')
21
+ AcceleratorTypeOffering = Shapes::StructureShape.new(name: 'AcceleratorTypeOffering')
22
+ AcceleratorTypeOfferingList = Shapes::ListShape.new(name: 'AcceleratorTypeOfferingList')
23
+ AvailabilityZone = Shapes::StringShape.new(name: 'AvailabilityZone')
14
24
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
25
+ DescribeAcceleratorOfferingsRequest = Shapes::StructureShape.new(name: 'DescribeAcceleratorOfferingsRequest')
26
+ DescribeAcceleratorOfferingsResponse = Shapes::StructureShape.new(name: 'DescribeAcceleratorOfferingsResponse')
27
+ DescribeAcceleratorTypesRequest = Shapes::StructureShape.new(name: 'DescribeAcceleratorTypesRequest')
28
+ DescribeAcceleratorTypesResponse = Shapes::StructureShape.new(name: 'DescribeAcceleratorTypesResponse')
29
+ DescribeAcceleratorsRequest = Shapes::StructureShape.new(name: 'DescribeAcceleratorsRequest')
30
+ DescribeAcceleratorsResponse = Shapes::StructureShape.new(name: 'DescribeAcceleratorsResponse')
31
+ ElasticInferenceAccelerator = Shapes::StructureShape.new(name: 'ElasticInferenceAccelerator')
32
+ ElasticInferenceAcceleratorHealth = Shapes::StructureShape.new(name: 'ElasticInferenceAcceleratorHealth')
33
+ ElasticInferenceAcceleratorSet = Shapes::ListShape.new(name: 'ElasticInferenceAcceleratorSet')
34
+ Filter = Shapes::StructureShape.new(name: 'Filter')
35
+ FilterList = Shapes::ListShape.new(name: 'FilterList')
36
+ FilterName = Shapes::StringShape.new(name: 'FilterName')
37
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
15
38
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
39
+ Key = Shapes::StringShape.new(name: 'Key')
40
+ KeyValuePair = Shapes::StructureShape.new(name: 'KeyValuePair')
16
41
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
17
42
  ListTagsForResourceResult = Shapes::StructureShape.new(name: 'ListTagsForResourceResult')
43
+ Location = Shapes::StringShape.new(name: 'Location')
44
+ LocationType = Shapes::StringShape.new(name: 'LocationType')
45
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
46
+ MemoryInfo = Shapes::StructureShape.new(name: 'MemoryInfo')
47
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
18
48
  ResourceARN = Shapes::StringShape.new(name: 'ResourceARN')
49
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
19
50
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
20
51
  String = Shapes::StringShape.new(name: 'String')
21
52
  TagKey = Shapes::StringShape.new(name: 'TagKey')
@@ -24,21 +55,89 @@ module Aws::ElasticInference
24
55
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
25
56
  TagResourceResult = Shapes::StructureShape.new(name: 'TagResourceResult')
26
57
  TagValue = Shapes::StringShape.new(name: 'TagValue')
58
+ ThroughputInfoList = Shapes::ListShape.new(name: 'ThroughputInfoList')
27
59
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
28
60
  UntagResourceResult = Shapes::StructureShape.new(name: 'UntagResourceResult')
61
+ Value = Shapes::IntegerShape.new(name: 'Value')
62
+ ValueStringList = Shapes::ListShape.new(name: 'ValueStringList')
63
+
64
+ AcceleratorIdList.member = Shapes::ShapeRef.new(shape: AcceleratorId)
65
+
66
+ AcceleratorType.add_member(:accelerator_type_name, Shapes::ShapeRef.new(shape: AcceleratorTypeName, location_name: "acceleratorTypeName"))
67
+ AcceleratorType.add_member(:memory_info, Shapes::ShapeRef.new(shape: MemoryInfo, location_name: "memoryInfo"))
68
+ AcceleratorType.add_member(:throughput_info, Shapes::ShapeRef.new(shape: ThroughputInfoList, location_name: "throughputInfo"))
69
+ AcceleratorType.struct_class = Types::AcceleratorType
70
+
71
+ AcceleratorTypeList.member = Shapes::ShapeRef.new(shape: AcceleratorType)
72
+
73
+ AcceleratorTypeNameList.member = Shapes::ShapeRef.new(shape: AcceleratorTypeName)
74
+
75
+ AcceleratorTypeOffering.add_member(:accelerator_type, Shapes::ShapeRef.new(shape: AcceleratorTypeName, location_name: "acceleratorType"))
76
+ AcceleratorTypeOffering.add_member(:location_type, Shapes::ShapeRef.new(shape: LocationType, location_name: "locationType"))
77
+ AcceleratorTypeOffering.add_member(:location, Shapes::ShapeRef.new(shape: Location, location_name: "location"))
78
+ AcceleratorTypeOffering.struct_class = Types::AcceleratorTypeOffering
79
+
80
+ AcceleratorTypeOfferingList.member = Shapes::ShapeRef.new(shape: AcceleratorTypeOffering)
29
81
 
30
82
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
31
83
  BadRequestException.struct_class = Types::BadRequestException
32
84
 
85
+ DescribeAcceleratorOfferingsRequest.add_member(:location_type, Shapes::ShapeRef.new(shape: LocationType, required: true, location_name: "locationType"))
86
+ DescribeAcceleratorOfferingsRequest.add_member(:accelerator_types, Shapes::ShapeRef.new(shape: AcceleratorTypeNameList, location_name: "acceleratorTypes"))
87
+ DescribeAcceleratorOfferingsRequest.struct_class = Types::DescribeAcceleratorOfferingsRequest
88
+
89
+ DescribeAcceleratorOfferingsResponse.add_member(:accelerator_type_offerings, Shapes::ShapeRef.new(shape: AcceleratorTypeOfferingList, location_name: "acceleratorTypeOfferings"))
90
+ DescribeAcceleratorOfferingsResponse.struct_class = Types::DescribeAcceleratorOfferingsResponse
91
+
92
+ DescribeAcceleratorTypesRequest.struct_class = Types::DescribeAcceleratorTypesRequest
93
+
94
+ DescribeAcceleratorTypesResponse.add_member(:accelerator_types, Shapes::ShapeRef.new(shape: AcceleratorTypeList, location_name: "acceleratorTypes"))
95
+ DescribeAcceleratorTypesResponse.struct_class = Types::DescribeAcceleratorTypesResponse
96
+
97
+ DescribeAcceleratorsRequest.add_member(:accelerator_ids, Shapes::ShapeRef.new(shape: AcceleratorIdList, location_name: "acceleratorIds"))
98
+ DescribeAcceleratorsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "filters"))
99
+ DescribeAcceleratorsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
100
+ DescribeAcceleratorsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
101
+ DescribeAcceleratorsRequest.struct_class = Types::DescribeAcceleratorsRequest
102
+
103
+ DescribeAcceleratorsResponse.add_member(:accelerator_set, Shapes::ShapeRef.new(shape: ElasticInferenceAcceleratorSet, location_name: "acceleratorSet"))
104
+ DescribeAcceleratorsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
105
+ DescribeAcceleratorsResponse.struct_class = Types::DescribeAcceleratorsResponse
106
+
107
+ ElasticInferenceAccelerator.add_member(:accelerator_health, Shapes::ShapeRef.new(shape: ElasticInferenceAcceleratorHealth, location_name: "acceleratorHealth"))
108
+ ElasticInferenceAccelerator.add_member(:accelerator_type, Shapes::ShapeRef.new(shape: AcceleratorTypeName, location_name: "acceleratorType"))
109
+ ElasticInferenceAccelerator.add_member(:accelerator_id, Shapes::ShapeRef.new(shape: AcceleratorId, location_name: "acceleratorId"))
110
+ ElasticInferenceAccelerator.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZone, location_name: "availabilityZone"))
111
+ ElasticInferenceAccelerator.add_member(:attached_resource, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "attachedResource"))
112
+ ElasticInferenceAccelerator.struct_class = Types::ElasticInferenceAccelerator
113
+
114
+ ElasticInferenceAcceleratorHealth.add_member(:status, Shapes::ShapeRef.new(shape: AcceleratorHealthStatus, location_name: "status"))
115
+ ElasticInferenceAcceleratorHealth.struct_class = Types::ElasticInferenceAcceleratorHealth
116
+
117
+ ElasticInferenceAcceleratorSet.member = Shapes::ShapeRef.new(shape: ElasticInferenceAccelerator)
118
+
119
+ Filter.add_member(:name, Shapes::ShapeRef.new(shape: FilterName, location_name: "name"))
120
+ Filter.add_member(:values, Shapes::ShapeRef.new(shape: ValueStringList, location_name: "values"))
121
+ Filter.struct_class = Types::Filter
122
+
123
+ FilterList.member = Shapes::ShapeRef.new(shape: Filter)
124
+
33
125
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
34
126
  InternalServerException.struct_class = Types::InternalServerException
35
127
 
128
+ KeyValuePair.add_member(:key, Shapes::ShapeRef.new(shape: Key, location_name: "key"))
129
+ KeyValuePair.add_member(:value, Shapes::ShapeRef.new(shape: Value, location_name: "value"))
130
+ KeyValuePair.struct_class = Types::KeyValuePair
131
+
36
132
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location: "uri", location_name: "resourceArn"))
37
133
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
38
134
 
39
135
  ListTagsForResourceResult.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
40
136
  ListTagsForResourceResult.struct_class = Types::ListTagsForResourceResult
41
137
 
138
+ MemoryInfo.add_member(:size_in_mi_b, Shapes::ShapeRef.new(shape: Integer, location_name: "sizeInMiB"))
139
+ MemoryInfo.struct_class = Types::MemoryInfo
140
+
42
141
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
43
142
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
44
143
 
@@ -53,12 +152,16 @@ module Aws::ElasticInference
53
152
 
54
153
  TagResourceResult.struct_class = Types::TagResourceResult
55
154
 
155
+ ThroughputInfoList.member = Shapes::ShapeRef.new(shape: KeyValuePair)
156
+
56
157
  UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location: "uri", location_name: "resourceArn"))
57
158
  UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
58
159
  UntagResourceRequest.struct_class = Types::UntagResourceRequest
59
160
 
60
161
  UntagResourceResult.struct_class = Types::UntagResourceResult
61
162
 
163
+ ValueStringList.member = Shapes::ShapeRef.new(shape: String)
164
+
62
165
 
63
166
  # @api private
64
167
  API = Seahorse::Model::Api.new.tap do |api|
@@ -78,6 +181,43 @@ module Aws::ElasticInference
78
181
  "uid" => "elastic-inference-2017-07-25",
79
182
  }
80
183
 
184
+ api.add_operation(:describe_accelerator_offerings, Seahorse::Model::Operation.new.tap do |o|
185
+ o.name = "DescribeAcceleratorOfferings"
186
+ o.http_method = "POST"
187
+ o.http_request_uri = "/describe-accelerator-offerings"
188
+ o.input = Shapes::ShapeRef.new(shape: DescribeAcceleratorOfferingsRequest)
189
+ o.output = Shapes::ShapeRef.new(shape: DescribeAcceleratorOfferingsResponse)
190
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
191
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
192
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
193
+ end)
194
+
195
+ api.add_operation(:describe_accelerator_types, Seahorse::Model::Operation.new.tap do |o|
196
+ o.name = "DescribeAcceleratorTypes"
197
+ o.http_method = "GET"
198
+ o.http_request_uri = "/describe-accelerator-types"
199
+ o.input = Shapes::ShapeRef.new(shape: DescribeAcceleratorTypesRequest)
200
+ o.output = Shapes::ShapeRef.new(shape: DescribeAcceleratorTypesResponse)
201
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
202
+ end)
203
+
204
+ api.add_operation(:describe_accelerators, Seahorse::Model::Operation.new.tap do |o|
205
+ o.name = "DescribeAccelerators"
206
+ o.http_method = "POST"
207
+ o.http_request_uri = "/describe-accelerators"
208
+ o.input = Shapes::ShapeRef.new(shape: DescribeAcceleratorsRequest)
209
+ o.output = Shapes::ShapeRef.new(shape: DescribeAcceleratorsResponse)
210
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
211
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
212
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
213
+ o[:pager] = Aws::Pager.new(
214
+ limit_key: "max_results",
215
+ tokens: {
216
+ "next_token" => "next_token"
217
+ }
218
+ )
219
+ end)
220
+
81
221
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
82
222
  o.name = "ListTagsForResource"
83
223
  o.http_method = "GET"
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::ElasticInference
9
- # This class provides a resource oriented interface for ElasticInference.
10
- # To create a resource object:
11
- # resource = Aws::ElasticInference::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::ElasticInference::Client.new(region: 'us-west-2')
15
- # resource = Aws::ElasticInference::Resource.new(client: client)
9
+
16
10
  class Resource
17
11
 
18
12
  # @param options ({})
@@ -8,6 +8,59 @@
8
8
  module Aws::ElasticInference
9
9
  module Types
10
10
 
11
+ # The details of an Elastic Inference Accelerator type.
12
+ #
13
+ # @!attribute [rw] accelerator_type_name
14
+ # The name of the Elastic Inference Accelerator type.
15
+ # @return [String]
16
+ #
17
+ # @!attribute [rw] memory_info
18
+ # The memory information of the Elastic Inference Accelerator type.
19
+ # @return [Types::MemoryInfo]
20
+ #
21
+ # @!attribute [rw] throughput_info
22
+ # The throughput information of the Elastic Inference Accelerator
23
+ # type.
24
+ # @return [Array<Types::KeyValuePair>]
25
+ #
26
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/AcceleratorType AWS API Documentation
27
+ #
28
+ class AcceleratorType < Struct.new(
29
+ :accelerator_type_name,
30
+ :memory_info,
31
+ :throughput_info)
32
+ include Aws::Structure
33
+ end
34
+
35
+ # The offering for an Elastic Inference Accelerator type.
36
+ #
37
+ # @!attribute [rw] accelerator_type
38
+ # The name of the Elastic Inference Accelerator type.
39
+ # @return [String]
40
+ #
41
+ # @!attribute [rw] location_type
42
+ # The location type for the offering. It can assume the following
43
+ # values: region: defines that the offering is at the regional level.
44
+ # availability-zone: defines that the offering is at the availability
45
+ # zone level. availability-zone-id: defines that the offering is at
46
+ # the availability zone level, defined by the availability zone id.
47
+ # @return [String]
48
+ #
49
+ # @!attribute [rw] location
50
+ # The location for the offering. It will return either the region,
51
+ # availability zone or availability zone id for the offering depending
52
+ # on the locationType value.
53
+ # @return [String]
54
+ #
55
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/AcceleratorTypeOffering AWS API Documentation
56
+ #
57
+ class AcceleratorTypeOffering < Struct.new(
58
+ :accelerator_type,
59
+ :location_type,
60
+ :location)
61
+ include Aws::Structure
62
+ end
63
+
11
64
  # Raised when a malformed input has been provided to the API.
12
65
  #
13
66
  # @!attribute [rw] message
@@ -20,6 +73,208 @@ module Aws::ElasticInference
20
73
  include Aws::Structure
21
74
  end
22
75
 
76
+ # @note When making an API call, you may pass DescribeAcceleratorOfferingsRequest
77
+ # data as a hash:
78
+ #
79
+ # {
80
+ # location_type: "region", # required, accepts region, availability-zone, availability-zone-id
81
+ # accelerator_types: ["AcceleratorTypeName"],
82
+ # }
83
+ #
84
+ # @!attribute [rw] location_type
85
+ # The location type that you want to describe accelerator type
86
+ # offerings for. It can assume the following values: region: will
87
+ # return the accelerator type offering at the regional level.
88
+ # availability-zone: will return the accelerator type offering at the
89
+ # availability zone level. availability-zone-id: will return the
90
+ # accelerator type offering at the availability zone level returning
91
+ # the availability zone id.
92
+ # @return [String]
93
+ #
94
+ # @!attribute [rw] accelerator_types
95
+ # The list of accelerator types to describe.
96
+ # @return [Array<String>]
97
+ #
98
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAcceleratorOfferingsRequest AWS API Documentation
99
+ #
100
+ class DescribeAcceleratorOfferingsRequest < Struct.new(
101
+ :location_type,
102
+ :accelerator_types)
103
+ include Aws::Structure
104
+ end
105
+
106
+ # @!attribute [rw] accelerator_type_offerings
107
+ # The list of accelerator type offerings for a specific location.
108
+ # @return [Array<Types::AcceleratorTypeOffering>]
109
+ #
110
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAcceleratorOfferingsResponse AWS API Documentation
111
+ #
112
+ class DescribeAcceleratorOfferingsResponse < Struct.new(
113
+ :accelerator_type_offerings)
114
+ include Aws::Structure
115
+ end
116
+
117
+ # @api private
118
+ #
119
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAcceleratorTypesRequest AWS API Documentation
120
+ #
121
+ class DescribeAcceleratorTypesRequest < Aws::EmptyStructure; end
122
+
123
+ # @!attribute [rw] accelerator_types
124
+ # The available accelerator types.
125
+ # @return [Array<Types::AcceleratorType>]
126
+ #
127
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAcceleratorTypesResponse AWS API Documentation
128
+ #
129
+ class DescribeAcceleratorTypesResponse < Struct.new(
130
+ :accelerator_types)
131
+ include Aws::Structure
132
+ end
133
+
134
+ # @note When making an API call, you may pass DescribeAcceleratorsRequest
135
+ # data as a hash:
136
+ #
137
+ # {
138
+ # accelerator_ids: ["AcceleratorId"],
139
+ # filters: [
140
+ # {
141
+ # name: "FilterName",
142
+ # values: ["String"],
143
+ # },
144
+ # ],
145
+ # max_results: 1,
146
+ # next_token: "NextToken",
147
+ # }
148
+ #
149
+ # @!attribute [rw] accelerator_ids
150
+ # The IDs of the accelerators to describe.
151
+ # @return [Array<String>]
152
+ #
153
+ # @!attribute [rw] filters
154
+ # One or more filters. Filter names and values are case-sensitive.
155
+ # Valid filter names are: accelerator-types: can provide a list of
156
+ # accelerator type names to filter for. instance-id: can provide a
157
+ # list of EC2 instance ids to filter for.
158
+ # @return [Array<Types::Filter>]
159
+ #
160
+ # @!attribute [rw] max_results
161
+ # The total number of items to return in the command's output. If the
162
+ # total number of items available is more than the value specified, a
163
+ # NextToken is provided in the command's output. To resume
164
+ # pagination, provide the NextToken value in the starting-token
165
+ # argument of a subsequent command. Do not use the NextToken response
166
+ # element directly outside of the AWS CLI.
167
+ # @return [Integer]
168
+ #
169
+ # @!attribute [rw] next_token
170
+ # A token to specify where to start paginating. This is the NextToken
171
+ # from a previously truncated response.
172
+ # @return [String]
173
+ #
174
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAcceleratorsRequest AWS API Documentation
175
+ #
176
+ class DescribeAcceleratorsRequest < Struct.new(
177
+ :accelerator_ids,
178
+ :filters,
179
+ :max_results,
180
+ :next_token)
181
+ include Aws::Structure
182
+ end
183
+
184
+ # @!attribute [rw] accelerator_set
185
+ # The details of the Elastic Inference Accelerators.
186
+ # @return [Array<Types::ElasticInferenceAccelerator>]
187
+ #
188
+ # @!attribute [rw] next_token
189
+ # A token to specify where to start paginating. This is the NextToken
190
+ # from a previously truncated response.
191
+ # @return [String]
192
+ #
193
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAcceleratorsResponse AWS API Documentation
194
+ #
195
+ class DescribeAcceleratorsResponse < Struct.new(
196
+ :accelerator_set,
197
+ :next_token)
198
+ include Aws::Structure
199
+ end
200
+
201
+ # The details of an Elastic Inference Accelerator.
202
+ #
203
+ # @!attribute [rw] accelerator_health
204
+ # The health of the Elastic Inference Accelerator.
205
+ # @return [Types::ElasticInferenceAcceleratorHealth]
206
+ #
207
+ # @!attribute [rw] accelerator_type
208
+ # The type of the Elastic Inference Accelerator.
209
+ # @return [String]
210
+ #
211
+ # @!attribute [rw] accelerator_id
212
+ # The ID of the Elastic Inference Accelerator.
213
+ # @return [String]
214
+ #
215
+ # @!attribute [rw] availability_zone
216
+ # The availability zone where the Elastic Inference Accelerator is
217
+ # present.
218
+ # @return [String]
219
+ #
220
+ # @!attribute [rw] attached_resource
221
+ # The ARN of the resource that the Elastic Inference Accelerator is
222
+ # attached to.
223
+ # @return [String]
224
+ #
225
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/ElasticInferenceAccelerator AWS API Documentation
226
+ #
227
+ class ElasticInferenceAccelerator < Struct.new(
228
+ :accelerator_health,
229
+ :accelerator_type,
230
+ :accelerator_id,
231
+ :availability_zone,
232
+ :attached_resource)
233
+ include Aws::Structure
234
+ end
235
+
236
+ # The health details of an Elastic Inference Accelerator.
237
+ #
238
+ # @!attribute [rw] status
239
+ # The health status of the Elastic Inference Accelerator.
240
+ # @return [String]
241
+ #
242
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/ElasticInferenceAcceleratorHealth AWS API Documentation
243
+ #
244
+ class ElasticInferenceAcceleratorHealth < Struct.new(
245
+ :status)
246
+ include Aws::Structure
247
+ end
248
+
249
+ # A filter expression for the Elastic Inference Accelerator list.
250
+ #
251
+ # @note When making an API call, you may pass Filter
252
+ # data as a hash:
253
+ #
254
+ # {
255
+ # name: "FilterName",
256
+ # values: ["String"],
257
+ # }
258
+ #
259
+ # @!attribute [rw] name
260
+ # The filter name for the Elastic Inference Accelerator list. It can
261
+ # assume the following values: accelerator-type: the type of Elastic
262
+ # Inference Accelerator to filter for. instance-id: an EC2 instance id
263
+ # to filter for.
264
+ # @return [String]
265
+ #
266
+ # @!attribute [rw] values
267
+ # The values for the filter of the Elastic Inference Accelerator list.
268
+ # @return [Array<String>]
269
+ #
270
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/Filter AWS API Documentation
271
+ #
272
+ class Filter < Struct.new(
273
+ :name,
274
+ :values)
275
+ include Aws::Structure
276
+ end
277
+
23
278
  # Raised when an unexpected error occurred during request processing.
24
279
  #
25
280
  # @!attribute [rw] message
@@ -32,6 +287,27 @@ module Aws::ElasticInference
32
287
  include Aws::Structure
33
288
  end
34
289
 
290
+ # A throughput entry for an Elastic Inference Accelerator type.
291
+ #
292
+ # @!attribute [rw] key
293
+ # The throughput value of the Elastic Inference Accelerator type. It
294
+ # can assume the following values: TFLOPS16bit: the throughput
295
+ # expressed in 16bit TeraFLOPS. TFLOPS32bit: the throughput expressed
296
+ # in 32bit TeraFLOPS.
297
+ # @return [String]
298
+ #
299
+ # @!attribute [rw] value
300
+ # The throughput value of the Elastic Inference Accelerator type.
301
+ # @return [Integer]
302
+ #
303
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/KeyValuePair AWS API Documentation
304
+ #
305
+ class KeyValuePair < Struct.new(
306
+ :key,
307
+ :value)
308
+ include Aws::Structure
309
+ end
310
+
35
311
  # @note When making an API call, you may pass ListTagsForResourceRequest
36
312
  # data as a hash:
37
313
  #
@@ -61,6 +337,19 @@ module Aws::ElasticInference
61
337
  include Aws::Structure
62
338
  end
63
339
 
340
+ # The memory information of an Elastic Inference Accelerator type.
341
+ #
342
+ # @!attribute [rw] size_in_mi_b
343
+ # The size in mebibytes of the Elastic Inference Accelerator type.
344
+ # @return [Integer]
345
+ #
346
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/MemoryInfo AWS API Documentation
347
+ #
348
+ class MemoryInfo < Struct.new(
349
+ :size_in_mi_b)
350
+ include Aws::Structure
351
+ end
352
+
64
353
  # Raised when the requested resource cannot be found.
65
354
  #
66
355
  # @!attribute [rw] message
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.1.0
4
+ version: 1.6.1
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: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.71.0
22
+ version: 3.99.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - Amazon Elastic Inference