cloud9.d.ts
22.2 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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
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-base';
interface Blob {}
declare class Cloud9 extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Cloud9.Types.ClientConfiguration)
config: Config & Cloud9.Types.ClientConfiguration;
/**
* Creates an AWS Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, and then connects from the instance to the environment.
*/
createEnvironmentEC2(params: Cloud9.Types.CreateEnvironmentEC2Request, callback?: (err: AWSError, data: Cloud9.Types.CreateEnvironmentEC2Result) => void): Request<Cloud9.Types.CreateEnvironmentEC2Result, AWSError>;
/**
* Creates an AWS Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, and then connects from the instance to the environment.
*/
createEnvironmentEC2(callback?: (err: AWSError, data: Cloud9.Types.CreateEnvironmentEC2Result) => void): Request<Cloud9.Types.CreateEnvironmentEC2Result, AWSError>;
/**
* Adds an environment member to an AWS Cloud9 development environment.
*/
createEnvironmentMembership(params: Cloud9.Types.CreateEnvironmentMembershipRequest, callback?: (err: AWSError, data: Cloud9.Types.CreateEnvironmentMembershipResult) => void): Request<Cloud9.Types.CreateEnvironmentMembershipResult, AWSError>;
/**
* Adds an environment member to an AWS Cloud9 development environment.
*/
createEnvironmentMembership(callback?: (err: AWSError, data: Cloud9.Types.CreateEnvironmentMembershipResult) => void): Request<Cloud9.Types.CreateEnvironmentMembershipResult, AWSError>;
/**
* Deletes an AWS Cloud9 development environment. If an Amazon EC2 instance is connected to the environment, also terminates the instance.
*/
deleteEnvironment(params: Cloud9.Types.DeleteEnvironmentRequest, callback?: (err: AWSError, data: Cloud9.Types.DeleteEnvironmentResult) => void): Request<Cloud9.Types.DeleteEnvironmentResult, AWSError>;
/**
* Deletes an AWS Cloud9 development environment. If an Amazon EC2 instance is connected to the environment, also terminates the instance.
*/
deleteEnvironment(callback?: (err: AWSError, data: Cloud9.Types.DeleteEnvironmentResult) => void): Request<Cloud9.Types.DeleteEnvironmentResult, AWSError>;
/**
* Deletes an environment member from an AWS Cloud9 development environment.
*/
deleteEnvironmentMembership(params: Cloud9.Types.DeleteEnvironmentMembershipRequest, callback?: (err: AWSError, data: Cloud9.Types.DeleteEnvironmentMembershipResult) => void): Request<Cloud9.Types.DeleteEnvironmentMembershipResult, AWSError>;
/**
* Deletes an environment member from an AWS Cloud9 development environment.
*/
deleteEnvironmentMembership(callback?: (err: AWSError, data: Cloud9.Types.DeleteEnvironmentMembershipResult) => void): Request<Cloud9.Types.DeleteEnvironmentMembershipResult, AWSError>;
/**
* Gets information about environment members for an AWS Cloud9 development environment.
*/
describeEnvironmentMemberships(params: Cloud9.Types.DescribeEnvironmentMembershipsRequest, callback?: (err: AWSError, data: Cloud9.Types.DescribeEnvironmentMembershipsResult) => void): Request<Cloud9.Types.DescribeEnvironmentMembershipsResult, AWSError>;
/**
* Gets information about environment members for an AWS Cloud9 development environment.
*/
describeEnvironmentMemberships(callback?: (err: AWSError, data: Cloud9.Types.DescribeEnvironmentMembershipsResult) => void): Request<Cloud9.Types.DescribeEnvironmentMembershipsResult, AWSError>;
/**
* Gets status information for an AWS Cloud9 development environment.
*/
describeEnvironmentStatus(params: Cloud9.Types.DescribeEnvironmentStatusRequest, callback?: (err: AWSError, data: Cloud9.Types.DescribeEnvironmentStatusResult) => void): Request<Cloud9.Types.DescribeEnvironmentStatusResult, AWSError>;
/**
* Gets status information for an AWS Cloud9 development environment.
*/
describeEnvironmentStatus(callback?: (err: AWSError, data: Cloud9.Types.DescribeEnvironmentStatusResult) => void): Request<Cloud9.Types.DescribeEnvironmentStatusResult, AWSError>;
/**
* Gets information about AWS Cloud9 development environments.
*/
describeEnvironments(params: Cloud9.Types.DescribeEnvironmentsRequest, callback?: (err: AWSError, data: Cloud9.Types.DescribeEnvironmentsResult) => void): Request<Cloud9.Types.DescribeEnvironmentsResult, AWSError>;
/**
* Gets information about AWS Cloud9 development environments.
*/
describeEnvironments(callback?: (err: AWSError, data: Cloud9.Types.DescribeEnvironmentsResult) => void): Request<Cloud9.Types.DescribeEnvironmentsResult, AWSError>;
/**
* Gets a list of AWS Cloud9 development environment identifiers.
*/
listEnvironments(params: Cloud9.Types.ListEnvironmentsRequest, callback?: (err: AWSError, data: Cloud9.Types.ListEnvironmentsResult) => void): Request<Cloud9.Types.ListEnvironmentsResult, AWSError>;
/**
* Gets a list of AWS Cloud9 development environment identifiers.
*/
listEnvironments(callback?: (err: AWSError, data: Cloud9.Types.ListEnvironmentsResult) => void): Request<Cloud9.Types.ListEnvironmentsResult, AWSError>;
/**
* Gets a list of the tags associated with an AWS Cloud9 development environment.
*/
listTagsForResource(params: Cloud9.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Cloud9.Types.ListTagsForResourceResponse) => void): Request<Cloud9.Types.ListTagsForResourceResponse, AWSError>;
/**
* Gets a list of the tags associated with an AWS Cloud9 development environment.
*/
listTagsForResource(callback?: (err: AWSError, data: Cloud9.Types.ListTagsForResourceResponse) => void): Request<Cloud9.Types.ListTagsForResourceResponse, AWSError>;
/**
* Adds tags to an AWS Cloud9 development environment. Tags that you add to an AWS Cloud9 environment by using this method will NOT be automatically propagated to underlying resources.
*/
tagResource(params: Cloud9.Types.TagResourceRequest, callback?: (err: AWSError, data: Cloud9.Types.TagResourceResponse) => void): Request<Cloud9.Types.TagResourceResponse, AWSError>;
/**
* Adds tags to an AWS Cloud9 development environment. Tags that you add to an AWS Cloud9 environment by using this method will NOT be automatically propagated to underlying resources.
*/
tagResource(callback?: (err: AWSError, data: Cloud9.Types.TagResourceResponse) => void): Request<Cloud9.Types.TagResourceResponse, AWSError>;
/**
* Removes tags from an AWS Cloud9 development environment.
*/
untagResource(params: Cloud9.Types.UntagResourceRequest, callback?: (err: AWSError, data: Cloud9.Types.UntagResourceResponse) => void): Request<Cloud9.Types.UntagResourceResponse, AWSError>;
/**
* Removes tags from an AWS Cloud9 development environment.
*/
untagResource(callback?: (err: AWSError, data: Cloud9.Types.UntagResourceResponse) => void): Request<Cloud9.Types.UntagResourceResponse, AWSError>;
/**
* Changes the settings of an existing AWS Cloud9 development environment.
*/
updateEnvironment(params: Cloud9.Types.UpdateEnvironmentRequest, callback?: (err: AWSError, data: Cloud9.Types.UpdateEnvironmentResult) => void): Request<Cloud9.Types.UpdateEnvironmentResult, AWSError>;
/**
* Changes the settings of an existing AWS Cloud9 development environment.
*/
updateEnvironment(callback?: (err: AWSError, data: Cloud9.Types.UpdateEnvironmentResult) => void): Request<Cloud9.Types.UpdateEnvironmentResult, AWSError>;
/**
* Changes the settings of an existing environment member for an AWS Cloud9 development environment.
*/
updateEnvironmentMembership(params: Cloud9.Types.UpdateEnvironmentMembershipRequest, callback?: (err: AWSError, data: Cloud9.Types.UpdateEnvironmentMembershipResult) => void): Request<Cloud9.Types.UpdateEnvironmentMembershipResult, AWSError>;
/**
* Changes the settings of an existing environment member for an AWS Cloud9 development environment.
*/
updateEnvironmentMembership(callback?: (err: AWSError, data: Cloud9.Types.UpdateEnvironmentMembershipResult) => void): Request<Cloud9.Types.UpdateEnvironmentMembershipResult, AWSError>;
}
declare namespace Cloud9 {
export type AutomaticStopTimeMinutes = number;
export type BoundedEnvironmentIdList = EnvironmentId[];
export type ClientRequestToken = string;
export type ConnectionType = "CONNECT_SSH"|"CONNECT_SSM"|string;
export interface CreateEnvironmentEC2Request {
/**
* The name of the environment to create. This name is visible to other AWS IAM users in the same AWS account.
*/
name: EnvironmentName;
/**
* The description of the environment to create.
*/
description?: EnvironmentDescription;
/**
* A unique, case-sensitive string that helps AWS Cloud9 to ensure this operation completes no more than one time. For more information, see Client Tokens in the Amazon EC2 API Reference.
*/
clientRequestToken?: ClientRequestToken;
/**
* The type of instance to connect to the environment (for example, t2.micro).
*/
instanceType: InstanceType;
/**
* The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
*/
subnetId?: SubnetId;
/**
* The number of minutes until the running instance is shut down after the environment has last been used.
*/
automaticStopTimeMinutes?: AutomaticStopTimeMinutes;
/**
* The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any AWS IAM principal. If this value is not specified, the ARN defaults to this environment's creator.
*/
ownerArn?: UserArn;
/**
* An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
*/
tags?: TagList;
/**
* The connection type used for connecting to an Amazon EC2 environment.
*/
connectionType?: ConnectionType;
}
export interface CreateEnvironmentEC2Result {
/**
* The ID of the environment that was created.
*/
environmentId?: EnvironmentId;
}
export interface CreateEnvironmentMembershipRequest {
/**
* The ID of the environment that contains the environment member you want to add.
*/
environmentId: EnvironmentId;
/**
* The Amazon Resource Name (ARN) of the environment member you want to add.
*/
userArn: UserArn;
/**
* The type of environment member permissions you want to associate with this environment member. Available values include: read-only: Has read-only access to the environment. read-write: Has read-write access to the environment.
*/
permissions: MemberPermissions;
}
export interface CreateEnvironmentMembershipResult {
/**
* Information about the environment member that was added.
*/
membership?: EnvironmentMember;
}
export interface DeleteEnvironmentMembershipRequest {
/**
* The ID of the environment to delete the environment member from.
*/
environmentId: EnvironmentId;
/**
* The Amazon Resource Name (ARN) of the environment member to delete from the environment.
*/
userArn: UserArn;
}
export interface DeleteEnvironmentMembershipResult {
}
export interface DeleteEnvironmentRequest {
/**
* The ID of the environment to delete.
*/
environmentId: EnvironmentId;
}
export interface DeleteEnvironmentResult {
}
export interface DescribeEnvironmentMembershipsRequest {
/**
* The Amazon Resource Name (ARN) of an individual environment member to get information about. If no value is specified, information about all environment members are returned.
*/
userArn?: UserArn;
/**
* The ID of the environment to get environment member information about.
*/
environmentId?: EnvironmentId;
/**
* The type of environment member permissions to get information about. Available values include: owner: Owns the environment. read-only: Has read-only access to the environment. read-write: Has read-write access to the environment. If no value is specified, information about all environment members are returned.
*/
permissions?: PermissionsList;
/**
* During a previous call, if there are more than 25 items in the list, only the first 25 items are returned, along with a unique string called a next token. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
*/
nextToken?: String;
/**
* The maximum number of environment members to get information about.
*/
maxResults?: MaxResults;
}
export interface DescribeEnvironmentMembershipsResult {
/**
* Information about the environment members for the environment.
*/
memberships?: EnvironmentMembersList;
/**
* If there are more than 25 items in the list, only the first 25 items are returned, along with a unique string called a next token. To get the next batch of items in the list, call this operation again, adding the next token to the call.
*/
nextToken?: String;
}
export interface DescribeEnvironmentStatusRequest {
/**
* The ID of the environment to get status information about.
*/
environmentId: EnvironmentId;
}
export interface DescribeEnvironmentStatusResult {
/**
* The status of the environment. Available values include: connecting: The environment is connecting. creating: The environment is being created. deleting: The environment is being deleted. error: The environment is in an error state. ready: The environment is ready. stopped: The environment is stopped. stopping: The environment is stopping.
*/
status?: EnvironmentStatus;
/**
* Any informational message about the status of the environment.
*/
message?: String;
}
export interface DescribeEnvironmentsRequest {
/**
* The IDs of individual environments to get information about.
*/
environmentIds: BoundedEnvironmentIdList;
}
export interface DescribeEnvironmentsResult {
/**
* Information about the environments that are returned.
*/
environments?: EnvironmentList;
}
export interface Environment {
/**
* The ID of the environment.
*/
id?: EnvironmentId;
/**
* The name of the environment.
*/
name?: EnvironmentName;
/**
* The description for the environment.
*/
description?: EnvironmentDescription;
/**
* The type of environment. Valid values include the following: ec2: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment. ssh: Your own server connects to the environment.
*/
type?: EnvironmentType;
/**
* The connection type used for connecting to an Amazon EC2 environment.
*/
connectionType?: ConnectionType;
/**
* The Amazon Resource Name (ARN) of the environment.
*/
arn?: String;
/**
* The Amazon Resource Name (ARN) of the environment owner.
*/
ownerArn?: String;
/**
* The state of the environment in its creation or deletion lifecycle.
*/
lifecycle?: EnvironmentLifecycle;
}
export type EnvironmentArn = string;
export type EnvironmentDescription = string;
export type EnvironmentId = string;
export type EnvironmentIdList = EnvironmentId[];
export interface EnvironmentLifecycle {
/**
* The current creation or deletion lifecycle state of the environment. CREATING: The environment is in the process of being created. CREATED: The environment was successfully created. CREATE_FAILED: The environment failed to be created. DELETING: The environment is in the process of being deleted. DELETE_FAILED: The environment failed to delete.
*/
status?: EnvironmentLifecycleStatus;
/**
* Any informational message about the lifecycle state of the environment.
*/
reason?: String;
/**
* If the environment failed to delete, the Amazon Resource Name (ARN) of the related AWS resource.
*/
failureResource?: String;
}
export type EnvironmentLifecycleStatus = "CREATING"|"CREATED"|"CREATE_FAILED"|"DELETING"|"DELETE_FAILED"|string;
export type EnvironmentList = Environment[];
export interface EnvironmentMember {
/**
* The type of environment member permissions associated with this environment member. Available values include: owner: Owns the environment. read-only: Has read-only access to the environment. read-write: Has read-write access to the environment.
*/
permissions?: Permissions;
/**
* The user ID in AWS Identity and Access Management (AWS IAM) of the environment member.
*/
userId?: String;
/**
* The Amazon Resource Name (ARN) of the environment member.
*/
userArn?: UserArn;
/**
* The ID of the environment for the environment member.
*/
environmentId?: EnvironmentId;
/**
* The time, expressed in epoch time format, when the environment member last opened the environment.
*/
lastAccess?: Timestamp;
}
export type EnvironmentMembersList = EnvironmentMember[];
export type EnvironmentName = string;
export type EnvironmentStatus = "error"|"creating"|"connecting"|"ready"|"stopping"|"stopped"|"deleting"|string;
export type EnvironmentType = "ssh"|"ec2"|string;
export type InstanceType = string;
export interface ListEnvironmentsRequest {
/**
* During a previous call, if there are more than 25 items in the list, only the first 25 items are returned, along with a unique string called a next token. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
*/
nextToken?: String;
/**
* The maximum number of environments to get identifiers for.
*/
maxResults?: MaxResults;
}
export interface ListEnvironmentsResult {
/**
* If there are more than 25 items in the list, only the first 25 items are returned, along with a unique string called a next token. To get the next batch of items in the list, call this operation again, adding the next token to the call.
*/
nextToken?: String;
/**
* The list of environment identifiers.
*/
environmentIds?: EnvironmentIdList;
}
export interface ListTagsForResourceRequest {
/**
* The Amazon Resource Name (ARN) of the AWS Cloud9 development environment to get the tags for.
*/
ResourceARN: EnvironmentArn;
}
export interface ListTagsForResourceResponse {
/**
* The list of tags associated with the AWS Cloud9 development environment.
*/
Tags?: TagList;
}
export type MaxResults = number;
export type MemberPermissions = "read-write"|"read-only"|string;
export type Permissions = "owner"|"read-write"|"read-only"|string;
export type PermissionsList = Permissions[];
export type String = string;
export type SubnetId = string;
export interface Tag {
/**
* The name part of a tag.
*/
Key: TagKey;
/**
* The value part of a tag.
*/
Value: TagValue;
}
export type TagKey = string;
export type TagKeyList = TagKey[];
export type TagList = Tag[];
export interface TagResourceRequest {
/**
* The Amazon Resource Name (ARN) of the AWS Cloud9 development environment to add tags to.
*/
ResourceARN: EnvironmentArn;
/**
* The list of tags to add to the given AWS Cloud9 development environment.
*/
Tags: TagList;
}
export interface TagResourceResponse {
}
export type TagValue = string;
export type Timestamp = Date;
export interface UntagResourceRequest {
/**
* The Amazon Resource Name (ARN) of the AWS Cloud9 development environment to remove tags from.
*/
ResourceARN: EnvironmentArn;
/**
* The tag names of the tags to remove from the given AWS Cloud9 development environment.
*/
TagKeys: TagKeyList;
}
export interface UntagResourceResponse {
}
export interface UpdateEnvironmentMembershipRequest {
/**
* The ID of the environment for the environment member whose settings you want to change.
*/
environmentId: EnvironmentId;
/**
* The Amazon Resource Name (ARN) of the environment member whose settings you want to change.
*/
userArn: UserArn;
/**
* The replacement type of environment member permissions you want to associate with this environment member. Available values include: read-only: Has read-only access to the environment. read-write: Has read-write access to the environment.
*/
permissions: MemberPermissions;
}
export interface UpdateEnvironmentMembershipResult {
/**
* Information about the environment member whose settings were changed.
*/
membership?: EnvironmentMember;
}
export interface UpdateEnvironmentRequest {
/**
* The ID of the environment to change settings.
*/
environmentId: EnvironmentId;
/**
* A replacement name for the environment.
*/
name?: EnvironmentName;
/**
* Any new or replacement description for the environment.
*/
description?: EnvironmentDescription;
}
export interface UpdateEnvironmentResult {
}
export type UserArn = 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-09-23"|"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 Cloud9 client.
*/
export import Types = Cloud9;
}
export = Cloud9;