@aws-sdk/client-cloud9 3.52.0 → 3.53.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 +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/Cloud9ServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +122 -1
- package/dist-cjs/protocols/Aws_json1_1.js +167 -660
- package/dist-es/index.js +1 -0
- package/dist-es/models/Cloud9ServiceException.js +12 -0
- package/dist-es/models/models_0.js +114 -1
- package/dist-es/protocols/Aws_json1_1.js +353 -697
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/Cloud9ServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -33
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/Cloud9ServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -33
- package/package.json +25 -25
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1UpdateEnvironmentMembershipCommand = exports.deserializeAws_json1_1UpdateEnvironmentCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListEnvironmentsCommand = exports.deserializeAws_json1_1DescribeEnvironmentStatusCommand = exports.deserializeAws_json1_1DescribeEnvironmentsCommand = exports.deserializeAws_json1_1DescribeEnvironmentMembershipsCommand = exports.deserializeAws_json1_1DeleteEnvironmentMembershipCommand = exports.deserializeAws_json1_1DeleteEnvironmentCommand = exports.deserializeAws_json1_1CreateEnvironmentMembershipCommand = exports.deserializeAws_json1_1CreateEnvironmentEC2Command = exports.serializeAws_json1_1UpdateEnvironmentMembershipCommand = exports.serializeAws_json1_1UpdateEnvironmentCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListEnvironmentsCommand = exports.serializeAws_json1_1DescribeEnvironmentStatusCommand = exports.serializeAws_json1_1DescribeEnvironmentsCommand = exports.serializeAws_json1_1DescribeEnvironmentMembershipsCommand = exports.serializeAws_json1_1DeleteEnvironmentMembershipCommand = exports.serializeAws_json1_1DeleteEnvironmentCommand = exports.serializeAws_json1_1CreateEnvironmentMembershipCommand = exports.serializeAws_json1_1CreateEnvironmentEC2Command = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const Cloud9ServiceException_1 = require("../models/Cloud9ServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1CreateEnvironmentEC2Command = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -158,75 +160,34 @@ const deserializeAws_json1_1CreateEnvironmentEC2CommandError = async (output, co
|
|
|
158
160
|
switch (errorCode) {
|
|
159
161
|
case "BadRequestException":
|
|
160
162
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
161
|
-
|
|
162
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
163
|
-
name: errorCode,
|
|
164
|
-
$metadata: deserializeMetadata(output),
|
|
165
|
-
};
|
|
166
|
-
break;
|
|
163
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
167
164
|
case "ConflictException":
|
|
168
165
|
case "com.amazonaws.cloud9#ConflictException":
|
|
169
|
-
|
|
170
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
171
|
-
name: errorCode,
|
|
172
|
-
$metadata: deserializeMetadata(output),
|
|
173
|
-
};
|
|
174
|
-
break;
|
|
166
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
175
167
|
case "ForbiddenException":
|
|
176
168
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
177
|
-
|
|
178
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
179
|
-
name: errorCode,
|
|
180
|
-
$metadata: deserializeMetadata(output),
|
|
181
|
-
};
|
|
182
|
-
break;
|
|
169
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
183
170
|
case "InternalServerErrorException":
|
|
184
171
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
185
|
-
|
|
186
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
187
|
-
name: errorCode,
|
|
188
|
-
$metadata: deserializeMetadata(output),
|
|
189
|
-
};
|
|
190
|
-
break;
|
|
172
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
191
173
|
case "LimitExceededException":
|
|
192
174
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
193
|
-
|
|
194
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
195
|
-
name: errorCode,
|
|
196
|
-
$metadata: deserializeMetadata(output),
|
|
197
|
-
};
|
|
198
|
-
break;
|
|
175
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
199
176
|
case "NotFoundException":
|
|
200
177
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
201
|
-
|
|
202
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
203
|
-
name: errorCode,
|
|
204
|
-
$metadata: deserializeMetadata(output),
|
|
205
|
-
};
|
|
206
|
-
break;
|
|
178
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
207
179
|
case "TooManyRequestsException":
|
|
208
180
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
209
|
-
|
|
210
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
211
|
-
name: errorCode,
|
|
212
|
-
$metadata: deserializeMetadata(output),
|
|
213
|
-
};
|
|
214
|
-
break;
|
|
181
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
215
182
|
default:
|
|
216
183
|
const parsedBody = parsedOutput.body;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
...parsedBody,
|
|
220
|
-
name: `${errorCode}`,
|
|
221
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
184
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
185
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
222
186
|
$fault: "client",
|
|
223
187
|
$metadata: deserializeMetadata(output),
|
|
224
|
-
};
|
|
188
|
+
});
|
|
189
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
225
190
|
}
|
|
226
|
-
const message = response.message || response.Message || errorCode;
|
|
227
|
-
response.message = message;
|
|
228
|
-
delete response.Message;
|
|
229
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
230
191
|
};
|
|
231
192
|
const deserializeAws_json1_1CreateEnvironmentMembershipCommand = async (output, context) => {
|
|
232
193
|
if (output.statusCode >= 300) {
|
|
@@ -253,75 +214,34 @@ const deserializeAws_json1_1CreateEnvironmentMembershipCommandError = async (out
|
|
|
253
214
|
switch (errorCode) {
|
|
254
215
|
case "BadRequestException":
|
|
255
216
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
256
|
-
|
|
257
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
258
|
-
name: errorCode,
|
|
259
|
-
$metadata: deserializeMetadata(output),
|
|
260
|
-
};
|
|
261
|
-
break;
|
|
217
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
262
218
|
case "ConflictException":
|
|
263
219
|
case "com.amazonaws.cloud9#ConflictException":
|
|
264
|
-
|
|
265
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
266
|
-
name: errorCode,
|
|
267
|
-
$metadata: deserializeMetadata(output),
|
|
268
|
-
};
|
|
269
|
-
break;
|
|
220
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
270
221
|
case "ForbiddenException":
|
|
271
222
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
272
|
-
|
|
273
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
274
|
-
name: errorCode,
|
|
275
|
-
$metadata: deserializeMetadata(output),
|
|
276
|
-
};
|
|
277
|
-
break;
|
|
223
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
278
224
|
case "InternalServerErrorException":
|
|
279
225
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
280
|
-
|
|
281
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
282
|
-
name: errorCode,
|
|
283
|
-
$metadata: deserializeMetadata(output),
|
|
284
|
-
};
|
|
285
|
-
break;
|
|
226
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
286
227
|
case "LimitExceededException":
|
|
287
228
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
288
|
-
|
|
289
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
290
|
-
name: errorCode,
|
|
291
|
-
$metadata: deserializeMetadata(output),
|
|
292
|
-
};
|
|
293
|
-
break;
|
|
229
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
294
230
|
case "NotFoundException":
|
|
295
231
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
296
|
-
|
|
297
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
298
|
-
name: errorCode,
|
|
299
|
-
$metadata: deserializeMetadata(output),
|
|
300
|
-
};
|
|
301
|
-
break;
|
|
232
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
302
233
|
case "TooManyRequestsException":
|
|
303
234
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
304
|
-
|
|
305
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
306
|
-
name: errorCode,
|
|
307
|
-
$metadata: deserializeMetadata(output),
|
|
308
|
-
};
|
|
309
|
-
break;
|
|
235
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
310
236
|
default:
|
|
311
237
|
const parsedBody = parsedOutput.body;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
...parsedBody,
|
|
315
|
-
name: `${errorCode}`,
|
|
316
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
238
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
239
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
317
240
|
$fault: "client",
|
|
318
241
|
$metadata: deserializeMetadata(output),
|
|
319
|
-
};
|
|
242
|
+
});
|
|
243
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
320
244
|
}
|
|
321
|
-
const message = response.message || response.Message || errorCode;
|
|
322
|
-
response.message = message;
|
|
323
|
-
delete response.Message;
|
|
324
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
325
245
|
};
|
|
326
246
|
const deserializeAws_json1_1DeleteEnvironmentCommand = async (output, context) => {
|
|
327
247
|
if (output.statusCode >= 300) {
|
|
@@ -348,75 +268,34 @@ const deserializeAws_json1_1DeleteEnvironmentCommandError = async (output, conte
|
|
|
348
268
|
switch (errorCode) {
|
|
349
269
|
case "BadRequestException":
|
|
350
270
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
351
|
-
|
|
352
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
353
|
-
name: errorCode,
|
|
354
|
-
$metadata: deserializeMetadata(output),
|
|
355
|
-
};
|
|
356
|
-
break;
|
|
271
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
357
272
|
case "ConflictException":
|
|
358
273
|
case "com.amazonaws.cloud9#ConflictException":
|
|
359
|
-
|
|
360
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
361
|
-
name: errorCode,
|
|
362
|
-
$metadata: deserializeMetadata(output),
|
|
363
|
-
};
|
|
364
|
-
break;
|
|
274
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
365
275
|
case "ForbiddenException":
|
|
366
276
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
367
|
-
|
|
368
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
369
|
-
name: errorCode,
|
|
370
|
-
$metadata: deserializeMetadata(output),
|
|
371
|
-
};
|
|
372
|
-
break;
|
|
277
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
373
278
|
case "InternalServerErrorException":
|
|
374
279
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
375
|
-
|
|
376
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
377
|
-
name: errorCode,
|
|
378
|
-
$metadata: deserializeMetadata(output),
|
|
379
|
-
};
|
|
380
|
-
break;
|
|
280
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
381
281
|
case "LimitExceededException":
|
|
382
282
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
383
|
-
|
|
384
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
385
|
-
name: errorCode,
|
|
386
|
-
$metadata: deserializeMetadata(output),
|
|
387
|
-
};
|
|
388
|
-
break;
|
|
283
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
389
284
|
case "NotFoundException":
|
|
390
285
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
391
|
-
|
|
392
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
393
|
-
name: errorCode,
|
|
394
|
-
$metadata: deserializeMetadata(output),
|
|
395
|
-
};
|
|
396
|
-
break;
|
|
286
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
397
287
|
case "TooManyRequestsException":
|
|
398
288
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
399
|
-
|
|
400
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
401
|
-
name: errorCode,
|
|
402
|
-
$metadata: deserializeMetadata(output),
|
|
403
|
-
};
|
|
404
|
-
break;
|
|
289
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
405
290
|
default:
|
|
406
291
|
const parsedBody = parsedOutput.body;
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
...parsedBody,
|
|
410
|
-
name: `${errorCode}`,
|
|
411
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
292
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
293
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
412
294
|
$fault: "client",
|
|
413
295
|
$metadata: deserializeMetadata(output),
|
|
414
|
-
};
|
|
296
|
+
});
|
|
297
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
415
298
|
}
|
|
416
|
-
const message = response.message || response.Message || errorCode;
|
|
417
|
-
response.message = message;
|
|
418
|
-
delete response.Message;
|
|
419
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
420
299
|
};
|
|
421
300
|
const deserializeAws_json1_1DeleteEnvironmentMembershipCommand = async (output, context) => {
|
|
422
301
|
if (output.statusCode >= 300) {
|
|
@@ -443,75 +322,34 @@ const deserializeAws_json1_1DeleteEnvironmentMembershipCommandError = async (out
|
|
|
443
322
|
switch (errorCode) {
|
|
444
323
|
case "BadRequestException":
|
|
445
324
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
446
|
-
|
|
447
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
448
|
-
name: errorCode,
|
|
449
|
-
$metadata: deserializeMetadata(output),
|
|
450
|
-
};
|
|
451
|
-
break;
|
|
325
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
452
326
|
case "ConflictException":
|
|
453
327
|
case "com.amazonaws.cloud9#ConflictException":
|
|
454
|
-
|
|
455
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
456
|
-
name: errorCode,
|
|
457
|
-
$metadata: deserializeMetadata(output),
|
|
458
|
-
};
|
|
459
|
-
break;
|
|
328
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
460
329
|
case "ForbiddenException":
|
|
461
330
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
462
|
-
|
|
463
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
464
|
-
name: errorCode,
|
|
465
|
-
$metadata: deserializeMetadata(output),
|
|
466
|
-
};
|
|
467
|
-
break;
|
|
331
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
468
332
|
case "InternalServerErrorException":
|
|
469
333
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
470
|
-
|
|
471
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
472
|
-
name: errorCode,
|
|
473
|
-
$metadata: deserializeMetadata(output),
|
|
474
|
-
};
|
|
475
|
-
break;
|
|
334
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
476
335
|
case "LimitExceededException":
|
|
477
336
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
478
|
-
|
|
479
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
480
|
-
name: errorCode,
|
|
481
|
-
$metadata: deserializeMetadata(output),
|
|
482
|
-
};
|
|
483
|
-
break;
|
|
337
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
484
338
|
case "NotFoundException":
|
|
485
339
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
486
|
-
|
|
487
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
488
|
-
name: errorCode,
|
|
489
|
-
$metadata: deserializeMetadata(output),
|
|
490
|
-
};
|
|
491
|
-
break;
|
|
340
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
492
341
|
case "TooManyRequestsException":
|
|
493
342
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
494
|
-
|
|
495
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
496
|
-
name: errorCode,
|
|
497
|
-
$metadata: deserializeMetadata(output),
|
|
498
|
-
};
|
|
499
|
-
break;
|
|
343
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
500
344
|
default:
|
|
501
345
|
const parsedBody = parsedOutput.body;
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
...parsedBody,
|
|
505
|
-
name: `${errorCode}`,
|
|
506
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
346
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
347
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
507
348
|
$fault: "client",
|
|
508
349
|
$metadata: deserializeMetadata(output),
|
|
509
|
-
};
|
|
350
|
+
});
|
|
351
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
510
352
|
}
|
|
511
|
-
const message = response.message || response.Message || errorCode;
|
|
512
|
-
response.message = message;
|
|
513
|
-
delete response.Message;
|
|
514
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
515
353
|
};
|
|
516
354
|
const deserializeAws_json1_1DescribeEnvironmentMembershipsCommand = async (output, context) => {
|
|
517
355
|
if (output.statusCode >= 300) {
|
|
@@ -538,75 +376,34 @@ const deserializeAws_json1_1DescribeEnvironmentMembershipsCommandError = async (
|
|
|
538
376
|
switch (errorCode) {
|
|
539
377
|
case "BadRequestException":
|
|
540
378
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
541
|
-
|
|
542
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
543
|
-
name: errorCode,
|
|
544
|
-
$metadata: deserializeMetadata(output),
|
|
545
|
-
};
|
|
546
|
-
break;
|
|
379
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
547
380
|
case "ConflictException":
|
|
548
381
|
case "com.amazonaws.cloud9#ConflictException":
|
|
549
|
-
|
|
550
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
551
|
-
name: errorCode,
|
|
552
|
-
$metadata: deserializeMetadata(output),
|
|
553
|
-
};
|
|
554
|
-
break;
|
|
382
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
555
383
|
case "ForbiddenException":
|
|
556
384
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
557
|
-
|
|
558
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
559
|
-
name: errorCode,
|
|
560
|
-
$metadata: deserializeMetadata(output),
|
|
561
|
-
};
|
|
562
|
-
break;
|
|
385
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
563
386
|
case "InternalServerErrorException":
|
|
564
387
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
565
|
-
|
|
566
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
567
|
-
name: errorCode,
|
|
568
|
-
$metadata: deserializeMetadata(output),
|
|
569
|
-
};
|
|
570
|
-
break;
|
|
388
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
571
389
|
case "LimitExceededException":
|
|
572
390
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
573
|
-
|
|
574
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
575
|
-
name: errorCode,
|
|
576
|
-
$metadata: deserializeMetadata(output),
|
|
577
|
-
};
|
|
578
|
-
break;
|
|
391
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
579
392
|
case "NotFoundException":
|
|
580
393
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
581
|
-
|
|
582
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
583
|
-
name: errorCode,
|
|
584
|
-
$metadata: deserializeMetadata(output),
|
|
585
|
-
};
|
|
586
|
-
break;
|
|
394
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
587
395
|
case "TooManyRequestsException":
|
|
588
396
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
589
|
-
|
|
590
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
591
|
-
name: errorCode,
|
|
592
|
-
$metadata: deserializeMetadata(output),
|
|
593
|
-
};
|
|
594
|
-
break;
|
|
397
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
595
398
|
default:
|
|
596
399
|
const parsedBody = parsedOutput.body;
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
...parsedBody,
|
|
600
|
-
name: `${errorCode}`,
|
|
601
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
400
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
401
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
602
402
|
$fault: "client",
|
|
603
403
|
$metadata: deserializeMetadata(output),
|
|
604
|
-
};
|
|
404
|
+
});
|
|
405
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
605
406
|
}
|
|
606
|
-
const message = response.message || response.Message || errorCode;
|
|
607
|
-
response.message = message;
|
|
608
|
-
delete response.Message;
|
|
609
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
610
407
|
};
|
|
611
408
|
const deserializeAws_json1_1DescribeEnvironmentsCommand = async (output, context) => {
|
|
612
409
|
if (output.statusCode >= 300) {
|
|
@@ -633,75 +430,34 @@ const deserializeAws_json1_1DescribeEnvironmentsCommandError = async (output, co
|
|
|
633
430
|
switch (errorCode) {
|
|
634
431
|
case "BadRequestException":
|
|
635
432
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
636
|
-
|
|
637
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
638
|
-
name: errorCode,
|
|
639
|
-
$metadata: deserializeMetadata(output),
|
|
640
|
-
};
|
|
641
|
-
break;
|
|
433
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
642
434
|
case "ConflictException":
|
|
643
435
|
case "com.amazonaws.cloud9#ConflictException":
|
|
644
|
-
|
|
645
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
646
|
-
name: errorCode,
|
|
647
|
-
$metadata: deserializeMetadata(output),
|
|
648
|
-
};
|
|
649
|
-
break;
|
|
436
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
650
437
|
case "ForbiddenException":
|
|
651
438
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
652
|
-
|
|
653
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
654
|
-
name: errorCode,
|
|
655
|
-
$metadata: deserializeMetadata(output),
|
|
656
|
-
};
|
|
657
|
-
break;
|
|
439
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
658
440
|
case "InternalServerErrorException":
|
|
659
441
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
660
|
-
|
|
661
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
662
|
-
name: errorCode,
|
|
663
|
-
$metadata: deserializeMetadata(output),
|
|
664
|
-
};
|
|
665
|
-
break;
|
|
442
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
666
443
|
case "LimitExceededException":
|
|
667
444
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
668
|
-
|
|
669
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
670
|
-
name: errorCode,
|
|
671
|
-
$metadata: deserializeMetadata(output),
|
|
672
|
-
};
|
|
673
|
-
break;
|
|
445
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
674
446
|
case "NotFoundException":
|
|
675
447
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
676
|
-
|
|
677
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
678
|
-
name: errorCode,
|
|
679
|
-
$metadata: deserializeMetadata(output),
|
|
680
|
-
};
|
|
681
|
-
break;
|
|
448
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
682
449
|
case "TooManyRequestsException":
|
|
683
450
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
684
|
-
|
|
685
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
686
|
-
name: errorCode,
|
|
687
|
-
$metadata: deserializeMetadata(output),
|
|
688
|
-
};
|
|
689
|
-
break;
|
|
451
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
690
452
|
default:
|
|
691
453
|
const parsedBody = parsedOutput.body;
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
...parsedBody,
|
|
695
|
-
name: `${errorCode}`,
|
|
696
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
454
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
455
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
697
456
|
$fault: "client",
|
|
698
457
|
$metadata: deserializeMetadata(output),
|
|
699
|
-
};
|
|
458
|
+
});
|
|
459
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
700
460
|
}
|
|
701
|
-
const message = response.message || response.Message || errorCode;
|
|
702
|
-
response.message = message;
|
|
703
|
-
delete response.Message;
|
|
704
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
705
461
|
};
|
|
706
462
|
const deserializeAws_json1_1DescribeEnvironmentStatusCommand = async (output, context) => {
|
|
707
463
|
if (output.statusCode >= 300) {
|
|
@@ -728,75 +484,34 @@ const deserializeAws_json1_1DescribeEnvironmentStatusCommandError = async (outpu
|
|
|
728
484
|
switch (errorCode) {
|
|
729
485
|
case "BadRequestException":
|
|
730
486
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
731
|
-
|
|
732
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
733
|
-
name: errorCode,
|
|
734
|
-
$metadata: deserializeMetadata(output),
|
|
735
|
-
};
|
|
736
|
-
break;
|
|
487
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
737
488
|
case "ConflictException":
|
|
738
489
|
case "com.amazonaws.cloud9#ConflictException":
|
|
739
|
-
|
|
740
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
741
|
-
name: errorCode,
|
|
742
|
-
$metadata: deserializeMetadata(output),
|
|
743
|
-
};
|
|
744
|
-
break;
|
|
490
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
745
491
|
case "ForbiddenException":
|
|
746
492
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
747
|
-
|
|
748
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
749
|
-
name: errorCode,
|
|
750
|
-
$metadata: deserializeMetadata(output),
|
|
751
|
-
};
|
|
752
|
-
break;
|
|
493
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
753
494
|
case "InternalServerErrorException":
|
|
754
495
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
755
|
-
|
|
756
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
757
|
-
name: errorCode,
|
|
758
|
-
$metadata: deserializeMetadata(output),
|
|
759
|
-
};
|
|
760
|
-
break;
|
|
496
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
761
497
|
case "LimitExceededException":
|
|
762
498
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
763
|
-
|
|
764
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
765
|
-
name: errorCode,
|
|
766
|
-
$metadata: deserializeMetadata(output),
|
|
767
|
-
};
|
|
768
|
-
break;
|
|
499
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
769
500
|
case "NotFoundException":
|
|
770
501
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
771
|
-
|
|
772
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
773
|
-
name: errorCode,
|
|
774
|
-
$metadata: deserializeMetadata(output),
|
|
775
|
-
};
|
|
776
|
-
break;
|
|
502
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
777
503
|
case "TooManyRequestsException":
|
|
778
504
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
779
|
-
|
|
780
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
781
|
-
name: errorCode,
|
|
782
|
-
$metadata: deserializeMetadata(output),
|
|
783
|
-
};
|
|
784
|
-
break;
|
|
505
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
785
506
|
default:
|
|
786
507
|
const parsedBody = parsedOutput.body;
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
...parsedBody,
|
|
790
|
-
name: `${errorCode}`,
|
|
791
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
508
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
509
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
792
510
|
$fault: "client",
|
|
793
511
|
$metadata: deserializeMetadata(output),
|
|
794
|
-
};
|
|
512
|
+
});
|
|
513
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
795
514
|
}
|
|
796
|
-
const message = response.message || response.Message || errorCode;
|
|
797
|
-
response.message = message;
|
|
798
|
-
delete response.Message;
|
|
799
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
800
515
|
};
|
|
801
516
|
const deserializeAws_json1_1ListEnvironmentsCommand = async (output, context) => {
|
|
802
517
|
if (output.statusCode >= 300) {
|
|
@@ -823,75 +538,34 @@ const deserializeAws_json1_1ListEnvironmentsCommandError = async (output, contex
|
|
|
823
538
|
switch (errorCode) {
|
|
824
539
|
case "BadRequestException":
|
|
825
540
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
826
|
-
|
|
827
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
828
|
-
name: errorCode,
|
|
829
|
-
$metadata: deserializeMetadata(output),
|
|
830
|
-
};
|
|
831
|
-
break;
|
|
541
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
832
542
|
case "ConflictException":
|
|
833
543
|
case "com.amazonaws.cloud9#ConflictException":
|
|
834
|
-
|
|
835
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
836
|
-
name: errorCode,
|
|
837
|
-
$metadata: deserializeMetadata(output),
|
|
838
|
-
};
|
|
839
|
-
break;
|
|
544
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
840
545
|
case "ForbiddenException":
|
|
841
546
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
842
|
-
|
|
843
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
844
|
-
name: errorCode,
|
|
845
|
-
$metadata: deserializeMetadata(output),
|
|
846
|
-
};
|
|
847
|
-
break;
|
|
547
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
848
548
|
case "InternalServerErrorException":
|
|
849
549
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
850
|
-
|
|
851
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
852
|
-
name: errorCode,
|
|
853
|
-
$metadata: deserializeMetadata(output),
|
|
854
|
-
};
|
|
855
|
-
break;
|
|
550
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
856
551
|
case "LimitExceededException":
|
|
857
552
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
858
|
-
|
|
859
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
860
|
-
name: errorCode,
|
|
861
|
-
$metadata: deserializeMetadata(output),
|
|
862
|
-
};
|
|
863
|
-
break;
|
|
553
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
864
554
|
case "NotFoundException":
|
|
865
555
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
866
|
-
|
|
867
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
868
|
-
name: errorCode,
|
|
869
|
-
$metadata: deserializeMetadata(output),
|
|
870
|
-
};
|
|
871
|
-
break;
|
|
556
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
872
557
|
case "TooManyRequestsException":
|
|
873
558
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
874
|
-
|
|
875
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
876
|
-
name: errorCode,
|
|
877
|
-
$metadata: deserializeMetadata(output),
|
|
878
|
-
};
|
|
879
|
-
break;
|
|
559
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
880
560
|
default:
|
|
881
561
|
const parsedBody = parsedOutput.body;
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
...parsedBody,
|
|
885
|
-
name: `${errorCode}`,
|
|
886
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
562
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
563
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
887
564
|
$fault: "client",
|
|
888
565
|
$metadata: deserializeMetadata(output),
|
|
889
|
-
};
|
|
566
|
+
});
|
|
567
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
890
568
|
}
|
|
891
|
-
const message = response.message || response.Message || errorCode;
|
|
892
|
-
response.message = message;
|
|
893
|
-
delete response.Message;
|
|
894
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
895
569
|
};
|
|
896
570
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
897
571
|
if (output.statusCode >= 300) {
|
|
@@ -918,43 +592,22 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
918
592
|
switch (errorCode) {
|
|
919
593
|
case "BadRequestException":
|
|
920
594
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
921
|
-
|
|
922
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
923
|
-
name: errorCode,
|
|
924
|
-
$metadata: deserializeMetadata(output),
|
|
925
|
-
};
|
|
926
|
-
break;
|
|
595
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
927
596
|
case "InternalServerErrorException":
|
|
928
597
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
929
|
-
|
|
930
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
931
|
-
name: errorCode,
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
};
|
|
934
|
-
break;
|
|
598
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
935
599
|
case "NotFoundException":
|
|
936
600
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
937
|
-
|
|
938
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
939
|
-
name: errorCode,
|
|
940
|
-
$metadata: deserializeMetadata(output),
|
|
941
|
-
};
|
|
942
|
-
break;
|
|
601
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
943
602
|
default:
|
|
944
603
|
const parsedBody = parsedOutput.body;
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
...parsedBody,
|
|
948
|
-
name: `${errorCode}`,
|
|
949
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
604
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
605
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
950
606
|
$fault: "client",
|
|
951
607
|
$metadata: deserializeMetadata(output),
|
|
952
|
-
};
|
|
608
|
+
});
|
|
609
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
953
610
|
}
|
|
954
|
-
const message = response.message || response.Message || errorCode;
|
|
955
|
-
response.message = message;
|
|
956
|
-
delete response.Message;
|
|
957
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
958
611
|
};
|
|
959
612
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
960
613
|
if (output.statusCode >= 300) {
|
|
@@ -981,51 +634,25 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
981
634
|
switch (errorCode) {
|
|
982
635
|
case "BadRequestException":
|
|
983
636
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
984
|
-
|
|
985
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
986
|
-
name: errorCode,
|
|
987
|
-
$metadata: deserializeMetadata(output),
|
|
988
|
-
};
|
|
989
|
-
break;
|
|
637
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
990
638
|
case "ConcurrentAccessException":
|
|
991
639
|
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
992
|
-
|
|
993
|
-
...(await deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context)),
|
|
994
|
-
name: errorCode,
|
|
995
|
-
$metadata: deserializeMetadata(output),
|
|
996
|
-
};
|
|
997
|
-
break;
|
|
640
|
+
throw await deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context);
|
|
998
641
|
case "InternalServerErrorException":
|
|
999
642
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
1000
|
-
|
|
1001
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1002
|
-
name: errorCode,
|
|
1003
|
-
$metadata: deserializeMetadata(output),
|
|
1004
|
-
};
|
|
1005
|
-
break;
|
|
643
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1006
644
|
case "NotFoundException":
|
|
1007
645
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
1008
|
-
|
|
1009
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1010
|
-
name: errorCode,
|
|
1011
|
-
$metadata: deserializeMetadata(output),
|
|
1012
|
-
};
|
|
1013
|
-
break;
|
|
646
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1014
647
|
default:
|
|
1015
648
|
const parsedBody = parsedOutput.body;
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
...parsedBody,
|
|
1019
|
-
name: `${errorCode}`,
|
|
1020
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
649
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
650
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1021
651
|
$fault: "client",
|
|
1022
652
|
$metadata: deserializeMetadata(output),
|
|
1023
|
-
};
|
|
653
|
+
});
|
|
654
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1024
655
|
}
|
|
1025
|
-
const message = response.message || response.Message || errorCode;
|
|
1026
|
-
response.message = message;
|
|
1027
|
-
delete response.Message;
|
|
1028
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1029
656
|
};
|
|
1030
657
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
1031
658
|
if (output.statusCode >= 300) {
|
|
@@ -1052,51 +679,25 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1052
679
|
switch (errorCode) {
|
|
1053
680
|
case "BadRequestException":
|
|
1054
681
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
1055
|
-
|
|
1056
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1057
|
-
name: errorCode,
|
|
1058
|
-
$metadata: deserializeMetadata(output),
|
|
1059
|
-
};
|
|
1060
|
-
break;
|
|
682
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
1061
683
|
case "ConcurrentAccessException":
|
|
1062
684
|
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
1063
|
-
|
|
1064
|
-
...(await deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context)),
|
|
1065
|
-
name: errorCode,
|
|
1066
|
-
$metadata: deserializeMetadata(output),
|
|
1067
|
-
};
|
|
1068
|
-
break;
|
|
685
|
+
throw await deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context);
|
|
1069
686
|
case "InternalServerErrorException":
|
|
1070
687
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
1071
|
-
|
|
1072
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1073
|
-
name: errorCode,
|
|
1074
|
-
$metadata: deserializeMetadata(output),
|
|
1075
|
-
};
|
|
1076
|
-
break;
|
|
688
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1077
689
|
case "NotFoundException":
|
|
1078
690
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
1079
|
-
|
|
1080
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1081
|
-
name: errorCode,
|
|
1082
|
-
$metadata: deserializeMetadata(output),
|
|
1083
|
-
};
|
|
1084
|
-
break;
|
|
691
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1085
692
|
default:
|
|
1086
693
|
const parsedBody = parsedOutput.body;
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
...parsedBody,
|
|
1090
|
-
name: `${errorCode}`,
|
|
1091
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
694
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
695
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1092
696
|
$fault: "client",
|
|
1093
697
|
$metadata: deserializeMetadata(output),
|
|
1094
|
-
};
|
|
698
|
+
});
|
|
699
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1095
700
|
}
|
|
1096
|
-
const message = response.message || response.Message || errorCode;
|
|
1097
|
-
response.message = message;
|
|
1098
|
-
delete response.Message;
|
|
1099
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1100
701
|
};
|
|
1101
702
|
const deserializeAws_json1_1UpdateEnvironmentCommand = async (output, context) => {
|
|
1102
703
|
if (output.statusCode >= 300) {
|
|
@@ -1123,75 +724,34 @@ const deserializeAws_json1_1UpdateEnvironmentCommandError = async (output, conte
|
|
|
1123
724
|
switch (errorCode) {
|
|
1124
725
|
case "BadRequestException":
|
|
1125
726
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
1126
|
-
|
|
1127
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1128
|
-
name: errorCode,
|
|
1129
|
-
$metadata: deserializeMetadata(output),
|
|
1130
|
-
};
|
|
1131
|
-
break;
|
|
727
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
1132
728
|
case "ConflictException":
|
|
1133
729
|
case "com.amazonaws.cloud9#ConflictException":
|
|
1134
|
-
|
|
1135
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1136
|
-
name: errorCode,
|
|
1137
|
-
$metadata: deserializeMetadata(output),
|
|
1138
|
-
};
|
|
1139
|
-
break;
|
|
730
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1140
731
|
case "ForbiddenException":
|
|
1141
732
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
1142
|
-
|
|
1143
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1144
|
-
name: errorCode,
|
|
1145
|
-
$metadata: deserializeMetadata(output),
|
|
1146
|
-
};
|
|
1147
|
-
break;
|
|
733
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1148
734
|
case "InternalServerErrorException":
|
|
1149
735
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
1150
|
-
|
|
1151
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1152
|
-
name: errorCode,
|
|
1153
|
-
$metadata: deserializeMetadata(output),
|
|
1154
|
-
};
|
|
1155
|
-
break;
|
|
736
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1156
737
|
case "LimitExceededException":
|
|
1157
738
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
1158
|
-
|
|
1159
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1160
|
-
name: errorCode,
|
|
1161
|
-
$metadata: deserializeMetadata(output),
|
|
1162
|
-
};
|
|
1163
|
-
break;
|
|
739
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1164
740
|
case "NotFoundException":
|
|
1165
741
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
1166
|
-
|
|
1167
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1168
|
-
name: errorCode,
|
|
1169
|
-
$metadata: deserializeMetadata(output),
|
|
1170
|
-
};
|
|
1171
|
-
break;
|
|
742
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1172
743
|
case "TooManyRequestsException":
|
|
1173
744
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
1174
|
-
|
|
1175
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1176
|
-
name: errorCode,
|
|
1177
|
-
$metadata: deserializeMetadata(output),
|
|
1178
|
-
};
|
|
1179
|
-
break;
|
|
745
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1180
746
|
default:
|
|
1181
747
|
const parsedBody = parsedOutput.body;
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
...parsedBody,
|
|
1185
|
-
name: `${errorCode}`,
|
|
1186
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
748
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
749
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1187
750
|
$fault: "client",
|
|
1188
751
|
$metadata: deserializeMetadata(output),
|
|
1189
|
-
};
|
|
752
|
+
});
|
|
753
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1190
754
|
}
|
|
1191
|
-
const message = response.message || response.Message || errorCode;
|
|
1192
|
-
response.message = message;
|
|
1193
|
-
delete response.Message;
|
|
1194
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1195
755
|
};
|
|
1196
756
|
const deserializeAws_json1_1UpdateEnvironmentMembershipCommand = async (output, context) => {
|
|
1197
757
|
if (output.statusCode >= 300) {
|
|
@@ -1218,163 +778,106 @@ const deserializeAws_json1_1UpdateEnvironmentMembershipCommandError = async (out
|
|
|
1218
778
|
switch (errorCode) {
|
|
1219
779
|
case "BadRequestException":
|
|
1220
780
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
1221
|
-
|
|
1222
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1223
|
-
name: errorCode,
|
|
1224
|
-
$metadata: deserializeMetadata(output),
|
|
1225
|
-
};
|
|
1226
|
-
break;
|
|
781
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
1227
782
|
case "ConflictException":
|
|
1228
783
|
case "com.amazonaws.cloud9#ConflictException":
|
|
1229
|
-
|
|
1230
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1231
|
-
name: errorCode,
|
|
1232
|
-
$metadata: deserializeMetadata(output),
|
|
1233
|
-
};
|
|
1234
|
-
break;
|
|
784
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1235
785
|
case "ForbiddenException":
|
|
1236
786
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
1237
|
-
|
|
1238
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1239
|
-
name: errorCode,
|
|
1240
|
-
$metadata: deserializeMetadata(output),
|
|
1241
|
-
};
|
|
1242
|
-
break;
|
|
787
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1243
788
|
case "InternalServerErrorException":
|
|
1244
789
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
1245
|
-
|
|
1246
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1247
|
-
name: errorCode,
|
|
1248
|
-
$metadata: deserializeMetadata(output),
|
|
1249
|
-
};
|
|
1250
|
-
break;
|
|
790
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1251
791
|
case "LimitExceededException":
|
|
1252
792
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
1253
|
-
|
|
1254
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1255
|
-
name: errorCode,
|
|
1256
|
-
$metadata: deserializeMetadata(output),
|
|
1257
|
-
};
|
|
1258
|
-
break;
|
|
793
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1259
794
|
case "NotFoundException":
|
|
1260
795
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
1261
|
-
|
|
1262
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1263
|
-
name: errorCode,
|
|
1264
|
-
$metadata: deserializeMetadata(output),
|
|
1265
|
-
};
|
|
1266
|
-
break;
|
|
796
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1267
797
|
case "TooManyRequestsException":
|
|
1268
798
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
1269
|
-
|
|
1270
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1271
|
-
name: errorCode,
|
|
1272
|
-
$metadata: deserializeMetadata(output),
|
|
1273
|
-
};
|
|
1274
|
-
break;
|
|
799
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1275
800
|
default:
|
|
1276
801
|
const parsedBody = parsedOutput.body;
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
...parsedBody,
|
|
1280
|
-
name: `${errorCode}`,
|
|
1281
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
802
|
+
response = new Cloud9ServiceException_1.Cloud9ServiceException({
|
|
803
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1282
804
|
$fault: "client",
|
|
1283
805
|
$metadata: deserializeMetadata(output),
|
|
1284
|
-
};
|
|
806
|
+
});
|
|
807
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1285
808
|
}
|
|
1286
|
-
const message = response.message || response.Message || errorCode;
|
|
1287
|
-
response.message = message;
|
|
1288
|
-
delete response.Message;
|
|
1289
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1290
809
|
};
|
|
1291
810
|
const deserializeAws_json1_1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1292
811
|
const body = parsedOutput.body;
|
|
1293
812
|
const deserialized = deserializeAws_json1_1BadRequestException(body, context);
|
|
1294
|
-
const
|
|
1295
|
-
name: "BadRequestException",
|
|
1296
|
-
$fault: "client",
|
|
813
|
+
const exception = new models_0_1.BadRequestException({
|
|
1297
814
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1298
815
|
...deserialized,
|
|
1299
|
-
};
|
|
1300
|
-
return
|
|
816
|
+
});
|
|
817
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1301
818
|
};
|
|
1302
819
|
const deserializeAws_json1_1ConcurrentAccessExceptionResponse = async (parsedOutput, context) => {
|
|
1303
820
|
const body = parsedOutput.body;
|
|
1304
821
|
const deserialized = deserializeAws_json1_1ConcurrentAccessException(body, context);
|
|
1305
|
-
const
|
|
1306
|
-
name: "ConcurrentAccessException",
|
|
1307
|
-
$fault: "client",
|
|
822
|
+
const exception = new models_0_1.ConcurrentAccessException({
|
|
1308
823
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1309
824
|
...deserialized,
|
|
1310
|
-
};
|
|
1311
|
-
return
|
|
825
|
+
});
|
|
826
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1312
827
|
};
|
|
1313
828
|
const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1314
829
|
const body = parsedOutput.body;
|
|
1315
830
|
const deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
1316
|
-
const
|
|
1317
|
-
name: "ConflictException",
|
|
1318
|
-
$fault: "client",
|
|
831
|
+
const exception = new models_0_1.ConflictException({
|
|
1319
832
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1320
833
|
...deserialized,
|
|
1321
|
-
};
|
|
1322
|
-
return
|
|
834
|
+
});
|
|
835
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1323
836
|
};
|
|
1324
837
|
const deserializeAws_json1_1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
1325
838
|
const body = parsedOutput.body;
|
|
1326
839
|
const deserialized = deserializeAws_json1_1ForbiddenException(body, context);
|
|
1327
|
-
const
|
|
1328
|
-
name: "ForbiddenException",
|
|
1329
|
-
$fault: "client",
|
|
840
|
+
const exception = new models_0_1.ForbiddenException({
|
|
1330
841
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1331
842
|
...deserialized,
|
|
1332
|
-
};
|
|
1333
|
-
return
|
|
843
|
+
});
|
|
844
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1334
845
|
};
|
|
1335
846
|
const deserializeAws_json1_1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
|
|
1336
847
|
const body = parsedOutput.body;
|
|
1337
848
|
const deserialized = deserializeAws_json1_1InternalServerErrorException(body, context);
|
|
1338
|
-
const
|
|
1339
|
-
name: "InternalServerErrorException",
|
|
1340
|
-
$fault: "server",
|
|
849
|
+
const exception = new models_0_1.InternalServerErrorException({
|
|
1341
850
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1342
851
|
...deserialized,
|
|
1343
|
-
};
|
|
1344
|
-
return
|
|
852
|
+
});
|
|
853
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1345
854
|
};
|
|
1346
855
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1347
856
|
const body = parsedOutput.body;
|
|
1348
857
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1349
|
-
const
|
|
1350
|
-
name: "LimitExceededException",
|
|
1351
|
-
$fault: "client",
|
|
858
|
+
const exception = new models_0_1.LimitExceededException({
|
|
1352
859
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1353
860
|
...deserialized,
|
|
1354
|
-
};
|
|
1355
|
-
return
|
|
861
|
+
});
|
|
862
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1356
863
|
};
|
|
1357
864
|
const deserializeAws_json1_1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1358
865
|
const body = parsedOutput.body;
|
|
1359
866
|
const deserialized = deserializeAws_json1_1NotFoundException(body, context);
|
|
1360
|
-
const
|
|
1361
|
-
name: "NotFoundException",
|
|
1362
|
-
$fault: "client",
|
|
867
|
+
const exception = new models_0_1.NotFoundException({
|
|
1363
868
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1364
869
|
...deserialized,
|
|
1365
|
-
};
|
|
1366
|
-
return
|
|
870
|
+
});
|
|
871
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1367
872
|
};
|
|
1368
873
|
const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1369
874
|
const body = parsedOutput.body;
|
|
1370
875
|
const deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
1371
|
-
const
|
|
1372
|
-
name: "TooManyRequestsException",
|
|
1373
|
-
$fault: "client",
|
|
876
|
+
const exception = new models_0_1.TooManyRequestsException({
|
|
1374
877
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1375
878
|
...deserialized,
|
|
1376
|
-
};
|
|
1377
|
-
return
|
|
879
|
+
});
|
|
880
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1378
881
|
};
|
|
1379
882
|
const serializeAws_json1_1BoundedEnvironmentIdList = (input, context) => {
|
|
1380
883
|
return input
|
|
@@ -1597,7 +1100,7 @@ const deserializeAws_json1_1Environment = (output, context) => {
|
|
|
1597
1100
|
};
|
|
1598
1101
|
};
|
|
1599
1102
|
const deserializeAws_json1_1EnvironmentIdList = (output, context) => {
|
|
1600
|
-
|
|
1103
|
+
const retVal = (output || [])
|
|
1601
1104
|
.filter((e) => e != null)
|
|
1602
1105
|
.map((entry) => {
|
|
1603
1106
|
if (entry === null) {
|
|
@@ -1605,6 +1108,7 @@ const deserializeAws_json1_1EnvironmentIdList = (output, context) => {
|
|
|
1605
1108
|
}
|
|
1606
1109
|
return smithy_client_1.expectString(entry);
|
|
1607
1110
|
});
|
|
1111
|
+
return retVal;
|
|
1608
1112
|
};
|
|
1609
1113
|
const deserializeAws_json1_1EnvironmentLifecycle = (output, context) => {
|
|
1610
1114
|
return {
|
|
@@ -1614,7 +1118,7 @@ const deserializeAws_json1_1EnvironmentLifecycle = (output, context) => {
|
|
|
1614
1118
|
};
|
|
1615
1119
|
};
|
|
1616
1120
|
const deserializeAws_json1_1EnvironmentList = (output, context) => {
|
|
1617
|
-
|
|
1121
|
+
const retVal = (output || [])
|
|
1618
1122
|
.filter((e) => e != null)
|
|
1619
1123
|
.map((entry) => {
|
|
1620
1124
|
if (entry === null) {
|
|
@@ -1622,6 +1126,7 @@ const deserializeAws_json1_1EnvironmentList = (output, context) => {
|
|
|
1622
1126
|
}
|
|
1623
1127
|
return deserializeAws_json1_1Environment(entry, context);
|
|
1624
1128
|
});
|
|
1129
|
+
return retVal;
|
|
1625
1130
|
};
|
|
1626
1131
|
const deserializeAws_json1_1EnvironmentMember = (output, context) => {
|
|
1627
1132
|
return {
|
|
@@ -1635,7 +1140,7 @@ const deserializeAws_json1_1EnvironmentMember = (output, context) => {
|
|
|
1635
1140
|
};
|
|
1636
1141
|
};
|
|
1637
1142
|
const deserializeAws_json1_1EnvironmentMembersList = (output, context) => {
|
|
1638
|
-
|
|
1143
|
+
const retVal = (output || [])
|
|
1639
1144
|
.filter((e) => e != null)
|
|
1640
1145
|
.map((entry) => {
|
|
1641
1146
|
if (entry === null) {
|
|
@@ -1643,6 +1148,7 @@ const deserializeAws_json1_1EnvironmentMembersList = (output, context) => {
|
|
|
1643
1148
|
}
|
|
1644
1149
|
return deserializeAws_json1_1EnvironmentMember(entry, context);
|
|
1645
1150
|
});
|
|
1151
|
+
return retVal;
|
|
1646
1152
|
};
|
|
1647
1153
|
const deserializeAws_json1_1ForbiddenException = (output, context) => {
|
|
1648
1154
|
return {
|
|
@@ -1694,7 +1200,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
1694
1200
|
};
|
|
1695
1201
|
};
|
|
1696
1202
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
1697
|
-
|
|
1203
|
+
const retVal = (output || [])
|
|
1698
1204
|
.filter((e) => e != null)
|
|
1699
1205
|
.map((entry) => {
|
|
1700
1206
|
if (entry === null) {
|
|
@@ -1702,6 +1208,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
1702
1208
|
}
|
|
1703
1209
|
return deserializeAws_json1_1Tag(entry, context);
|
|
1704
1210
|
});
|
|
1211
|
+
return retVal;
|
|
1705
1212
|
};
|
|
1706
1213
|
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
1707
1214
|
return {};
|