aws-sdk-elasticinference 1.2.0 → 1.3.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
- SHA1:
3
- metadata.gz: 7c598b7f06328d0af6547d2a394571b988440bd8
4
- data.tar.gz: 5fe8f91d37df80045adb1cb81049fec1ddddf0b2
2
+ SHA256:
3
+ metadata.gz: f66350709beea458d990f7bc911734812e9dcdd0d9be3843178e498e3b5f75d6
4
+ data.tar.gz: 5cbf254b167bebe0daa42bcb89b2253f14f4ec4e094eb6b68d8c7c2847a96e94
5
5
  SHA512:
6
- metadata.gz: a24280b252de48d6127ff7335b1b75ede38637519358d409a611cfdefef7f9e2dc6cb4dee8f901f1f3778c4b2370e887fd41d5b3353bf9960fa1d2d62a38bb85
7
- data.tar.gz: 8c269e88752628e3c865305535f655edfdd08d0970dd5ff6a340df46fd2ba7d4064dd9b30f0a4f63916e85d688277845c1eb9ff61d711fe9b858a702295d38d3
6
+ metadata.gz: 59340bdc98cfb743800b52a4f0b9986b2fa4b56370da570f1c04e697aa006f5897226af0b7960da741a5c1c3dda3998b93f24f9097526093153aa5e1bc56bdac
7
+ data.tar.gz: 5c09410240ca9bf0aefd1d2d6023089a73d55b05529e5080c2da7b2dc2f1ec816d355d305b91e4c99a7b4916b976760bd43432f6bed1169a73733441948f786b
@@ -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.2.0'
48
+ GEM_VERSION = '1.3.0'
49
49
 
50
50
  end
@@ -308,6 +308,136 @@ module Aws::ElasticInference
308
308
 
309
309
  # @!group API Operations
310
310
 
311
+ # Describes the locations in which a given accelerator type or set of
312
+ # types is present in a given region.
313
+ #
314
+ # @option params [required, String] :location_type
315
+ # The location type that you want to describe accelerator type offerings
316
+ # for. It can assume the following values: region: will return the
317
+ # accelerator type offering at the regional level. availability-zone:
318
+ # will return the accelerator type offering at the availability zone
319
+ # level. availability-zone-id: will return the accelerator type offering
320
+ # at the availability zone level returning the availability zone id.
321
+ #
322
+ # @option params [Array<String>] :accelerator_types
323
+ # The list of accelerator types to describe.
324
+ #
325
+ # @return [Types::DescribeAcceleratorOfferingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
326
+ #
327
+ # * {Types::DescribeAcceleratorOfferingsResponse#accelerator_type_offerings #accelerator_type_offerings} => Array&lt;Types::AcceleratorTypeOffering&gt;
328
+ #
329
+ # @example Request syntax with placeholder values
330
+ #
331
+ # resp = client.describe_accelerator_offerings({
332
+ # location_type: "region", # required, accepts region, availability-zone, availability-zone-id
333
+ # accelerator_types: ["AcceleratorTypeName"],
334
+ # })
335
+ #
336
+ # @example Response structure
337
+ #
338
+ # resp.accelerator_type_offerings #=> Array
339
+ # resp.accelerator_type_offerings[0].accelerator_type #=> String
340
+ # resp.accelerator_type_offerings[0].location_type #=> String, one of "region", "availability-zone", "availability-zone-id"
341
+ # resp.accelerator_type_offerings[0].location #=> String
342
+ #
343
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAcceleratorOfferings AWS API Documentation
344
+ #
345
+ # @overload describe_accelerator_offerings(params = {})
346
+ # @param [Hash] params ({})
347
+ def describe_accelerator_offerings(params = {}, options = {})
348
+ req = build_request(:describe_accelerator_offerings, params)
349
+ req.send_request(options)
350
+ end
351
+
352
+ # Describes the accelerator types available in a given region, as well
353
+ # as their characteristics, such as memory and throughput.
354
+ #
355
+ # @return [Types::DescribeAcceleratorTypesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
356
+ #
357
+ # * {Types::DescribeAcceleratorTypesResponse#accelerator_types #accelerator_types} => Array&lt;Types::AcceleratorType&gt;
358
+ #
359
+ # @example Response structure
360
+ #
361
+ # resp.accelerator_types #=> Array
362
+ # resp.accelerator_types[0].accelerator_type_name #=> String
363
+ # resp.accelerator_types[0].memory_info.size_in_mi_b #=> Integer
364
+ # resp.accelerator_types[0].throughput_info #=> Array
365
+ # resp.accelerator_types[0].throughput_info[0].key #=> String
366
+ # resp.accelerator_types[0].throughput_info[0].value #=> Integer
367
+ #
368
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAcceleratorTypes AWS API Documentation
369
+ #
370
+ # @overload describe_accelerator_types(params = {})
371
+ # @param [Hash] params ({})
372
+ def describe_accelerator_types(params = {}, options = {})
373
+ req = build_request(:describe_accelerator_types, params)
374
+ req.send_request(options)
375
+ end
376
+
377
+ # Describes information over a provided set of accelerators belonging to
378
+ # an account.
379
+ #
380
+ # @option params [Array<String>] :accelerator_ids
381
+ # The IDs of the accelerators to describe.
382
+ #
383
+ # @option params [Array<Types::Filter>] :filters
384
+ # One or more filters. Filter names and values are case-sensitive. Valid
385
+ # filter names are: accelerator-types: can provide a list of accelerator
386
+ # type names to filter for. instance-id: can provide a list of EC2
387
+ # instance ids to filter for.
388
+ #
389
+ # @option params [Integer] :max_results
390
+ # The total number of items to return in the command's output. If the
391
+ # total number of items available is more than the value specified, a
392
+ # NextToken is provided in the command's output. To resume pagination,
393
+ # provide the NextToken value in the starting-token argument of a
394
+ # subsequent command. Do not use the NextToken response element directly
395
+ # outside of the AWS CLI.
396
+ #
397
+ # @option params [String] :next_token
398
+ # A token to specify where to start paginating. This is the NextToken
399
+ # from a previously truncated response.
400
+ #
401
+ # @return [Types::DescribeAcceleratorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
402
+ #
403
+ # * {Types::DescribeAcceleratorsResponse#accelerator_set #accelerator_set} => Array&lt;Types::ElasticInferenceAccelerator&gt;
404
+ # * {Types::DescribeAcceleratorsResponse#next_token #next_token} => String
405
+ #
406
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
407
+ #
408
+ # @example Request syntax with placeholder values
409
+ #
410
+ # resp = client.describe_accelerators({
411
+ # accelerator_ids: ["AcceleratorId"],
412
+ # filters: [
413
+ # {
414
+ # name: "FilterName",
415
+ # values: ["String"],
416
+ # },
417
+ # ],
418
+ # max_results: 1,
419
+ # next_token: "NextToken",
420
+ # })
421
+ #
422
+ # @example Response structure
423
+ #
424
+ # resp.accelerator_set #=> Array
425
+ # resp.accelerator_set[0].accelerator_health.status #=> String
426
+ # resp.accelerator_set[0].accelerator_type #=> String
427
+ # resp.accelerator_set[0].accelerator_id #=> String
428
+ # resp.accelerator_set[0].availability_zone #=> String
429
+ # resp.accelerator_set[0].attached_resource #=> String
430
+ # resp.next_token #=> String
431
+ #
432
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAccelerators AWS API Documentation
433
+ #
434
+ # @overload describe_accelerators(params = {})
435
+ # @param [Hash] params ({})
436
+ def describe_accelerators(params = {}, options = {})
437
+ req = build_request(:describe_accelerators, params)
438
+ req.send_request(options)
439
+ end
440
+
311
441
  # Returns all tags of an Elastic Inference Accelerator.
312
442
  #
313
443
  # @option params [required, String] :resource_arn
@@ -337,7 +467,7 @@ module Aws::ElasticInference
337
467
  req.send_request(options)
338
468
  end
339
469
 
340
- # Adds the specified tag(s) to an Elastic Inference Accelerator.
470
+ # Adds the specified tags to an Elastic Inference Accelerator.
341
471
  #
342
472
  # @option params [required, String] :resource_arn
343
473
  # The ARN of the Elastic Inference Accelerator to tag.
@@ -365,7 +495,7 @@ module Aws::ElasticInference
365
495
  req.send_request(options)
366
496
  end
367
497
 
368
- # Removes the specified tag(s) from an Elastic Inference Accelerator.
498
+ # Removes the specified tags from an Elastic Inference Accelerator.
369
499
  #
370
500
  # @option params [required, String] :resource_arn
371
501
  # The ARN of the Elastic Inference Accelerator to untag.
@@ -404,7 +534,7 @@ module Aws::ElasticInference
404
534
  params: params,
405
535
  config: config)
406
536
  context[:gem_name] = 'aws-sdk-elasticinference'
407
- context[:gem_version] = '1.2.0'
537
+ context[:gem_version] = '1.3.0'
408
538
  Seahorse::Client::Request.new(handlers, context)
409
539
  end
410
540
 
@@ -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|
@@ -67,7 +170,7 @@ module Aws::ElasticInference
67
170
 
68
171
  api.metadata = {
69
172
  "apiVersion" => "2017-07-25",
70
- "endpointPrefix" => "elastic-inference",
173
+ "endpointPrefix" => "api.elastic-inference",
71
174
  "jsonVersion" => "1.1",
72
175
  "protocol" => "rest-json",
73
176
  "serviceAbbreviation" => "Amazon Elastic Inference",
@@ -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"
@@ -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.2.0
4
+ version: 1.3.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: 2020-03-31 00:00:00.000000000 Z
11
+ date: 2020-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -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