@aws-sdk/client-cloud9 3.183.0 → 3.186.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/Cloud9.js +61 -54
- package/dist-es/Cloud9Client.js +28 -22
- package/dist-es/commands/CreateEnvironmentEC2Command.js +28 -21
- package/dist-es/commands/CreateEnvironmentMembershipCommand.js +28 -21
- package/dist-es/commands/DeleteEnvironmentCommand.js +28 -21
- package/dist-es/commands/DeleteEnvironmentMembershipCommand.js +28 -21
- package/dist-es/commands/DescribeEnvironmentMembershipsCommand.js +28 -21
- package/dist-es/commands/DescribeEnvironmentStatusCommand.js +28 -21
- package/dist-es/commands/DescribeEnvironmentsCommand.js +28 -21
- package/dist-es/commands/ListEnvironmentsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateEnvironmentCommand.js +28 -21
- package/dist-es/commands/UpdateEnvironmentMembershipCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/Cloud9ServiceException.js +10 -5
- package/dist-es/models/models_0.js +135 -204
- package/dist-es/pagination/DescribeEnvironmentMembershipsPaginator.js +68 -25
- package/dist-es/pagination/ListEnvironmentsPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +1290 -992
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
|
@@ -1,993 +1,1268 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { Cloud9ServiceException as __BaseException } from "../models/Cloud9ServiceException";
|
|
4
5
|
import { BadRequestException, ConcurrentAccessException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, TooManyRequestsException, } from "../models/models_0";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export const serializeAws_json1_1CreateEnvironmentMembershipCommand = async (input, context) => {
|
|
15
|
-
const headers = {
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.CreateEnvironmentMembership",
|
|
18
|
-
};
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify(serializeAws_json1_1CreateEnvironmentMembershipRequest(input, context));
|
|
21
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
-
};
|
|
23
|
-
export const serializeAws_json1_1DeleteEnvironmentCommand = async (input, context) => {
|
|
24
|
-
const headers = {
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.DeleteEnvironment",
|
|
27
|
-
};
|
|
28
|
-
let body;
|
|
29
|
-
body = JSON.stringify(serializeAws_json1_1DeleteEnvironmentRequest(input, context));
|
|
30
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
-
};
|
|
32
|
-
export const serializeAws_json1_1DeleteEnvironmentMembershipCommand = async (input, context) => {
|
|
33
|
-
const headers = {
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.DeleteEnvironmentMembership",
|
|
36
|
-
};
|
|
37
|
-
let body;
|
|
38
|
-
body = JSON.stringify(serializeAws_json1_1DeleteEnvironmentMembershipRequest(input, context));
|
|
39
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
|
-
};
|
|
41
|
-
export const serializeAws_json1_1DescribeEnvironmentMembershipsCommand = async (input, context) => {
|
|
42
|
-
const headers = {
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironmentMemberships",
|
|
45
|
-
};
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify(serializeAws_json1_1DescribeEnvironmentMembershipsRequest(input, context));
|
|
48
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
-
};
|
|
50
|
-
export const serializeAws_json1_1DescribeEnvironmentsCommand = async (input, context) => {
|
|
51
|
-
const headers = {
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironments",
|
|
54
|
-
};
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify(serializeAws_json1_1DescribeEnvironmentsRequest(input, context));
|
|
57
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
-
};
|
|
59
|
-
export const serializeAws_json1_1DescribeEnvironmentStatusCommand = async (input, context) => {
|
|
60
|
-
const headers = {
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironmentStatus",
|
|
63
|
-
};
|
|
64
|
-
let body;
|
|
65
|
-
body = JSON.stringify(serializeAws_json1_1DescribeEnvironmentStatusRequest(input, context));
|
|
66
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
-
};
|
|
68
|
-
export const serializeAws_json1_1ListEnvironmentsCommand = async (input, context) => {
|
|
69
|
-
const headers = {
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.ListEnvironments",
|
|
72
|
-
};
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify(serializeAws_json1_1ListEnvironmentsRequest(input, context));
|
|
75
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
-
};
|
|
77
|
-
export const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
78
|
-
const headers = {
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.ListTagsForResource",
|
|
81
|
-
};
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
export const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
87
|
-
const headers = {
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.TagResource",
|
|
90
|
-
};
|
|
91
|
-
let body;
|
|
92
|
-
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
93
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
-
};
|
|
95
|
-
export const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
96
|
-
const headers = {
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.UntagResource",
|
|
99
|
-
};
|
|
100
|
-
let body;
|
|
101
|
-
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
102
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
|
-
};
|
|
104
|
-
export const serializeAws_json1_1UpdateEnvironmentCommand = async (input, context) => {
|
|
105
|
-
const headers = {
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.UpdateEnvironment",
|
|
108
|
-
};
|
|
109
|
-
let body;
|
|
110
|
-
body = JSON.stringify(serializeAws_json1_1UpdateEnvironmentRequest(input, context));
|
|
111
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
-
};
|
|
113
|
-
export const serializeAws_json1_1UpdateEnvironmentMembershipCommand = async (input, context) => {
|
|
114
|
-
const headers = {
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.UpdateEnvironmentMembership",
|
|
117
|
-
};
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify(serializeAws_json1_1UpdateEnvironmentMembershipRequest(input, context));
|
|
120
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
-
};
|
|
122
|
-
export const deserializeAws_json1_1CreateEnvironmentEC2Command = async (output, context) => {
|
|
123
|
-
if (output.statusCode >= 300) {
|
|
124
|
-
return deserializeAws_json1_1CreateEnvironmentEC2CommandError(output, context);
|
|
125
|
-
}
|
|
126
|
-
const data = await parseBody(output.body, context);
|
|
127
|
-
let contents = {};
|
|
128
|
-
contents = deserializeAws_json1_1CreateEnvironmentEC2Result(data, context);
|
|
129
|
-
const response = {
|
|
130
|
-
$metadata: deserializeMetadata(output),
|
|
131
|
-
...contents,
|
|
132
|
-
};
|
|
133
|
-
return Promise.resolve(response);
|
|
134
|
-
};
|
|
135
|
-
const deserializeAws_json1_1CreateEnvironmentEC2CommandError = async (output, context) => {
|
|
136
|
-
const parsedOutput = {
|
|
137
|
-
...output,
|
|
138
|
-
body: await parseErrorBody(output.body, context),
|
|
139
|
-
};
|
|
140
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
141
|
-
switch (errorCode) {
|
|
142
|
-
case "BadRequestException":
|
|
143
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
144
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
145
|
-
case "ConflictException":
|
|
146
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
147
|
-
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
148
|
-
case "ForbiddenException":
|
|
149
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
150
|
-
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
151
|
-
case "InternalServerErrorException":
|
|
152
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
153
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
154
|
-
case "LimitExceededException":
|
|
155
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
156
|
-
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
157
|
-
case "NotFoundException":
|
|
158
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
159
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
160
|
-
case "TooManyRequestsException":
|
|
161
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
162
|
-
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
163
|
-
default:
|
|
164
|
-
const parsedBody = parsedOutput.body;
|
|
165
|
-
throwDefaultError({
|
|
166
|
-
output,
|
|
167
|
-
parsedBody,
|
|
168
|
-
exceptionCtor: __BaseException,
|
|
169
|
-
errorCode,
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
export const deserializeAws_json1_1CreateEnvironmentMembershipCommand = async (output, context) => {
|
|
174
|
-
if (output.statusCode >= 300) {
|
|
175
|
-
return deserializeAws_json1_1CreateEnvironmentMembershipCommandError(output, context);
|
|
176
|
-
}
|
|
177
|
-
const data = await parseBody(output.body, context);
|
|
178
|
-
let contents = {};
|
|
179
|
-
contents = deserializeAws_json1_1CreateEnvironmentMembershipResult(data, context);
|
|
180
|
-
const response = {
|
|
181
|
-
$metadata: deserializeMetadata(output),
|
|
182
|
-
...contents,
|
|
183
|
-
};
|
|
184
|
-
return Promise.resolve(response);
|
|
185
|
-
};
|
|
186
|
-
const deserializeAws_json1_1CreateEnvironmentMembershipCommandError = async (output, context) => {
|
|
187
|
-
const parsedOutput = {
|
|
188
|
-
...output,
|
|
189
|
-
body: await parseErrorBody(output.body, context),
|
|
190
|
-
};
|
|
191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
192
|
-
switch (errorCode) {
|
|
193
|
-
case "BadRequestException":
|
|
194
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
195
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
196
|
-
case "ConflictException":
|
|
197
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
198
|
-
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
199
|
-
case "ForbiddenException":
|
|
200
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
201
|
-
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
202
|
-
case "InternalServerErrorException":
|
|
203
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
204
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
205
|
-
case "LimitExceededException":
|
|
206
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
207
|
-
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
208
|
-
case "NotFoundException":
|
|
209
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
210
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
211
|
-
case "TooManyRequestsException":
|
|
212
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
213
|
-
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
214
|
-
default:
|
|
215
|
-
const parsedBody = parsedOutput.body;
|
|
216
|
-
throwDefaultError({
|
|
217
|
-
output,
|
|
218
|
-
parsedBody,
|
|
219
|
-
exceptionCtor: __BaseException,
|
|
220
|
-
errorCode,
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
export const deserializeAws_json1_1DeleteEnvironmentCommand = async (output, context) => {
|
|
225
|
-
if (output.statusCode >= 300) {
|
|
226
|
-
return deserializeAws_json1_1DeleteEnvironmentCommandError(output, context);
|
|
227
|
-
}
|
|
228
|
-
const data = await parseBody(output.body, context);
|
|
229
|
-
let contents = {};
|
|
230
|
-
contents = deserializeAws_json1_1DeleteEnvironmentResult(data, context);
|
|
231
|
-
const response = {
|
|
232
|
-
$metadata: deserializeMetadata(output),
|
|
233
|
-
...contents,
|
|
234
|
-
};
|
|
235
|
-
return Promise.resolve(response);
|
|
236
|
-
};
|
|
237
|
-
const deserializeAws_json1_1DeleteEnvironmentCommandError = async (output, context) => {
|
|
238
|
-
const parsedOutput = {
|
|
239
|
-
...output,
|
|
240
|
-
body: await parseErrorBody(output.body, context),
|
|
241
|
-
};
|
|
242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
243
|
-
switch (errorCode) {
|
|
244
|
-
case "BadRequestException":
|
|
245
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
246
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
247
|
-
case "ConflictException":
|
|
248
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
249
|
-
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
250
|
-
case "ForbiddenException":
|
|
251
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
252
|
-
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
253
|
-
case "InternalServerErrorException":
|
|
254
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
255
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
256
|
-
case "LimitExceededException":
|
|
257
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
258
|
-
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
259
|
-
case "NotFoundException":
|
|
260
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
261
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
262
|
-
case "TooManyRequestsException":
|
|
263
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
264
|
-
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
265
|
-
default:
|
|
266
|
-
const parsedBody = parsedOutput.body;
|
|
267
|
-
throwDefaultError({
|
|
268
|
-
output,
|
|
269
|
-
parsedBody,
|
|
270
|
-
exceptionCtor: __BaseException,
|
|
271
|
-
errorCode,
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
export const deserializeAws_json1_1DeleteEnvironmentMembershipCommand = async (output, context) => {
|
|
276
|
-
if (output.statusCode >= 300) {
|
|
277
|
-
return deserializeAws_json1_1DeleteEnvironmentMembershipCommandError(output, context);
|
|
278
|
-
}
|
|
279
|
-
const data = await parseBody(output.body, context);
|
|
280
|
-
let contents = {};
|
|
281
|
-
contents = deserializeAws_json1_1DeleteEnvironmentMembershipResult(data, context);
|
|
282
|
-
const response = {
|
|
283
|
-
$metadata: deserializeMetadata(output),
|
|
284
|
-
...contents,
|
|
285
|
-
};
|
|
286
|
-
return Promise.resolve(response);
|
|
287
|
-
};
|
|
288
|
-
const deserializeAws_json1_1DeleteEnvironmentMembershipCommandError = async (output, context) => {
|
|
289
|
-
const parsedOutput = {
|
|
290
|
-
...output,
|
|
291
|
-
body: await parseErrorBody(output.body, context),
|
|
292
|
-
};
|
|
293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
294
|
-
switch (errorCode) {
|
|
295
|
-
case "BadRequestException":
|
|
296
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
297
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
298
|
-
case "ConflictException":
|
|
299
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
300
|
-
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
301
|
-
case "ForbiddenException":
|
|
302
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
303
|
-
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
304
|
-
case "InternalServerErrorException":
|
|
305
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
306
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
307
|
-
case "LimitExceededException":
|
|
308
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
309
|
-
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
310
|
-
case "NotFoundException":
|
|
311
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
312
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
313
|
-
case "TooManyRequestsException":
|
|
314
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
315
|
-
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
316
|
-
default:
|
|
317
|
-
const parsedBody = parsedOutput.body;
|
|
318
|
-
throwDefaultError({
|
|
319
|
-
output,
|
|
320
|
-
parsedBody,
|
|
321
|
-
exceptionCtor: __BaseException,
|
|
322
|
-
errorCode,
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
};
|
|
326
|
-
export const deserializeAws_json1_1DescribeEnvironmentMembershipsCommand = async (output, context) => {
|
|
327
|
-
if (output.statusCode >= 300) {
|
|
328
|
-
return deserializeAws_json1_1DescribeEnvironmentMembershipsCommandError(output, context);
|
|
329
|
-
}
|
|
330
|
-
const data = await parseBody(output.body, context);
|
|
331
|
-
let contents = {};
|
|
332
|
-
contents = deserializeAws_json1_1DescribeEnvironmentMembershipsResult(data, context);
|
|
333
|
-
const response = {
|
|
334
|
-
$metadata: deserializeMetadata(output),
|
|
335
|
-
...contents,
|
|
336
|
-
};
|
|
337
|
-
return Promise.resolve(response);
|
|
338
|
-
};
|
|
339
|
-
const deserializeAws_json1_1DescribeEnvironmentMembershipsCommandError = async (output, context) => {
|
|
340
|
-
const parsedOutput = {
|
|
341
|
-
...output,
|
|
342
|
-
body: await parseErrorBody(output.body, context),
|
|
343
|
-
};
|
|
344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
345
|
-
switch (errorCode) {
|
|
346
|
-
case "BadRequestException":
|
|
347
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
348
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
349
|
-
case "ConflictException":
|
|
350
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
351
|
-
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
352
|
-
case "ForbiddenException":
|
|
353
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
354
|
-
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
355
|
-
case "InternalServerErrorException":
|
|
356
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
357
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
358
|
-
case "LimitExceededException":
|
|
359
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
360
|
-
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
361
|
-
case "NotFoundException":
|
|
362
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
363
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
364
|
-
case "TooManyRequestsException":
|
|
365
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
366
|
-
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
367
|
-
default:
|
|
368
|
-
const parsedBody = parsedOutput.body;
|
|
369
|
-
throwDefaultError({
|
|
370
|
-
output,
|
|
371
|
-
parsedBody,
|
|
372
|
-
exceptionCtor: __BaseException,
|
|
373
|
-
errorCode,
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
export const deserializeAws_json1_1DescribeEnvironmentsCommand = async (output, context) => {
|
|
378
|
-
if (output.statusCode >= 300) {
|
|
379
|
-
return deserializeAws_json1_1DescribeEnvironmentsCommandError(output, context);
|
|
380
|
-
}
|
|
381
|
-
const data = await parseBody(output.body, context);
|
|
382
|
-
let contents = {};
|
|
383
|
-
contents = deserializeAws_json1_1DescribeEnvironmentsResult(data, context);
|
|
384
|
-
const response = {
|
|
385
|
-
$metadata: deserializeMetadata(output),
|
|
386
|
-
...contents,
|
|
387
|
-
};
|
|
388
|
-
return Promise.resolve(response);
|
|
389
|
-
};
|
|
390
|
-
const deserializeAws_json1_1DescribeEnvironmentsCommandError = async (output, context) => {
|
|
391
|
-
const parsedOutput = {
|
|
392
|
-
...output,
|
|
393
|
-
body: await parseErrorBody(output.body, context),
|
|
394
|
-
};
|
|
395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
396
|
-
switch (errorCode) {
|
|
397
|
-
case "BadRequestException":
|
|
398
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
399
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
400
|
-
case "ConflictException":
|
|
401
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
402
|
-
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
403
|
-
case "ForbiddenException":
|
|
404
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
405
|
-
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
406
|
-
case "InternalServerErrorException":
|
|
407
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
408
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
409
|
-
case "LimitExceededException":
|
|
410
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
411
|
-
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
412
|
-
case "NotFoundException":
|
|
413
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
414
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
415
|
-
case "TooManyRequestsException":
|
|
416
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
417
|
-
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
418
|
-
default:
|
|
419
|
-
const parsedBody = parsedOutput.body;
|
|
420
|
-
throwDefaultError({
|
|
421
|
-
output,
|
|
422
|
-
parsedBody,
|
|
423
|
-
exceptionCtor: __BaseException,
|
|
424
|
-
errorCode,
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
export const deserializeAws_json1_1DescribeEnvironmentStatusCommand = async (output, context) => {
|
|
429
|
-
if (output.statusCode >= 300) {
|
|
430
|
-
return deserializeAws_json1_1DescribeEnvironmentStatusCommandError(output, context);
|
|
431
|
-
}
|
|
432
|
-
const data = await parseBody(output.body, context);
|
|
433
|
-
let contents = {};
|
|
434
|
-
contents = deserializeAws_json1_1DescribeEnvironmentStatusResult(data, context);
|
|
435
|
-
const response = {
|
|
436
|
-
$metadata: deserializeMetadata(output),
|
|
437
|
-
...contents,
|
|
438
|
-
};
|
|
439
|
-
return Promise.resolve(response);
|
|
440
|
-
};
|
|
441
|
-
const deserializeAws_json1_1DescribeEnvironmentStatusCommandError = async (output, context) => {
|
|
442
|
-
const parsedOutput = {
|
|
443
|
-
...output,
|
|
444
|
-
body: await parseErrorBody(output.body, context),
|
|
445
|
-
};
|
|
446
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
447
|
-
switch (errorCode) {
|
|
448
|
-
case "BadRequestException":
|
|
449
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
450
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
451
|
-
case "ConflictException":
|
|
452
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
453
|
-
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
454
|
-
case "ForbiddenException":
|
|
455
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
456
|
-
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
457
|
-
case "InternalServerErrorException":
|
|
458
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
459
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
460
|
-
case "LimitExceededException":
|
|
461
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
462
|
-
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
463
|
-
case "NotFoundException":
|
|
464
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
465
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
466
|
-
case "TooManyRequestsException":
|
|
467
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
468
|
-
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
469
|
-
default:
|
|
470
|
-
const parsedBody = parsedOutput.body;
|
|
471
|
-
throwDefaultError({
|
|
472
|
-
output,
|
|
473
|
-
parsedBody,
|
|
474
|
-
exceptionCtor: __BaseException,
|
|
475
|
-
errorCode,
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
export const deserializeAws_json1_1ListEnvironmentsCommand = async (output, context) => {
|
|
480
|
-
if (output.statusCode >= 300) {
|
|
481
|
-
return deserializeAws_json1_1ListEnvironmentsCommandError(output, context);
|
|
482
|
-
}
|
|
483
|
-
const data = await parseBody(output.body, context);
|
|
484
|
-
let contents = {};
|
|
485
|
-
contents = deserializeAws_json1_1ListEnvironmentsResult(data, context);
|
|
486
|
-
const response = {
|
|
487
|
-
$metadata: deserializeMetadata(output),
|
|
488
|
-
...contents,
|
|
489
|
-
};
|
|
490
|
-
return Promise.resolve(response);
|
|
491
|
-
};
|
|
492
|
-
const deserializeAws_json1_1ListEnvironmentsCommandError = async (output, context) => {
|
|
493
|
-
const parsedOutput = {
|
|
494
|
-
...output,
|
|
495
|
-
body: await parseErrorBody(output.body, context),
|
|
496
|
-
};
|
|
497
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
|
-
switch (errorCode) {
|
|
499
|
-
case "BadRequestException":
|
|
500
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
501
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
502
|
-
case "ConflictException":
|
|
503
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
504
|
-
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
505
|
-
case "ForbiddenException":
|
|
506
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
507
|
-
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
508
|
-
case "InternalServerErrorException":
|
|
509
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
510
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
511
|
-
case "LimitExceededException":
|
|
512
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
513
|
-
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
514
|
-
case "NotFoundException":
|
|
515
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
516
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
517
|
-
case "TooManyRequestsException":
|
|
518
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
519
|
-
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
520
|
-
default:
|
|
521
|
-
const parsedBody = parsedOutput.body;
|
|
522
|
-
throwDefaultError({
|
|
523
|
-
output,
|
|
524
|
-
parsedBody,
|
|
525
|
-
exceptionCtor: __BaseException,
|
|
526
|
-
errorCode,
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
};
|
|
530
|
-
export const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
531
|
-
if (output.statusCode >= 300) {
|
|
532
|
-
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
533
|
-
}
|
|
534
|
-
const data = await parseBody(output.body, context);
|
|
535
|
-
let contents = {};
|
|
536
|
-
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
537
|
-
const response = {
|
|
538
|
-
$metadata: deserializeMetadata(output),
|
|
539
|
-
...contents,
|
|
540
|
-
};
|
|
541
|
-
return Promise.resolve(response);
|
|
542
|
-
};
|
|
543
|
-
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
544
|
-
const parsedOutput = {
|
|
545
|
-
...output,
|
|
546
|
-
body: await parseErrorBody(output.body, context),
|
|
547
|
-
};
|
|
548
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
549
|
-
switch (errorCode) {
|
|
550
|
-
case "BadRequestException":
|
|
551
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
552
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
553
|
-
case "InternalServerErrorException":
|
|
554
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
555
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
556
|
-
case "NotFoundException":
|
|
557
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
558
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
559
|
-
default:
|
|
560
|
-
const parsedBody = parsedOutput.body;
|
|
561
|
-
throwDefaultError({
|
|
562
|
-
output,
|
|
563
|
-
parsedBody,
|
|
564
|
-
exceptionCtor: __BaseException,
|
|
565
|
-
errorCode,
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
};
|
|
569
|
-
export const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
570
|
-
if (output.statusCode >= 300) {
|
|
571
|
-
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
572
|
-
}
|
|
573
|
-
const data = await parseBody(output.body, context);
|
|
574
|
-
let contents = {};
|
|
575
|
-
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
576
|
-
const response = {
|
|
577
|
-
$metadata: deserializeMetadata(output),
|
|
578
|
-
...contents,
|
|
579
|
-
};
|
|
580
|
-
return Promise.resolve(response);
|
|
581
|
-
};
|
|
582
|
-
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
583
|
-
const parsedOutput = {
|
|
584
|
-
...output,
|
|
585
|
-
body: await parseErrorBody(output.body, context),
|
|
586
|
-
};
|
|
587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
|
-
switch (errorCode) {
|
|
589
|
-
case "BadRequestException":
|
|
590
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
591
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
592
|
-
case "ConcurrentAccessException":
|
|
593
|
-
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
594
|
-
throw await deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context);
|
|
595
|
-
case "InternalServerErrorException":
|
|
596
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
597
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
598
|
-
case "NotFoundException":
|
|
599
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
600
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
601
|
-
default:
|
|
602
|
-
const parsedBody = parsedOutput.body;
|
|
603
|
-
throwDefaultError({
|
|
604
|
-
output,
|
|
605
|
-
parsedBody,
|
|
606
|
-
exceptionCtor: __BaseException,
|
|
607
|
-
errorCode,
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
};
|
|
611
|
-
export const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
612
|
-
if (output.statusCode >= 300) {
|
|
613
|
-
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
614
|
-
}
|
|
615
|
-
const data = await parseBody(output.body, context);
|
|
616
|
-
let contents = {};
|
|
617
|
-
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
618
|
-
const response = {
|
|
619
|
-
$metadata: deserializeMetadata(output),
|
|
620
|
-
...contents,
|
|
621
|
-
};
|
|
622
|
-
return Promise.resolve(response);
|
|
623
|
-
};
|
|
624
|
-
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
625
|
-
const parsedOutput = {
|
|
626
|
-
...output,
|
|
627
|
-
body: await parseErrorBody(output.body, context),
|
|
628
|
-
};
|
|
629
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
630
|
-
switch (errorCode) {
|
|
631
|
-
case "BadRequestException":
|
|
632
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
633
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
634
|
-
case "ConcurrentAccessException":
|
|
635
|
-
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
636
|
-
throw await deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context);
|
|
637
|
-
case "InternalServerErrorException":
|
|
638
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
639
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
640
|
-
case "NotFoundException":
|
|
641
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
642
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
643
|
-
default:
|
|
644
|
-
const parsedBody = parsedOutput.body;
|
|
645
|
-
throwDefaultError({
|
|
646
|
-
output,
|
|
647
|
-
parsedBody,
|
|
648
|
-
exceptionCtor: __BaseException,
|
|
649
|
-
errorCode,
|
|
650
|
-
});
|
|
651
|
-
}
|
|
652
|
-
};
|
|
653
|
-
export const deserializeAws_json1_1UpdateEnvironmentCommand = async (output, context) => {
|
|
654
|
-
if (output.statusCode >= 300) {
|
|
655
|
-
return deserializeAws_json1_1UpdateEnvironmentCommandError(output, context);
|
|
656
|
-
}
|
|
657
|
-
const data = await parseBody(output.body, context);
|
|
658
|
-
let contents = {};
|
|
659
|
-
contents = deserializeAws_json1_1UpdateEnvironmentResult(data, context);
|
|
660
|
-
const response = {
|
|
661
|
-
$metadata: deserializeMetadata(output),
|
|
662
|
-
...contents,
|
|
663
|
-
};
|
|
664
|
-
return Promise.resolve(response);
|
|
665
|
-
};
|
|
666
|
-
const deserializeAws_json1_1UpdateEnvironmentCommandError = async (output, context) => {
|
|
667
|
-
const parsedOutput = {
|
|
668
|
-
...output,
|
|
669
|
-
body: await parseErrorBody(output.body, context),
|
|
670
|
-
};
|
|
671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
|
-
switch (errorCode) {
|
|
673
|
-
case "BadRequestException":
|
|
674
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
675
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
676
|
-
case "ConflictException":
|
|
677
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
678
|
-
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
679
|
-
case "ForbiddenException":
|
|
680
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
681
|
-
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
682
|
-
case "InternalServerErrorException":
|
|
683
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
684
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
685
|
-
case "LimitExceededException":
|
|
686
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
687
|
-
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
688
|
-
case "NotFoundException":
|
|
689
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
690
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
691
|
-
case "TooManyRequestsException":
|
|
692
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
693
|
-
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
694
|
-
default:
|
|
695
|
-
const parsedBody = parsedOutput.body;
|
|
696
|
-
throwDefaultError({
|
|
697
|
-
output,
|
|
698
|
-
parsedBody,
|
|
699
|
-
exceptionCtor: __BaseException,
|
|
700
|
-
errorCode,
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
};
|
|
704
|
-
export const deserializeAws_json1_1UpdateEnvironmentMembershipCommand = async (output, context) => {
|
|
705
|
-
if (output.statusCode >= 300) {
|
|
706
|
-
return deserializeAws_json1_1UpdateEnvironmentMembershipCommandError(output, context);
|
|
707
|
-
}
|
|
708
|
-
const data = await parseBody(output.body, context);
|
|
709
|
-
let contents = {};
|
|
710
|
-
contents = deserializeAws_json1_1UpdateEnvironmentMembershipResult(data, context);
|
|
711
|
-
const response = {
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
...contents,
|
|
714
|
-
};
|
|
715
|
-
return Promise.resolve(response);
|
|
716
|
-
};
|
|
717
|
-
const deserializeAws_json1_1UpdateEnvironmentMembershipCommandError = async (output, context) => {
|
|
718
|
-
const parsedOutput = {
|
|
719
|
-
...output,
|
|
720
|
-
body: await parseErrorBody(output.body, context),
|
|
721
|
-
};
|
|
722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
-
switch (errorCode) {
|
|
724
|
-
case "BadRequestException":
|
|
725
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
726
|
-
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
727
|
-
case "ConflictException":
|
|
728
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
729
|
-
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
730
|
-
case "ForbiddenException":
|
|
731
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
732
|
-
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
733
|
-
case "InternalServerErrorException":
|
|
734
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
735
|
-
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
736
|
-
case "LimitExceededException":
|
|
737
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
738
|
-
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
739
|
-
case "NotFoundException":
|
|
740
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
741
|
-
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
742
|
-
case "TooManyRequestsException":
|
|
743
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
744
|
-
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
745
|
-
default:
|
|
746
|
-
const parsedBody = parsedOutput.body;
|
|
747
|
-
throwDefaultError({
|
|
748
|
-
output,
|
|
749
|
-
parsedBody,
|
|
750
|
-
exceptionCtor: __BaseException,
|
|
751
|
-
errorCode,
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
};
|
|
755
|
-
const deserializeAws_json1_1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
756
|
-
const body = parsedOutput.body;
|
|
757
|
-
const deserialized = deserializeAws_json1_1BadRequestException(body, context);
|
|
758
|
-
const exception = new BadRequestException({
|
|
759
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
760
|
-
...deserialized,
|
|
6
|
+
export var serializeAws_json1_1CreateEnvironmentEC2Command = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
+
var headers, body;
|
|
8
|
+
return __generator(this, function (_a) {
|
|
9
|
+
headers = {
|
|
10
|
+
"content-type": "application/x-amz-json-1.1",
|
|
11
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.CreateEnvironmentEC2",
|
|
12
|
+
};
|
|
13
|
+
body = JSON.stringify(serializeAws_json1_1CreateEnvironmentEC2Request(input, context));
|
|
14
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
761
15
|
});
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
16
|
+
}); };
|
|
17
|
+
export var serializeAws_json1_1CreateEnvironmentMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18
|
+
var headers, body;
|
|
19
|
+
return __generator(this, function (_a) {
|
|
20
|
+
headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.1",
|
|
22
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.CreateEnvironmentMembership",
|
|
23
|
+
};
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_1CreateEnvironmentMembershipRequest(input, context));
|
|
25
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
770
26
|
});
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
27
|
+
}); };
|
|
28
|
+
export var serializeAws_json1_1DeleteEnvironmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29
|
+
var headers, body;
|
|
30
|
+
return __generator(this, function (_a) {
|
|
31
|
+
headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.1",
|
|
33
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.DeleteEnvironment",
|
|
34
|
+
};
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_1DeleteEnvironmentRequest(input, context));
|
|
36
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
779
37
|
});
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
38
|
+
}); };
|
|
39
|
+
export var serializeAws_json1_1DeleteEnvironmentMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
+
var headers, body;
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.DeleteEnvironmentMembership",
|
|
45
|
+
};
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_1DeleteEnvironmentMembershipRequest(input, context));
|
|
47
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
788
48
|
});
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
49
|
+
}); };
|
|
50
|
+
export var serializeAws_json1_1DescribeEnvironmentMembershipsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
+
var headers, body;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
headers = {
|
|
54
|
+
"content-type": "application/x-amz-json-1.1",
|
|
55
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironmentMemberships",
|
|
56
|
+
};
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1DescribeEnvironmentMembershipsRequest(input, context));
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
797
59
|
});
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
60
|
+
}); };
|
|
61
|
+
export var serializeAws_json1_1DescribeEnvironmentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
var headers, body;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
headers = {
|
|
65
|
+
"content-type": "application/x-amz-json-1.1",
|
|
66
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironments",
|
|
67
|
+
};
|
|
68
|
+
body = JSON.stringify(serializeAws_json1_1DescribeEnvironmentsRequest(input, context));
|
|
69
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
806
70
|
});
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
71
|
+
}); };
|
|
72
|
+
export var serializeAws_json1_1DescribeEnvironmentStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
73
|
+
var headers, body;
|
|
74
|
+
return __generator(this, function (_a) {
|
|
75
|
+
headers = {
|
|
76
|
+
"content-type": "application/x-amz-json-1.1",
|
|
77
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironmentStatus",
|
|
78
|
+
};
|
|
79
|
+
body = JSON.stringify(serializeAws_json1_1DescribeEnvironmentStatusRequest(input, context));
|
|
80
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
815
81
|
});
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
82
|
+
}); };
|
|
83
|
+
export var serializeAws_json1_1ListEnvironmentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
+
var headers, body;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
headers = {
|
|
87
|
+
"content-type": "application/x-amz-json-1.1",
|
|
88
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.ListEnvironments",
|
|
89
|
+
};
|
|
90
|
+
body = JSON.stringify(serializeAws_json1_1ListEnvironmentsRequest(input, context));
|
|
91
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
824
92
|
});
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
93
|
+
}); };
|
|
94
|
+
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var headers, body;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.1",
|
|
99
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.ListTagsForResource",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
105
|
+
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
+
var headers, body;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
headers = {
|
|
109
|
+
"content-type": "application/x-amz-json-1.1",
|
|
110
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.TagResource",
|
|
111
|
+
};
|
|
112
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
113
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
|
+
});
|
|
115
|
+
}); };
|
|
116
|
+
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
|
+
var headers, body;
|
|
118
|
+
return __generator(this, function (_a) {
|
|
119
|
+
headers = {
|
|
120
|
+
"content-type": "application/x-amz-json-1.1",
|
|
121
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.UntagResource",
|
|
122
|
+
};
|
|
123
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
124
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
|
+
});
|
|
126
|
+
}); };
|
|
127
|
+
export var serializeAws_json1_1UpdateEnvironmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
+
var headers, body;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.1",
|
|
132
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.UpdateEnvironment",
|
|
133
|
+
};
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_1UpdateEnvironmentRequest(input, context));
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
138
|
+
export var serializeAws_json1_1UpdateEnvironmentMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
+
var headers, body;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.UpdateEnvironmentMembership",
|
|
144
|
+
};
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_1UpdateEnvironmentMembershipRequest(input, context));
|
|
146
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
|
+
});
|
|
148
|
+
}); };
|
|
149
|
+
export var deserializeAws_json1_1CreateEnvironmentEC2Command = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
var data, contents, response;
|
|
151
|
+
return __generator(this, function (_a) {
|
|
152
|
+
switch (_a.label) {
|
|
153
|
+
case 0:
|
|
154
|
+
if (output.statusCode >= 300) {
|
|
155
|
+
return [2, deserializeAws_json1_1CreateEnvironmentEC2CommandError(output, context)];
|
|
156
|
+
}
|
|
157
|
+
return [4, parseBody(output.body, context)];
|
|
158
|
+
case 1:
|
|
159
|
+
data = _a.sent();
|
|
160
|
+
contents = {};
|
|
161
|
+
contents = deserializeAws_json1_1CreateEnvironmentEC2Result(data, context);
|
|
162
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
163
|
+
return [2, Promise.resolve(response)];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}); };
|
|
167
|
+
var deserializeAws_json1_1CreateEnvironmentEC2CommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
168
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
169
|
+
var _c;
|
|
170
|
+
return __generator(this, function (_d) {
|
|
171
|
+
switch (_d.label) {
|
|
172
|
+
case 0:
|
|
173
|
+
_a = [__assign({}, output)];
|
|
174
|
+
_c = {};
|
|
175
|
+
return [4, parseErrorBody(output.body, context)];
|
|
176
|
+
case 1:
|
|
177
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
178
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
179
|
+
_b = errorCode;
|
|
180
|
+
switch (_b) {
|
|
181
|
+
case "BadRequestException": return [3, 2];
|
|
182
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
183
|
+
case "ConflictException": return [3, 4];
|
|
184
|
+
case "com.amazonaws.cloud9#ConflictException": return [3, 4];
|
|
185
|
+
case "ForbiddenException": return [3, 6];
|
|
186
|
+
case "com.amazonaws.cloud9#ForbiddenException": return [3, 6];
|
|
187
|
+
case "InternalServerErrorException": return [3, 8];
|
|
188
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 8];
|
|
189
|
+
case "LimitExceededException": return [3, 10];
|
|
190
|
+
case "com.amazonaws.cloud9#LimitExceededException": return [3, 10];
|
|
191
|
+
case "NotFoundException": return [3, 12];
|
|
192
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 12];
|
|
193
|
+
case "TooManyRequestsException": return [3, 14];
|
|
194
|
+
case "com.amazonaws.cloud9#TooManyRequestsException": return [3, 14];
|
|
195
|
+
}
|
|
196
|
+
return [3, 16];
|
|
197
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
198
|
+
case 3: throw _d.sent();
|
|
199
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
200
|
+
case 5: throw _d.sent();
|
|
201
|
+
case 6: return [4, deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
202
|
+
case 7: throw _d.sent();
|
|
203
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
204
|
+
case 9: throw _d.sent();
|
|
205
|
+
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
206
|
+
case 11: throw _d.sent();
|
|
207
|
+
case 12: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
208
|
+
case 13: throw _d.sent();
|
|
209
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
210
|
+
case 15: throw _d.sent();
|
|
211
|
+
case 16:
|
|
212
|
+
parsedBody = parsedOutput.body;
|
|
213
|
+
throwDefaultError({
|
|
214
|
+
output: output,
|
|
215
|
+
parsedBody: parsedBody,
|
|
216
|
+
exceptionCtor: __BaseException,
|
|
217
|
+
errorCode: errorCode,
|
|
218
|
+
});
|
|
219
|
+
_d.label = 17;
|
|
220
|
+
case 17: return [2];
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
}); };
|
|
224
|
+
export var deserializeAws_json1_1CreateEnvironmentMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
225
|
+
var data, contents, response;
|
|
226
|
+
return __generator(this, function (_a) {
|
|
227
|
+
switch (_a.label) {
|
|
228
|
+
case 0:
|
|
229
|
+
if (output.statusCode >= 300) {
|
|
230
|
+
return [2, deserializeAws_json1_1CreateEnvironmentMembershipCommandError(output, context)];
|
|
231
|
+
}
|
|
232
|
+
return [4, parseBody(output.body, context)];
|
|
233
|
+
case 1:
|
|
234
|
+
data = _a.sent();
|
|
235
|
+
contents = {};
|
|
236
|
+
contents = deserializeAws_json1_1CreateEnvironmentMembershipResult(data, context);
|
|
237
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
238
|
+
return [2, Promise.resolve(response)];
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}); };
|
|
242
|
+
var deserializeAws_json1_1CreateEnvironmentMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
243
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
244
|
+
var _c;
|
|
245
|
+
return __generator(this, function (_d) {
|
|
246
|
+
switch (_d.label) {
|
|
247
|
+
case 0:
|
|
248
|
+
_a = [__assign({}, output)];
|
|
249
|
+
_c = {};
|
|
250
|
+
return [4, parseErrorBody(output.body, context)];
|
|
251
|
+
case 1:
|
|
252
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
253
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
254
|
+
_b = errorCode;
|
|
255
|
+
switch (_b) {
|
|
256
|
+
case "BadRequestException": return [3, 2];
|
|
257
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
258
|
+
case "ConflictException": return [3, 4];
|
|
259
|
+
case "com.amazonaws.cloud9#ConflictException": return [3, 4];
|
|
260
|
+
case "ForbiddenException": return [3, 6];
|
|
261
|
+
case "com.amazonaws.cloud9#ForbiddenException": return [3, 6];
|
|
262
|
+
case "InternalServerErrorException": return [3, 8];
|
|
263
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 8];
|
|
264
|
+
case "LimitExceededException": return [3, 10];
|
|
265
|
+
case "com.amazonaws.cloud9#LimitExceededException": return [3, 10];
|
|
266
|
+
case "NotFoundException": return [3, 12];
|
|
267
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 12];
|
|
268
|
+
case "TooManyRequestsException": return [3, 14];
|
|
269
|
+
case "com.amazonaws.cloud9#TooManyRequestsException": return [3, 14];
|
|
270
|
+
}
|
|
271
|
+
return [3, 16];
|
|
272
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
273
|
+
case 3: throw _d.sent();
|
|
274
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
275
|
+
case 5: throw _d.sent();
|
|
276
|
+
case 6: return [4, deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
277
|
+
case 7: throw _d.sent();
|
|
278
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
279
|
+
case 9: throw _d.sent();
|
|
280
|
+
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
281
|
+
case 11: throw _d.sent();
|
|
282
|
+
case 12: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
283
|
+
case 13: throw _d.sent();
|
|
284
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
285
|
+
case 15: throw _d.sent();
|
|
286
|
+
case 16:
|
|
287
|
+
parsedBody = parsedOutput.body;
|
|
288
|
+
throwDefaultError({
|
|
289
|
+
output: output,
|
|
290
|
+
parsedBody: parsedBody,
|
|
291
|
+
exceptionCtor: __BaseException,
|
|
292
|
+
errorCode: errorCode,
|
|
293
|
+
});
|
|
294
|
+
_d.label = 17;
|
|
295
|
+
case 17: return [2];
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}); };
|
|
299
|
+
export var deserializeAws_json1_1DeleteEnvironmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
300
|
+
var data, contents, response;
|
|
301
|
+
return __generator(this, function (_a) {
|
|
302
|
+
switch (_a.label) {
|
|
303
|
+
case 0:
|
|
304
|
+
if (output.statusCode >= 300) {
|
|
305
|
+
return [2, deserializeAws_json1_1DeleteEnvironmentCommandError(output, context)];
|
|
306
|
+
}
|
|
307
|
+
return [4, parseBody(output.body, context)];
|
|
308
|
+
case 1:
|
|
309
|
+
data = _a.sent();
|
|
310
|
+
contents = {};
|
|
311
|
+
contents = deserializeAws_json1_1DeleteEnvironmentResult(data, context);
|
|
312
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
313
|
+
return [2, Promise.resolve(response)];
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
}); };
|
|
317
|
+
var deserializeAws_json1_1DeleteEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
318
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
319
|
+
var _c;
|
|
320
|
+
return __generator(this, function (_d) {
|
|
321
|
+
switch (_d.label) {
|
|
322
|
+
case 0:
|
|
323
|
+
_a = [__assign({}, output)];
|
|
324
|
+
_c = {};
|
|
325
|
+
return [4, parseErrorBody(output.body, context)];
|
|
326
|
+
case 1:
|
|
327
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
328
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
329
|
+
_b = errorCode;
|
|
330
|
+
switch (_b) {
|
|
331
|
+
case "BadRequestException": return [3, 2];
|
|
332
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
333
|
+
case "ConflictException": return [3, 4];
|
|
334
|
+
case "com.amazonaws.cloud9#ConflictException": return [3, 4];
|
|
335
|
+
case "ForbiddenException": return [3, 6];
|
|
336
|
+
case "com.amazonaws.cloud9#ForbiddenException": return [3, 6];
|
|
337
|
+
case "InternalServerErrorException": return [3, 8];
|
|
338
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 8];
|
|
339
|
+
case "LimitExceededException": return [3, 10];
|
|
340
|
+
case "com.amazonaws.cloud9#LimitExceededException": return [3, 10];
|
|
341
|
+
case "NotFoundException": return [3, 12];
|
|
342
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 12];
|
|
343
|
+
case "TooManyRequestsException": return [3, 14];
|
|
344
|
+
case "com.amazonaws.cloud9#TooManyRequestsException": return [3, 14];
|
|
345
|
+
}
|
|
346
|
+
return [3, 16];
|
|
347
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
348
|
+
case 3: throw _d.sent();
|
|
349
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
350
|
+
case 5: throw _d.sent();
|
|
351
|
+
case 6: return [4, deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
352
|
+
case 7: throw _d.sent();
|
|
353
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
354
|
+
case 9: throw _d.sent();
|
|
355
|
+
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
356
|
+
case 11: throw _d.sent();
|
|
357
|
+
case 12: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
358
|
+
case 13: throw _d.sent();
|
|
359
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
360
|
+
case 15: throw _d.sent();
|
|
361
|
+
case 16:
|
|
362
|
+
parsedBody = parsedOutput.body;
|
|
363
|
+
throwDefaultError({
|
|
364
|
+
output: output,
|
|
365
|
+
parsedBody: parsedBody,
|
|
366
|
+
exceptionCtor: __BaseException,
|
|
367
|
+
errorCode: errorCode,
|
|
368
|
+
});
|
|
369
|
+
_d.label = 17;
|
|
370
|
+
case 17: return [2];
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
}); };
|
|
374
|
+
export var deserializeAws_json1_1DeleteEnvironmentMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
375
|
+
var data, contents, response;
|
|
376
|
+
return __generator(this, function (_a) {
|
|
377
|
+
switch (_a.label) {
|
|
378
|
+
case 0:
|
|
379
|
+
if (output.statusCode >= 300) {
|
|
380
|
+
return [2, deserializeAws_json1_1DeleteEnvironmentMembershipCommandError(output, context)];
|
|
381
|
+
}
|
|
382
|
+
return [4, parseBody(output.body, context)];
|
|
383
|
+
case 1:
|
|
384
|
+
data = _a.sent();
|
|
385
|
+
contents = {};
|
|
386
|
+
contents = deserializeAws_json1_1DeleteEnvironmentMembershipResult(data, context);
|
|
387
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
388
|
+
return [2, Promise.resolve(response)];
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
}); };
|
|
392
|
+
var deserializeAws_json1_1DeleteEnvironmentMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
393
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
394
|
+
var _c;
|
|
395
|
+
return __generator(this, function (_d) {
|
|
396
|
+
switch (_d.label) {
|
|
397
|
+
case 0:
|
|
398
|
+
_a = [__assign({}, output)];
|
|
399
|
+
_c = {};
|
|
400
|
+
return [4, parseErrorBody(output.body, context)];
|
|
401
|
+
case 1:
|
|
402
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
403
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
404
|
+
_b = errorCode;
|
|
405
|
+
switch (_b) {
|
|
406
|
+
case "BadRequestException": return [3, 2];
|
|
407
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
408
|
+
case "ConflictException": return [3, 4];
|
|
409
|
+
case "com.amazonaws.cloud9#ConflictException": return [3, 4];
|
|
410
|
+
case "ForbiddenException": return [3, 6];
|
|
411
|
+
case "com.amazonaws.cloud9#ForbiddenException": return [3, 6];
|
|
412
|
+
case "InternalServerErrorException": return [3, 8];
|
|
413
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 8];
|
|
414
|
+
case "LimitExceededException": return [3, 10];
|
|
415
|
+
case "com.amazonaws.cloud9#LimitExceededException": return [3, 10];
|
|
416
|
+
case "NotFoundException": return [3, 12];
|
|
417
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 12];
|
|
418
|
+
case "TooManyRequestsException": return [3, 14];
|
|
419
|
+
case "com.amazonaws.cloud9#TooManyRequestsException": return [3, 14];
|
|
420
|
+
}
|
|
421
|
+
return [3, 16];
|
|
422
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
423
|
+
case 3: throw _d.sent();
|
|
424
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
425
|
+
case 5: throw _d.sent();
|
|
426
|
+
case 6: return [4, deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
427
|
+
case 7: throw _d.sent();
|
|
428
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
429
|
+
case 9: throw _d.sent();
|
|
430
|
+
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
431
|
+
case 11: throw _d.sent();
|
|
432
|
+
case 12: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
433
|
+
case 13: throw _d.sent();
|
|
434
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
435
|
+
case 15: throw _d.sent();
|
|
436
|
+
case 16:
|
|
437
|
+
parsedBody = parsedOutput.body;
|
|
438
|
+
throwDefaultError({
|
|
439
|
+
output: output,
|
|
440
|
+
parsedBody: parsedBody,
|
|
441
|
+
exceptionCtor: __BaseException,
|
|
442
|
+
errorCode: errorCode,
|
|
443
|
+
});
|
|
444
|
+
_d.label = 17;
|
|
445
|
+
case 17: return [2];
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
}); };
|
|
449
|
+
export var deserializeAws_json1_1DescribeEnvironmentMembershipsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
450
|
+
var data, contents, response;
|
|
451
|
+
return __generator(this, function (_a) {
|
|
452
|
+
switch (_a.label) {
|
|
453
|
+
case 0:
|
|
454
|
+
if (output.statusCode >= 300) {
|
|
455
|
+
return [2, deserializeAws_json1_1DescribeEnvironmentMembershipsCommandError(output, context)];
|
|
456
|
+
}
|
|
457
|
+
return [4, parseBody(output.body, context)];
|
|
458
|
+
case 1:
|
|
459
|
+
data = _a.sent();
|
|
460
|
+
contents = {};
|
|
461
|
+
contents = deserializeAws_json1_1DescribeEnvironmentMembershipsResult(data, context);
|
|
462
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
463
|
+
return [2, Promise.resolve(response)];
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
}); };
|
|
467
|
+
var deserializeAws_json1_1DescribeEnvironmentMembershipsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
468
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
469
|
+
var _c;
|
|
470
|
+
return __generator(this, function (_d) {
|
|
471
|
+
switch (_d.label) {
|
|
472
|
+
case 0:
|
|
473
|
+
_a = [__assign({}, output)];
|
|
474
|
+
_c = {};
|
|
475
|
+
return [4, parseErrorBody(output.body, context)];
|
|
476
|
+
case 1:
|
|
477
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
478
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
479
|
+
_b = errorCode;
|
|
480
|
+
switch (_b) {
|
|
481
|
+
case "BadRequestException": return [3, 2];
|
|
482
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
483
|
+
case "ConflictException": return [3, 4];
|
|
484
|
+
case "com.amazonaws.cloud9#ConflictException": return [3, 4];
|
|
485
|
+
case "ForbiddenException": return [3, 6];
|
|
486
|
+
case "com.amazonaws.cloud9#ForbiddenException": return [3, 6];
|
|
487
|
+
case "InternalServerErrorException": return [3, 8];
|
|
488
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 8];
|
|
489
|
+
case "LimitExceededException": return [3, 10];
|
|
490
|
+
case "com.amazonaws.cloud9#LimitExceededException": return [3, 10];
|
|
491
|
+
case "NotFoundException": return [3, 12];
|
|
492
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 12];
|
|
493
|
+
case "TooManyRequestsException": return [3, 14];
|
|
494
|
+
case "com.amazonaws.cloud9#TooManyRequestsException": return [3, 14];
|
|
495
|
+
}
|
|
496
|
+
return [3, 16];
|
|
497
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
498
|
+
case 3: throw _d.sent();
|
|
499
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
500
|
+
case 5: throw _d.sent();
|
|
501
|
+
case 6: return [4, deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
502
|
+
case 7: throw _d.sent();
|
|
503
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
504
|
+
case 9: throw _d.sent();
|
|
505
|
+
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
506
|
+
case 11: throw _d.sent();
|
|
507
|
+
case 12: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
508
|
+
case 13: throw _d.sent();
|
|
509
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
510
|
+
case 15: throw _d.sent();
|
|
511
|
+
case 16:
|
|
512
|
+
parsedBody = parsedOutput.body;
|
|
513
|
+
throwDefaultError({
|
|
514
|
+
output: output,
|
|
515
|
+
parsedBody: parsedBody,
|
|
516
|
+
exceptionCtor: __BaseException,
|
|
517
|
+
errorCode: errorCode,
|
|
518
|
+
});
|
|
519
|
+
_d.label = 17;
|
|
520
|
+
case 17: return [2];
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
}); };
|
|
524
|
+
export var deserializeAws_json1_1DescribeEnvironmentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
525
|
+
var data, contents, response;
|
|
526
|
+
return __generator(this, function (_a) {
|
|
527
|
+
switch (_a.label) {
|
|
528
|
+
case 0:
|
|
529
|
+
if (output.statusCode >= 300) {
|
|
530
|
+
return [2, deserializeAws_json1_1DescribeEnvironmentsCommandError(output, context)];
|
|
531
|
+
}
|
|
532
|
+
return [4, parseBody(output.body, context)];
|
|
533
|
+
case 1:
|
|
534
|
+
data = _a.sent();
|
|
535
|
+
contents = {};
|
|
536
|
+
contents = deserializeAws_json1_1DescribeEnvironmentsResult(data, context);
|
|
537
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
538
|
+
return [2, Promise.resolve(response)];
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
}); };
|
|
542
|
+
var deserializeAws_json1_1DescribeEnvironmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
543
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
544
|
+
var _c;
|
|
545
|
+
return __generator(this, function (_d) {
|
|
546
|
+
switch (_d.label) {
|
|
547
|
+
case 0:
|
|
548
|
+
_a = [__assign({}, output)];
|
|
549
|
+
_c = {};
|
|
550
|
+
return [4, parseErrorBody(output.body, context)];
|
|
551
|
+
case 1:
|
|
552
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
553
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
554
|
+
_b = errorCode;
|
|
555
|
+
switch (_b) {
|
|
556
|
+
case "BadRequestException": return [3, 2];
|
|
557
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
558
|
+
case "ConflictException": return [3, 4];
|
|
559
|
+
case "com.amazonaws.cloud9#ConflictException": return [3, 4];
|
|
560
|
+
case "ForbiddenException": return [3, 6];
|
|
561
|
+
case "com.amazonaws.cloud9#ForbiddenException": return [3, 6];
|
|
562
|
+
case "InternalServerErrorException": return [3, 8];
|
|
563
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 8];
|
|
564
|
+
case "LimitExceededException": return [3, 10];
|
|
565
|
+
case "com.amazonaws.cloud9#LimitExceededException": return [3, 10];
|
|
566
|
+
case "NotFoundException": return [3, 12];
|
|
567
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 12];
|
|
568
|
+
case "TooManyRequestsException": return [3, 14];
|
|
569
|
+
case "com.amazonaws.cloud9#TooManyRequestsException": return [3, 14];
|
|
570
|
+
}
|
|
571
|
+
return [3, 16];
|
|
572
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
573
|
+
case 3: throw _d.sent();
|
|
574
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
575
|
+
case 5: throw _d.sent();
|
|
576
|
+
case 6: return [4, deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
577
|
+
case 7: throw _d.sent();
|
|
578
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
579
|
+
case 9: throw _d.sent();
|
|
580
|
+
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
581
|
+
case 11: throw _d.sent();
|
|
582
|
+
case 12: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
583
|
+
case 13: throw _d.sent();
|
|
584
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
585
|
+
case 15: throw _d.sent();
|
|
586
|
+
case 16:
|
|
587
|
+
parsedBody = parsedOutput.body;
|
|
588
|
+
throwDefaultError({
|
|
589
|
+
output: output,
|
|
590
|
+
parsedBody: parsedBody,
|
|
591
|
+
exceptionCtor: __BaseException,
|
|
592
|
+
errorCode: errorCode,
|
|
593
|
+
});
|
|
594
|
+
_d.label = 17;
|
|
595
|
+
case 17: return [2];
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
}); };
|
|
599
|
+
export var deserializeAws_json1_1DescribeEnvironmentStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
600
|
+
var data, contents, response;
|
|
601
|
+
return __generator(this, function (_a) {
|
|
602
|
+
switch (_a.label) {
|
|
603
|
+
case 0:
|
|
604
|
+
if (output.statusCode >= 300) {
|
|
605
|
+
return [2, deserializeAws_json1_1DescribeEnvironmentStatusCommandError(output, context)];
|
|
606
|
+
}
|
|
607
|
+
return [4, parseBody(output.body, context)];
|
|
608
|
+
case 1:
|
|
609
|
+
data = _a.sent();
|
|
610
|
+
contents = {};
|
|
611
|
+
contents = deserializeAws_json1_1DescribeEnvironmentStatusResult(data, context);
|
|
612
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
613
|
+
return [2, Promise.resolve(response)];
|
|
614
|
+
}
|
|
615
|
+
});
|
|
616
|
+
}); };
|
|
617
|
+
var deserializeAws_json1_1DescribeEnvironmentStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
618
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
619
|
+
var _c;
|
|
620
|
+
return __generator(this, function (_d) {
|
|
621
|
+
switch (_d.label) {
|
|
622
|
+
case 0:
|
|
623
|
+
_a = [__assign({}, output)];
|
|
624
|
+
_c = {};
|
|
625
|
+
return [4, parseErrorBody(output.body, context)];
|
|
626
|
+
case 1:
|
|
627
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
628
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
|
+
_b = errorCode;
|
|
630
|
+
switch (_b) {
|
|
631
|
+
case "BadRequestException": return [3, 2];
|
|
632
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
633
|
+
case "ConflictException": return [3, 4];
|
|
634
|
+
case "com.amazonaws.cloud9#ConflictException": return [3, 4];
|
|
635
|
+
case "ForbiddenException": return [3, 6];
|
|
636
|
+
case "com.amazonaws.cloud9#ForbiddenException": return [3, 6];
|
|
637
|
+
case "InternalServerErrorException": return [3, 8];
|
|
638
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 8];
|
|
639
|
+
case "LimitExceededException": return [3, 10];
|
|
640
|
+
case "com.amazonaws.cloud9#LimitExceededException": return [3, 10];
|
|
641
|
+
case "NotFoundException": return [3, 12];
|
|
642
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 12];
|
|
643
|
+
case "TooManyRequestsException": return [3, 14];
|
|
644
|
+
case "com.amazonaws.cloud9#TooManyRequestsException": return [3, 14];
|
|
645
|
+
}
|
|
646
|
+
return [3, 16];
|
|
647
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
648
|
+
case 3: throw _d.sent();
|
|
649
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
650
|
+
case 5: throw _d.sent();
|
|
651
|
+
case 6: return [4, deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
652
|
+
case 7: throw _d.sent();
|
|
653
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
654
|
+
case 9: throw _d.sent();
|
|
655
|
+
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
656
|
+
case 11: throw _d.sent();
|
|
657
|
+
case 12: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
658
|
+
case 13: throw _d.sent();
|
|
659
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
660
|
+
case 15: throw _d.sent();
|
|
661
|
+
case 16:
|
|
662
|
+
parsedBody = parsedOutput.body;
|
|
663
|
+
throwDefaultError({
|
|
664
|
+
output: output,
|
|
665
|
+
parsedBody: parsedBody,
|
|
666
|
+
exceptionCtor: __BaseException,
|
|
667
|
+
errorCode: errorCode,
|
|
668
|
+
});
|
|
669
|
+
_d.label = 17;
|
|
670
|
+
case 17: return [2];
|
|
671
|
+
}
|
|
672
|
+
});
|
|
673
|
+
}); };
|
|
674
|
+
export var deserializeAws_json1_1ListEnvironmentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
675
|
+
var data, contents, response;
|
|
676
|
+
return __generator(this, function (_a) {
|
|
677
|
+
switch (_a.label) {
|
|
678
|
+
case 0:
|
|
679
|
+
if (output.statusCode >= 300) {
|
|
680
|
+
return [2, deserializeAws_json1_1ListEnvironmentsCommandError(output, context)];
|
|
681
|
+
}
|
|
682
|
+
return [4, parseBody(output.body, context)];
|
|
683
|
+
case 1:
|
|
684
|
+
data = _a.sent();
|
|
685
|
+
contents = {};
|
|
686
|
+
contents = deserializeAws_json1_1ListEnvironmentsResult(data, context);
|
|
687
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
688
|
+
return [2, Promise.resolve(response)];
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
}); };
|
|
692
|
+
var deserializeAws_json1_1ListEnvironmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
693
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
694
|
+
var _c;
|
|
695
|
+
return __generator(this, function (_d) {
|
|
696
|
+
switch (_d.label) {
|
|
697
|
+
case 0:
|
|
698
|
+
_a = [__assign({}, output)];
|
|
699
|
+
_c = {};
|
|
700
|
+
return [4, parseErrorBody(output.body, context)];
|
|
701
|
+
case 1:
|
|
702
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
703
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
704
|
+
_b = errorCode;
|
|
705
|
+
switch (_b) {
|
|
706
|
+
case "BadRequestException": return [3, 2];
|
|
707
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
708
|
+
case "ConflictException": return [3, 4];
|
|
709
|
+
case "com.amazonaws.cloud9#ConflictException": return [3, 4];
|
|
710
|
+
case "ForbiddenException": return [3, 6];
|
|
711
|
+
case "com.amazonaws.cloud9#ForbiddenException": return [3, 6];
|
|
712
|
+
case "InternalServerErrorException": return [3, 8];
|
|
713
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 8];
|
|
714
|
+
case "LimitExceededException": return [3, 10];
|
|
715
|
+
case "com.amazonaws.cloud9#LimitExceededException": return [3, 10];
|
|
716
|
+
case "NotFoundException": return [3, 12];
|
|
717
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 12];
|
|
718
|
+
case "TooManyRequestsException": return [3, 14];
|
|
719
|
+
case "com.amazonaws.cloud9#TooManyRequestsException": return [3, 14];
|
|
720
|
+
}
|
|
721
|
+
return [3, 16];
|
|
722
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
723
|
+
case 3: throw _d.sent();
|
|
724
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
725
|
+
case 5: throw _d.sent();
|
|
726
|
+
case 6: return [4, deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
727
|
+
case 7: throw _d.sent();
|
|
728
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
729
|
+
case 9: throw _d.sent();
|
|
730
|
+
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
731
|
+
case 11: throw _d.sent();
|
|
732
|
+
case 12: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
733
|
+
case 13: throw _d.sent();
|
|
734
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
735
|
+
case 15: throw _d.sent();
|
|
736
|
+
case 16:
|
|
737
|
+
parsedBody = parsedOutput.body;
|
|
738
|
+
throwDefaultError({
|
|
739
|
+
output: output,
|
|
740
|
+
parsedBody: parsedBody,
|
|
741
|
+
exceptionCtor: __BaseException,
|
|
742
|
+
errorCode: errorCode,
|
|
743
|
+
});
|
|
744
|
+
_d.label = 17;
|
|
745
|
+
case 17: return [2];
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
}); };
|
|
749
|
+
export var deserializeAws_json1_1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
750
|
+
var data, contents, response;
|
|
751
|
+
return __generator(this, function (_a) {
|
|
752
|
+
switch (_a.label) {
|
|
753
|
+
case 0:
|
|
754
|
+
if (output.statusCode >= 300) {
|
|
755
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
756
|
+
}
|
|
757
|
+
return [4, parseBody(output.body, context)];
|
|
758
|
+
case 1:
|
|
759
|
+
data = _a.sent();
|
|
760
|
+
contents = {};
|
|
761
|
+
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
762
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
763
|
+
return [2, Promise.resolve(response)];
|
|
764
|
+
}
|
|
765
|
+
});
|
|
766
|
+
}); };
|
|
767
|
+
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
768
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
769
|
+
var _c;
|
|
770
|
+
return __generator(this, function (_d) {
|
|
771
|
+
switch (_d.label) {
|
|
772
|
+
case 0:
|
|
773
|
+
_a = [__assign({}, output)];
|
|
774
|
+
_c = {};
|
|
775
|
+
return [4, parseErrorBody(output.body, context)];
|
|
776
|
+
case 1:
|
|
777
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
778
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
+
_b = errorCode;
|
|
780
|
+
switch (_b) {
|
|
781
|
+
case "BadRequestException": return [3, 2];
|
|
782
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
783
|
+
case "InternalServerErrorException": return [3, 4];
|
|
784
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 4];
|
|
785
|
+
case "NotFoundException": return [3, 6];
|
|
786
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 6];
|
|
787
|
+
}
|
|
788
|
+
return [3, 8];
|
|
789
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
790
|
+
case 3: throw _d.sent();
|
|
791
|
+
case 4: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
792
|
+
case 5: throw _d.sent();
|
|
793
|
+
case 6: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
794
|
+
case 7: throw _d.sent();
|
|
795
|
+
case 8:
|
|
796
|
+
parsedBody = parsedOutput.body;
|
|
797
|
+
throwDefaultError({
|
|
798
|
+
output: output,
|
|
799
|
+
parsedBody: parsedBody,
|
|
800
|
+
exceptionCtor: __BaseException,
|
|
801
|
+
errorCode: errorCode,
|
|
802
|
+
});
|
|
803
|
+
_d.label = 9;
|
|
804
|
+
case 9: return [2];
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
}); };
|
|
808
|
+
export var deserializeAws_json1_1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
809
|
+
var data, contents, response;
|
|
810
|
+
return __generator(this, function (_a) {
|
|
811
|
+
switch (_a.label) {
|
|
812
|
+
case 0:
|
|
813
|
+
if (output.statusCode >= 300) {
|
|
814
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
815
|
+
}
|
|
816
|
+
return [4, parseBody(output.body, context)];
|
|
817
|
+
case 1:
|
|
818
|
+
data = _a.sent();
|
|
819
|
+
contents = {};
|
|
820
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
821
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
822
|
+
return [2, Promise.resolve(response)];
|
|
823
|
+
}
|
|
824
|
+
});
|
|
825
|
+
}); };
|
|
826
|
+
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
827
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
828
|
+
var _c;
|
|
829
|
+
return __generator(this, function (_d) {
|
|
830
|
+
switch (_d.label) {
|
|
831
|
+
case 0:
|
|
832
|
+
_a = [__assign({}, output)];
|
|
833
|
+
_c = {};
|
|
834
|
+
return [4, parseErrorBody(output.body, context)];
|
|
835
|
+
case 1:
|
|
836
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
837
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
|
+
_b = errorCode;
|
|
839
|
+
switch (_b) {
|
|
840
|
+
case "BadRequestException": return [3, 2];
|
|
841
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
842
|
+
case "ConcurrentAccessException": return [3, 4];
|
|
843
|
+
case "com.amazonaws.cloud9#ConcurrentAccessException": return [3, 4];
|
|
844
|
+
case "InternalServerErrorException": return [3, 6];
|
|
845
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 6];
|
|
846
|
+
case "NotFoundException": return [3, 8];
|
|
847
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 8];
|
|
848
|
+
}
|
|
849
|
+
return [3, 10];
|
|
850
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
851
|
+
case 3: throw _d.sent();
|
|
852
|
+
case 4: return [4, deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context)];
|
|
853
|
+
case 5: throw _d.sent();
|
|
854
|
+
case 6: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
855
|
+
case 7: throw _d.sent();
|
|
856
|
+
case 8: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
857
|
+
case 9: throw _d.sent();
|
|
858
|
+
case 10:
|
|
859
|
+
parsedBody = parsedOutput.body;
|
|
860
|
+
throwDefaultError({
|
|
861
|
+
output: output,
|
|
862
|
+
parsedBody: parsedBody,
|
|
863
|
+
exceptionCtor: __BaseException,
|
|
864
|
+
errorCode: errorCode,
|
|
865
|
+
});
|
|
866
|
+
_d.label = 11;
|
|
867
|
+
case 11: return [2];
|
|
868
|
+
}
|
|
869
|
+
});
|
|
870
|
+
}); };
|
|
871
|
+
export var deserializeAws_json1_1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
872
|
+
var data, contents, response;
|
|
873
|
+
return __generator(this, function (_a) {
|
|
874
|
+
switch (_a.label) {
|
|
875
|
+
case 0:
|
|
876
|
+
if (output.statusCode >= 300) {
|
|
877
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
878
|
+
}
|
|
879
|
+
return [4, parseBody(output.body, context)];
|
|
880
|
+
case 1:
|
|
881
|
+
data = _a.sent();
|
|
882
|
+
contents = {};
|
|
883
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
884
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
885
|
+
return [2, Promise.resolve(response)];
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
}); };
|
|
889
|
+
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
890
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
891
|
+
var _c;
|
|
892
|
+
return __generator(this, function (_d) {
|
|
893
|
+
switch (_d.label) {
|
|
894
|
+
case 0:
|
|
895
|
+
_a = [__assign({}, output)];
|
|
896
|
+
_c = {};
|
|
897
|
+
return [4, parseErrorBody(output.body, context)];
|
|
898
|
+
case 1:
|
|
899
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
900
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
|
+
_b = errorCode;
|
|
902
|
+
switch (_b) {
|
|
903
|
+
case "BadRequestException": return [3, 2];
|
|
904
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
905
|
+
case "ConcurrentAccessException": return [3, 4];
|
|
906
|
+
case "com.amazonaws.cloud9#ConcurrentAccessException": return [3, 4];
|
|
907
|
+
case "InternalServerErrorException": return [3, 6];
|
|
908
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 6];
|
|
909
|
+
case "NotFoundException": return [3, 8];
|
|
910
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 8];
|
|
911
|
+
}
|
|
912
|
+
return [3, 10];
|
|
913
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
914
|
+
case 3: throw _d.sent();
|
|
915
|
+
case 4: return [4, deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context)];
|
|
916
|
+
case 5: throw _d.sent();
|
|
917
|
+
case 6: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
918
|
+
case 7: throw _d.sent();
|
|
919
|
+
case 8: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
920
|
+
case 9: throw _d.sent();
|
|
921
|
+
case 10:
|
|
922
|
+
parsedBody = parsedOutput.body;
|
|
923
|
+
throwDefaultError({
|
|
924
|
+
output: output,
|
|
925
|
+
parsedBody: parsedBody,
|
|
926
|
+
exceptionCtor: __BaseException,
|
|
927
|
+
errorCode: errorCode,
|
|
928
|
+
});
|
|
929
|
+
_d.label = 11;
|
|
930
|
+
case 11: return [2];
|
|
931
|
+
}
|
|
932
|
+
});
|
|
933
|
+
}); };
|
|
934
|
+
export var deserializeAws_json1_1UpdateEnvironmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
935
|
+
var data, contents, response;
|
|
936
|
+
return __generator(this, function (_a) {
|
|
937
|
+
switch (_a.label) {
|
|
938
|
+
case 0:
|
|
939
|
+
if (output.statusCode >= 300) {
|
|
940
|
+
return [2, deserializeAws_json1_1UpdateEnvironmentCommandError(output, context)];
|
|
941
|
+
}
|
|
942
|
+
return [4, parseBody(output.body, context)];
|
|
943
|
+
case 1:
|
|
944
|
+
data = _a.sent();
|
|
945
|
+
contents = {};
|
|
946
|
+
contents = deserializeAws_json1_1UpdateEnvironmentResult(data, context);
|
|
947
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
948
|
+
return [2, Promise.resolve(response)];
|
|
949
|
+
}
|
|
950
|
+
});
|
|
951
|
+
}); };
|
|
952
|
+
var deserializeAws_json1_1UpdateEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
953
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
954
|
+
var _c;
|
|
955
|
+
return __generator(this, function (_d) {
|
|
956
|
+
switch (_d.label) {
|
|
957
|
+
case 0:
|
|
958
|
+
_a = [__assign({}, output)];
|
|
959
|
+
_c = {};
|
|
960
|
+
return [4, parseErrorBody(output.body, context)];
|
|
961
|
+
case 1:
|
|
962
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
963
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
964
|
+
_b = errorCode;
|
|
965
|
+
switch (_b) {
|
|
966
|
+
case "BadRequestException": return [3, 2];
|
|
967
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
968
|
+
case "ConflictException": return [3, 4];
|
|
969
|
+
case "com.amazonaws.cloud9#ConflictException": return [3, 4];
|
|
970
|
+
case "ForbiddenException": return [3, 6];
|
|
971
|
+
case "com.amazonaws.cloud9#ForbiddenException": return [3, 6];
|
|
972
|
+
case "InternalServerErrorException": return [3, 8];
|
|
973
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 8];
|
|
974
|
+
case "LimitExceededException": return [3, 10];
|
|
975
|
+
case "com.amazonaws.cloud9#LimitExceededException": return [3, 10];
|
|
976
|
+
case "NotFoundException": return [3, 12];
|
|
977
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 12];
|
|
978
|
+
case "TooManyRequestsException": return [3, 14];
|
|
979
|
+
case "com.amazonaws.cloud9#TooManyRequestsException": return [3, 14];
|
|
980
|
+
}
|
|
981
|
+
return [3, 16];
|
|
982
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
983
|
+
case 3: throw _d.sent();
|
|
984
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
985
|
+
case 5: throw _d.sent();
|
|
986
|
+
case 6: return [4, deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
987
|
+
case 7: throw _d.sent();
|
|
988
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
989
|
+
case 9: throw _d.sent();
|
|
990
|
+
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
991
|
+
case 11: throw _d.sent();
|
|
992
|
+
case 12: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
993
|
+
case 13: throw _d.sent();
|
|
994
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
995
|
+
case 15: throw _d.sent();
|
|
996
|
+
case 16:
|
|
997
|
+
parsedBody = parsedOutput.body;
|
|
998
|
+
throwDefaultError({
|
|
999
|
+
output: output,
|
|
1000
|
+
parsedBody: parsedBody,
|
|
1001
|
+
exceptionCtor: __BaseException,
|
|
1002
|
+
errorCode: errorCode,
|
|
1003
|
+
});
|
|
1004
|
+
_d.label = 17;
|
|
1005
|
+
case 17: return [2];
|
|
1006
|
+
}
|
|
1007
|
+
});
|
|
1008
|
+
}); };
|
|
1009
|
+
export var deserializeAws_json1_1UpdateEnvironmentMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1010
|
+
var data, contents, response;
|
|
1011
|
+
return __generator(this, function (_a) {
|
|
1012
|
+
switch (_a.label) {
|
|
1013
|
+
case 0:
|
|
1014
|
+
if (output.statusCode >= 300) {
|
|
1015
|
+
return [2, deserializeAws_json1_1UpdateEnvironmentMembershipCommandError(output, context)];
|
|
1016
|
+
}
|
|
1017
|
+
return [4, parseBody(output.body, context)];
|
|
1018
|
+
case 1:
|
|
1019
|
+
data = _a.sent();
|
|
1020
|
+
contents = {};
|
|
1021
|
+
contents = deserializeAws_json1_1UpdateEnvironmentMembershipResult(data, context);
|
|
1022
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1023
|
+
return [2, Promise.resolve(response)];
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
}); };
|
|
1027
|
+
var deserializeAws_json1_1UpdateEnvironmentMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1028
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1029
|
+
var _c;
|
|
1030
|
+
return __generator(this, function (_d) {
|
|
1031
|
+
switch (_d.label) {
|
|
1032
|
+
case 0:
|
|
1033
|
+
_a = [__assign({}, output)];
|
|
1034
|
+
_c = {};
|
|
1035
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1036
|
+
case 1:
|
|
1037
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1038
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1039
|
+
_b = errorCode;
|
|
1040
|
+
switch (_b) {
|
|
1041
|
+
case "BadRequestException": return [3, 2];
|
|
1042
|
+
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
1043
|
+
case "ConflictException": return [3, 4];
|
|
1044
|
+
case "com.amazonaws.cloud9#ConflictException": return [3, 4];
|
|
1045
|
+
case "ForbiddenException": return [3, 6];
|
|
1046
|
+
case "com.amazonaws.cloud9#ForbiddenException": return [3, 6];
|
|
1047
|
+
case "InternalServerErrorException": return [3, 8];
|
|
1048
|
+
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 8];
|
|
1049
|
+
case "LimitExceededException": return [3, 10];
|
|
1050
|
+
case "com.amazonaws.cloud9#LimitExceededException": return [3, 10];
|
|
1051
|
+
case "NotFoundException": return [3, 12];
|
|
1052
|
+
case "com.amazonaws.cloud9#NotFoundException": return [3, 12];
|
|
1053
|
+
case "TooManyRequestsException": return [3, 14];
|
|
1054
|
+
case "com.amazonaws.cloud9#TooManyRequestsException": return [3, 14];
|
|
1055
|
+
}
|
|
1056
|
+
return [3, 16];
|
|
1057
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1058
|
+
case 3: throw _d.sent();
|
|
1059
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1060
|
+
case 5: throw _d.sent();
|
|
1061
|
+
case 6: return [4, deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1062
|
+
case 7: throw _d.sent();
|
|
1063
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1064
|
+
case 9: throw _d.sent();
|
|
1065
|
+
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1066
|
+
case 11: throw _d.sent();
|
|
1067
|
+
case 12: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1068
|
+
case 13: throw _d.sent();
|
|
1069
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1070
|
+
case 15: throw _d.sent();
|
|
1071
|
+
case 16:
|
|
1072
|
+
parsedBody = parsedOutput.body;
|
|
1073
|
+
throwDefaultError({
|
|
1074
|
+
output: output,
|
|
1075
|
+
parsedBody: parsedBody,
|
|
1076
|
+
exceptionCtor: __BaseException,
|
|
1077
|
+
errorCode: errorCode,
|
|
1078
|
+
});
|
|
1079
|
+
_d.label = 17;
|
|
1080
|
+
case 17: return [2];
|
|
1081
|
+
}
|
|
1082
|
+
});
|
|
1083
|
+
}); };
|
|
1084
|
+
var deserializeAws_json1_1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1085
|
+
var body, deserialized, exception;
|
|
1086
|
+
return __generator(this, function (_a) {
|
|
1087
|
+
body = parsedOutput.body;
|
|
1088
|
+
deserialized = deserializeAws_json1_1BadRequestException(body, context);
|
|
1089
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1090
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1091
|
+
});
|
|
1092
|
+
}); };
|
|
1093
|
+
var deserializeAws_json1_1ConcurrentAccessExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1094
|
+
var body, deserialized, exception;
|
|
1095
|
+
return __generator(this, function (_a) {
|
|
1096
|
+
body = parsedOutput.body;
|
|
1097
|
+
deserialized = deserializeAws_json1_1ConcurrentAccessException(body, context);
|
|
1098
|
+
exception = new ConcurrentAccessException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1099
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1100
|
+
});
|
|
1101
|
+
}); };
|
|
1102
|
+
var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1103
|
+
var body, deserialized, exception;
|
|
1104
|
+
return __generator(this, function (_a) {
|
|
1105
|
+
body = parsedOutput.body;
|
|
1106
|
+
deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
1107
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1108
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1109
|
+
});
|
|
1110
|
+
}); };
|
|
1111
|
+
var deserializeAws_json1_1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1112
|
+
var body, deserialized, exception;
|
|
1113
|
+
return __generator(this, function (_a) {
|
|
1114
|
+
body = parsedOutput.body;
|
|
1115
|
+
deserialized = deserializeAws_json1_1ForbiddenException(body, context);
|
|
1116
|
+
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1117
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1118
|
+
});
|
|
1119
|
+
}); };
|
|
1120
|
+
var deserializeAws_json1_1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1121
|
+
var body, deserialized, exception;
|
|
1122
|
+
return __generator(this, function (_a) {
|
|
1123
|
+
body = parsedOutput.body;
|
|
1124
|
+
deserialized = deserializeAws_json1_1InternalServerErrorException(body, context);
|
|
1125
|
+
exception = new InternalServerErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1126
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1127
|
+
});
|
|
1128
|
+
}); };
|
|
1129
|
+
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1130
|
+
var body, deserialized, exception;
|
|
1131
|
+
return __generator(this, function (_a) {
|
|
1132
|
+
body = parsedOutput.body;
|
|
1133
|
+
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1134
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1135
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1136
|
+
});
|
|
1137
|
+
}); };
|
|
1138
|
+
var deserializeAws_json1_1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1139
|
+
var body, deserialized, exception;
|
|
1140
|
+
return __generator(this, function (_a) {
|
|
1141
|
+
body = parsedOutput.body;
|
|
1142
|
+
deserialized = deserializeAws_json1_1NotFoundException(body, context);
|
|
1143
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1144
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1145
|
+
});
|
|
1146
|
+
}); };
|
|
1147
|
+
var deserializeAws_json1_1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1148
|
+
var body, deserialized, exception;
|
|
1149
|
+
return __generator(this, function (_a) {
|
|
1150
|
+
body = parsedOutput.body;
|
|
1151
|
+
deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
1152
|
+
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1153
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1154
|
+
});
|
|
1155
|
+
}); };
|
|
1156
|
+
var serializeAws_json1_1BoundedEnvironmentIdList = function (input, context) {
|
|
828
1157
|
return input
|
|
829
|
-
.filter((e)
|
|
830
|
-
.map((entry)
|
|
1158
|
+
.filter(function (e) { return e != null; })
|
|
1159
|
+
.map(function (entry) {
|
|
831
1160
|
return entry;
|
|
832
1161
|
});
|
|
833
1162
|
};
|
|
834
|
-
|
|
835
|
-
return {
|
|
836
|
-
...(input.automaticStopTimeMinutes != null && { automaticStopTimeMinutes: input.automaticStopTimeMinutes }),
|
|
837
|
-
...(input.clientRequestToken != null && { clientRequestToken: input.clientRequestToken }),
|
|
838
|
-
...(input.connectionType != null && { connectionType: input.connectionType }),
|
|
839
|
-
...(input.description != null && { description: input.description }),
|
|
840
|
-
...(input.dryRun != null && { dryRun: input.dryRun }),
|
|
841
|
-
...(input.imageId != null && { imageId: input.imageId }),
|
|
842
|
-
...(input.instanceType != null && { instanceType: input.instanceType }),
|
|
843
|
-
...(input.name != null && { name: input.name }),
|
|
844
|
-
...(input.ownerArn != null && { ownerArn: input.ownerArn }),
|
|
845
|
-
...(input.subnetId != null && { subnetId: input.subnetId }),
|
|
846
|
-
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
847
|
-
};
|
|
1163
|
+
var serializeAws_json1_1CreateEnvironmentEC2Request = function (input, context) {
|
|
1164
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.automaticStopTimeMinutes != null && { automaticStopTimeMinutes: input.automaticStopTimeMinutes })), (input.clientRequestToken != null && { clientRequestToken: input.clientRequestToken })), (input.connectionType != null && { connectionType: input.connectionType })), (input.description != null && { description: input.description })), (input.dryRun != null && { dryRun: input.dryRun })), (input.imageId != null && { imageId: input.imageId })), (input.instanceType != null && { instanceType: input.instanceType })), (input.name != null && { name: input.name })), (input.ownerArn != null && { ownerArn: input.ownerArn })), (input.subnetId != null && { subnetId: input.subnetId })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
848
1165
|
};
|
|
849
|
-
|
|
850
|
-
return {
|
|
851
|
-
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
852
|
-
...(input.permissions != null && { permissions: input.permissions }),
|
|
853
|
-
...(input.userArn != null && { userArn: input.userArn }),
|
|
854
|
-
};
|
|
1166
|
+
var serializeAws_json1_1CreateEnvironmentMembershipRequest = function (input, context) {
|
|
1167
|
+
return __assign(__assign(__assign({}, (input.environmentId != null && { environmentId: input.environmentId })), (input.permissions != null && { permissions: input.permissions })), (input.userArn != null && { userArn: input.userArn }));
|
|
855
1168
|
};
|
|
856
|
-
|
|
857
|
-
return {
|
|
858
|
-
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
859
|
-
...(input.userArn != null && { userArn: input.userArn }),
|
|
860
|
-
};
|
|
1169
|
+
var serializeAws_json1_1DeleteEnvironmentMembershipRequest = function (input, context) {
|
|
1170
|
+
return __assign(__assign({}, (input.environmentId != null && { environmentId: input.environmentId })), (input.userArn != null && { userArn: input.userArn }));
|
|
861
1171
|
};
|
|
862
|
-
|
|
863
|
-
return {
|
|
864
|
-
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
865
|
-
};
|
|
1172
|
+
var serializeAws_json1_1DeleteEnvironmentRequest = function (input, context) {
|
|
1173
|
+
return __assign({}, (input.environmentId != null && { environmentId: input.environmentId }));
|
|
866
1174
|
};
|
|
867
|
-
|
|
868
|
-
return {
|
|
869
|
-
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
870
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
871
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
872
|
-
...(input.permissions != null && { permissions: serializeAws_json1_1PermissionsList(input.permissions, context) }),
|
|
873
|
-
...(input.userArn != null && { userArn: input.userArn }),
|
|
874
|
-
};
|
|
1175
|
+
var serializeAws_json1_1DescribeEnvironmentMembershipsRequest = function (input, context) {
|
|
1176
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.environmentId != null && { environmentId: input.environmentId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.permissions != null && { permissions: serializeAws_json1_1PermissionsList(input.permissions, context) })), (input.userArn != null && { userArn: input.userArn }));
|
|
875
1177
|
};
|
|
876
|
-
|
|
877
|
-
return {
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
}),
|
|
881
|
-
};
|
|
1178
|
+
var serializeAws_json1_1DescribeEnvironmentsRequest = function (input, context) {
|
|
1179
|
+
return __assign({}, (input.environmentIds != null && {
|
|
1180
|
+
environmentIds: serializeAws_json1_1BoundedEnvironmentIdList(input.environmentIds, context),
|
|
1181
|
+
}));
|
|
882
1182
|
};
|
|
883
|
-
|
|
884
|
-
return {
|
|
885
|
-
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
886
|
-
};
|
|
1183
|
+
var serializeAws_json1_1DescribeEnvironmentStatusRequest = function (input, context) {
|
|
1184
|
+
return __assign({}, (input.environmentId != null && { environmentId: input.environmentId }));
|
|
887
1185
|
};
|
|
888
|
-
|
|
889
|
-
return {
|
|
890
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
891
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
892
|
-
};
|
|
1186
|
+
var serializeAws_json1_1ListEnvironmentsRequest = function (input, context) {
|
|
1187
|
+
return __assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
893
1188
|
};
|
|
894
|
-
|
|
895
|
-
return {
|
|
896
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
897
|
-
};
|
|
1189
|
+
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
1190
|
+
return __assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
|
|
898
1191
|
};
|
|
899
|
-
|
|
1192
|
+
var serializeAws_json1_1PermissionsList = function (input, context) {
|
|
900
1193
|
return input
|
|
901
|
-
.filter((e)
|
|
902
|
-
.map((entry)
|
|
1194
|
+
.filter(function (e) { return e != null; })
|
|
1195
|
+
.map(function (entry) {
|
|
903
1196
|
return entry;
|
|
904
1197
|
});
|
|
905
1198
|
};
|
|
906
|
-
|
|
907
|
-
return {
|
|
908
|
-
...(input.Key != null && { Key: input.Key }),
|
|
909
|
-
...(input.Value != null && { Value: input.Value }),
|
|
910
|
-
};
|
|
1199
|
+
var serializeAws_json1_1Tag = function (input, context) {
|
|
1200
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
911
1201
|
};
|
|
912
|
-
|
|
1202
|
+
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
913
1203
|
return input
|
|
914
|
-
.filter((e)
|
|
915
|
-
.map((entry)
|
|
1204
|
+
.filter(function (e) { return e != null; })
|
|
1205
|
+
.map(function (entry) {
|
|
916
1206
|
return entry;
|
|
917
1207
|
});
|
|
918
1208
|
};
|
|
919
|
-
|
|
1209
|
+
var serializeAws_json1_1TagList = function (input, context) {
|
|
920
1210
|
return input
|
|
921
|
-
.filter((e)
|
|
922
|
-
.map((entry)
|
|
1211
|
+
.filter(function (e) { return e != null; })
|
|
1212
|
+
.map(function (entry) {
|
|
923
1213
|
return serializeAws_json1_1Tag(entry, context);
|
|
924
1214
|
});
|
|
925
1215
|
};
|
|
926
|
-
|
|
927
|
-
return {
|
|
928
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
929
|
-
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
930
|
-
};
|
|
1216
|
+
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
1217
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
931
1218
|
};
|
|
932
|
-
|
|
933
|
-
return {
|
|
934
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
935
|
-
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
936
|
-
};
|
|
1219
|
+
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
1220
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
937
1221
|
};
|
|
938
|
-
|
|
939
|
-
return {
|
|
940
|
-
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
941
|
-
...(input.permissions != null && { permissions: input.permissions }),
|
|
942
|
-
...(input.userArn != null && { userArn: input.userArn }),
|
|
943
|
-
};
|
|
1222
|
+
var serializeAws_json1_1UpdateEnvironmentMembershipRequest = function (input, context) {
|
|
1223
|
+
return __assign(__assign(__assign({}, (input.environmentId != null && { environmentId: input.environmentId })), (input.permissions != null && { permissions: input.permissions })), (input.userArn != null && { userArn: input.userArn }));
|
|
944
1224
|
};
|
|
945
|
-
|
|
946
|
-
return {
|
|
947
|
-
...(input.description != null && { description: input.description }),
|
|
948
|
-
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
949
|
-
...(input.managedCredentialsAction != null && { managedCredentialsAction: input.managedCredentialsAction }),
|
|
950
|
-
...(input.name != null && { name: input.name }),
|
|
951
|
-
};
|
|
1225
|
+
var serializeAws_json1_1UpdateEnvironmentRequest = function (input, context) {
|
|
1226
|
+
return __assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.environmentId != null && { environmentId: input.environmentId })), (input.managedCredentialsAction != null && { managedCredentialsAction: input.managedCredentialsAction })), (input.name != null && { name: input.name }));
|
|
952
1227
|
};
|
|
953
|
-
|
|
1228
|
+
var deserializeAws_json1_1BadRequestException = function (output, context) {
|
|
954
1229
|
return {
|
|
955
1230
|
className: __expectString(output.className),
|
|
956
1231
|
code: __expectInt32(output.code),
|
|
957
1232
|
message: __expectString(output.message),
|
|
958
1233
|
};
|
|
959
1234
|
};
|
|
960
|
-
|
|
1235
|
+
var deserializeAws_json1_1ConcurrentAccessException = function (output, context) {
|
|
961
1236
|
return {
|
|
962
1237
|
className: __expectString(output.className),
|
|
963
1238
|
code: __expectInt32(output.code),
|
|
964
1239
|
message: __expectString(output.message),
|
|
965
1240
|
};
|
|
966
1241
|
};
|
|
967
|
-
|
|
1242
|
+
var deserializeAws_json1_1ConflictException = function (output, context) {
|
|
968
1243
|
return {
|
|
969
1244
|
className: __expectString(output.className),
|
|
970
1245
|
code: __expectInt32(output.code),
|
|
971
1246
|
message: __expectString(output.message),
|
|
972
1247
|
};
|
|
973
1248
|
};
|
|
974
|
-
|
|
1249
|
+
var deserializeAws_json1_1CreateEnvironmentEC2Result = function (output, context) {
|
|
975
1250
|
return {
|
|
976
1251
|
environmentId: __expectString(output.environmentId),
|
|
977
1252
|
};
|
|
978
1253
|
};
|
|
979
|
-
|
|
1254
|
+
var deserializeAws_json1_1CreateEnvironmentMembershipResult = function (output, context) {
|
|
980
1255
|
return {
|
|
981
1256
|
membership: output.membership != null ? deserializeAws_json1_1EnvironmentMember(output.membership, context) : undefined,
|
|
982
1257
|
};
|
|
983
1258
|
};
|
|
984
|
-
|
|
1259
|
+
var deserializeAws_json1_1DeleteEnvironmentMembershipResult = function (output, context) {
|
|
985
1260
|
return {};
|
|
986
1261
|
};
|
|
987
|
-
|
|
1262
|
+
var deserializeAws_json1_1DeleteEnvironmentResult = function (output, context) {
|
|
988
1263
|
return {};
|
|
989
1264
|
};
|
|
990
|
-
|
|
1265
|
+
var deserializeAws_json1_1DescribeEnvironmentMembershipsResult = function (output, context) {
|
|
991
1266
|
return {
|
|
992
1267
|
memberships: output.memberships != null
|
|
993
1268
|
? deserializeAws_json1_1EnvironmentMembersList(output.memberships, context)
|
|
@@ -995,18 +1270,18 @@ const deserializeAws_json1_1DescribeEnvironmentMembershipsResult = (output, cont
|
|
|
995
1270
|
nextToken: __expectString(output.nextToken),
|
|
996
1271
|
};
|
|
997
1272
|
};
|
|
998
|
-
|
|
1273
|
+
var deserializeAws_json1_1DescribeEnvironmentsResult = function (output, context) {
|
|
999
1274
|
return {
|
|
1000
1275
|
environments: output.environments != null ? deserializeAws_json1_1EnvironmentList(output.environments, context) : undefined,
|
|
1001
1276
|
};
|
|
1002
1277
|
};
|
|
1003
|
-
|
|
1278
|
+
var deserializeAws_json1_1DescribeEnvironmentStatusResult = function (output, context) {
|
|
1004
1279
|
return {
|
|
1005
1280
|
message: __expectString(output.message),
|
|
1006
1281
|
status: __expectString(output.status),
|
|
1007
1282
|
};
|
|
1008
1283
|
};
|
|
1009
|
-
|
|
1284
|
+
var deserializeAws_json1_1Environment = function (output, context) {
|
|
1010
1285
|
return {
|
|
1011
1286
|
arn: __expectString(output.arn),
|
|
1012
1287
|
connectionType: __expectString(output.connectionType),
|
|
@@ -1019,10 +1294,10 @@ const deserializeAws_json1_1Environment = (output, context) => {
|
|
|
1019
1294
|
type: __expectString(output.type),
|
|
1020
1295
|
};
|
|
1021
1296
|
};
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
.filter((e)
|
|
1025
|
-
.map((entry)
|
|
1297
|
+
var deserializeAws_json1_1EnvironmentIdList = function (output, context) {
|
|
1298
|
+
var retVal = (output || [])
|
|
1299
|
+
.filter(function (e) { return e != null; })
|
|
1300
|
+
.map(function (entry) {
|
|
1026
1301
|
if (entry === null) {
|
|
1027
1302
|
return null;
|
|
1028
1303
|
}
|
|
@@ -1030,17 +1305,17 @@ const deserializeAws_json1_1EnvironmentIdList = (output, context) => {
|
|
|
1030
1305
|
});
|
|
1031
1306
|
return retVal;
|
|
1032
1307
|
};
|
|
1033
|
-
|
|
1308
|
+
var deserializeAws_json1_1EnvironmentLifecycle = function (output, context) {
|
|
1034
1309
|
return {
|
|
1035
1310
|
failureResource: __expectString(output.failureResource),
|
|
1036
1311
|
reason: __expectString(output.reason),
|
|
1037
1312
|
status: __expectString(output.status),
|
|
1038
1313
|
};
|
|
1039
1314
|
};
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
.filter((e)
|
|
1043
|
-
.map((entry)
|
|
1315
|
+
var deserializeAws_json1_1EnvironmentList = function (output, context) {
|
|
1316
|
+
var retVal = (output || [])
|
|
1317
|
+
.filter(function (e) { return e != null; })
|
|
1318
|
+
.map(function (entry) {
|
|
1044
1319
|
if (entry === null) {
|
|
1045
1320
|
return null;
|
|
1046
1321
|
}
|
|
@@ -1048,7 +1323,7 @@ const deserializeAws_json1_1EnvironmentList = (output, context) => {
|
|
|
1048
1323
|
});
|
|
1049
1324
|
return retVal;
|
|
1050
1325
|
};
|
|
1051
|
-
|
|
1326
|
+
var deserializeAws_json1_1EnvironmentMember = function (output, context) {
|
|
1052
1327
|
return {
|
|
1053
1328
|
environmentId: __expectString(output.environmentId),
|
|
1054
1329
|
lastAccess: output.lastAccess != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastAccess))) : undefined,
|
|
@@ -1057,10 +1332,10 @@ const deserializeAws_json1_1EnvironmentMember = (output, context) => {
|
|
|
1057
1332
|
userId: __expectString(output.userId),
|
|
1058
1333
|
};
|
|
1059
1334
|
};
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
.filter((e)
|
|
1063
|
-
.map((entry)
|
|
1335
|
+
var deserializeAws_json1_1EnvironmentMembersList = function (output, context) {
|
|
1336
|
+
var retVal = (output || [])
|
|
1337
|
+
.filter(function (e) { return e != null; })
|
|
1338
|
+
.map(function (entry) {
|
|
1064
1339
|
if (entry === null) {
|
|
1065
1340
|
return null;
|
|
1066
1341
|
}
|
|
@@ -1068,28 +1343,28 @@ const deserializeAws_json1_1EnvironmentMembersList = (output, context) => {
|
|
|
1068
1343
|
});
|
|
1069
1344
|
return retVal;
|
|
1070
1345
|
};
|
|
1071
|
-
|
|
1346
|
+
var deserializeAws_json1_1ForbiddenException = function (output, context) {
|
|
1072
1347
|
return {
|
|
1073
1348
|
className: __expectString(output.className),
|
|
1074
1349
|
code: __expectInt32(output.code),
|
|
1075
1350
|
message: __expectString(output.message),
|
|
1076
1351
|
};
|
|
1077
1352
|
};
|
|
1078
|
-
|
|
1353
|
+
var deserializeAws_json1_1InternalServerErrorException = function (output, context) {
|
|
1079
1354
|
return {
|
|
1080
1355
|
className: __expectString(output.className),
|
|
1081
1356
|
code: __expectInt32(output.code),
|
|
1082
1357
|
message: __expectString(output.message),
|
|
1083
1358
|
};
|
|
1084
1359
|
};
|
|
1085
|
-
|
|
1360
|
+
var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
1086
1361
|
return {
|
|
1087
1362
|
className: __expectString(output.className),
|
|
1088
1363
|
code: __expectInt32(output.code),
|
|
1089
1364
|
message: __expectString(output.message),
|
|
1090
1365
|
};
|
|
1091
1366
|
};
|
|
1092
|
-
|
|
1367
|
+
var deserializeAws_json1_1ListEnvironmentsResult = function (output, context) {
|
|
1093
1368
|
return {
|
|
1094
1369
|
environmentIds: output.environmentIds != null
|
|
1095
1370
|
? deserializeAws_json1_1EnvironmentIdList(output.environmentIds, context)
|
|
@@ -1097,28 +1372,28 @@ const deserializeAws_json1_1ListEnvironmentsResult = (output, context) => {
|
|
|
1097
1372
|
nextToken: __expectString(output.nextToken),
|
|
1098
1373
|
};
|
|
1099
1374
|
};
|
|
1100
|
-
|
|
1375
|
+
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
1101
1376
|
return {
|
|
1102
1377
|
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
1103
1378
|
};
|
|
1104
1379
|
};
|
|
1105
|
-
|
|
1380
|
+
var deserializeAws_json1_1NotFoundException = function (output, context) {
|
|
1106
1381
|
return {
|
|
1107
1382
|
className: __expectString(output.className),
|
|
1108
1383
|
code: __expectInt32(output.code),
|
|
1109
1384
|
message: __expectString(output.message),
|
|
1110
1385
|
};
|
|
1111
1386
|
};
|
|
1112
|
-
|
|
1387
|
+
var deserializeAws_json1_1Tag = function (output, context) {
|
|
1113
1388
|
return {
|
|
1114
1389
|
Key: __expectString(output.Key),
|
|
1115
1390
|
Value: __expectString(output.Value),
|
|
1116
1391
|
};
|
|
1117
1392
|
};
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
.filter((e)
|
|
1121
|
-
.map((entry)
|
|
1393
|
+
var deserializeAws_json1_1TagList = function (output, context) {
|
|
1394
|
+
var retVal = (output || [])
|
|
1395
|
+
.filter(function (e) { return e != null; })
|
|
1396
|
+
.map(function (entry) {
|
|
1122
1397
|
if (entry === null) {
|
|
1123
1398
|
return null;
|
|
1124
1399
|
}
|
|
@@ -1126,73 +1401,96 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
1126
1401
|
});
|
|
1127
1402
|
return retVal;
|
|
1128
1403
|
};
|
|
1129
|
-
|
|
1404
|
+
var deserializeAws_json1_1TagResourceResponse = function (output, context) {
|
|
1130
1405
|
return {};
|
|
1131
1406
|
};
|
|
1132
|
-
|
|
1407
|
+
var deserializeAws_json1_1TooManyRequestsException = function (output, context) {
|
|
1133
1408
|
return {
|
|
1134
1409
|
className: __expectString(output.className),
|
|
1135
1410
|
code: __expectInt32(output.code),
|
|
1136
1411
|
message: __expectString(output.message),
|
|
1137
1412
|
};
|
|
1138
1413
|
};
|
|
1139
|
-
|
|
1414
|
+
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
1140
1415
|
return {};
|
|
1141
1416
|
};
|
|
1142
|
-
|
|
1417
|
+
var deserializeAws_json1_1UpdateEnvironmentMembershipResult = function (output, context) {
|
|
1143
1418
|
return {
|
|
1144
1419
|
membership: output.membership != null ? deserializeAws_json1_1EnvironmentMember(output.membership, context) : undefined,
|
|
1145
1420
|
};
|
|
1146
1421
|
};
|
|
1147
|
-
|
|
1422
|
+
var deserializeAws_json1_1UpdateEnvironmentResult = function (output, context) {
|
|
1148
1423
|
return {};
|
|
1149
1424
|
};
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1425
|
+
var deserializeMetadata = function (output) {
|
|
1426
|
+
var _a, _b;
|
|
1427
|
+
return ({
|
|
1428
|
+
httpStatusCode: output.statusCode,
|
|
1429
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
1430
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1431
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1432
|
+
});
|
|
1433
|
+
};
|
|
1434
|
+
var collectBody = function (streamBody, context) {
|
|
1435
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1157
1436
|
if (streamBody instanceof Uint8Array) {
|
|
1158
1437
|
return Promise.resolve(streamBody);
|
|
1159
1438
|
}
|
|
1160
1439
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1161
1440
|
};
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1441
|
+
var collectBodyString = function (streamBody, context) {
|
|
1442
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1443
|
+
};
|
|
1444
|
+
var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1445
|
+
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
1446
|
+
return __generator(this, function (_c) {
|
|
1447
|
+
switch (_c.label) {
|
|
1448
|
+
case 0: return [4, context.endpoint()];
|
|
1449
|
+
case 1:
|
|
1450
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1451
|
+
contents = {
|
|
1452
|
+
protocol: protocol,
|
|
1453
|
+
hostname: hostname,
|
|
1454
|
+
port: port,
|
|
1455
|
+
method: "POST",
|
|
1456
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1457
|
+
headers: headers,
|
|
1458
|
+
};
|
|
1459
|
+
if (resolvedHostname !== undefined) {
|
|
1460
|
+
contents.hostname = resolvedHostname;
|
|
1461
|
+
}
|
|
1462
|
+
if (body !== undefined) {
|
|
1463
|
+
contents.body = body;
|
|
1464
|
+
}
|
|
1465
|
+
return [2, new __HttpRequest(contents)];
|
|
1466
|
+
}
|
|
1467
|
+
});
|
|
1468
|
+
}); };
|
|
1469
|
+
var parseBody = function (streamBody, context) {
|
|
1470
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
1471
|
+
if (encoded.length) {
|
|
1472
|
+
return JSON.parse(encoded);
|
|
1473
|
+
}
|
|
1474
|
+
return {};
|
|
1475
|
+
});
|
|
1191
1476
|
};
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1477
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1478
|
+
var value;
|
|
1479
|
+
var _a;
|
|
1480
|
+
return __generator(this, function (_b) {
|
|
1481
|
+
switch (_b.label) {
|
|
1482
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
1483
|
+
case 1:
|
|
1484
|
+
value = _b.sent();
|
|
1485
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1486
|
+
return [2, value];
|
|
1487
|
+
}
|
|
1488
|
+
});
|
|
1489
|
+
}); };
|
|
1490
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
1491
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1492
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
1493
|
+
var cleanValue = rawValue;
|
|
1196
1494
|
if (typeof cleanValue === "number") {
|
|
1197
1495
|
cleanValue = cleanValue.toString();
|
|
1198
1496
|
}
|
|
@@ -1207,7 +1505,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1207
1505
|
}
|
|
1208
1506
|
return cleanValue;
|
|
1209
1507
|
};
|
|
1210
|
-
|
|
1508
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1211
1509
|
if (headerKey !== undefined) {
|
|
1212
1510
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1213
1511
|
}
|