1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class Cloud9 extends Service {
|
9 | |
10 |
|
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 | * Changes the settings of an existing AWS Cloud9 development environment.
|
80 | */
|
81 | updateEnvironment(params: Cloud9.Types.UpdateEnvironmentRequest, callback?: (err: AWSError, data: Cloud9.Types.UpdateEnvironmentResult) => void): Request<Cloud9.Types.UpdateEnvironmentResult, AWSError>;
|
82 | /**
|
83 | * Changes the settings of an existing AWS Cloud9 development environment.
|
84 | */
|
85 | updateEnvironment(callback?: (err: AWSError, data: Cloud9.Types.UpdateEnvironmentResult) => void): Request<Cloud9.Types.UpdateEnvironmentResult, AWSError>;
|
86 | /**
|
87 | * Changes the settings of an existing environment member for an AWS Cloud9 development environment.
|
88 | */
|
89 | updateEnvironmentMembership(params: Cloud9.Types.UpdateEnvironmentMembershipRequest, callback?: (err: AWSError, data: Cloud9.Types.UpdateEnvironmentMembershipResult) => void): Request<Cloud9.Types.UpdateEnvironmentMembershipResult, AWSError>;
|
90 | /**
|
91 | * Changes the settings of an existing environment member for an AWS Cloud9 development environment.
|
92 | */
|
93 | updateEnvironmentMembership(callback?: (err: AWSError, data: Cloud9.Types.UpdateEnvironmentMembershipResult) => void): Request<Cloud9.Types.UpdateEnvironmentMembershipResult, AWSError>;
|
94 | }
|
95 | declare namespace Cloud9 {
|
96 | export type AutomaticStopTimeMinutes = number;
|
97 | export type BoundedEnvironmentIdList = EnvironmentId[];
|
98 | export type ClientRequestToken = string;
|
99 | export interface CreateEnvironmentEC2Request {
|
100 | |
101 |
|
102 |
|
103 | name: EnvironmentName;
|
104 | |
105 |
|
106 |
|
107 | description?: EnvironmentDescription;
|
108 | |
109 |
|
110 |
|
111 | clientRequestToken?: ClientRequestToken;
|
112 | |
113 |
|
114 |
|
115 | instanceType: InstanceType;
|
116 | |
117 |
|
118 |
|
119 | subnetId?: SubnetId;
|
120 | |
121 |
|
122 |
|
123 | automaticStopTimeMinutes?: AutomaticStopTimeMinutes;
|
124 | |
125 |
|
126 |
|
127 | ownerArn?: UserArn;
|
128 | }
|
129 | export interface CreateEnvironmentEC2Result {
|
130 | |
131 |
|
132 |
|
133 | environmentId?: EnvironmentId;
|
134 | }
|
135 | export interface CreateEnvironmentMembershipRequest {
|
136 | |
137 |
|
138 |
|
139 | environmentId: EnvironmentId;
|
140 | |
141 |
|
142 |
|
143 | userArn: UserArn;
|
144 | |
145 |
|
146 |
|
147 | permissions: MemberPermissions;
|
148 | }
|
149 | export interface CreateEnvironmentMembershipResult {
|
150 | |
151 |
|
152 |
|
153 | membership?: EnvironmentMember;
|
154 | }
|
155 | export interface DeleteEnvironmentMembershipRequest {
|
156 | |
157 |
|
158 |
|
159 | environmentId: EnvironmentId;
|
160 | |
161 |
|
162 |
|
163 | userArn: UserArn;
|
164 | }
|
165 | export interface DeleteEnvironmentMembershipResult {
|
166 | }
|
167 | export interface DeleteEnvironmentRequest {
|
168 | |
169 |
|
170 |
|
171 | environmentId: EnvironmentId;
|
172 | }
|
173 | export interface DeleteEnvironmentResult {
|
174 | }
|
175 | export interface DescribeEnvironmentMembershipsRequest {
|
176 | |
177 |
|
178 |
|
179 | userArn?: UserArn;
|
180 | |
181 |
|
182 |
|
183 | environmentId?: EnvironmentId;
|
184 | |
185 |
|
186 |
|
187 | permissions?: PermissionsList;
|
188 | |
189 |
|
190 |
|
191 | nextToken?: String;
|
192 | |
193 |
|
194 |
|
195 | maxResults?: MaxResults;
|
196 | }
|
197 | export interface DescribeEnvironmentMembershipsResult {
|
198 | |
199 |
|
200 |
|
201 | memberships?: EnvironmentMembersList;
|
202 | |
203 |
|
204 |
|
205 | nextToken?: String;
|
206 | }
|
207 | export interface DescribeEnvironmentStatusRequest {
|
208 | |
209 |
|
210 |
|
211 | environmentId: EnvironmentId;
|
212 | }
|
213 | export interface DescribeEnvironmentStatusResult {
|
214 | |
215 |
|
216 |
|
217 | status?: EnvironmentStatus;
|
218 | |
219 |
|
220 |
|
221 | message?: String;
|
222 | }
|
223 | export interface DescribeEnvironmentsRequest {
|
224 | |
225 |
|
226 |
|
227 | environmentIds: BoundedEnvironmentIdList;
|
228 | }
|
229 | export interface DescribeEnvironmentsResult {
|
230 | |
231 |
|
232 |
|
233 | environments?: EnvironmentList;
|
234 | }
|
235 | export interface Environment {
|
236 | |
237 |
|
238 |
|
239 | id?: EnvironmentId;
|
240 | |
241 |
|
242 |
|
243 | name?: EnvironmentName;
|
244 | |
245 |
|
246 |
|
247 | description?: EnvironmentDescription;
|
248 | |
249 |
|
250 |
|
251 | type?: EnvironmentType;
|
252 | |
253 |
|
254 |
|
255 | arn?: String;
|
256 | |
257 |
|
258 |
|
259 | ownerArn?: String;
|
260 | |
261 |
|
262 |
|
263 | lifecycle?: EnvironmentLifecycle;
|
264 | }
|
265 | export type EnvironmentDescription = string;
|
266 | export type EnvironmentId = string;
|
267 | export type EnvironmentIdList = EnvironmentId[];
|
268 | export interface EnvironmentLifecycle {
|
269 | |
270 |
|
271 |
|
272 | status?: EnvironmentLifecycleStatus;
|
273 | |
274 |
|
275 |
|
276 | reason?: String;
|
277 | |
278 |
|
279 |
|
280 | failureResource?: String;
|
281 | }
|
282 | export type EnvironmentLifecycleStatus = "CREATED"|"DELETING"|"DELETE_FAILED"|string;
|
283 | export type EnvironmentList = Environment[];
|
284 | export interface EnvironmentMember {
|
285 | |
286 |
|
287 |
|
288 | permissions?: Permissions;
|
289 | |
290 |
|
291 |
|
292 | userId?: String;
|
293 | |
294 |
|
295 |
|
296 | userArn?: UserArn;
|
297 | |
298 |
|
299 |
|
300 | environmentId?: EnvironmentId;
|
301 | |
302 |
|
303 |
|
304 | lastAccess?: Timestamp;
|
305 | }
|
306 | export type EnvironmentMembersList = EnvironmentMember[];
|
307 | export type EnvironmentName = string;
|
308 | export type EnvironmentStatus = "error"|"creating"|"connecting"|"ready"|"stopping"|"stopped"|"deleting"|string;
|
309 | export type EnvironmentType = "ssh"|"ec2"|string;
|
310 | export type InstanceType = string;
|
311 | export interface ListEnvironmentsRequest {
|
312 | |
313 |
|
314 |
|
315 | nextToken?: String;
|
316 | |
317 |
|
318 |
|
319 | maxResults?: MaxResults;
|
320 | }
|
321 | export interface ListEnvironmentsResult {
|
322 | |
323 |
|
324 |
|
325 | nextToken?: String;
|
326 | |
327 |
|
328 |
|
329 | environmentIds?: EnvironmentIdList;
|
330 | }
|
331 | export type MaxResults = number;
|
332 | export type MemberPermissions = "read-write"|"read-only"|string;
|
333 | export type Permissions = "owner"|"read-write"|"read-only"|string;
|
334 | export type PermissionsList = Permissions[];
|
335 | export type String = string;
|
336 | export type SubnetId = string;
|
337 | export type Timestamp = Date;
|
338 | export interface UpdateEnvironmentMembershipRequest {
|
339 | |
340 |
|
341 |
|
342 | environmentId: EnvironmentId;
|
343 | |
344 |
|
345 |
|
346 | userArn: UserArn;
|
347 | |
348 |
|
349 |
|
350 | permissions: MemberPermissions;
|
351 | }
|
352 | export interface UpdateEnvironmentMembershipResult {
|
353 | |
354 |
|
355 |
|
356 | membership?: EnvironmentMember;
|
357 | }
|
358 | export interface UpdateEnvironmentRequest {
|
359 | |
360 |
|
361 |
|
362 | environmentId: EnvironmentId;
|
363 | |
364 |
|
365 |
|
366 | name?: EnvironmentName;
|
367 | |
368 |
|
369 |
|
370 | description?: EnvironmentDescription;
|
371 | }
|
372 | export interface UpdateEnvironmentResult {
|
373 | }
|
374 | export type UserArn = string;
|
375 | |
376 |
|
377 |
|
378 | export type apiVersion = "2017-09-23"|"latest"|string;
|
379 | export interface ClientApiVersions {
|
380 | |
381 |
|
382 |
|
383 | apiVersion?: apiVersion;
|
384 | }
|
385 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
386 | |
387 |
|
388 |
|
389 | export import Types = Cloud9;
|
390 | }
|
391 | export = Cloud9;
|