UNPKG

4.1 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class ElasticInference extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: ElasticInference.Types.ClientConfiguration)
13 config: Config & ElasticInference.Types.ClientConfiguration;
14 /**
15 * Returns all tags of an Elastic Inference Accelerator.
16 */
17 listTagsForResource(params: ElasticInference.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: ElasticInference.Types.ListTagsForResourceResult) => void): Request<ElasticInference.Types.ListTagsForResourceResult, AWSError>;
18 /**
19 * Returns all tags of an Elastic Inference Accelerator.
20 */
21 listTagsForResource(callback?: (err: AWSError, data: ElasticInference.Types.ListTagsForResourceResult) => void): Request<ElasticInference.Types.ListTagsForResourceResult, AWSError>;
22 /**
23 * Adds the specified tag(s) to an Elastic Inference Accelerator.
24 */
25 tagResource(params: ElasticInference.Types.TagResourceRequest, callback?: (err: AWSError, data: ElasticInference.Types.TagResourceResult) => void): Request<ElasticInference.Types.TagResourceResult, AWSError>;
26 /**
27 * Adds the specified tag(s) to an Elastic Inference Accelerator.
28 */
29 tagResource(callback?: (err: AWSError, data: ElasticInference.Types.TagResourceResult) => void): Request<ElasticInference.Types.TagResourceResult, AWSError>;
30 /**
31 * Removes the specified tag(s) from an Elastic Inference Accelerator.
32 */
33 untagResource(params: ElasticInference.Types.UntagResourceRequest, callback?: (err: AWSError, data: ElasticInference.Types.UntagResourceResult) => void): Request<ElasticInference.Types.UntagResourceResult, AWSError>;
34 /**
35 * Removes the specified tag(s) from an Elastic Inference Accelerator.
36 */
37 untagResource(callback?: (err: AWSError, data: ElasticInference.Types.UntagResourceResult) => void): Request<ElasticInference.Types.UntagResourceResult, AWSError>;
38}
39declare namespace ElasticInference {
40 export interface ListTagsForResourceRequest {
41 /**
42 * The ARN of the Elastic Inference Accelerator to list the tags for.
43 */
44 resourceArn: ResourceARN;
45 }
46 export interface ListTagsForResourceResult {
47 /**
48 * The tags of the Elastic Inference Accelerator.
49 */
50 tags?: TagMap;
51 }
52 export type ResourceARN = string;
53 export type TagKey = string;
54 export type TagKeyList = TagKey[];
55 export type TagMap = {[key: string]: TagValue};
56 export interface TagResourceRequest {
57 /**
58 * The ARN of the Elastic Inference Accelerator to tag.
59 */
60 resourceArn: ResourceARN;
61 /**
62 * The tags to add to the Elastic Inference Accelerator.
63 */
64 tags: TagMap;
65 }
66 export interface TagResourceResult {
67 }
68 export type TagValue = string;
69 export interface UntagResourceRequest {
70 /**
71 * The ARN of the Elastic Inference Accelerator to untag.
72 */
73 resourceArn: ResourceARN;
74 /**
75 * The list of tags to remove from the Elastic Inference Accelerator.
76 */
77 tagKeys: TagKeyList;
78 }
79 export interface UntagResourceResult {
80 }
81 /**
82 * 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.
83 */
84 export type apiVersion = "2017-07-25"|"latest"|string;
85 export interface ClientApiVersions {
86 /**
87 * 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.
88 */
89 apiVersion?: apiVersion;
90 }
91 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
92 /**
93 * Contains interfaces for use with the ElasticInference client.
94 */
95 export import Types = ElasticInference;
96}
97export = ElasticInference;