UNPKG

22.4 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 Cloud9 extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: Cloud9.Types.ClientConfiguration)
13 config: Config & Cloud9.Types.ClientConfiguration;
14 /**
15 * Creates an AWS Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, and then connects from the instance to the environment.
16 */
17 createEnvironmentEC2(params: Cloud9.Types.CreateEnvironmentEC2Request, callback?: (err: AWSError, data: Cloud9.Types.CreateEnvironmentEC2Result) => void): Request<Cloud9.Types.CreateEnvironmentEC2Result, AWSError>;
18 /**
19 * Creates an AWS Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, and then connects from the instance to the environment.
20 */
21 createEnvironmentEC2(callback?: (err: AWSError, data: Cloud9.Types.CreateEnvironmentEC2Result) => void): Request<Cloud9.Types.CreateEnvironmentEC2Result, AWSError>;
22 /**
23 * Adds an environment member to an AWS Cloud9 development environment.
24 */
25 createEnvironmentMembership(params: Cloud9.Types.CreateEnvironmentMembershipRequest, callback?: (err: AWSError, data: Cloud9.Types.CreateEnvironmentMembershipResult) => void): Request<Cloud9.Types.CreateEnvironmentMembershipResult, AWSError>;
26 /**
27 * Adds an environment member to an AWS Cloud9 development environment.
28 */
29 createEnvironmentMembership(callback?: (err: AWSError, data: Cloud9.Types.CreateEnvironmentMembershipResult) => void): Request<Cloud9.Types.CreateEnvironmentMembershipResult, AWSError>;
30 /**
31 * Deletes an AWS Cloud9 development environment. If an Amazon EC2 instance is connected to the environment, also terminates the instance.
32 */
33 deleteEnvironment(params: Cloud9.Types.DeleteEnvironmentRequest, callback?: (err: AWSError, data: Cloud9.Types.DeleteEnvironmentResult) => void): Request<Cloud9.Types.DeleteEnvironmentResult, AWSError>;
34 /**
35 * Deletes an AWS Cloud9 development environment. If an Amazon EC2 instance is connected to the environment, also terminates the instance.
36 */
37 deleteEnvironment(callback?: (err: AWSError, data: Cloud9.Types.DeleteEnvironmentResult) => void): Request<Cloud9.Types.DeleteEnvironmentResult, AWSError>;
38 /**
39 * Deletes an environment member from an AWS Cloud9 development environment.
40 */
41 deleteEnvironmentMembership(params: Cloud9.Types.DeleteEnvironmentMembershipRequest, callback?: (err: AWSError, data: Cloud9.Types.DeleteEnvironmentMembershipResult) => void): Request<Cloud9.Types.DeleteEnvironmentMembershipResult, AWSError>;
42 /**
43 * Deletes an environment member from an AWS Cloud9 development environment.
44 */
45 deleteEnvironmentMembership(callback?: (err: AWSError, data: Cloud9.Types.DeleteEnvironmentMembershipResult) => void): Request<Cloud9.Types.DeleteEnvironmentMembershipResult, AWSError>;
46 /**
47 * Gets information about environment members for an AWS Cloud9 development environment.
48 */
49 describeEnvironmentMemberships(params: Cloud9.Types.DescribeEnvironmentMembershipsRequest, callback?: (err: AWSError, data: Cloud9.Types.DescribeEnvironmentMembershipsResult) => void): Request<Cloud9.Types.DescribeEnvironmentMembershipsResult, AWSError>;
50 /**
51 * Gets information about environment members for an AWS Cloud9 development environment.
52 */
53 describeEnvironmentMemberships(callback?: (err: AWSError, data: Cloud9.Types.DescribeEnvironmentMembershipsResult) => void): Request<Cloud9.Types.DescribeEnvironmentMembershipsResult, AWSError>;
54 /**
55 * Gets status information for an AWS Cloud9 development environment.
56 */
57 describeEnvironmentStatus(params: Cloud9.Types.DescribeEnvironmentStatusRequest, callback?: (err: AWSError, data: Cloud9.Types.DescribeEnvironmentStatusResult) => void): Request<Cloud9.Types.DescribeEnvironmentStatusResult, AWSError>;
58 /**
59 * Gets status information for an AWS Cloud9 development environment.
60 */
61 describeEnvironmentStatus(callback?: (err: AWSError, data: Cloud9.Types.DescribeEnvironmentStatusResult) => void): Request<Cloud9.Types.DescribeEnvironmentStatusResult, AWSError>;
62 /**
63 * Gets information about AWS Cloud9 development environments.
64 */
65 describeEnvironments(params: Cloud9.Types.DescribeEnvironmentsRequest, callback?: (err: AWSError, data: Cloud9.Types.DescribeEnvironmentsResult) => void): Request<Cloud9.Types.DescribeEnvironmentsResult, AWSError>;
66 /**
67 * Gets information about AWS Cloud9 development environments.
68 */
69 describeEnvironments(callback?: (err: AWSError, data: Cloud9.Types.DescribeEnvironmentsResult) => void): Request<Cloud9.Types.DescribeEnvironmentsResult, AWSError>;
70 /**
71 * Gets a list of AWS Cloud9 development environment identifiers.
72 */
73 listEnvironments(params: Cloud9.Types.ListEnvironmentsRequest, callback?: (err: AWSError, data: Cloud9.Types.ListEnvironmentsResult) => void): Request<Cloud9.Types.ListEnvironmentsResult, AWSError>;
74 /**
75 * Gets a list of AWS Cloud9 development environment identifiers.
76 */
77 listEnvironments(callback?: (err: AWSError, data: Cloud9.Types.ListEnvironmentsResult) => void): Request<Cloud9.Types.ListEnvironmentsResult, AWSError>;
78 /**
79 * Gets a list of the tags associated with an AWS Cloud9 development environment.
80 */
81 listTagsForResource(params: Cloud9.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Cloud9.Types.ListTagsForResourceResponse) => void): Request<Cloud9.Types.ListTagsForResourceResponse, AWSError>;
82 /**
83 * Gets a list of the tags associated with an AWS Cloud9 development environment.
84 */
85 listTagsForResource(callback?: (err: AWSError, data: Cloud9.Types.ListTagsForResourceResponse) => void): Request<Cloud9.Types.ListTagsForResourceResponse, AWSError>;
86 /**
87 * 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.
88 */
89 tagResource(params: Cloud9.Types.TagResourceRequest, callback?: (err: AWSError, data: Cloud9.Types.TagResourceResponse) => void): Request<Cloud9.Types.TagResourceResponse, AWSError>;
90 /**
91 * 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.
92 */
93 tagResource(callback?: (err: AWSError, data: Cloud9.Types.TagResourceResponse) => void): Request<Cloud9.Types.TagResourceResponse, AWSError>;
94 /**
95 * Removes tags from an AWS Cloud9 development environment.
96 */
97 untagResource(params: Cloud9.Types.UntagResourceRequest, callback?: (err: AWSError, data: Cloud9.Types.UntagResourceResponse) => void): Request<Cloud9.Types.UntagResourceResponse, AWSError>;
98 /**
99 * Removes tags from an AWS Cloud9 development environment.
100 */
101 untagResource(callback?: (err: AWSError, data: Cloud9.Types.UntagResourceResponse) => void): Request<Cloud9.Types.UntagResourceResponse, AWSError>;
102 /**
103 * Changes the settings of an existing AWS Cloud9 development environment.
104 */
105 updateEnvironment(params: Cloud9.Types.UpdateEnvironmentRequest, callback?: (err: AWSError, data: Cloud9.Types.UpdateEnvironmentResult) => void): Request<Cloud9.Types.UpdateEnvironmentResult, AWSError>;
106 /**
107 * Changes the settings of an existing AWS Cloud9 development environment.
108 */
109 updateEnvironment(callback?: (err: AWSError, data: Cloud9.Types.UpdateEnvironmentResult) => void): Request<Cloud9.Types.UpdateEnvironmentResult, AWSError>;
110 /**
111 * Changes the settings of an existing environment member for an AWS Cloud9 development environment.
112 */
113 updateEnvironmentMembership(params: Cloud9.Types.UpdateEnvironmentMembershipRequest, callback?: (err: AWSError, data: Cloud9.Types.UpdateEnvironmentMembershipResult) => void): Request<Cloud9.Types.UpdateEnvironmentMembershipResult, AWSError>;
114 /**
115 * Changes the settings of an existing environment member for an AWS Cloud9 development environment.
116 */
117 updateEnvironmentMembership(callback?: (err: AWSError, data: Cloud9.Types.UpdateEnvironmentMembershipResult) => void): Request<Cloud9.Types.UpdateEnvironmentMembershipResult, AWSError>;
118}
119declare namespace Cloud9 {
120 export type AutomaticStopTimeMinutes = number;
121 export type BoundedEnvironmentIdList = EnvironmentId[];
122 export type ClientRequestToken = string;
123 export interface CreateEnvironmentEC2Request {
124 /**
125 * The name of the environment to create. This name is visible to other AWS IAM users in the same AWS account.
126 */
127 name: EnvironmentName;
128 /**
129 * The description of the environment to create.
130 */
131 description?: EnvironmentDescription;
132 /**
133 * 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.
134 */
135 clientRequestToken?: ClientRequestToken;
136 /**
137 * The type of instance to connect to the environment (for example, t2.micro).
138 */
139 instanceType: InstanceType;
140 /**
141 * The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
142 */
143 subnetId?: SubnetId;
144 /**
145 * The number of minutes until the running instance is shut down after the environment has last been used.
146 */
147 automaticStopTimeMinutes?: AutomaticStopTimeMinutes;
148 /**
149 * 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.
150 */
151 ownerArn?: UserArn;
152 /**
153 * An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
154 */
155 tags?: TagList;
156 }
157 export interface CreateEnvironmentEC2Result {
158 /**
159 * The ID of the environment that was created.
160 */
161 environmentId?: EnvironmentId;
162 }
163 export interface CreateEnvironmentMembershipRequest {
164 /**
165 * The ID of the environment that contains the environment member you want to add.
166 */
167 environmentId: EnvironmentId;
168 /**
169 * The Amazon Resource Name (ARN) of the environment member you want to add.
170 */
171 userArn: UserArn;
172 /**
173 * 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.
174 */
175 permissions: MemberPermissions;
176 }
177 export interface CreateEnvironmentMembershipResult {
178 /**
179 * Information about the environment member that was added.
180 */
181 membership?: EnvironmentMember;
182 }
183 export interface DeleteEnvironmentMembershipRequest {
184 /**
185 * The ID of the environment to delete the environment member from.
186 */
187 environmentId: EnvironmentId;
188 /**
189 * The Amazon Resource Name (ARN) of the environment member to delete from the environment.
190 */
191 userArn: UserArn;
192 }
193 export interface DeleteEnvironmentMembershipResult {
194 }
195 export interface DeleteEnvironmentRequest {
196 /**
197 * The ID of the environment to delete.
198 */
199 environmentId: EnvironmentId;
200 }
201 export interface DeleteEnvironmentResult {
202 }
203 export interface DescribeEnvironmentMembershipsRequest {
204 /**
205 * 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.
206 */
207 userArn?: UserArn;
208 /**
209 * The ID of the environment to get environment member information about.
210 */
211 environmentId?: EnvironmentId;
212 /**
213 * 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.
214 */
215 permissions?: PermissionsList;
216 /**
217 * 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.
218 */
219 nextToken?: String;
220 /**
221 * The maximum number of environment members to get information about.
222 */
223 maxResults?: MaxResults;
224 }
225 export interface DescribeEnvironmentMembershipsResult {
226 /**
227 * Information about the environment members for the environment.
228 */
229 memberships?: EnvironmentMembersList;
230 /**
231 * 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.
232 */
233 nextToken?: String;
234 }
235 export interface DescribeEnvironmentStatusRequest {
236 /**
237 * The ID of the environment to get status information about.
238 */
239 environmentId: EnvironmentId;
240 }
241 export interface DescribeEnvironmentStatusResult {
242 /**
243 * 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.
244 */
245 status?: EnvironmentStatus;
246 /**
247 * Any informational message about the status of the environment.
248 */
249 message?: String;
250 }
251 export interface DescribeEnvironmentsRequest {
252 /**
253 * The IDs of individual environments to get information about.
254 */
255 environmentIds: BoundedEnvironmentIdList;
256 }
257 export interface DescribeEnvironmentsResult {
258 /**
259 * Information about the environments that are returned.
260 */
261 environments?: EnvironmentList;
262 }
263 export interface Environment {
264 /**
265 * The ID of the environment.
266 */
267 id?: EnvironmentId;
268 /**
269 * The name of the environment.
270 */
271 name?: EnvironmentName;
272 /**
273 * The description for the environment.
274 */
275 description?: EnvironmentDescription;
276 /**
277 * 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.
278 */
279 type?: EnvironmentType;
280 /**
281 * The Amazon Resource Name (ARN) of the environment.
282 */
283 arn?: String;
284 /**
285 * The Amazon Resource Name (ARN) of the environment owner.
286 */
287 ownerArn?: String;
288 /**
289 * The state of the environment in its creation or deletion lifecycle.
290 */
291 lifecycle?: EnvironmentLifecycle;
292 }
293 export type EnvironmentArn = string;
294 export type EnvironmentDescription = string;
295 export type EnvironmentId = string;
296 export type EnvironmentIdList = EnvironmentId[];
297 export interface EnvironmentLifecycle {
298 /**
299 * 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.
300 */
301 status?: EnvironmentLifecycleStatus;
302 /**
303 * Any informational message about the lifecycle state of the environment.
304 */
305 reason?: String;
306 /**
307 * If the environment failed to delete, the Amazon Resource Name (ARN) of the related AWS resource.
308 */
309 failureResource?: String;
310 }
311 export type EnvironmentLifecycleStatus = "CREATING"|"CREATED"|"CREATE_FAILED"|"DELETING"|"DELETE_FAILED"|string;
312 export type EnvironmentList = Environment[];
313 export interface EnvironmentMember {
314 /**
315 * 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.
316 */
317 permissions?: Permissions;
318 /**
319 * The user ID in AWS Identity and Access Management (AWS IAM) of the environment member.
320 */
321 userId?: String;
322 /**
323 * The Amazon Resource Name (ARN) of the environment member.
324 */
325 userArn?: UserArn;
326 /**
327 * The ID of the environment for the environment member.
328 */
329 environmentId?: EnvironmentId;
330 /**
331 * The time, expressed in epoch time format, when the environment member last opened the environment.
332 */
333 lastAccess?: Timestamp;
334 }
335 export type EnvironmentMembersList = EnvironmentMember[];
336 export type EnvironmentName = string;
337 export type EnvironmentStatus = "error"|"creating"|"connecting"|"ready"|"stopping"|"stopped"|"deleting"|string;
338 export type EnvironmentType = "ssh"|"ec2"|string;
339 export type InstanceType = string;
340 export interface ListEnvironmentsRequest {
341 /**
342 * 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.
343 */
344 nextToken?: String;
345 /**
346 * The maximum number of environments to get identifiers for.
347 */
348 maxResults?: MaxResults;
349 }
350 export interface ListEnvironmentsResult {
351 /**
352 * 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.
353 */
354 nextToken?: String;
355 /**
356 * The list of environment identifiers.
357 */
358 environmentIds?: EnvironmentIdList;
359 }
360 export interface ListTagsForResourceRequest {
361 /**
362 * The Amazon Resource Name (ARN) of the AWS Cloud9 development environment to get the tags for.
363 */
364 ResourceARN: EnvironmentArn;
365 }
366 export interface ListTagsForResourceResponse {
367 /**
368 * The list of tags associated with the AWS Cloud9 development environment.
369 */
370 Tags?: TagList;
371 }
372 export type MaxResults = number;
373 export type MemberPermissions = "read-write"|"read-only"|string;
374 export type Permissions = "owner"|"read-write"|"read-only"|string;
375 export type PermissionsList = Permissions[];
376 export type String = string;
377 export type SubnetId = string;
378 export interface Tag {
379 /**
380 * The name part of a tag.
381 */
382 Key: TagKey;
383 /**
384 * The value part of a tag.
385 */
386 Value: TagValue;
387 }
388 export type TagKey = string;
389 export type TagKeyList = TagKey[];
390 export type TagList = Tag[];
391 export interface TagResourceRequest {
392 /**
393 * The Amazon Resource Name (ARN) of the AWS Cloud9 development environment to add tags to.
394 */
395 ResourceARN: EnvironmentArn;
396 /**
397 * The list of tags to add to the given AWS Cloud9 development environment.
398 */
399 Tags: TagList;
400 }
401 export interface TagResourceResponse {
402 }
403 export type TagValue = string;
404 export type Timestamp = Date;
405 export interface UntagResourceRequest {
406 /**
407 * The Amazon Resource Name (ARN) of the AWS Cloud9 development environment to remove tags from.
408 */
409 ResourceARN: EnvironmentArn;
410 /**
411 * The tag names of the tags to remove from the given AWS Cloud9 development environment.
412 */
413 TagKeys: TagKeyList;
414 }
415 export interface UntagResourceResponse {
416 }
417 export interface UpdateEnvironmentMembershipRequest {
418 /**
419 * The ID of the environment for the environment member whose settings you want to change.
420 */
421 environmentId: EnvironmentId;
422 /**
423 * The Amazon Resource Name (ARN) of the environment member whose settings you want to change.
424 */
425 userArn: UserArn;
426 /**
427 * 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.
428 */
429 permissions: MemberPermissions;
430 }
431 export interface UpdateEnvironmentMembershipResult {
432 /**
433 * Information about the environment member whose settings were changed.
434 */
435 membership?: EnvironmentMember;
436 }
437 export interface UpdateEnvironmentRequest {
438 /**
439 * The ID of the environment to change settings.
440 */
441 environmentId: EnvironmentId;
442 /**
443 * A replacement name for the environment.
444 */
445 name?: EnvironmentName;
446 /**
447 * Any new or replacement description for the environment.
448 */
449 description?: EnvironmentDescription;
450 }
451 export interface UpdateEnvironmentResult {
452 }
453 export type UserArn = string;
454 /**
455 * 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.
456 */
457 export type apiVersion = "2017-09-23"|"latest"|string;
458 export interface ClientApiVersions {
459 /**
460 * 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.
461 */
462 apiVersion?: apiVersion;
463 }
464 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
465 /**
466 * Contains interfaces for use with the Cloud9 client.
467 */
468 export import Types = Cloud9;
469}
470export = Cloud9;