elasticinference.d.ts
12.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class ElasticInference extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: ElasticInference.Types.ClientConfiguration)
config: Config & ElasticInference.Types.ClientConfiguration;
/**
* Describes the locations in which a given accelerator type or set of types is present in a given region.
*/
describeAcceleratorOfferings(params: ElasticInference.Types.DescribeAcceleratorOfferingsRequest, callback?: (err: AWSError, data: ElasticInference.Types.DescribeAcceleratorOfferingsResponse) => void): Request<ElasticInference.Types.DescribeAcceleratorOfferingsResponse, AWSError>;
/**
* Describes the locations in which a given accelerator type or set of types is present in a given region.
*/
describeAcceleratorOfferings(callback?: (err: AWSError, data: ElasticInference.Types.DescribeAcceleratorOfferingsResponse) => void): Request<ElasticInference.Types.DescribeAcceleratorOfferingsResponse, AWSError>;
/**
* Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput.
*/
describeAcceleratorTypes(params: ElasticInference.Types.DescribeAcceleratorTypesRequest, callback?: (err: AWSError, data: ElasticInference.Types.DescribeAcceleratorTypesResponse) => void): Request<ElasticInference.Types.DescribeAcceleratorTypesResponse, AWSError>;
/**
* Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput.
*/
describeAcceleratorTypes(callback?: (err: AWSError, data: ElasticInference.Types.DescribeAcceleratorTypesResponse) => void): Request<ElasticInference.Types.DescribeAcceleratorTypesResponse, AWSError>;
/**
* Describes information over a provided set of accelerators belonging to an account.
*/
describeAccelerators(params: ElasticInference.Types.DescribeAcceleratorsRequest, callback?: (err: AWSError, data: ElasticInference.Types.DescribeAcceleratorsResponse) => void): Request<ElasticInference.Types.DescribeAcceleratorsResponse, AWSError>;
/**
* Describes information over a provided set of accelerators belonging to an account.
*/
describeAccelerators(callback?: (err: AWSError, data: ElasticInference.Types.DescribeAcceleratorsResponse) => void): Request<ElasticInference.Types.DescribeAcceleratorsResponse, AWSError>;
/**
* Returns all tags of an Elastic Inference Accelerator.
*/
listTagsForResource(params: ElasticInference.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: ElasticInference.Types.ListTagsForResourceResult) => void): Request<ElasticInference.Types.ListTagsForResourceResult, AWSError>;
/**
* Returns all tags of an Elastic Inference Accelerator.
*/
listTagsForResource(callback?: (err: AWSError, data: ElasticInference.Types.ListTagsForResourceResult) => void): Request<ElasticInference.Types.ListTagsForResourceResult, AWSError>;
/**
* Adds the specified tags to an Elastic Inference Accelerator.
*/
tagResource(params: ElasticInference.Types.TagResourceRequest, callback?: (err: AWSError, data: ElasticInference.Types.TagResourceResult) => void): Request<ElasticInference.Types.TagResourceResult, AWSError>;
/**
* Adds the specified tags to an Elastic Inference Accelerator.
*/
tagResource(callback?: (err: AWSError, data: ElasticInference.Types.TagResourceResult) => void): Request<ElasticInference.Types.TagResourceResult, AWSError>;
/**
* Removes the specified tags from an Elastic Inference Accelerator.
*/
untagResource(params: ElasticInference.Types.UntagResourceRequest, callback?: (err: AWSError, data: ElasticInference.Types.UntagResourceResult) => void): Request<ElasticInference.Types.UntagResourceResult, AWSError>;
/**
* Removes the specified tags from an Elastic Inference Accelerator.
*/
untagResource(callback?: (err: AWSError, data: ElasticInference.Types.UntagResourceResult) => void): Request<ElasticInference.Types.UntagResourceResult, AWSError>;
}
declare namespace ElasticInference {
export type AcceleratorHealthStatus = string;
export type AcceleratorId = string;
export type AcceleratorIdList = AcceleratorId[];
export interface AcceleratorType {
/**
* The name of the Elastic Inference Accelerator type.
*/
acceleratorTypeName?: AcceleratorTypeName;
/**
* The memory information of the Elastic Inference Accelerator type.
*/
memoryInfo?: MemoryInfo;
/**
* The throughput information of the Elastic Inference Accelerator type.
*/
throughputInfo?: ThroughputInfoList;
}
export type AcceleratorTypeList = AcceleratorType[];
export type AcceleratorTypeName = string;
export type AcceleratorTypeNameList = AcceleratorTypeName[];
export interface AcceleratorTypeOffering {
/**
* The name of the Elastic Inference Accelerator type.
*/
acceleratorType?: AcceleratorTypeName;
/**
* The location type for the offering. It can assume the following values: region: defines that the offering is at the regional level. availability-zone: defines that the offering is at the availability zone level. availability-zone-id: defines that the offering is at the availability zone level, defined by the availability zone id.
*/
locationType?: LocationType;
/**
* The location for the offering. It will return either the region, availability zone or availability zone id for the offering depending on the locationType value.
*/
location?: Location;
}
export type AcceleratorTypeOfferingList = AcceleratorTypeOffering[];
export type AvailabilityZone = string;
export interface DescribeAcceleratorOfferingsRequest {
/**
* The location type that you want to describe accelerator type offerings for. It can assume the following values: region: will return the accelerator type offering at the regional level. availability-zone: will return the accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type offering at the availability zone level returning the availability zone id.
*/
locationType: LocationType;
/**
* The list of accelerator types to describe.
*/
acceleratorTypes?: AcceleratorTypeNameList;
}
export interface DescribeAcceleratorOfferingsResponse {
/**
* The list of accelerator type offerings for a specific location.
*/
acceleratorTypeOfferings?: AcceleratorTypeOfferingList;
}
export interface DescribeAcceleratorTypesRequest {
}
export interface DescribeAcceleratorTypesResponse {
/**
* The available accelerator types.
*/
acceleratorTypes?: AcceleratorTypeList;
}
export interface DescribeAcceleratorsRequest {
/**
* The IDs of the accelerators to describe.
*/
acceleratorIds?: AcceleratorIdList;
/**
* One or more filters. Filter names and values are case-sensitive. Valid filter names are: accelerator-types: can provide a list of accelerator type names to filter for. instance-id: can provide a list of EC2 instance ids to filter for.
*/
filters?: FilterList;
/**
* The total number of items to return in the command's output. If the total number of items available is more than the value specified, a NextToken is provided in the command's output. To resume pagination, provide the NextToken value in the starting-token argument of a subsequent command. Do not use the NextToken response element directly outside of the AWS CLI.
*/
maxResults?: MaxResults;
/**
* A token to specify where to start paginating. This is the NextToken from a previously truncated response.
*/
nextToken?: NextToken;
}
export interface DescribeAcceleratorsResponse {
/**
* The details of the Elastic Inference Accelerators.
*/
acceleratorSet?: ElasticInferenceAcceleratorSet;
/**
* A token to specify where to start paginating. This is the NextToken from a previously truncated response.
*/
nextToken?: NextToken;
}
export interface ElasticInferenceAccelerator {
/**
* The health of the Elastic Inference Accelerator.
*/
acceleratorHealth?: ElasticInferenceAcceleratorHealth;
/**
* The type of the Elastic Inference Accelerator.
*/
acceleratorType?: AcceleratorTypeName;
/**
* The ID of the Elastic Inference Accelerator.
*/
acceleratorId?: AcceleratorId;
/**
* The availability zone where the Elastic Inference Accelerator is present.
*/
availabilityZone?: AvailabilityZone;
/**
* The ARN of the resource that the Elastic Inference Accelerator is attached to.
*/
attachedResource?: ResourceArn;
}
export interface ElasticInferenceAcceleratorHealth {
/**
* The health status of the Elastic Inference Accelerator.
*/
status?: AcceleratorHealthStatus;
}
export type ElasticInferenceAcceleratorSet = ElasticInferenceAccelerator[];
export interface Filter {
/**
* The filter name for the Elastic Inference Accelerator list. It can assume the following values: accelerator-type: the type of Elastic Inference Accelerator to filter for. instance-id: an EC2 instance id to filter for.
*/
name?: FilterName;
/**
* The values for the filter of the Elastic Inference Accelerator list.
*/
values?: ValueStringList;
}
export type FilterList = Filter[];
export type FilterName = string;
export type Integer = number;
export type Key = string;
export interface KeyValuePair {
/**
* The throughput value of the Elastic Inference Accelerator type. It can assume the following values: TFLOPS16bit: the throughput expressed in 16bit TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS.
*/
key?: Key;
/**
* The throughput value of the Elastic Inference Accelerator type.
*/
value?: Value;
}
export interface ListTagsForResourceRequest {
/**
* The ARN of the Elastic Inference Accelerator to list the tags for.
*/
resourceArn: ResourceARN;
}
export interface ListTagsForResourceResult {
/**
* The tags of the Elastic Inference Accelerator.
*/
tags?: TagMap;
}
export type Location = string;
export type LocationType = "region"|"availability-zone"|"availability-zone-id"|string;
export type MaxResults = number;
export interface MemoryInfo {
/**
* The size in mebibytes of the Elastic Inference Accelerator type.
*/
sizeInMiB?: Integer;
}
export type NextToken = string;
export type ResourceARN = string;
export type ResourceArn = string;
export type String = string;
export type TagKey = string;
export type TagKeyList = TagKey[];
export type TagMap = {[key: string]: TagValue};
export interface TagResourceRequest {
/**
* The ARN of the Elastic Inference Accelerator to tag.
*/
resourceArn: ResourceARN;
/**
* The tags to add to the Elastic Inference Accelerator.
*/
tags: TagMap;
}
export interface TagResourceResult {
}
export type TagValue = string;
export type ThroughputInfoList = KeyValuePair[];
export interface UntagResourceRequest {
/**
* The ARN of the Elastic Inference Accelerator to untag.
*/
resourceArn: ResourceARN;
/**
* The list of tags to remove from the Elastic Inference Accelerator.
*/
tagKeys: TagKeyList;
}
export interface UntagResourceResult {
}
export type Value = number;
export type ValueStringList = String[];
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2017-07-25"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the ElasticInference client.
*/
export import Types = ElasticInference;
}
export = ElasticInference;