@cdklabs/cdk-ecs-codedeploy 0.0.243 → 0.0.245
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/.jsii +3 -3
- package/.jsii.tabl.json +1 -1
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +390 -1798
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/protocols/Aws_json1_1.js +487 -1895
- package/node_modules/@aws-sdk/client-codedeploy/package.json +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +9 -90
- package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +8 -89
- package/node_modules/@aws-sdk/client-sso/package.json +1 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +30 -135
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +29 -134
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +31 -179
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +30 -178
- package/node_modules/@aws-sdk/client-sts/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +23 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/index.js +26 -15
- package/node_modules/@smithy/core/dist-es/pagination/createPaginator.js +12 -1
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +13 -3
- package/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js +1 -1
- package/node_modules/@smithy/util-defaults-mode-node/package.json +1 -1
- package/package.json +5 -5
|
@@ -286,7 +286,7 @@ export const se_UpdateDeploymentGroupCommand = async (input, context) => {
|
|
|
286
286
|
};
|
|
287
287
|
export const de_AddTagsToOnPremisesInstancesCommand = async (output, context) => {
|
|
288
288
|
if (output.statusCode >= 300) {
|
|
289
|
-
return
|
|
289
|
+
return de_CommandError(output, context);
|
|
290
290
|
}
|
|
291
291
|
await collectBody(output.body, context);
|
|
292
292
|
const response = {
|
|
@@ -294,46 +294,9 @@ export const de_AddTagsToOnPremisesInstancesCommand = async (output, context) =>
|
|
|
294
294
|
};
|
|
295
295
|
return response;
|
|
296
296
|
};
|
|
297
|
-
const de_AddTagsToOnPremisesInstancesCommandError = async (output, context) => {
|
|
298
|
-
const parsedOutput = {
|
|
299
|
-
...output,
|
|
300
|
-
body: await parseErrorBody(output.body, context),
|
|
301
|
-
};
|
|
302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
303
|
-
switch (errorCode) {
|
|
304
|
-
case "InstanceLimitExceededException":
|
|
305
|
-
case "com.amazonaws.codedeploy#InstanceLimitExceededException":
|
|
306
|
-
throw await de_InstanceLimitExceededExceptionRes(parsedOutput, context);
|
|
307
|
-
case "InstanceNameRequiredException":
|
|
308
|
-
case "com.amazonaws.codedeploy#InstanceNameRequiredException":
|
|
309
|
-
throw await de_InstanceNameRequiredExceptionRes(parsedOutput, context);
|
|
310
|
-
case "InstanceNotRegisteredException":
|
|
311
|
-
case "com.amazonaws.codedeploy#InstanceNotRegisteredException":
|
|
312
|
-
throw await de_InstanceNotRegisteredExceptionRes(parsedOutput, context);
|
|
313
|
-
case "InvalidInstanceNameException":
|
|
314
|
-
case "com.amazonaws.codedeploy#InvalidInstanceNameException":
|
|
315
|
-
throw await de_InvalidInstanceNameExceptionRes(parsedOutput, context);
|
|
316
|
-
case "InvalidTagException":
|
|
317
|
-
case "com.amazonaws.codedeploy#InvalidTagException":
|
|
318
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
319
|
-
case "TagLimitExceededException":
|
|
320
|
-
case "com.amazonaws.codedeploy#TagLimitExceededException":
|
|
321
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
322
|
-
case "TagRequiredException":
|
|
323
|
-
case "com.amazonaws.codedeploy#TagRequiredException":
|
|
324
|
-
throw await de_TagRequiredExceptionRes(parsedOutput, context);
|
|
325
|
-
default:
|
|
326
|
-
const parsedBody = parsedOutput.body;
|
|
327
|
-
return throwDefaultError({
|
|
328
|
-
output,
|
|
329
|
-
parsedBody,
|
|
330
|
-
errorCode,
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
297
|
export const de_BatchGetApplicationRevisionsCommand = async (output, context) => {
|
|
335
298
|
if (output.statusCode >= 300) {
|
|
336
|
-
return
|
|
299
|
+
return de_CommandError(output, context);
|
|
337
300
|
}
|
|
338
301
|
const data = await parseBody(output.body, context);
|
|
339
302
|
let contents = {};
|
|
@@ -344,43 +307,9 @@ export const de_BatchGetApplicationRevisionsCommand = async (output, context) =>
|
|
|
344
307
|
};
|
|
345
308
|
return response;
|
|
346
309
|
};
|
|
347
|
-
const de_BatchGetApplicationRevisionsCommandError = async (output, context) => {
|
|
348
|
-
const parsedOutput = {
|
|
349
|
-
...output,
|
|
350
|
-
body: await parseErrorBody(output.body, context),
|
|
351
|
-
};
|
|
352
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
353
|
-
switch (errorCode) {
|
|
354
|
-
case "ApplicationDoesNotExistException":
|
|
355
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
356
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
357
|
-
case "ApplicationNameRequiredException":
|
|
358
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
359
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
360
|
-
case "BatchLimitExceededException":
|
|
361
|
-
case "com.amazonaws.codedeploy#BatchLimitExceededException":
|
|
362
|
-
throw await de_BatchLimitExceededExceptionRes(parsedOutput, context);
|
|
363
|
-
case "InvalidApplicationNameException":
|
|
364
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
365
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
366
|
-
case "InvalidRevisionException":
|
|
367
|
-
case "com.amazonaws.codedeploy#InvalidRevisionException":
|
|
368
|
-
throw await de_InvalidRevisionExceptionRes(parsedOutput, context);
|
|
369
|
-
case "RevisionRequiredException":
|
|
370
|
-
case "com.amazonaws.codedeploy#RevisionRequiredException":
|
|
371
|
-
throw await de_RevisionRequiredExceptionRes(parsedOutput, context);
|
|
372
|
-
default:
|
|
373
|
-
const parsedBody = parsedOutput.body;
|
|
374
|
-
return throwDefaultError({
|
|
375
|
-
output,
|
|
376
|
-
parsedBody,
|
|
377
|
-
errorCode,
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
310
|
export const de_BatchGetApplicationsCommand = async (output, context) => {
|
|
382
311
|
if (output.statusCode >= 300) {
|
|
383
|
-
return
|
|
312
|
+
return de_CommandError(output, context);
|
|
384
313
|
}
|
|
385
314
|
const data = await parseBody(output.body, context);
|
|
386
315
|
let contents = {};
|
|
@@ -391,37 +320,9 @@ export const de_BatchGetApplicationsCommand = async (output, context) => {
|
|
|
391
320
|
};
|
|
392
321
|
return response;
|
|
393
322
|
};
|
|
394
|
-
const de_BatchGetApplicationsCommandError = async (output, context) => {
|
|
395
|
-
const parsedOutput = {
|
|
396
|
-
...output,
|
|
397
|
-
body: await parseErrorBody(output.body, context),
|
|
398
|
-
};
|
|
399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
|
-
switch (errorCode) {
|
|
401
|
-
case "ApplicationDoesNotExistException":
|
|
402
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
403
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
404
|
-
case "ApplicationNameRequiredException":
|
|
405
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
406
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
407
|
-
case "BatchLimitExceededException":
|
|
408
|
-
case "com.amazonaws.codedeploy#BatchLimitExceededException":
|
|
409
|
-
throw await de_BatchLimitExceededExceptionRes(parsedOutput, context);
|
|
410
|
-
case "InvalidApplicationNameException":
|
|
411
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
412
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
413
|
-
default:
|
|
414
|
-
const parsedBody = parsedOutput.body;
|
|
415
|
-
return throwDefaultError({
|
|
416
|
-
output,
|
|
417
|
-
parsedBody,
|
|
418
|
-
errorCode,
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
};
|
|
422
323
|
export const de_BatchGetDeploymentGroupsCommand = async (output, context) => {
|
|
423
324
|
if (output.statusCode >= 300) {
|
|
424
|
-
return
|
|
325
|
+
return de_CommandError(output, context);
|
|
425
326
|
}
|
|
426
327
|
const data = await parseBody(output.body, context);
|
|
427
328
|
let contents = {};
|
|
@@ -432,46 +333,9 @@ export const de_BatchGetDeploymentGroupsCommand = async (output, context) => {
|
|
|
432
333
|
};
|
|
433
334
|
return response;
|
|
434
335
|
};
|
|
435
|
-
const de_BatchGetDeploymentGroupsCommandError = async (output, context) => {
|
|
436
|
-
const parsedOutput = {
|
|
437
|
-
...output,
|
|
438
|
-
body: await parseErrorBody(output.body, context),
|
|
439
|
-
};
|
|
440
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
|
-
switch (errorCode) {
|
|
442
|
-
case "ApplicationDoesNotExistException":
|
|
443
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
444
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
445
|
-
case "ApplicationNameRequiredException":
|
|
446
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
447
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
448
|
-
case "BatchLimitExceededException":
|
|
449
|
-
case "com.amazonaws.codedeploy#BatchLimitExceededException":
|
|
450
|
-
throw await de_BatchLimitExceededExceptionRes(parsedOutput, context);
|
|
451
|
-
case "DeploymentConfigDoesNotExistException":
|
|
452
|
-
case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException":
|
|
453
|
-
throw await de_DeploymentConfigDoesNotExistExceptionRes(parsedOutput, context);
|
|
454
|
-
case "DeploymentGroupNameRequiredException":
|
|
455
|
-
case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException":
|
|
456
|
-
throw await de_DeploymentGroupNameRequiredExceptionRes(parsedOutput, context);
|
|
457
|
-
case "InvalidApplicationNameException":
|
|
458
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
459
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
460
|
-
case "InvalidDeploymentGroupNameException":
|
|
461
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException":
|
|
462
|
-
throw await de_InvalidDeploymentGroupNameExceptionRes(parsedOutput, context);
|
|
463
|
-
default:
|
|
464
|
-
const parsedBody = parsedOutput.body;
|
|
465
|
-
return throwDefaultError({
|
|
466
|
-
output,
|
|
467
|
-
parsedBody,
|
|
468
|
-
errorCode,
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
};
|
|
472
336
|
export const de_BatchGetDeploymentInstancesCommand = async (output, context) => {
|
|
473
337
|
if (output.statusCode >= 300) {
|
|
474
|
-
return
|
|
338
|
+
return de_CommandError(output, context);
|
|
475
339
|
}
|
|
476
340
|
const data = await parseBody(output.body, context);
|
|
477
341
|
let contents = {};
|
|
@@ -482,46 +346,9 @@ export const de_BatchGetDeploymentInstancesCommand = async (output, context) =>
|
|
|
482
346
|
};
|
|
483
347
|
return response;
|
|
484
348
|
};
|
|
485
|
-
const de_BatchGetDeploymentInstancesCommandError = async (output, context) => {
|
|
486
|
-
const parsedOutput = {
|
|
487
|
-
...output,
|
|
488
|
-
body: await parseErrorBody(output.body, context),
|
|
489
|
-
};
|
|
490
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
491
|
-
switch (errorCode) {
|
|
492
|
-
case "BatchLimitExceededException":
|
|
493
|
-
case "com.amazonaws.codedeploy#BatchLimitExceededException":
|
|
494
|
-
throw await de_BatchLimitExceededExceptionRes(parsedOutput, context);
|
|
495
|
-
case "DeploymentDoesNotExistException":
|
|
496
|
-
case "com.amazonaws.codedeploy#DeploymentDoesNotExistException":
|
|
497
|
-
throw await de_DeploymentDoesNotExistExceptionRes(parsedOutput, context);
|
|
498
|
-
case "DeploymentIdRequiredException":
|
|
499
|
-
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
500
|
-
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
501
|
-
case "InstanceIdRequiredException":
|
|
502
|
-
case "com.amazonaws.codedeploy#InstanceIdRequiredException":
|
|
503
|
-
throw await de_InstanceIdRequiredExceptionRes(parsedOutput, context);
|
|
504
|
-
case "InvalidComputePlatformException":
|
|
505
|
-
case "com.amazonaws.codedeploy#InvalidComputePlatformException":
|
|
506
|
-
throw await de_InvalidComputePlatformExceptionRes(parsedOutput, context);
|
|
507
|
-
case "InvalidDeploymentIdException":
|
|
508
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
509
|
-
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
510
|
-
case "InvalidInstanceNameException":
|
|
511
|
-
case "com.amazonaws.codedeploy#InvalidInstanceNameException":
|
|
512
|
-
throw await de_InvalidInstanceNameExceptionRes(parsedOutput, context);
|
|
513
|
-
default:
|
|
514
|
-
const parsedBody = parsedOutput.body;
|
|
515
|
-
return throwDefaultError({
|
|
516
|
-
output,
|
|
517
|
-
parsedBody,
|
|
518
|
-
errorCode,
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
349
|
export const de_BatchGetDeploymentsCommand = async (output, context) => {
|
|
523
350
|
if (output.statusCode >= 300) {
|
|
524
|
-
return
|
|
351
|
+
return de_CommandError(output, context);
|
|
525
352
|
}
|
|
526
353
|
const data = await parseBody(output.body, context);
|
|
527
354
|
let contents = {};
|
|
@@ -532,34 +359,9 @@ export const de_BatchGetDeploymentsCommand = async (output, context) => {
|
|
|
532
359
|
};
|
|
533
360
|
return response;
|
|
534
361
|
};
|
|
535
|
-
const de_BatchGetDeploymentsCommandError = async (output, context) => {
|
|
536
|
-
const parsedOutput = {
|
|
537
|
-
...output,
|
|
538
|
-
body: await parseErrorBody(output.body, context),
|
|
539
|
-
};
|
|
540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
-
switch (errorCode) {
|
|
542
|
-
case "BatchLimitExceededException":
|
|
543
|
-
case "com.amazonaws.codedeploy#BatchLimitExceededException":
|
|
544
|
-
throw await de_BatchLimitExceededExceptionRes(parsedOutput, context);
|
|
545
|
-
case "DeploymentIdRequiredException":
|
|
546
|
-
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
547
|
-
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
548
|
-
case "InvalidDeploymentIdException":
|
|
549
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
550
|
-
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
551
|
-
default:
|
|
552
|
-
const parsedBody = parsedOutput.body;
|
|
553
|
-
return throwDefaultError({
|
|
554
|
-
output,
|
|
555
|
-
parsedBody,
|
|
556
|
-
errorCode,
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
362
|
export const de_BatchGetDeploymentTargetsCommand = async (output, context) => {
|
|
561
363
|
if (output.statusCode >= 300) {
|
|
562
|
-
return
|
|
364
|
+
return de_CommandError(output, context);
|
|
563
365
|
}
|
|
564
366
|
const data = await parseBody(output.body, context);
|
|
565
367
|
let contents = {};
|
|
@@ -570,52 +372,9 @@ export const de_BatchGetDeploymentTargetsCommand = async (output, context) => {
|
|
|
570
372
|
};
|
|
571
373
|
return response;
|
|
572
374
|
};
|
|
573
|
-
const de_BatchGetDeploymentTargetsCommandError = async (output, context) => {
|
|
574
|
-
const parsedOutput = {
|
|
575
|
-
...output,
|
|
576
|
-
body: await parseErrorBody(output.body, context),
|
|
577
|
-
};
|
|
578
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
579
|
-
switch (errorCode) {
|
|
580
|
-
case "DeploymentDoesNotExistException":
|
|
581
|
-
case "com.amazonaws.codedeploy#DeploymentDoesNotExistException":
|
|
582
|
-
throw await de_DeploymentDoesNotExistExceptionRes(parsedOutput, context);
|
|
583
|
-
case "DeploymentIdRequiredException":
|
|
584
|
-
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
585
|
-
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
586
|
-
case "DeploymentNotStartedException":
|
|
587
|
-
case "com.amazonaws.codedeploy#DeploymentNotStartedException":
|
|
588
|
-
throw await de_DeploymentNotStartedExceptionRes(parsedOutput, context);
|
|
589
|
-
case "DeploymentTargetDoesNotExistException":
|
|
590
|
-
case "com.amazonaws.codedeploy#DeploymentTargetDoesNotExistException":
|
|
591
|
-
throw await de_DeploymentTargetDoesNotExistExceptionRes(parsedOutput, context);
|
|
592
|
-
case "DeploymentTargetIdRequiredException":
|
|
593
|
-
case "com.amazonaws.codedeploy#DeploymentTargetIdRequiredException":
|
|
594
|
-
throw await de_DeploymentTargetIdRequiredExceptionRes(parsedOutput, context);
|
|
595
|
-
case "DeploymentTargetListSizeExceededException":
|
|
596
|
-
case "com.amazonaws.codedeploy#DeploymentTargetListSizeExceededException":
|
|
597
|
-
throw await de_DeploymentTargetListSizeExceededExceptionRes(parsedOutput, context);
|
|
598
|
-
case "InstanceDoesNotExistException":
|
|
599
|
-
case "com.amazonaws.codedeploy#InstanceDoesNotExistException":
|
|
600
|
-
throw await de_InstanceDoesNotExistExceptionRes(parsedOutput, context);
|
|
601
|
-
case "InvalidDeploymentIdException":
|
|
602
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
603
|
-
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
604
|
-
case "InvalidDeploymentTargetIdException":
|
|
605
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentTargetIdException":
|
|
606
|
-
throw await de_InvalidDeploymentTargetIdExceptionRes(parsedOutput, context);
|
|
607
|
-
default:
|
|
608
|
-
const parsedBody = parsedOutput.body;
|
|
609
|
-
return throwDefaultError({
|
|
610
|
-
output,
|
|
611
|
-
parsedBody,
|
|
612
|
-
errorCode,
|
|
613
|
-
});
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
375
|
export const de_BatchGetOnPremisesInstancesCommand = async (output, context) => {
|
|
617
376
|
if (output.statusCode >= 300) {
|
|
618
|
-
return
|
|
377
|
+
return de_CommandError(output, context);
|
|
619
378
|
}
|
|
620
379
|
const data = await parseBody(output.body, context);
|
|
621
380
|
let contents = {};
|
|
@@ -626,84 +385,32 @@ export const de_BatchGetOnPremisesInstancesCommand = async (output, context) =>
|
|
|
626
385
|
};
|
|
627
386
|
return response;
|
|
628
387
|
};
|
|
629
|
-
const
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
388
|
+
export const de_ContinueDeploymentCommand = async (output, context) => {
|
|
389
|
+
if (output.statusCode >= 300) {
|
|
390
|
+
return de_CommandError(output, context);
|
|
391
|
+
}
|
|
392
|
+
await collectBody(output.body, context);
|
|
393
|
+
const response = {
|
|
394
|
+
$metadata: deserializeMetadata(output),
|
|
633
395
|
};
|
|
634
|
-
|
|
635
|
-
switch (errorCode) {
|
|
636
|
-
case "BatchLimitExceededException":
|
|
637
|
-
case "com.amazonaws.codedeploy#BatchLimitExceededException":
|
|
638
|
-
throw await de_BatchLimitExceededExceptionRes(parsedOutput, context);
|
|
639
|
-
case "InstanceNameRequiredException":
|
|
640
|
-
case "com.amazonaws.codedeploy#InstanceNameRequiredException":
|
|
641
|
-
throw await de_InstanceNameRequiredExceptionRes(parsedOutput, context);
|
|
642
|
-
case "InvalidInstanceNameException":
|
|
643
|
-
case "com.amazonaws.codedeploy#InvalidInstanceNameException":
|
|
644
|
-
throw await de_InvalidInstanceNameExceptionRes(parsedOutput, context);
|
|
645
|
-
default:
|
|
646
|
-
const parsedBody = parsedOutput.body;
|
|
647
|
-
return throwDefaultError({
|
|
648
|
-
output,
|
|
649
|
-
parsedBody,
|
|
650
|
-
errorCode,
|
|
651
|
-
});
|
|
652
|
-
}
|
|
396
|
+
return response;
|
|
653
397
|
};
|
|
654
|
-
export const
|
|
398
|
+
export const de_CreateApplicationCommand = async (output, context) => {
|
|
655
399
|
if (output.statusCode >= 300) {
|
|
656
|
-
return
|
|
400
|
+
return de_CommandError(output, context);
|
|
657
401
|
}
|
|
658
|
-
await
|
|
402
|
+
const data = await parseBody(output.body, context);
|
|
403
|
+
let contents = {};
|
|
404
|
+
contents = _json(data);
|
|
659
405
|
const response = {
|
|
660
406
|
$metadata: deserializeMetadata(output),
|
|
407
|
+
...contents,
|
|
661
408
|
};
|
|
662
409
|
return response;
|
|
663
410
|
};
|
|
664
|
-
const
|
|
665
|
-
const parsedOutput = {
|
|
666
|
-
...output,
|
|
667
|
-
body: await parseErrorBody(output.body, context),
|
|
668
|
-
};
|
|
669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
|
-
switch (errorCode) {
|
|
671
|
-
case "DeploymentAlreadyCompletedException":
|
|
672
|
-
case "com.amazonaws.codedeploy#DeploymentAlreadyCompletedException":
|
|
673
|
-
throw await de_DeploymentAlreadyCompletedExceptionRes(parsedOutput, context);
|
|
674
|
-
case "DeploymentDoesNotExistException":
|
|
675
|
-
case "com.amazonaws.codedeploy#DeploymentDoesNotExistException":
|
|
676
|
-
throw await de_DeploymentDoesNotExistExceptionRes(parsedOutput, context);
|
|
677
|
-
case "DeploymentIdRequiredException":
|
|
678
|
-
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
679
|
-
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
680
|
-
case "DeploymentIsNotInReadyStateException":
|
|
681
|
-
case "com.amazonaws.codedeploy#DeploymentIsNotInReadyStateException":
|
|
682
|
-
throw await de_DeploymentIsNotInReadyStateExceptionRes(parsedOutput, context);
|
|
683
|
-
case "InvalidDeploymentIdException":
|
|
684
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
685
|
-
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
686
|
-
case "InvalidDeploymentStatusException":
|
|
687
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentStatusException":
|
|
688
|
-
throw await de_InvalidDeploymentStatusExceptionRes(parsedOutput, context);
|
|
689
|
-
case "InvalidDeploymentWaitTypeException":
|
|
690
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentWaitTypeException":
|
|
691
|
-
throw await de_InvalidDeploymentWaitTypeExceptionRes(parsedOutput, context);
|
|
692
|
-
case "UnsupportedActionForDeploymentTypeException":
|
|
693
|
-
case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException":
|
|
694
|
-
throw await de_UnsupportedActionForDeploymentTypeExceptionRes(parsedOutput, context);
|
|
695
|
-
default:
|
|
696
|
-
const parsedBody = parsedOutput.body;
|
|
697
|
-
return throwDefaultError({
|
|
698
|
-
output,
|
|
699
|
-
parsedBody,
|
|
700
|
-
errorCode,
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
};
|
|
704
|
-
export const de_CreateApplicationCommand = async (output, context) => {
|
|
411
|
+
export const de_CreateDeploymentCommand = async (output, context) => {
|
|
705
412
|
if (output.statusCode >= 300) {
|
|
706
|
-
return
|
|
413
|
+
return de_CommandError(output, context);
|
|
707
414
|
}
|
|
708
415
|
const data = await parseBody(output.body, context);
|
|
709
416
|
let contents = {};
|
|
@@ -714,43 +421,22 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
714
421
|
};
|
|
715
422
|
return response;
|
|
716
423
|
};
|
|
717
|
-
const
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
body: await parseErrorBody(output.body, context),
|
|
721
|
-
};
|
|
722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
-
switch (errorCode) {
|
|
724
|
-
case "ApplicationAlreadyExistsException":
|
|
725
|
-
case "com.amazonaws.codedeploy#ApplicationAlreadyExistsException":
|
|
726
|
-
throw await de_ApplicationAlreadyExistsExceptionRes(parsedOutput, context);
|
|
727
|
-
case "ApplicationLimitExceededException":
|
|
728
|
-
case "com.amazonaws.codedeploy#ApplicationLimitExceededException":
|
|
729
|
-
throw await de_ApplicationLimitExceededExceptionRes(parsedOutput, context);
|
|
730
|
-
case "ApplicationNameRequiredException":
|
|
731
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
732
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
733
|
-
case "InvalidApplicationNameException":
|
|
734
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
735
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
736
|
-
case "InvalidComputePlatformException":
|
|
737
|
-
case "com.amazonaws.codedeploy#InvalidComputePlatformException":
|
|
738
|
-
throw await de_InvalidComputePlatformExceptionRes(parsedOutput, context);
|
|
739
|
-
case "InvalidTagsToAddException":
|
|
740
|
-
case "com.amazonaws.codedeploy#InvalidTagsToAddException":
|
|
741
|
-
throw await de_InvalidTagsToAddExceptionRes(parsedOutput, context);
|
|
742
|
-
default:
|
|
743
|
-
const parsedBody = parsedOutput.body;
|
|
744
|
-
return throwDefaultError({
|
|
745
|
-
output,
|
|
746
|
-
parsedBody,
|
|
747
|
-
errorCode,
|
|
748
|
-
});
|
|
424
|
+
export const de_CreateDeploymentConfigCommand = async (output, context) => {
|
|
425
|
+
if (output.statusCode >= 300) {
|
|
426
|
+
return de_CommandError(output, context);
|
|
749
427
|
}
|
|
428
|
+
const data = await parseBody(output.body, context);
|
|
429
|
+
let contents = {};
|
|
430
|
+
contents = _json(data);
|
|
431
|
+
const response = {
|
|
432
|
+
$metadata: deserializeMetadata(output),
|
|
433
|
+
...contents,
|
|
434
|
+
};
|
|
435
|
+
return response;
|
|
750
436
|
};
|
|
751
|
-
export const
|
|
437
|
+
export const de_CreateDeploymentGroupCommand = async (output, context) => {
|
|
752
438
|
if (output.statusCode >= 300) {
|
|
753
|
-
return
|
|
439
|
+
return de_CommandError(output, context);
|
|
754
440
|
}
|
|
755
441
|
const data = await parseBody(output.body, context);
|
|
756
442
|
let contents = {};
|
|
@@ -761,103 +447,29 @@ export const de_CreateDeploymentCommand = async (output, context) => {
|
|
|
761
447
|
};
|
|
762
448
|
return response;
|
|
763
449
|
};
|
|
764
|
-
const
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
450
|
+
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
451
|
+
if (output.statusCode >= 300) {
|
|
452
|
+
return de_CommandError(output, context);
|
|
453
|
+
}
|
|
454
|
+
await collectBody(output.body, context);
|
|
455
|
+
const response = {
|
|
456
|
+
$metadata: deserializeMetadata(output),
|
|
768
457
|
};
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
case "ApplicationDoesNotExistException":
|
|
775
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
776
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
777
|
-
case "ApplicationNameRequiredException":
|
|
778
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
779
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
780
|
-
case "DeploymentConfigDoesNotExistException":
|
|
781
|
-
case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException":
|
|
782
|
-
throw await de_DeploymentConfigDoesNotExistExceptionRes(parsedOutput, context);
|
|
783
|
-
case "DeploymentGroupDoesNotExistException":
|
|
784
|
-
case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException":
|
|
785
|
-
throw await de_DeploymentGroupDoesNotExistExceptionRes(parsedOutput, context);
|
|
786
|
-
case "DeploymentGroupNameRequiredException":
|
|
787
|
-
case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException":
|
|
788
|
-
throw await de_DeploymentGroupNameRequiredExceptionRes(parsedOutput, context);
|
|
789
|
-
case "DeploymentLimitExceededException":
|
|
790
|
-
case "com.amazonaws.codedeploy#DeploymentLimitExceededException":
|
|
791
|
-
throw await de_DeploymentLimitExceededExceptionRes(parsedOutput, context);
|
|
792
|
-
case "DescriptionTooLongException":
|
|
793
|
-
case "com.amazonaws.codedeploy#DescriptionTooLongException":
|
|
794
|
-
throw await de_DescriptionTooLongExceptionRes(parsedOutput, context);
|
|
795
|
-
case "InvalidAlarmConfigException":
|
|
796
|
-
case "com.amazonaws.codedeploy#InvalidAlarmConfigException":
|
|
797
|
-
throw await de_InvalidAlarmConfigExceptionRes(parsedOutput, context);
|
|
798
|
-
case "InvalidApplicationNameException":
|
|
799
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
800
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
801
|
-
case "InvalidAutoRollbackConfigException":
|
|
802
|
-
case "com.amazonaws.codedeploy#InvalidAutoRollbackConfigException":
|
|
803
|
-
throw await de_InvalidAutoRollbackConfigExceptionRes(parsedOutput, context);
|
|
804
|
-
case "InvalidAutoScalingGroupException":
|
|
805
|
-
case "com.amazonaws.codedeploy#InvalidAutoScalingGroupException":
|
|
806
|
-
throw await de_InvalidAutoScalingGroupExceptionRes(parsedOutput, context);
|
|
807
|
-
case "InvalidDeploymentConfigNameException":
|
|
808
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException":
|
|
809
|
-
throw await de_InvalidDeploymentConfigNameExceptionRes(parsedOutput, context);
|
|
810
|
-
case "InvalidDeploymentGroupNameException":
|
|
811
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException":
|
|
812
|
-
throw await de_InvalidDeploymentGroupNameExceptionRes(parsedOutput, context);
|
|
813
|
-
case "InvalidFileExistsBehaviorException":
|
|
814
|
-
case "com.amazonaws.codedeploy#InvalidFileExistsBehaviorException":
|
|
815
|
-
throw await de_InvalidFileExistsBehaviorExceptionRes(parsedOutput, context);
|
|
816
|
-
case "InvalidGitHubAccountTokenException":
|
|
817
|
-
case "com.amazonaws.codedeploy#InvalidGitHubAccountTokenException":
|
|
818
|
-
throw await de_InvalidGitHubAccountTokenExceptionRes(parsedOutput, context);
|
|
819
|
-
case "InvalidIgnoreApplicationStopFailuresValueException":
|
|
820
|
-
case "com.amazonaws.codedeploy#InvalidIgnoreApplicationStopFailuresValueException":
|
|
821
|
-
throw await de_InvalidIgnoreApplicationStopFailuresValueExceptionRes(parsedOutput, context);
|
|
822
|
-
case "InvalidLoadBalancerInfoException":
|
|
823
|
-
case "com.amazonaws.codedeploy#InvalidLoadBalancerInfoException":
|
|
824
|
-
throw await de_InvalidLoadBalancerInfoExceptionRes(parsedOutput, context);
|
|
825
|
-
case "InvalidRevisionException":
|
|
826
|
-
case "com.amazonaws.codedeploy#InvalidRevisionException":
|
|
827
|
-
throw await de_InvalidRevisionExceptionRes(parsedOutput, context);
|
|
828
|
-
case "InvalidRoleException":
|
|
829
|
-
case "com.amazonaws.codedeploy#InvalidRoleException":
|
|
830
|
-
throw await de_InvalidRoleExceptionRes(parsedOutput, context);
|
|
831
|
-
case "InvalidTargetInstancesException":
|
|
832
|
-
case "com.amazonaws.codedeploy#InvalidTargetInstancesException":
|
|
833
|
-
throw await de_InvalidTargetInstancesExceptionRes(parsedOutput, context);
|
|
834
|
-
case "InvalidTrafficRoutingConfigurationException":
|
|
835
|
-
case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException":
|
|
836
|
-
throw await de_InvalidTrafficRoutingConfigurationExceptionRes(parsedOutput, context);
|
|
837
|
-
case "InvalidUpdateOutdatedInstancesOnlyValueException":
|
|
838
|
-
case "com.amazonaws.codedeploy#InvalidUpdateOutdatedInstancesOnlyValueException":
|
|
839
|
-
throw await de_InvalidUpdateOutdatedInstancesOnlyValueExceptionRes(parsedOutput, context);
|
|
840
|
-
case "RevisionDoesNotExistException":
|
|
841
|
-
case "com.amazonaws.codedeploy#RevisionDoesNotExistException":
|
|
842
|
-
throw await de_RevisionDoesNotExistExceptionRes(parsedOutput, context);
|
|
843
|
-
case "RevisionRequiredException":
|
|
844
|
-
case "com.amazonaws.codedeploy#RevisionRequiredException":
|
|
845
|
-
throw await de_RevisionRequiredExceptionRes(parsedOutput, context);
|
|
846
|
-
case "ThrottlingException":
|
|
847
|
-
case "com.amazonaws.codedeploy#ThrottlingException":
|
|
848
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
849
|
-
default:
|
|
850
|
-
const parsedBody = parsedOutput.body;
|
|
851
|
-
return throwDefaultError({
|
|
852
|
-
output,
|
|
853
|
-
parsedBody,
|
|
854
|
-
errorCode,
|
|
855
|
-
});
|
|
458
|
+
return response;
|
|
459
|
+
};
|
|
460
|
+
export const de_DeleteDeploymentConfigCommand = async (output, context) => {
|
|
461
|
+
if (output.statusCode >= 300) {
|
|
462
|
+
return de_CommandError(output, context);
|
|
856
463
|
}
|
|
464
|
+
await collectBody(output.body, context);
|
|
465
|
+
const response = {
|
|
466
|
+
$metadata: deserializeMetadata(output),
|
|
467
|
+
};
|
|
468
|
+
return response;
|
|
857
469
|
};
|
|
858
|
-
export const
|
|
470
|
+
export const de_DeleteDeploymentGroupCommand = async (output, context) => {
|
|
859
471
|
if (output.statusCode >= 300) {
|
|
860
|
-
return
|
|
472
|
+
return de_CommandError(output, context);
|
|
861
473
|
}
|
|
862
474
|
const data = await parseBody(output.body, context);
|
|
863
475
|
let contents = {};
|
|
@@ -868,49 +480,22 @@ export const de_CreateDeploymentConfigCommand = async (output, context) => {
|
|
|
868
480
|
};
|
|
869
481
|
return response;
|
|
870
482
|
};
|
|
871
|
-
const
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
body: await parseErrorBody(output.body, context),
|
|
875
|
-
};
|
|
876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
-
switch (errorCode) {
|
|
878
|
-
case "DeploymentConfigAlreadyExistsException":
|
|
879
|
-
case "com.amazonaws.codedeploy#DeploymentConfigAlreadyExistsException":
|
|
880
|
-
throw await de_DeploymentConfigAlreadyExistsExceptionRes(parsedOutput, context);
|
|
881
|
-
case "DeploymentConfigLimitExceededException":
|
|
882
|
-
case "com.amazonaws.codedeploy#DeploymentConfigLimitExceededException":
|
|
883
|
-
throw await de_DeploymentConfigLimitExceededExceptionRes(parsedOutput, context);
|
|
884
|
-
case "DeploymentConfigNameRequiredException":
|
|
885
|
-
case "com.amazonaws.codedeploy#DeploymentConfigNameRequiredException":
|
|
886
|
-
throw await de_DeploymentConfigNameRequiredExceptionRes(parsedOutput, context);
|
|
887
|
-
case "InvalidComputePlatformException":
|
|
888
|
-
case "com.amazonaws.codedeploy#InvalidComputePlatformException":
|
|
889
|
-
throw await de_InvalidComputePlatformExceptionRes(parsedOutput, context);
|
|
890
|
-
case "InvalidDeploymentConfigNameException":
|
|
891
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException":
|
|
892
|
-
throw await de_InvalidDeploymentConfigNameExceptionRes(parsedOutput, context);
|
|
893
|
-
case "InvalidMinimumHealthyHostValueException":
|
|
894
|
-
case "com.amazonaws.codedeploy#InvalidMinimumHealthyHostValueException":
|
|
895
|
-
throw await de_InvalidMinimumHealthyHostValueExceptionRes(parsedOutput, context);
|
|
896
|
-
case "InvalidTrafficRoutingConfigurationException":
|
|
897
|
-
case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException":
|
|
898
|
-
throw await de_InvalidTrafficRoutingConfigurationExceptionRes(parsedOutput, context);
|
|
899
|
-
case "InvalidZonalDeploymentConfigurationException":
|
|
900
|
-
case "com.amazonaws.codedeploy#InvalidZonalDeploymentConfigurationException":
|
|
901
|
-
throw await de_InvalidZonalDeploymentConfigurationExceptionRes(parsedOutput, context);
|
|
902
|
-
default:
|
|
903
|
-
const parsedBody = parsedOutput.body;
|
|
904
|
-
return throwDefaultError({
|
|
905
|
-
output,
|
|
906
|
-
parsedBody,
|
|
907
|
-
errorCode,
|
|
908
|
-
});
|
|
483
|
+
export const de_DeleteGitHubAccountTokenCommand = async (output, context) => {
|
|
484
|
+
if (output.statusCode >= 300) {
|
|
485
|
+
return de_CommandError(output, context);
|
|
909
486
|
}
|
|
487
|
+
const data = await parseBody(output.body, context);
|
|
488
|
+
let contents = {};
|
|
489
|
+
contents = _json(data);
|
|
490
|
+
const response = {
|
|
491
|
+
$metadata: deserializeMetadata(output),
|
|
492
|
+
...contents,
|
|
493
|
+
};
|
|
494
|
+
return response;
|
|
910
495
|
};
|
|
911
|
-
export const
|
|
496
|
+
export const de_DeleteResourcesByExternalIdCommand = async (output, context) => {
|
|
912
497
|
if (output.statusCode >= 300) {
|
|
913
|
-
return
|
|
498
|
+
return de_CommandError(output, context);
|
|
914
499
|
}
|
|
915
500
|
const data = await parseBody(output.body, context);
|
|
916
501
|
let contents = {};
|
|
@@ -921,159 +506,9 @@ export const de_CreateDeploymentGroupCommand = async (output, context) => {
|
|
|
921
506
|
};
|
|
922
507
|
return response;
|
|
923
508
|
};
|
|
924
|
-
const
|
|
925
|
-
const parsedOutput = {
|
|
926
|
-
...output,
|
|
927
|
-
body: await parseErrorBody(output.body, context),
|
|
928
|
-
};
|
|
929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
-
switch (errorCode) {
|
|
931
|
-
case "AlarmsLimitExceededException":
|
|
932
|
-
case "com.amazonaws.codedeploy#AlarmsLimitExceededException":
|
|
933
|
-
throw await de_AlarmsLimitExceededExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ApplicationDoesNotExistException":
|
|
935
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
936
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ApplicationNameRequiredException":
|
|
938
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
939
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
940
|
-
case "DeploymentConfigDoesNotExistException":
|
|
941
|
-
case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException":
|
|
942
|
-
throw await de_DeploymentConfigDoesNotExistExceptionRes(parsedOutput, context);
|
|
943
|
-
case "DeploymentGroupAlreadyExistsException":
|
|
944
|
-
case "com.amazonaws.codedeploy#DeploymentGroupAlreadyExistsException":
|
|
945
|
-
throw await de_DeploymentGroupAlreadyExistsExceptionRes(parsedOutput, context);
|
|
946
|
-
case "DeploymentGroupLimitExceededException":
|
|
947
|
-
case "com.amazonaws.codedeploy#DeploymentGroupLimitExceededException":
|
|
948
|
-
throw await de_DeploymentGroupLimitExceededExceptionRes(parsedOutput, context);
|
|
949
|
-
case "DeploymentGroupNameRequiredException":
|
|
950
|
-
case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException":
|
|
951
|
-
throw await de_DeploymentGroupNameRequiredExceptionRes(parsedOutput, context);
|
|
952
|
-
case "ECSServiceMappingLimitExceededException":
|
|
953
|
-
case "com.amazonaws.codedeploy#ECSServiceMappingLimitExceededException":
|
|
954
|
-
throw await de_ECSServiceMappingLimitExceededExceptionRes(parsedOutput, context);
|
|
955
|
-
case "InvalidAlarmConfigException":
|
|
956
|
-
case "com.amazonaws.codedeploy#InvalidAlarmConfigException":
|
|
957
|
-
throw await de_InvalidAlarmConfigExceptionRes(parsedOutput, context);
|
|
958
|
-
case "InvalidApplicationNameException":
|
|
959
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
960
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
961
|
-
case "InvalidAutoRollbackConfigException":
|
|
962
|
-
case "com.amazonaws.codedeploy#InvalidAutoRollbackConfigException":
|
|
963
|
-
throw await de_InvalidAutoRollbackConfigExceptionRes(parsedOutput, context);
|
|
964
|
-
case "InvalidAutoScalingGroupException":
|
|
965
|
-
case "com.amazonaws.codedeploy#InvalidAutoScalingGroupException":
|
|
966
|
-
throw await de_InvalidAutoScalingGroupExceptionRes(parsedOutput, context);
|
|
967
|
-
case "InvalidBlueGreenDeploymentConfigurationException":
|
|
968
|
-
case "com.amazonaws.codedeploy#InvalidBlueGreenDeploymentConfigurationException":
|
|
969
|
-
throw await de_InvalidBlueGreenDeploymentConfigurationExceptionRes(parsedOutput, context);
|
|
970
|
-
case "InvalidDeploymentConfigNameException":
|
|
971
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException":
|
|
972
|
-
throw await de_InvalidDeploymentConfigNameExceptionRes(parsedOutput, context);
|
|
973
|
-
case "InvalidDeploymentGroupNameException":
|
|
974
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException":
|
|
975
|
-
throw await de_InvalidDeploymentGroupNameExceptionRes(parsedOutput, context);
|
|
976
|
-
case "InvalidDeploymentStyleException":
|
|
977
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentStyleException":
|
|
978
|
-
throw await de_InvalidDeploymentStyleExceptionRes(parsedOutput, context);
|
|
979
|
-
case "InvalidEC2TagCombinationException":
|
|
980
|
-
case "com.amazonaws.codedeploy#InvalidEC2TagCombinationException":
|
|
981
|
-
throw await de_InvalidEC2TagCombinationExceptionRes(parsedOutput, context);
|
|
982
|
-
case "InvalidEC2TagException":
|
|
983
|
-
case "com.amazonaws.codedeploy#InvalidEC2TagException":
|
|
984
|
-
throw await de_InvalidEC2TagExceptionRes(parsedOutput, context);
|
|
985
|
-
case "InvalidECSServiceException":
|
|
986
|
-
case "com.amazonaws.codedeploy#InvalidECSServiceException":
|
|
987
|
-
throw await de_InvalidECSServiceExceptionRes(parsedOutput, context);
|
|
988
|
-
case "InvalidInputException":
|
|
989
|
-
case "com.amazonaws.codedeploy#InvalidInputException":
|
|
990
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
991
|
-
case "InvalidLoadBalancerInfoException":
|
|
992
|
-
case "com.amazonaws.codedeploy#InvalidLoadBalancerInfoException":
|
|
993
|
-
throw await de_InvalidLoadBalancerInfoExceptionRes(parsedOutput, context);
|
|
994
|
-
case "InvalidOnPremisesTagCombinationException":
|
|
995
|
-
case "com.amazonaws.codedeploy#InvalidOnPremisesTagCombinationException":
|
|
996
|
-
throw await de_InvalidOnPremisesTagCombinationExceptionRes(parsedOutput, context);
|
|
997
|
-
case "InvalidRoleException":
|
|
998
|
-
case "com.amazonaws.codedeploy#InvalidRoleException":
|
|
999
|
-
throw await de_InvalidRoleExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "InvalidTagException":
|
|
1001
|
-
case "com.amazonaws.codedeploy#InvalidTagException":
|
|
1002
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "InvalidTagsToAddException":
|
|
1004
|
-
case "com.amazonaws.codedeploy#InvalidTagsToAddException":
|
|
1005
|
-
throw await de_InvalidTagsToAddExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "InvalidTargetGroupPairException":
|
|
1007
|
-
case "com.amazonaws.codedeploy#InvalidTargetGroupPairException":
|
|
1008
|
-
throw await de_InvalidTargetGroupPairExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "InvalidTrafficRoutingConfigurationException":
|
|
1010
|
-
case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException":
|
|
1011
|
-
throw await de_InvalidTrafficRoutingConfigurationExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "InvalidTriggerConfigException":
|
|
1013
|
-
case "com.amazonaws.codedeploy#InvalidTriggerConfigException":
|
|
1014
|
-
throw await de_InvalidTriggerConfigExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "LifecycleHookLimitExceededException":
|
|
1016
|
-
case "com.amazonaws.codedeploy#LifecycleHookLimitExceededException":
|
|
1017
|
-
throw await de_LifecycleHookLimitExceededExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "RoleRequiredException":
|
|
1019
|
-
case "com.amazonaws.codedeploy#RoleRequiredException":
|
|
1020
|
-
throw await de_RoleRequiredExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "TagSetListLimitExceededException":
|
|
1022
|
-
case "com.amazonaws.codedeploy#TagSetListLimitExceededException":
|
|
1023
|
-
throw await de_TagSetListLimitExceededExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "ThrottlingException":
|
|
1025
|
-
case "com.amazonaws.codedeploy#ThrottlingException":
|
|
1026
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "TriggerTargetsLimitExceededException":
|
|
1028
|
-
case "com.amazonaws.codedeploy#TriggerTargetsLimitExceededException":
|
|
1029
|
-
throw await de_TriggerTargetsLimitExceededExceptionRes(parsedOutput, context);
|
|
1030
|
-
default:
|
|
1031
|
-
const parsedBody = parsedOutput.body;
|
|
1032
|
-
return throwDefaultError({
|
|
1033
|
-
output,
|
|
1034
|
-
parsedBody,
|
|
1035
|
-
errorCode,
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
|
-
};
|
|
1039
|
-
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
1040
|
-
if (output.statusCode >= 300) {
|
|
1041
|
-
return de_DeleteApplicationCommandError(output, context);
|
|
1042
|
-
}
|
|
1043
|
-
await collectBody(output.body, context);
|
|
1044
|
-
const response = {
|
|
1045
|
-
$metadata: deserializeMetadata(output),
|
|
1046
|
-
};
|
|
1047
|
-
return response;
|
|
1048
|
-
};
|
|
1049
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
1050
|
-
const parsedOutput = {
|
|
1051
|
-
...output,
|
|
1052
|
-
body: await parseErrorBody(output.body, context),
|
|
1053
|
-
};
|
|
1054
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
|
-
switch (errorCode) {
|
|
1056
|
-
case "ApplicationNameRequiredException":
|
|
1057
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
1058
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "InvalidApplicationNameException":
|
|
1060
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
1061
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "InvalidRoleException":
|
|
1063
|
-
case "com.amazonaws.codedeploy#InvalidRoleException":
|
|
1064
|
-
throw await de_InvalidRoleExceptionRes(parsedOutput, context);
|
|
1065
|
-
default:
|
|
1066
|
-
const parsedBody = parsedOutput.body;
|
|
1067
|
-
return throwDefaultError({
|
|
1068
|
-
output,
|
|
1069
|
-
parsedBody,
|
|
1070
|
-
errorCode,
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
};
|
|
1074
|
-
export const de_DeleteDeploymentConfigCommand = async (output, context) => {
|
|
509
|
+
export const de_DeregisterOnPremisesInstanceCommand = async (output, context) => {
|
|
1075
510
|
if (output.statusCode >= 300) {
|
|
1076
|
-
return
|
|
511
|
+
return de_CommandError(output, context);
|
|
1077
512
|
}
|
|
1078
513
|
await collectBody(output.body, context);
|
|
1079
514
|
const response = {
|
|
@@ -1081,761 +516,113 @@ export const de_DeleteDeploymentConfigCommand = async (output, context) => {
|
|
|
1081
516
|
};
|
|
1082
517
|
return response;
|
|
1083
518
|
};
|
|
1084
|
-
const
|
|
1085
|
-
const parsedOutput = {
|
|
1086
|
-
...output,
|
|
1087
|
-
body: await parseErrorBody(output.body, context),
|
|
1088
|
-
};
|
|
1089
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1090
|
-
switch (errorCode) {
|
|
1091
|
-
case "DeploymentConfigInUseException":
|
|
1092
|
-
case "com.amazonaws.codedeploy#DeploymentConfigInUseException":
|
|
1093
|
-
throw await de_DeploymentConfigInUseExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "DeploymentConfigNameRequiredException":
|
|
1095
|
-
case "com.amazonaws.codedeploy#DeploymentConfigNameRequiredException":
|
|
1096
|
-
throw await de_DeploymentConfigNameRequiredExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "InvalidDeploymentConfigNameException":
|
|
1098
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException":
|
|
1099
|
-
throw await de_InvalidDeploymentConfigNameExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "InvalidOperationException":
|
|
1101
|
-
case "com.amazonaws.codedeploy#InvalidOperationException":
|
|
1102
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1103
|
-
default:
|
|
1104
|
-
const parsedBody = parsedOutput.body;
|
|
1105
|
-
return throwDefaultError({
|
|
1106
|
-
output,
|
|
1107
|
-
parsedBody,
|
|
1108
|
-
errorCode,
|
|
1109
|
-
});
|
|
1110
|
-
}
|
|
1111
|
-
};
|
|
1112
|
-
export const de_DeleteDeploymentGroupCommand = async (output, context) => {
|
|
1113
|
-
if (output.statusCode >= 300) {
|
|
1114
|
-
return de_DeleteDeploymentGroupCommandError(output, context);
|
|
1115
|
-
}
|
|
1116
|
-
const data = await parseBody(output.body, context);
|
|
1117
|
-
let contents = {};
|
|
1118
|
-
contents = _json(data);
|
|
1119
|
-
const response = {
|
|
1120
|
-
$metadata: deserializeMetadata(output),
|
|
1121
|
-
...contents,
|
|
1122
|
-
};
|
|
1123
|
-
return response;
|
|
1124
|
-
};
|
|
1125
|
-
const de_DeleteDeploymentGroupCommandError = async (output, context) => {
|
|
1126
|
-
const parsedOutput = {
|
|
1127
|
-
...output,
|
|
1128
|
-
body: await parseErrorBody(output.body, context),
|
|
1129
|
-
};
|
|
1130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
-
switch (errorCode) {
|
|
1132
|
-
case "ApplicationNameRequiredException":
|
|
1133
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
1134
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "DeploymentGroupNameRequiredException":
|
|
1136
|
-
case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException":
|
|
1137
|
-
throw await de_DeploymentGroupNameRequiredExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "InvalidApplicationNameException":
|
|
1139
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
1140
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "InvalidDeploymentGroupNameException":
|
|
1142
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException":
|
|
1143
|
-
throw await de_InvalidDeploymentGroupNameExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "InvalidRoleException":
|
|
1145
|
-
case "com.amazonaws.codedeploy#InvalidRoleException":
|
|
1146
|
-
throw await de_InvalidRoleExceptionRes(parsedOutput, context);
|
|
1147
|
-
default:
|
|
1148
|
-
const parsedBody = parsedOutput.body;
|
|
1149
|
-
return throwDefaultError({
|
|
1150
|
-
output,
|
|
1151
|
-
parsedBody,
|
|
1152
|
-
errorCode,
|
|
1153
|
-
});
|
|
1154
|
-
}
|
|
1155
|
-
};
|
|
1156
|
-
export const de_DeleteGitHubAccountTokenCommand = async (output, context) => {
|
|
519
|
+
export const de_GetApplicationCommand = async (output, context) => {
|
|
1157
520
|
if (output.statusCode >= 300) {
|
|
1158
|
-
return
|
|
521
|
+
return de_CommandError(output, context);
|
|
1159
522
|
}
|
|
1160
523
|
const data = await parseBody(output.body, context);
|
|
1161
524
|
let contents = {};
|
|
1162
|
-
contents =
|
|
525
|
+
contents = de_GetApplicationOutput(data, context);
|
|
1163
526
|
const response = {
|
|
1164
|
-
$metadata: deserializeMetadata(output),
|
|
1165
|
-
...contents,
|
|
1166
|
-
};
|
|
1167
|
-
return response;
|
|
1168
|
-
};
|
|
1169
|
-
const de_DeleteGitHubAccountTokenCommandError = async (output, context) => {
|
|
1170
|
-
const parsedOutput = {
|
|
1171
|
-
...output,
|
|
1172
|
-
body: await parseErrorBody(output.body, context),
|
|
1173
|
-
};
|
|
1174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
|
-
switch (errorCode) {
|
|
1176
|
-
case "GitHubAccountTokenDoesNotExistException":
|
|
1177
|
-
case "com.amazonaws.codedeploy#GitHubAccountTokenDoesNotExistException":
|
|
1178
|
-
throw await de_GitHubAccountTokenDoesNotExistExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "GitHubAccountTokenNameRequiredException":
|
|
1180
|
-
case "com.amazonaws.codedeploy#GitHubAccountTokenNameRequiredException":
|
|
1181
|
-
throw await de_GitHubAccountTokenNameRequiredExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "InvalidGitHubAccountTokenNameException":
|
|
1183
|
-
case "com.amazonaws.codedeploy#InvalidGitHubAccountTokenNameException":
|
|
1184
|
-
throw await de_InvalidGitHubAccountTokenNameExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "OperationNotSupportedException":
|
|
1186
|
-
case "com.amazonaws.codedeploy#OperationNotSupportedException":
|
|
1187
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ResourceValidationException":
|
|
1189
|
-
case "com.amazonaws.codedeploy#ResourceValidationException":
|
|
1190
|
-
throw await de_ResourceValidationExceptionRes(parsedOutput, context);
|
|
1191
|
-
default:
|
|
1192
|
-
const parsedBody = parsedOutput.body;
|
|
1193
|
-
return throwDefaultError({
|
|
1194
|
-
output,
|
|
1195
|
-
parsedBody,
|
|
1196
|
-
errorCode,
|
|
1197
|
-
});
|
|
1198
|
-
}
|
|
1199
|
-
};
|
|
1200
|
-
export const de_DeleteResourcesByExternalIdCommand = async (output, context) => {
|
|
1201
|
-
if (output.statusCode >= 300) {
|
|
1202
|
-
return de_DeleteResourcesByExternalIdCommandError(output, context);
|
|
1203
|
-
}
|
|
1204
|
-
const data = await parseBody(output.body, context);
|
|
1205
|
-
let contents = {};
|
|
1206
|
-
contents = _json(data);
|
|
1207
|
-
const response = {
|
|
1208
|
-
$metadata: deserializeMetadata(output),
|
|
1209
|
-
...contents,
|
|
1210
|
-
};
|
|
1211
|
-
return response;
|
|
1212
|
-
};
|
|
1213
|
-
const de_DeleteResourcesByExternalIdCommandError = async (output, context) => {
|
|
1214
|
-
const parsedOutput = {
|
|
1215
|
-
...output,
|
|
1216
|
-
body: await parseErrorBody(output.body, context),
|
|
1217
|
-
};
|
|
1218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
|
-
const parsedBody = parsedOutput.body;
|
|
1220
|
-
return throwDefaultError({
|
|
1221
|
-
output,
|
|
1222
|
-
parsedBody,
|
|
1223
|
-
errorCode,
|
|
1224
|
-
});
|
|
1225
|
-
};
|
|
1226
|
-
export const de_DeregisterOnPremisesInstanceCommand = async (output, context) => {
|
|
1227
|
-
if (output.statusCode >= 300) {
|
|
1228
|
-
return de_DeregisterOnPremisesInstanceCommandError(output, context);
|
|
1229
|
-
}
|
|
1230
|
-
await collectBody(output.body, context);
|
|
1231
|
-
const response = {
|
|
1232
|
-
$metadata: deserializeMetadata(output),
|
|
1233
|
-
};
|
|
1234
|
-
return response;
|
|
1235
|
-
};
|
|
1236
|
-
const de_DeregisterOnPremisesInstanceCommandError = async (output, context) => {
|
|
1237
|
-
const parsedOutput = {
|
|
1238
|
-
...output,
|
|
1239
|
-
body: await parseErrorBody(output.body, context),
|
|
1240
|
-
};
|
|
1241
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
|
-
switch (errorCode) {
|
|
1243
|
-
case "InstanceNameRequiredException":
|
|
1244
|
-
case "com.amazonaws.codedeploy#InstanceNameRequiredException":
|
|
1245
|
-
throw await de_InstanceNameRequiredExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "InvalidInstanceNameException":
|
|
1247
|
-
case "com.amazonaws.codedeploy#InvalidInstanceNameException":
|
|
1248
|
-
throw await de_InvalidInstanceNameExceptionRes(parsedOutput, context);
|
|
1249
|
-
default:
|
|
1250
|
-
const parsedBody = parsedOutput.body;
|
|
1251
|
-
return throwDefaultError({
|
|
1252
|
-
output,
|
|
1253
|
-
parsedBody,
|
|
1254
|
-
errorCode,
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
};
|
|
1258
|
-
export const de_GetApplicationCommand = async (output, context) => {
|
|
1259
|
-
if (output.statusCode >= 300) {
|
|
1260
|
-
return de_GetApplicationCommandError(output, context);
|
|
1261
|
-
}
|
|
1262
|
-
const data = await parseBody(output.body, context);
|
|
1263
|
-
let contents = {};
|
|
1264
|
-
contents = de_GetApplicationOutput(data, context);
|
|
1265
|
-
const response = {
|
|
1266
|
-
$metadata: deserializeMetadata(output),
|
|
1267
|
-
...contents,
|
|
1268
|
-
};
|
|
1269
|
-
return response;
|
|
1270
|
-
};
|
|
1271
|
-
const de_GetApplicationCommandError = async (output, context) => {
|
|
1272
|
-
const parsedOutput = {
|
|
1273
|
-
...output,
|
|
1274
|
-
body: await parseErrorBody(output.body, context),
|
|
1275
|
-
};
|
|
1276
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
|
-
switch (errorCode) {
|
|
1278
|
-
case "ApplicationDoesNotExistException":
|
|
1279
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
1280
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "ApplicationNameRequiredException":
|
|
1282
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
1283
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "InvalidApplicationNameException":
|
|
1285
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
1286
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
1287
|
-
default:
|
|
1288
|
-
const parsedBody = parsedOutput.body;
|
|
1289
|
-
return throwDefaultError({
|
|
1290
|
-
output,
|
|
1291
|
-
parsedBody,
|
|
1292
|
-
errorCode,
|
|
1293
|
-
});
|
|
1294
|
-
}
|
|
1295
|
-
};
|
|
1296
|
-
export const de_GetApplicationRevisionCommand = async (output, context) => {
|
|
1297
|
-
if (output.statusCode >= 300) {
|
|
1298
|
-
return de_GetApplicationRevisionCommandError(output, context);
|
|
1299
|
-
}
|
|
1300
|
-
const data = await parseBody(output.body, context);
|
|
1301
|
-
let contents = {};
|
|
1302
|
-
contents = de_GetApplicationRevisionOutput(data, context);
|
|
1303
|
-
const response = {
|
|
1304
|
-
$metadata: deserializeMetadata(output),
|
|
1305
|
-
...contents,
|
|
1306
|
-
};
|
|
1307
|
-
return response;
|
|
1308
|
-
};
|
|
1309
|
-
const de_GetApplicationRevisionCommandError = async (output, context) => {
|
|
1310
|
-
const parsedOutput = {
|
|
1311
|
-
...output,
|
|
1312
|
-
body: await parseErrorBody(output.body, context),
|
|
1313
|
-
};
|
|
1314
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1315
|
-
switch (errorCode) {
|
|
1316
|
-
case "ApplicationDoesNotExistException":
|
|
1317
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
1318
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "ApplicationNameRequiredException":
|
|
1320
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
1321
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "InvalidApplicationNameException":
|
|
1323
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
1324
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "InvalidRevisionException":
|
|
1326
|
-
case "com.amazonaws.codedeploy#InvalidRevisionException":
|
|
1327
|
-
throw await de_InvalidRevisionExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "RevisionDoesNotExistException":
|
|
1329
|
-
case "com.amazonaws.codedeploy#RevisionDoesNotExistException":
|
|
1330
|
-
throw await de_RevisionDoesNotExistExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "RevisionRequiredException":
|
|
1332
|
-
case "com.amazonaws.codedeploy#RevisionRequiredException":
|
|
1333
|
-
throw await de_RevisionRequiredExceptionRes(parsedOutput, context);
|
|
1334
|
-
default:
|
|
1335
|
-
const parsedBody = parsedOutput.body;
|
|
1336
|
-
return throwDefaultError({
|
|
1337
|
-
output,
|
|
1338
|
-
parsedBody,
|
|
1339
|
-
errorCode,
|
|
1340
|
-
});
|
|
1341
|
-
}
|
|
1342
|
-
};
|
|
1343
|
-
export const de_GetDeploymentCommand = async (output, context) => {
|
|
1344
|
-
if (output.statusCode >= 300) {
|
|
1345
|
-
return de_GetDeploymentCommandError(output, context);
|
|
1346
|
-
}
|
|
1347
|
-
const data = await parseBody(output.body, context);
|
|
1348
|
-
let contents = {};
|
|
1349
|
-
contents = de_GetDeploymentOutput(data, context);
|
|
1350
|
-
const response = {
|
|
1351
|
-
$metadata: deserializeMetadata(output),
|
|
1352
|
-
...contents,
|
|
1353
|
-
};
|
|
1354
|
-
return response;
|
|
1355
|
-
};
|
|
1356
|
-
const de_GetDeploymentCommandError = async (output, context) => {
|
|
1357
|
-
const parsedOutput = {
|
|
1358
|
-
...output,
|
|
1359
|
-
body: await parseErrorBody(output.body, context),
|
|
1360
|
-
};
|
|
1361
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1362
|
-
switch (errorCode) {
|
|
1363
|
-
case "DeploymentDoesNotExistException":
|
|
1364
|
-
case "com.amazonaws.codedeploy#DeploymentDoesNotExistException":
|
|
1365
|
-
throw await de_DeploymentDoesNotExistExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "DeploymentIdRequiredException":
|
|
1367
|
-
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
1368
|
-
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "InvalidDeploymentIdException":
|
|
1370
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
1371
|
-
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
1372
|
-
default:
|
|
1373
|
-
const parsedBody = parsedOutput.body;
|
|
1374
|
-
return throwDefaultError({
|
|
1375
|
-
output,
|
|
1376
|
-
parsedBody,
|
|
1377
|
-
errorCode,
|
|
1378
|
-
});
|
|
1379
|
-
}
|
|
1380
|
-
};
|
|
1381
|
-
export const de_GetDeploymentConfigCommand = async (output, context) => {
|
|
1382
|
-
if (output.statusCode >= 300) {
|
|
1383
|
-
return de_GetDeploymentConfigCommandError(output, context);
|
|
1384
|
-
}
|
|
1385
|
-
const data = await parseBody(output.body, context);
|
|
1386
|
-
let contents = {};
|
|
1387
|
-
contents = de_GetDeploymentConfigOutput(data, context);
|
|
1388
|
-
const response = {
|
|
1389
|
-
$metadata: deserializeMetadata(output),
|
|
1390
|
-
...contents,
|
|
1391
|
-
};
|
|
1392
|
-
return response;
|
|
1393
|
-
};
|
|
1394
|
-
const de_GetDeploymentConfigCommandError = async (output, context) => {
|
|
1395
|
-
const parsedOutput = {
|
|
1396
|
-
...output,
|
|
1397
|
-
body: await parseErrorBody(output.body, context),
|
|
1398
|
-
};
|
|
1399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1400
|
-
switch (errorCode) {
|
|
1401
|
-
case "DeploymentConfigDoesNotExistException":
|
|
1402
|
-
case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException":
|
|
1403
|
-
throw await de_DeploymentConfigDoesNotExistExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "DeploymentConfigNameRequiredException":
|
|
1405
|
-
case "com.amazonaws.codedeploy#DeploymentConfigNameRequiredException":
|
|
1406
|
-
throw await de_DeploymentConfigNameRequiredExceptionRes(parsedOutput, context);
|
|
1407
|
-
case "InvalidComputePlatformException":
|
|
1408
|
-
case "com.amazonaws.codedeploy#InvalidComputePlatformException":
|
|
1409
|
-
throw await de_InvalidComputePlatformExceptionRes(parsedOutput, context);
|
|
1410
|
-
case "InvalidDeploymentConfigNameException":
|
|
1411
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException":
|
|
1412
|
-
throw await de_InvalidDeploymentConfigNameExceptionRes(parsedOutput, context);
|
|
1413
|
-
default:
|
|
1414
|
-
const parsedBody = parsedOutput.body;
|
|
1415
|
-
return throwDefaultError({
|
|
1416
|
-
output,
|
|
1417
|
-
parsedBody,
|
|
1418
|
-
errorCode,
|
|
1419
|
-
});
|
|
1420
|
-
}
|
|
1421
|
-
};
|
|
1422
|
-
export const de_GetDeploymentGroupCommand = async (output, context) => {
|
|
1423
|
-
if (output.statusCode >= 300) {
|
|
1424
|
-
return de_GetDeploymentGroupCommandError(output, context);
|
|
1425
|
-
}
|
|
1426
|
-
const data = await parseBody(output.body, context);
|
|
1427
|
-
let contents = {};
|
|
1428
|
-
contents = de_GetDeploymentGroupOutput(data, context);
|
|
1429
|
-
const response = {
|
|
1430
|
-
$metadata: deserializeMetadata(output),
|
|
1431
|
-
...contents,
|
|
1432
|
-
};
|
|
1433
|
-
return response;
|
|
1434
|
-
};
|
|
1435
|
-
const de_GetDeploymentGroupCommandError = async (output, context) => {
|
|
1436
|
-
const parsedOutput = {
|
|
1437
|
-
...output,
|
|
1438
|
-
body: await parseErrorBody(output.body, context),
|
|
1439
|
-
};
|
|
1440
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1441
|
-
switch (errorCode) {
|
|
1442
|
-
case "ApplicationDoesNotExistException":
|
|
1443
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
1444
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "ApplicationNameRequiredException":
|
|
1446
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
1447
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
1448
|
-
case "DeploymentConfigDoesNotExistException":
|
|
1449
|
-
case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException":
|
|
1450
|
-
throw await de_DeploymentConfigDoesNotExistExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "DeploymentGroupDoesNotExistException":
|
|
1452
|
-
case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException":
|
|
1453
|
-
throw await de_DeploymentGroupDoesNotExistExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "DeploymentGroupNameRequiredException":
|
|
1455
|
-
case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException":
|
|
1456
|
-
throw await de_DeploymentGroupNameRequiredExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "InvalidApplicationNameException":
|
|
1458
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
1459
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
1460
|
-
case "InvalidDeploymentGroupNameException":
|
|
1461
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException":
|
|
1462
|
-
throw await de_InvalidDeploymentGroupNameExceptionRes(parsedOutput, context);
|
|
1463
|
-
default:
|
|
1464
|
-
const parsedBody = parsedOutput.body;
|
|
1465
|
-
return throwDefaultError({
|
|
1466
|
-
output,
|
|
1467
|
-
parsedBody,
|
|
1468
|
-
errorCode,
|
|
1469
|
-
});
|
|
1470
|
-
}
|
|
1471
|
-
};
|
|
1472
|
-
export const de_GetDeploymentInstanceCommand = async (output, context) => {
|
|
1473
|
-
if (output.statusCode >= 300) {
|
|
1474
|
-
return de_GetDeploymentInstanceCommandError(output, context);
|
|
1475
|
-
}
|
|
1476
|
-
const data = await parseBody(output.body, context);
|
|
1477
|
-
let contents = {};
|
|
1478
|
-
contents = de_GetDeploymentInstanceOutput(data, context);
|
|
1479
|
-
const response = {
|
|
1480
|
-
$metadata: deserializeMetadata(output),
|
|
1481
|
-
...contents,
|
|
1482
|
-
};
|
|
1483
|
-
return response;
|
|
1484
|
-
};
|
|
1485
|
-
const de_GetDeploymentInstanceCommandError = async (output, context) => {
|
|
1486
|
-
const parsedOutput = {
|
|
1487
|
-
...output,
|
|
1488
|
-
body: await parseErrorBody(output.body, context),
|
|
1489
|
-
};
|
|
1490
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1491
|
-
switch (errorCode) {
|
|
1492
|
-
case "DeploymentDoesNotExistException":
|
|
1493
|
-
case "com.amazonaws.codedeploy#DeploymentDoesNotExistException":
|
|
1494
|
-
throw await de_DeploymentDoesNotExistExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "DeploymentIdRequiredException":
|
|
1496
|
-
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
1497
|
-
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "InstanceDoesNotExistException":
|
|
1499
|
-
case "com.amazonaws.codedeploy#InstanceDoesNotExistException":
|
|
1500
|
-
throw await de_InstanceDoesNotExistExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "InstanceIdRequiredException":
|
|
1502
|
-
case "com.amazonaws.codedeploy#InstanceIdRequiredException":
|
|
1503
|
-
throw await de_InstanceIdRequiredExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "InvalidComputePlatformException":
|
|
1505
|
-
case "com.amazonaws.codedeploy#InvalidComputePlatformException":
|
|
1506
|
-
throw await de_InvalidComputePlatformExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "InvalidDeploymentIdException":
|
|
1508
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
1509
|
-
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "InvalidInstanceNameException":
|
|
1511
|
-
case "com.amazonaws.codedeploy#InvalidInstanceNameException":
|
|
1512
|
-
throw await de_InvalidInstanceNameExceptionRes(parsedOutput, context);
|
|
1513
|
-
default:
|
|
1514
|
-
const parsedBody = parsedOutput.body;
|
|
1515
|
-
return throwDefaultError({
|
|
1516
|
-
output,
|
|
1517
|
-
parsedBody,
|
|
1518
|
-
errorCode,
|
|
1519
|
-
});
|
|
1520
|
-
}
|
|
1521
|
-
};
|
|
1522
|
-
export const de_GetDeploymentTargetCommand = async (output, context) => {
|
|
1523
|
-
if (output.statusCode >= 300) {
|
|
1524
|
-
return de_GetDeploymentTargetCommandError(output, context);
|
|
1525
|
-
}
|
|
1526
|
-
const data = await parseBody(output.body, context);
|
|
1527
|
-
let contents = {};
|
|
1528
|
-
contents = de_GetDeploymentTargetOutput(data, context);
|
|
1529
|
-
const response = {
|
|
1530
|
-
$metadata: deserializeMetadata(output),
|
|
1531
|
-
...contents,
|
|
1532
|
-
};
|
|
1533
|
-
return response;
|
|
1534
|
-
};
|
|
1535
|
-
const de_GetDeploymentTargetCommandError = async (output, context) => {
|
|
1536
|
-
const parsedOutput = {
|
|
1537
|
-
...output,
|
|
1538
|
-
body: await parseErrorBody(output.body, context),
|
|
1539
|
-
};
|
|
1540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
|
-
switch (errorCode) {
|
|
1542
|
-
case "DeploymentDoesNotExistException":
|
|
1543
|
-
case "com.amazonaws.codedeploy#DeploymentDoesNotExistException":
|
|
1544
|
-
throw await de_DeploymentDoesNotExistExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "DeploymentIdRequiredException":
|
|
1546
|
-
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
1547
|
-
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
1548
|
-
case "DeploymentNotStartedException":
|
|
1549
|
-
case "com.amazonaws.codedeploy#DeploymentNotStartedException":
|
|
1550
|
-
throw await de_DeploymentNotStartedExceptionRes(parsedOutput, context);
|
|
1551
|
-
case "DeploymentTargetDoesNotExistException":
|
|
1552
|
-
case "com.amazonaws.codedeploy#DeploymentTargetDoesNotExistException":
|
|
1553
|
-
throw await de_DeploymentTargetDoesNotExistExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "DeploymentTargetIdRequiredException":
|
|
1555
|
-
case "com.amazonaws.codedeploy#DeploymentTargetIdRequiredException":
|
|
1556
|
-
throw await de_DeploymentTargetIdRequiredExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "InvalidDeploymentIdException":
|
|
1558
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
1559
|
-
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "InvalidDeploymentTargetIdException":
|
|
1561
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentTargetIdException":
|
|
1562
|
-
throw await de_InvalidDeploymentTargetIdExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "InvalidInstanceNameException":
|
|
1564
|
-
case "com.amazonaws.codedeploy#InvalidInstanceNameException":
|
|
1565
|
-
throw await de_InvalidInstanceNameExceptionRes(parsedOutput, context);
|
|
1566
|
-
default:
|
|
1567
|
-
const parsedBody = parsedOutput.body;
|
|
1568
|
-
return throwDefaultError({
|
|
1569
|
-
output,
|
|
1570
|
-
parsedBody,
|
|
1571
|
-
errorCode,
|
|
1572
|
-
});
|
|
1573
|
-
}
|
|
1574
|
-
};
|
|
1575
|
-
export const de_GetOnPremisesInstanceCommand = async (output, context) => {
|
|
1576
|
-
if (output.statusCode >= 300) {
|
|
1577
|
-
return de_GetOnPremisesInstanceCommandError(output, context);
|
|
1578
|
-
}
|
|
1579
|
-
const data = await parseBody(output.body, context);
|
|
1580
|
-
let contents = {};
|
|
1581
|
-
contents = de_GetOnPremisesInstanceOutput(data, context);
|
|
1582
|
-
const response = {
|
|
1583
|
-
$metadata: deserializeMetadata(output),
|
|
1584
|
-
...contents,
|
|
1585
|
-
};
|
|
1586
|
-
return response;
|
|
1587
|
-
};
|
|
1588
|
-
const de_GetOnPremisesInstanceCommandError = async (output, context) => {
|
|
1589
|
-
const parsedOutput = {
|
|
1590
|
-
...output,
|
|
1591
|
-
body: await parseErrorBody(output.body, context),
|
|
1592
|
-
};
|
|
1593
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
|
-
switch (errorCode) {
|
|
1595
|
-
case "InstanceNameRequiredException":
|
|
1596
|
-
case "com.amazonaws.codedeploy#InstanceNameRequiredException":
|
|
1597
|
-
throw await de_InstanceNameRequiredExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "InstanceNotRegisteredException":
|
|
1599
|
-
case "com.amazonaws.codedeploy#InstanceNotRegisteredException":
|
|
1600
|
-
throw await de_InstanceNotRegisteredExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "InvalidInstanceNameException":
|
|
1602
|
-
case "com.amazonaws.codedeploy#InvalidInstanceNameException":
|
|
1603
|
-
throw await de_InvalidInstanceNameExceptionRes(parsedOutput, context);
|
|
1604
|
-
default:
|
|
1605
|
-
const parsedBody = parsedOutput.body;
|
|
1606
|
-
return throwDefaultError({
|
|
1607
|
-
output,
|
|
1608
|
-
parsedBody,
|
|
1609
|
-
errorCode,
|
|
1610
|
-
});
|
|
1611
|
-
}
|
|
1612
|
-
};
|
|
1613
|
-
export const de_ListApplicationRevisionsCommand = async (output, context) => {
|
|
1614
|
-
if (output.statusCode >= 300) {
|
|
1615
|
-
return de_ListApplicationRevisionsCommandError(output, context);
|
|
1616
|
-
}
|
|
1617
|
-
const data = await parseBody(output.body, context);
|
|
1618
|
-
let contents = {};
|
|
1619
|
-
contents = _json(data);
|
|
1620
|
-
const response = {
|
|
1621
|
-
$metadata: deserializeMetadata(output),
|
|
1622
|
-
...contents,
|
|
1623
|
-
};
|
|
1624
|
-
return response;
|
|
1625
|
-
};
|
|
1626
|
-
const de_ListApplicationRevisionsCommandError = async (output, context) => {
|
|
1627
|
-
const parsedOutput = {
|
|
1628
|
-
...output,
|
|
1629
|
-
body: await parseErrorBody(output.body, context),
|
|
1630
|
-
};
|
|
1631
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
|
-
switch (errorCode) {
|
|
1633
|
-
case "ApplicationDoesNotExistException":
|
|
1634
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
1635
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "ApplicationNameRequiredException":
|
|
1637
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
1638
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "BucketNameFilterRequiredException":
|
|
1640
|
-
case "com.amazonaws.codedeploy#BucketNameFilterRequiredException":
|
|
1641
|
-
throw await de_BucketNameFilterRequiredExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "InvalidApplicationNameException":
|
|
1643
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
1644
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "InvalidBucketNameFilterException":
|
|
1646
|
-
case "com.amazonaws.codedeploy#InvalidBucketNameFilterException":
|
|
1647
|
-
throw await de_InvalidBucketNameFilterExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "InvalidDeployedStateFilterException":
|
|
1649
|
-
case "com.amazonaws.codedeploy#InvalidDeployedStateFilterException":
|
|
1650
|
-
throw await de_InvalidDeployedStateFilterExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "InvalidKeyPrefixFilterException":
|
|
1652
|
-
case "com.amazonaws.codedeploy#InvalidKeyPrefixFilterException":
|
|
1653
|
-
throw await de_InvalidKeyPrefixFilterExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "InvalidNextTokenException":
|
|
1655
|
-
case "com.amazonaws.codedeploy#InvalidNextTokenException":
|
|
1656
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "InvalidSortByException":
|
|
1658
|
-
case "com.amazonaws.codedeploy#InvalidSortByException":
|
|
1659
|
-
throw await de_InvalidSortByExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "InvalidSortOrderException":
|
|
1661
|
-
case "com.amazonaws.codedeploy#InvalidSortOrderException":
|
|
1662
|
-
throw await de_InvalidSortOrderExceptionRes(parsedOutput, context);
|
|
1663
|
-
default:
|
|
1664
|
-
const parsedBody = parsedOutput.body;
|
|
1665
|
-
return throwDefaultError({
|
|
1666
|
-
output,
|
|
1667
|
-
parsedBody,
|
|
1668
|
-
errorCode,
|
|
1669
|
-
});
|
|
1670
|
-
}
|
|
527
|
+
$metadata: deserializeMetadata(output),
|
|
528
|
+
...contents,
|
|
529
|
+
};
|
|
530
|
+
return response;
|
|
1671
531
|
};
|
|
1672
|
-
export const
|
|
532
|
+
export const de_GetApplicationRevisionCommand = async (output, context) => {
|
|
1673
533
|
if (output.statusCode >= 300) {
|
|
1674
|
-
return
|
|
534
|
+
return de_CommandError(output, context);
|
|
1675
535
|
}
|
|
1676
536
|
const data = await parseBody(output.body, context);
|
|
1677
537
|
let contents = {};
|
|
1678
|
-
contents =
|
|
538
|
+
contents = de_GetApplicationRevisionOutput(data, context);
|
|
1679
539
|
const response = {
|
|
1680
540
|
$metadata: deserializeMetadata(output),
|
|
1681
541
|
...contents,
|
|
1682
542
|
};
|
|
1683
543
|
return response;
|
|
1684
544
|
};
|
|
1685
|
-
const
|
|
1686
|
-
const parsedOutput = {
|
|
1687
|
-
...output,
|
|
1688
|
-
body: await parseErrorBody(output.body, context),
|
|
1689
|
-
};
|
|
1690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1691
|
-
switch (errorCode) {
|
|
1692
|
-
case "InvalidNextTokenException":
|
|
1693
|
-
case "com.amazonaws.codedeploy#InvalidNextTokenException":
|
|
1694
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1695
|
-
default:
|
|
1696
|
-
const parsedBody = parsedOutput.body;
|
|
1697
|
-
return throwDefaultError({
|
|
1698
|
-
output,
|
|
1699
|
-
parsedBody,
|
|
1700
|
-
errorCode,
|
|
1701
|
-
});
|
|
1702
|
-
}
|
|
1703
|
-
};
|
|
1704
|
-
export const de_ListDeploymentConfigsCommand = async (output, context) => {
|
|
545
|
+
export const de_GetDeploymentCommand = async (output, context) => {
|
|
1705
546
|
if (output.statusCode >= 300) {
|
|
1706
|
-
return
|
|
547
|
+
return de_CommandError(output, context);
|
|
1707
548
|
}
|
|
1708
549
|
const data = await parseBody(output.body, context);
|
|
1709
550
|
let contents = {};
|
|
1710
|
-
contents =
|
|
551
|
+
contents = de_GetDeploymentOutput(data, context);
|
|
1711
552
|
const response = {
|
|
1712
553
|
$metadata: deserializeMetadata(output),
|
|
1713
554
|
...contents,
|
|
1714
555
|
};
|
|
1715
556
|
return response;
|
|
1716
557
|
};
|
|
1717
|
-
const
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
body: await parseErrorBody(output.body, context),
|
|
1721
|
-
};
|
|
1722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
|
-
switch (errorCode) {
|
|
1724
|
-
case "InvalidNextTokenException":
|
|
1725
|
-
case "com.amazonaws.codedeploy#InvalidNextTokenException":
|
|
1726
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1727
|
-
default:
|
|
1728
|
-
const parsedBody = parsedOutput.body;
|
|
1729
|
-
return throwDefaultError({
|
|
1730
|
-
output,
|
|
1731
|
-
parsedBody,
|
|
1732
|
-
errorCode,
|
|
1733
|
-
});
|
|
558
|
+
export const de_GetDeploymentConfigCommand = async (output, context) => {
|
|
559
|
+
if (output.statusCode >= 300) {
|
|
560
|
+
return de_CommandError(output, context);
|
|
1734
561
|
}
|
|
562
|
+
const data = await parseBody(output.body, context);
|
|
563
|
+
let contents = {};
|
|
564
|
+
contents = de_GetDeploymentConfigOutput(data, context);
|
|
565
|
+
const response = {
|
|
566
|
+
$metadata: deserializeMetadata(output),
|
|
567
|
+
...contents,
|
|
568
|
+
};
|
|
569
|
+
return response;
|
|
1735
570
|
};
|
|
1736
|
-
export const
|
|
571
|
+
export const de_GetDeploymentGroupCommand = async (output, context) => {
|
|
1737
572
|
if (output.statusCode >= 300) {
|
|
1738
|
-
return
|
|
573
|
+
return de_CommandError(output, context);
|
|
1739
574
|
}
|
|
1740
575
|
const data = await parseBody(output.body, context);
|
|
1741
576
|
let contents = {};
|
|
1742
|
-
contents =
|
|
577
|
+
contents = de_GetDeploymentGroupOutput(data, context);
|
|
1743
578
|
const response = {
|
|
1744
579
|
$metadata: deserializeMetadata(output),
|
|
1745
580
|
...contents,
|
|
1746
581
|
};
|
|
1747
582
|
return response;
|
|
1748
583
|
};
|
|
1749
|
-
const
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
body: await parseErrorBody(output.body, context),
|
|
1753
|
-
};
|
|
1754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1755
|
-
switch (errorCode) {
|
|
1756
|
-
case "ApplicationDoesNotExistException":
|
|
1757
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
1758
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "ApplicationNameRequiredException":
|
|
1760
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
1761
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
1762
|
-
case "InvalidApplicationNameException":
|
|
1763
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
1764
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "InvalidNextTokenException":
|
|
1766
|
-
case "com.amazonaws.codedeploy#InvalidNextTokenException":
|
|
1767
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1768
|
-
default:
|
|
1769
|
-
const parsedBody = parsedOutput.body;
|
|
1770
|
-
return throwDefaultError({
|
|
1771
|
-
output,
|
|
1772
|
-
parsedBody,
|
|
1773
|
-
errorCode,
|
|
1774
|
-
});
|
|
584
|
+
export const de_GetDeploymentInstanceCommand = async (output, context) => {
|
|
585
|
+
if (output.statusCode >= 300) {
|
|
586
|
+
return de_CommandError(output, context);
|
|
1775
587
|
}
|
|
588
|
+
const data = await parseBody(output.body, context);
|
|
589
|
+
let contents = {};
|
|
590
|
+
contents = de_GetDeploymentInstanceOutput(data, context);
|
|
591
|
+
const response = {
|
|
592
|
+
$metadata: deserializeMetadata(output),
|
|
593
|
+
...contents,
|
|
594
|
+
};
|
|
595
|
+
return response;
|
|
1776
596
|
};
|
|
1777
|
-
export const
|
|
597
|
+
export const de_GetDeploymentTargetCommand = async (output, context) => {
|
|
1778
598
|
if (output.statusCode >= 300) {
|
|
1779
|
-
return
|
|
599
|
+
return de_CommandError(output, context);
|
|
1780
600
|
}
|
|
1781
601
|
const data = await parseBody(output.body, context);
|
|
1782
602
|
let contents = {};
|
|
1783
|
-
contents =
|
|
603
|
+
contents = de_GetDeploymentTargetOutput(data, context);
|
|
1784
604
|
const response = {
|
|
1785
605
|
$metadata: deserializeMetadata(output),
|
|
1786
606
|
...contents,
|
|
1787
607
|
};
|
|
1788
608
|
return response;
|
|
1789
609
|
};
|
|
1790
|
-
const
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
body: await parseErrorBody(output.body, context),
|
|
1794
|
-
};
|
|
1795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1796
|
-
switch (errorCode) {
|
|
1797
|
-
case "DeploymentDoesNotExistException":
|
|
1798
|
-
case "com.amazonaws.codedeploy#DeploymentDoesNotExistException":
|
|
1799
|
-
throw await de_DeploymentDoesNotExistExceptionRes(parsedOutput, context);
|
|
1800
|
-
case "DeploymentIdRequiredException":
|
|
1801
|
-
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
1802
|
-
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
1803
|
-
case "DeploymentNotStartedException":
|
|
1804
|
-
case "com.amazonaws.codedeploy#DeploymentNotStartedException":
|
|
1805
|
-
throw await de_DeploymentNotStartedExceptionRes(parsedOutput, context);
|
|
1806
|
-
case "InvalidComputePlatformException":
|
|
1807
|
-
case "com.amazonaws.codedeploy#InvalidComputePlatformException":
|
|
1808
|
-
throw await de_InvalidComputePlatformExceptionRes(parsedOutput, context);
|
|
1809
|
-
case "InvalidDeploymentIdException":
|
|
1810
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
1811
|
-
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
1812
|
-
case "InvalidDeploymentInstanceTypeException":
|
|
1813
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentInstanceTypeException":
|
|
1814
|
-
throw await de_InvalidDeploymentInstanceTypeExceptionRes(parsedOutput, context);
|
|
1815
|
-
case "InvalidInstanceStatusException":
|
|
1816
|
-
case "com.amazonaws.codedeploy#InvalidInstanceStatusException":
|
|
1817
|
-
throw await de_InvalidInstanceStatusExceptionRes(parsedOutput, context);
|
|
1818
|
-
case "InvalidInstanceTypeException":
|
|
1819
|
-
case "com.amazonaws.codedeploy#InvalidInstanceTypeException":
|
|
1820
|
-
throw await de_InvalidInstanceTypeExceptionRes(parsedOutput, context);
|
|
1821
|
-
case "InvalidNextTokenException":
|
|
1822
|
-
case "com.amazonaws.codedeploy#InvalidNextTokenException":
|
|
1823
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1824
|
-
case "InvalidTargetFilterNameException":
|
|
1825
|
-
case "com.amazonaws.codedeploy#InvalidTargetFilterNameException":
|
|
1826
|
-
throw await de_InvalidTargetFilterNameExceptionRes(parsedOutput, context);
|
|
1827
|
-
default:
|
|
1828
|
-
const parsedBody = parsedOutput.body;
|
|
1829
|
-
return throwDefaultError({
|
|
1830
|
-
output,
|
|
1831
|
-
parsedBody,
|
|
1832
|
-
errorCode,
|
|
1833
|
-
});
|
|
610
|
+
export const de_GetOnPremisesInstanceCommand = async (output, context) => {
|
|
611
|
+
if (output.statusCode >= 300) {
|
|
612
|
+
return de_CommandError(output, context);
|
|
1834
613
|
}
|
|
614
|
+
const data = await parseBody(output.body, context);
|
|
615
|
+
let contents = {};
|
|
616
|
+
contents = de_GetOnPremisesInstanceOutput(data, context);
|
|
617
|
+
const response = {
|
|
618
|
+
$metadata: deserializeMetadata(output),
|
|
619
|
+
...contents,
|
|
620
|
+
};
|
|
621
|
+
return response;
|
|
1835
622
|
};
|
|
1836
|
-
export const
|
|
623
|
+
export const de_ListApplicationRevisionsCommand = async (output, context) => {
|
|
1837
624
|
if (output.statusCode >= 300) {
|
|
1838
|
-
return
|
|
625
|
+
return de_CommandError(output, context);
|
|
1839
626
|
}
|
|
1840
627
|
const data = await parseBody(output.body, context);
|
|
1841
628
|
let contents = {};
|
|
@@ -1846,58 +633,9 @@ export const de_ListDeploymentsCommand = async (output, context) => {
|
|
|
1846
633
|
};
|
|
1847
634
|
return response;
|
|
1848
635
|
};
|
|
1849
|
-
const
|
|
1850
|
-
const parsedOutput = {
|
|
1851
|
-
...output,
|
|
1852
|
-
body: await parseErrorBody(output.body, context),
|
|
1853
|
-
};
|
|
1854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1855
|
-
switch (errorCode) {
|
|
1856
|
-
case "ApplicationDoesNotExistException":
|
|
1857
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
1858
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
1859
|
-
case "ApplicationNameRequiredException":
|
|
1860
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
1861
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
1862
|
-
case "DeploymentGroupDoesNotExistException":
|
|
1863
|
-
case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException":
|
|
1864
|
-
throw await de_DeploymentGroupDoesNotExistExceptionRes(parsedOutput, context);
|
|
1865
|
-
case "DeploymentGroupNameRequiredException":
|
|
1866
|
-
case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException":
|
|
1867
|
-
throw await de_DeploymentGroupNameRequiredExceptionRes(parsedOutput, context);
|
|
1868
|
-
case "InvalidApplicationNameException":
|
|
1869
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
1870
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "InvalidDeploymentGroupNameException":
|
|
1872
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException":
|
|
1873
|
-
throw await de_InvalidDeploymentGroupNameExceptionRes(parsedOutput, context);
|
|
1874
|
-
case "InvalidDeploymentStatusException":
|
|
1875
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentStatusException":
|
|
1876
|
-
throw await de_InvalidDeploymentStatusExceptionRes(parsedOutput, context);
|
|
1877
|
-
case "InvalidExternalIdException":
|
|
1878
|
-
case "com.amazonaws.codedeploy#InvalidExternalIdException":
|
|
1879
|
-
throw await de_InvalidExternalIdExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "InvalidInputException":
|
|
1881
|
-
case "com.amazonaws.codedeploy#InvalidInputException":
|
|
1882
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1883
|
-
case "InvalidNextTokenException":
|
|
1884
|
-
case "com.amazonaws.codedeploy#InvalidNextTokenException":
|
|
1885
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1886
|
-
case "InvalidTimeRangeException":
|
|
1887
|
-
case "com.amazonaws.codedeploy#InvalidTimeRangeException":
|
|
1888
|
-
throw await de_InvalidTimeRangeExceptionRes(parsedOutput, context);
|
|
1889
|
-
default:
|
|
1890
|
-
const parsedBody = parsedOutput.body;
|
|
1891
|
-
return throwDefaultError({
|
|
1892
|
-
output,
|
|
1893
|
-
parsedBody,
|
|
1894
|
-
errorCode,
|
|
1895
|
-
});
|
|
1896
|
-
}
|
|
1897
|
-
};
|
|
1898
|
-
export const de_ListDeploymentTargetsCommand = async (output, context) => {
|
|
636
|
+
export const de_ListApplicationsCommand = async (output, context) => {
|
|
1899
637
|
if (output.statusCode >= 300) {
|
|
1900
|
-
return
|
|
638
|
+
return de_CommandError(output, context);
|
|
1901
639
|
}
|
|
1902
640
|
const data = await parseBody(output.body, context);
|
|
1903
641
|
let contents = {};
|
|
@@ -1908,52 +646,22 @@ export const de_ListDeploymentTargetsCommand = async (output, context) => {
|
|
|
1908
646
|
};
|
|
1909
647
|
return response;
|
|
1910
648
|
};
|
|
1911
|
-
const
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
body: await parseErrorBody(output.body, context),
|
|
1915
|
-
};
|
|
1916
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1917
|
-
switch (errorCode) {
|
|
1918
|
-
case "DeploymentDoesNotExistException":
|
|
1919
|
-
case "com.amazonaws.codedeploy#DeploymentDoesNotExistException":
|
|
1920
|
-
throw await de_DeploymentDoesNotExistExceptionRes(parsedOutput, context);
|
|
1921
|
-
case "DeploymentIdRequiredException":
|
|
1922
|
-
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
1923
|
-
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
1924
|
-
case "DeploymentNotStartedException":
|
|
1925
|
-
case "com.amazonaws.codedeploy#DeploymentNotStartedException":
|
|
1926
|
-
throw await de_DeploymentNotStartedExceptionRes(parsedOutput, context);
|
|
1927
|
-
case "InvalidDeploymentIdException":
|
|
1928
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
1929
|
-
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
1930
|
-
case "InvalidDeploymentInstanceTypeException":
|
|
1931
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentInstanceTypeException":
|
|
1932
|
-
throw await de_InvalidDeploymentInstanceTypeExceptionRes(parsedOutput, context);
|
|
1933
|
-
case "InvalidInstanceStatusException":
|
|
1934
|
-
case "com.amazonaws.codedeploy#InvalidInstanceStatusException":
|
|
1935
|
-
throw await de_InvalidInstanceStatusExceptionRes(parsedOutput, context);
|
|
1936
|
-
case "InvalidInstanceTypeException":
|
|
1937
|
-
case "com.amazonaws.codedeploy#InvalidInstanceTypeException":
|
|
1938
|
-
throw await de_InvalidInstanceTypeExceptionRes(parsedOutput, context);
|
|
1939
|
-
case "InvalidNextTokenException":
|
|
1940
|
-
case "com.amazonaws.codedeploy#InvalidNextTokenException":
|
|
1941
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1942
|
-
case "InvalidTargetFilterNameException":
|
|
1943
|
-
case "com.amazonaws.codedeploy#InvalidTargetFilterNameException":
|
|
1944
|
-
throw await de_InvalidTargetFilterNameExceptionRes(parsedOutput, context);
|
|
1945
|
-
default:
|
|
1946
|
-
const parsedBody = parsedOutput.body;
|
|
1947
|
-
return throwDefaultError({
|
|
1948
|
-
output,
|
|
1949
|
-
parsedBody,
|
|
1950
|
-
errorCode,
|
|
1951
|
-
});
|
|
649
|
+
export const de_ListDeploymentConfigsCommand = async (output, context) => {
|
|
650
|
+
if (output.statusCode >= 300) {
|
|
651
|
+
return de_CommandError(output, context);
|
|
1952
652
|
}
|
|
653
|
+
const data = await parseBody(output.body, context);
|
|
654
|
+
let contents = {};
|
|
655
|
+
contents = _json(data);
|
|
656
|
+
const response = {
|
|
657
|
+
$metadata: deserializeMetadata(output),
|
|
658
|
+
...contents,
|
|
659
|
+
};
|
|
660
|
+
return response;
|
|
1953
661
|
};
|
|
1954
|
-
export const
|
|
662
|
+
export const de_ListDeploymentGroupsCommand = async (output, context) => {
|
|
1955
663
|
if (output.statusCode >= 300) {
|
|
1956
|
-
return
|
|
664
|
+
return de_CommandError(output, context);
|
|
1957
665
|
}
|
|
1958
666
|
const data = await parseBody(output.body, context);
|
|
1959
667
|
let contents = {};
|
|
@@ -1964,34 +672,9 @@ export const de_ListGitHubAccountTokenNamesCommand = async (output, context) =>
|
|
|
1964
672
|
};
|
|
1965
673
|
return response;
|
|
1966
674
|
};
|
|
1967
|
-
const
|
|
1968
|
-
const parsedOutput = {
|
|
1969
|
-
...output,
|
|
1970
|
-
body: await parseErrorBody(output.body, context),
|
|
1971
|
-
};
|
|
1972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
|
-
switch (errorCode) {
|
|
1974
|
-
case "InvalidNextTokenException":
|
|
1975
|
-
case "com.amazonaws.codedeploy#InvalidNextTokenException":
|
|
1976
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1977
|
-
case "OperationNotSupportedException":
|
|
1978
|
-
case "com.amazonaws.codedeploy#OperationNotSupportedException":
|
|
1979
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ResourceValidationException":
|
|
1981
|
-
case "com.amazonaws.codedeploy#ResourceValidationException":
|
|
1982
|
-
throw await de_ResourceValidationExceptionRes(parsedOutput, context);
|
|
1983
|
-
default:
|
|
1984
|
-
const parsedBody = parsedOutput.body;
|
|
1985
|
-
return throwDefaultError({
|
|
1986
|
-
output,
|
|
1987
|
-
parsedBody,
|
|
1988
|
-
errorCode,
|
|
1989
|
-
});
|
|
1990
|
-
}
|
|
1991
|
-
};
|
|
1992
|
-
export const de_ListOnPremisesInstancesCommand = async (output, context) => {
|
|
675
|
+
export const de_ListDeploymentInstancesCommand = async (output, context) => {
|
|
1993
676
|
if (output.statusCode >= 300) {
|
|
1994
|
-
return
|
|
677
|
+
return de_CommandError(output, context);
|
|
1995
678
|
}
|
|
1996
679
|
const data = await parseBody(output.body, context);
|
|
1997
680
|
let contents = {};
|
|
@@ -2002,34 +685,9 @@ export const de_ListOnPremisesInstancesCommand = async (output, context) => {
|
|
|
2002
685
|
};
|
|
2003
686
|
return response;
|
|
2004
687
|
};
|
|
2005
|
-
const
|
|
2006
|
-
const parsedOutput = {
|
|
2007
|
-
...output,
|
|
2008
|
-
body: await parseErrorBody(output.body, context),
|
|
2009
|
-
};
|
|
2010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
|
-
switch (errorCode) {
|
|
2012
|
-
case "InvalidNextTokenException":
|
|
2013
|
-
case "com.amazonaws.codedeploy#InvalidNextTokenException":
|
|
2014
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "InvalidRegistrationStatusException":
|
|
2016
|
-
case "com.amazonaws.codedeploy#InvalidRegistrationStatusException":
|
|
2017
|
-
throw await de_InvalidRegistrationStatusExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "InvalidTagFilterException":
|
|
2019
|
-
case "com.amazonaws.codedeploy#InvalidTagFilterException":
|
|
2020
|
-
throw await de_InvalidTagFilterExceptionRes(parsedOutput, context);
|
|
2021
|
-
default:
|
|
2022
|
-
const parsedBody = parsedOutput.body;
|
|
2023
|
-
return throwDefaultError({
|
|
2024
|
-
output,
|
|
2025
|
-
parsedBody,
|
|
2026
|
-
errorCode,
|
|
2027
|
-
});
|
|
2028
|
-
}
|
|
2029
|
-
};
|
|
2030
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
688
|
+
export const de_ListDeploymentsCommand = async (output, context) => {
|
|
2031
689
|
if (output.statusCode >= 300) {
|
|
2032
|
-
return
|
|
690
|
+
return de_CommandError(output, context);
|
|
2033
691
|
}
|
|
2034
692
|
const data = await parseBody(output.body, context);
|
|
2035
693
|
let contents = {};
|
|
@@ -2040,34 +698,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2040
698
|
};
|
|
2041
699
|
return response;
|
|
2042
700
|
};
|
|
2043
|
-
const
|
|
2044
|
-
const parsedOutput = {
|
|
2045
|
-
...output,
|
|
2046
|
-
body: await parseErrorBody(output.body, context),
|
|
2047
|
-
};
|
|
2048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2049
|
-
switch (errorCode) {
|
|
2050
|
-
case "ArnNotSupportedException":
|
|
2051
|
-
case "com.amazonaws.codedeploy#ArnNotSupportedException":
|
|
2052
|
-
throw await de_ArnNotSupportedExceptionRes(parsedOutput, context);
|
|
2053
|
-
case "InvalidArnException":
|
|
2054
|
-
case "com.amazonaws.codedeploy#InvalidArnException":
|
|
2055
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2056
|
-
case "ResourceArnRequiredException":
|
|
2057
|
-
case "com.amazonaws.codedeploy#ResourceArnRequiredException":
|
|
2058
|
-
throw await de_ResourceArnRequiredExceptionRes(parsedOutput, context);
|
|
2059
|
-
default:
|
|
2060
|
-
const parsedBody = parsedOutput.body;
|
|
2061
|
-
return throwDefaultError({
|
|
2062
|
-
output,
|
|
2063
|
-
parsedBody,
|
|
2064
|
-
errorCode,
|
|
2065
|
-
});
|
|
2066
|
-
}
|
|
2067
|
-
};
|
|
2068
|
-
export const de_PutLifecycleEventHookExecutionStatusCommand = async (output, context) => {
|
|
701
|
+
export const de_ListDeploymentTargetsCommand = async (output, context) => {
|
|
2069
702
|
if (output.statusCode >= 300) {
|
|
2070
|
-
return
|
|
703
|
+
return de_CommandError(output, context);
|
|
2071
704
|
}
|
|
2072
705
|
const data = await parseBody(output.body, context);
|
|
2073
706
|
let contents = {};
|
|
@@ -2078,193 +711,71 @@ export const de_PutLifecycleEventHookExecutionStatusCommand = async (output, con
|
|
|
2078
711
|
};
|
|
2079
712
|
return response;
|
|
2080
713
|
};
|
|
2081
|
-
const
|
|
2082
|
-
const parsedOutput = {
|
|
2083
|
-
...output,
|
|
2084
|
-
body: await parseErrorBody(output.body, context),
|
|
2085
|
-
};
|
|
2086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2087
|
-
switch (errorCode) {
|
|
2088
|
-
case "DeploymentDoesNotExistException":
|
|
2089
|
-
case "com.amazonaws.codedeploy#DeploymentDoesNotExistException":
|
|
2090
|
-
throw await de_DeploymentDoesNotExistExceptionRes(parsedOutput, context);
|
|
2091
|
-
case "DeploymentIdRequiredException":
|
|
2092
|
-
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
2093
|
-
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
2094
|
-
case "InvalidDeploymentIdException":
|
|
2095
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
2096
|
-
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
2097
|
-
case "InvalidLifecycleEventHookExecutionIdException":
|
|
2098
|
-
case "com.amazonaws.codedeploy#InvalidLifecycleEventHookExecutionIdException":
|
|
2099
|
-
throw await de_InvalidLifecycleEventHookExecutionIdExceptionRes(parsedOutput, context);
|
|
2100
|
-
case "InvalidLifecycleEventHookExecutionStatusException":
|
|
2101
|
-
case "com.amazonaws.codedeploy#InvalidLifecycleEventHookExecutionStatusException":
|
|
2102
|
-
throw await de_InvalidLifecycleEventHookExecutionStatusExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "LifecycleEventAlreadyCompletedException":
|
|
2104
|
-
case "com.amazonaws.codedeploy#LifecycleEventAlreadyCompletedException":
|
|
2105
|
-
throw await de_LifecycleEventAlreadyCompletedExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "UnsupportedActionForDeploymentTypeException":
|
|
2107
|
-
case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException":
|
|
2108
|
-
throw await de_UnsupportedActionForDeploymentTypeExceptionRes(parsedOutput, context);
|
|
2109
|
-
default:
|
|
2110
|
-
const parsedBody = parsedOutput.body;
|
|
2111
|
-
return throwDefaultError({
|
|
2112
|
-
output,
|
|
2113
|
-
parsedBody,
|
|
2114
|
-
errorCode,
|
|
2115
|
-
});
|
|
2116
|
-
}
|
|
2117
|
-
};
|
|
2118
|
-
export const de_RegisterApplicationRevisionCommand = async (output, context) => {
|
|
714
|
+
export const de_ListGitHubAccountTokenNamesCommand = async (output, context) => {
|
|
2119
715
|
if (output.statusCode >= 300) {
|
|
2120
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
2121
717
|
}
|
|
2122
|
-
await
|
|
718
|
+
const data = await parseBody(output.body, context);
|
|
719
|
+
let contents = {};
|
|
720
|
+
contents = _json(data);
|
|
2123
721
|
const response = {
|
|
2124
722
|
$metadata: deserializeMetadata(output),
|
|
723
|
+
...contents,
|
|
2125
724
|
};
|
|
2126
725
|
return response;
|
|
2127
726
|
};
|
|
2128
|
-
const
|
|
2129
|
-
const parsedOutput = {
|
|
2130
|
-
...output,
|
|
2131
|
-
body: await parseErrorBody(output.body, context),
|
|
2132
|
-
};
|
|
2133
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2134
|
-
switch (errorCode) {
|
|
2135
|
-
case "ApplicationDoesNotExistException":
|
|
2136
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
2137
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
2138
|
-
case "ApplicationNameRequiredException":
|
|
2139
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
2140
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
2141
|
-
case "DescriptionTooLongException":
|
|
2142
|
-
case "com.amazonaws.codedeploy#DescriptionTooLongException":
|
|
2143
|
-
throw await de_DescriptionTooLongExceptionRes(parsedOutput, context);
|
|
2144
|
-
case "InvalidApplicationNameException":
|
|
2145
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
2146
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "InvalidRevisionException":
|
|
2148
|
-
case "com.amazonaws.codedeploy#InvalidRevisionException":
|
|
2149
|
-
throw await de_InvalidRevisionExceptionRes(parsedOutput, context);
|
|
2150
|
-
case "RevisionRequiredException":
|
|
2151
|
-
case "com.amazonaws.codedeploy#RevisionRequiredException":
|
|
2152
|
-
throw await de_RevisionRequiredExceptionRes(parsedOutput, context);
|
|
2153
|
-
default:
|
|
2154
|
-
const parsedBody = parsedOutput.body;
|
|
2155
|
-
return throwDefaultError({
|
|
2156
|
-
output,
|
|
2157
|
-
parsedBody,
|
|
2158
|
-
errorCode,
|
|
2159
|
-
});
|
|
2160
|
-
}
|
|
2161
|
-
};
|
|
2162
|
-
export const de_RegisterOnPremisesInstanceCommand = async (output, context) => {
|
|
727
|
+
export const de_ListOnPremisesInstancesCommand = async (output, context) => {
|
|
2163
728
|
if (output.statusCode >= 300) {
|
|
2164
|
-
return
|
|
729
|
+
return de_CommandError(output, context);
|
|
2165
730
|
}
|
|
2166
|
-
await
|
|
731
|
+
const data = await parseBody(output.body, context);
|
|
732
|
+
let contents = {};
|
|
733
|
+
contents = _json(data);
|
|
2167
734
|
const response = {
|
|
2168
735
|
$metadata: deserializeMetadata(output),
|
|
736
|
+
...contents,
|
|
2169
737
|
};
|
|
2170
738
|
return response;
|
|
2171
739
|
};
|
|
2172
|
-
const
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
body: await parseErrorBody(output.body, context),
|
|
2176
|
-
};
|
|
2177
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2178
|
-
switch (errorCode) {
|
|
2179
|
-
case "IamArnRequiredException":
|
|
2180
|
-
case "com.amazonaws.codedeploy#IamArnRequiredException":
|
|
2181
|
-
throw await de_IamArnRequiredExceptionRes(parsedOutput, context);
|
|
2182
|
-
case "IamSessionArnAlreadyRegisteredException":
|
|
2183
|
-
case "com.amazonaws.codedeploy#IamSessionArnAlreadyRegisteredException":
|
|
2184
|
-
throw await de_IamSessionArnAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "IamUserArnAlreadyRegisteredException":
|
|
2186
|
-
case "com.amazonaws.codedeploy#IamUserArnAlreadyRegisteredException":
|
|
2187
|
-
throw await de_IamUserArnAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "IamUserArnRequiredException":
|
|
2189
|
-
case "com.amazonaws.codedeploy#IamUserArnRequiredException":
|
|
2190
|
-
throw await de_IamUserArnRequiredExceptionRes(parsedOutput, context);
|
|
2191
|
-
case "InstanceNameAlreadyRegisteredException":
|
|
2192
|
-
case "com.amazonaws.codedeploy#InstanceNameAlreadyRegisteredException":
|
|
2193
|
-
throw await de_InstanceNameAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "InstanceNameRequiredException":
|
|
2195
|
-
case "com.amazonaws.codedeploy#InstanceNameRequiredException":
|
|
2196
|
-
throw await de_InstanceNameRequiredExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "InvalidIamSessionArnException":
|
|
2198
|
-
case "com.amazonaws.codedeploy#InvalidIamSessionArnException":
|
|
2199
|
-
throw await de_InvalidIamSessionArnExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "InvalidIamUserArnException":
|
|
2201
|
-
case "com.amazonaws.codedeploy#InvalidIamUserArnException":
|
|
2202
|
-
throw await de_InvalidIamUserArnExceptionRes(parsedOutput, context);
|
|
2203
|
-
case "InvalidInstanceNameException":
|
|
2204
|
-
case "com.amazonaws.codedeploy#InvalidInstanceNameException":
|
|
2205
|
-
throw await de_InvalidInstanceNameExceptionRes(parsedOutput, context);
|
|
2206
|
-
case "MultipleIamArnsProvidedException":
|
|
2207
|
-
case "com.amazonaws.codedeploy#MultipleIamArnsProvidedException":
|
|
2208
|
-
throw await de_MultipleIamArnsProvidedExceptionRes(parsedOutput, context);
|
|
2209
|
-
default:
|
|
2210
|
-
const parsedBody = parsedOutput.body;
|
|
2211
|
-
return throwDefaultError({
|
|
2212
|
-
output,
|
|
2213
|
-
parsedBody,
|
|
2214
|
-
errorCode,
|
|
2215
|
-
});
|
|
740
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
741
|
+
if (output.statusCode >= 300) {
|
|
742
|
+
return de_CommandError(output, context);
|
|
2216
743
|
}
|
|
744
|
+
const data = await parseBody(output.body, context);
|
|
745
|
+
let contents = {};
|
|
746
|
+
contents = _json(data);
|
|
747
|
+
const response = {
|
|
748
|
+
$metadata: deserializeMetadata(output),
|
|
749
|
+
...contents,
|
|
750
|
+
};
|
|
751
|
+
return response;
|
|
2217
752
|
};
|
|
2218
|
-
export const
|
|
753
|
+
export const de_PutLifecycleEventHookExecutionStatusCommand = async (output, context) => {
|
|
2219
754
|
if (output.statusCode >= 300) {
|
|
2220
|
-
return
|
|
755
|
+
return de_CommandError(output, context);
|
|
2221
756
|
}
|
|
2222
|
-
await
|
|
757
|
+
const data = await parseBody(output.body, context);
|
|
758
|
+
let contents = {};
|
|
759
|
+
contents = _json(data);
|
|
2223
760
|
const response = {
|
|
2224
761
|
$metadata: deserializeMetadata(output),
|
|
762
|
+
...contents,
|
|
2225
763
|
};
|
|
2226
764
|
return response;
|
|
2227
765
|
};
|
|
2228
|
-
const
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
body: await parseErrorBody(output.body, context),
|
|
2232
|
-
};
|
|
2233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2234
|
-
switch (errorCode) {
|
|
2235
|
-
case "InstanceLimitExceededException":
|
|
2236
|
-
case "com.amazonaws.codedeploy#InstanceLimitExceededException":
|
|
2237
|
-
throw await de_InstanceLimitExceededExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "InstanceNameRequiredException":
|
|
2239
|
-
case "com.amazonaws.codedeploy#InstanceNameRequiredException":
|
|
2240
|
-
throw await de_InstanceNameRequiredExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "InstanceNotRegisteredException":
|
|
2242
|
-
case "com.amazonaws.codedeploy#InstanceNotRegisteredException":
|
|
2243
|
-
throw await de_InstanceNotRegisteredExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "InvalidInstanceNameException":
|
|
2245
|
-
case "com.amazonaws.codedeploy#InvalidInstanceNameException":
|
|
2246
|
-
throw await de_InvalidInstanceNameExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "InvalidTagException":
|
|
2248
|
-
case "com.amazonaws.codedeploy#InvalidTagException":
|
|
2249
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "TagLimitExceededException":
|
|
2251
|
-
case "com.amazonaws.codedeploy#TagLimitExceededException":
|
|
2252
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
2253
|
-
case "TagRequiredException":
|
|
2254
|
-
case "com.amazonaws.codedeploy#TagRequiredException":
|
|
2255
|
-
throw await de_TagRequiredExceptionRes(parsedOutput, context);
|
|
2256
|
-
default:
|
|
2257
|
-
const parsedBody = parsedOutput.body;
|
|
2258
|
-
return throwDefaultError({
|
|
2259
|
-
output,
|
|
2260
|
-
parsedBody,
|
|
2261
|
-
errorCode,
|
|
2262
|
-
});
|
|
766
|
+
export const de_RegisterApplicationRevisionCommand = async (output, context) => {
|
|
767
|
+
if (output.statusCode >= 300) {
|
|
768
|
+
return de_CommandError(output, context);
|
|
2263
769
|
}
|
|
770
|
+
await collectBody(output.body, context);
|
|
771
|
+
const response = {
|
|
772
|
+
$metadata: deserializeMetadata(output),
|
|
773
|
+
};
|
|
774
|
+
return response;
|
|
2264
775
|
};
|
|
2265
|
-
export const
|
|
776
|
+
export const de_RegisterOnPremisesInstanceCommand = async (output, context) => {
|
|
2266
777
|
if (output.statusCode >= 300) {
|
|
2267
|
-
return
|
|
778
|
+
return de_CommandError(output, context);
|
|
2268
779
|
}
|
|
2269
780
|
await collectBody(output.body, context);
|
|
2270
781
|
const response = {
|
|
@@ -2272,43 +783,29 @@ export const de_SkipWaitTimeForInstanceTerminationCommand = async (output, conte
|
|
|
2272
783
|
};
|
|
2273
784
|
return response;
|
|
2274
785
|
};
|
|
2275
|
-
const
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
786
|
+
export const de_RemoveTagsFromOnPremisesInstancesCommand = async (output, context) => {
|
|
787
|
+
if (output.statusCode >= 300) {
|
|
788
|
+
return de_CommandError(output, context);
|
|
789
|
+
}
|
|
790
|
+
await collectBody(output.body, context);
|
|
791
|
+
const response = {
|
|
792
|
+
$metadata: deserializeMetadata(output),
|
|
2279
793
|
};
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
case "DeploymentDoesNotExistException":
|
|
2286
|
-
case "com.amazonaws.codedeploy#DeploymentDoesNotExistException":
|
|
2287
|
-
throw await de_DeploymentDoesNotExistExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "DeploymentIdRequiredException":
|
|
2289
|
-
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
2290
|
-
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "DeploymentNotStartedException":
|
|
2292
|
-
case "com.amazonaws.codedeploy#DeploymentNotStartedException":
|
|
2293
|
-
throw await de_DeploymentNotStartedExceptionRes(parsedOutput, context);
|
|
2294
|
-
case "InvalidDeploymentIdException":
|
|
2295
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
2296
|
-
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
2297
|
-
case "UnsupportedActionForDeploymentTypeException":
|
|
2298
|
-
case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException":
|
|
2299
|
-
throw await de_UnsupportedActionForDeploymentTypeExceptionRes(parsedOutput, context);
|
|
2300
|
-
default:
|
|
2301
|
-
const parsedBody = parsedOutput.body;
|
|
2302
|
-
return throwDefaultError({
|
|
2303
|
-
output,
|
|
2304
|
-
parsedBody,
|
|
2305
|
-
errorCode,
|
|
2306
|
-
});
|
|
794
|
+
return response;
|
|
795
|
+
};
|
|
796
|
+
export const de_SkipWaitTimeForInstanceTerminationCommand = async (output, context) => {
|
|
797
|
+
if (output.statusCode >= 300) {
|
|
798
|
+
return de_CommandError(output, context);
|
|
2307
799
|
}
|
|
800
|
+
await collectBody(output.body, context);
|
|
801
|
+
const response = {
|
|
802
|
+
$metadata: deserializeMetadata(output),
|
|
803
|
+
};
|
|
804
|
+
return response;
|
|
2308
805
|
};
|
|
2309
806
|
export const de_StopDeploymentCommand = async (output, context) => {
|
|
2310
807
|
if (output.statusCode >= 300) {
|
|
2311
|
-
return
|
|
808
|
+
return de_CommandError(output, context);
|
|
2312
809
|
}
|
|
2313
810
|
const data = await parseBody(output.body, context);
|
|
2314
811
|
let contents = {};
|
|
@@ -2319,43 +816,9 @@ export const de_StopDeploymentCommand = async (output, context) => {
|
|
|
2319
816
|
};
|
|
2320
817
|
return response;
|
|
2321
818
|
};
|
|
2322
|
-
const de_StopDeploymentCommandError = async (output, context) => {
|
|
2323
|
-
const parsedOutput = {
|
|
2324
|
-
...output,
|
|
2325
|
-
body: await parseErrorBody(output.body, context),
|
|
2326
|
-
};
|
|
2327
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2328
|
-
switch (errorCode) {
|
|
2329
|
-
case "DeploymentAlreadyCompletedException":
|
|
2330
|
-
case "com.amazonaws.codedeploy#DeploymentAlreadyCompletedException":
|
|
2331
|
-
throw await de_DeploymentAlreadyCompletedExceptionRes(parsedOutput, context);
|
|
2332
|
-
case "DeploymentDoesNotExistException":
|
|
2333
|
-
case "com.amazonaws.codedeploy#DeploymentDoesNotExistException":
|
|
2334
|
-
throw await de_DeploymentDoesNotExistExceptionRes(parsedOutput, context);
|
|
2335
|
-
case "DeploymentGroupDoesNotExistException":
|
|
2336
|
-
case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException":
|
|
2337
|
-
throw await de_DeploymentGroupDoesNotExistExceptionRes(parsedOutput, context);
|
|
2338
|
-
case "DeploymentIdRequiredException":
|
|
2339
|
-
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
2340
|
-
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
2341
|
-
case "InvalidDeploymentIdException":
|
|
2342
|
-
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
2343
|
-
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
2344
|
-
case "UnsupportedActionForDeploymentTypeException":
|
|
2345
|
-
case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException":
|
|
2346
|
-
throw await de_UnsupportedActionForDeploymentTypeExceptionRes(parsedOutput, context);
|
|
2347
|
-
default:
|
|
2348
|
-
const parsedBody = parsedOutput.body;
|
|
2349
|
-
return throwDefaultError({
|
|
2350
|
-
output,
|
|
2351
|
-
parsedBody,
|
|
2352
|
-
errorCode,
|
|
2353
|
-
});
|
|
2354
|
-
}
|
|
2355
|
-
};
|
|
2356
819
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2357
820
|
if (output.statusCode >= 300) {
|
|
2358
|
-
return
|
|
821
|
+
return de_CommandError(output, context);
|
|
2359
822
|
}
|
|
2360
823
|
const data = await parseBody(output.body, context);
|
|
2361
824
|
let contents = {};
|
|
@@ -2366,49 +829,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2366
829
|
};
|
|
2367
830
|
return response;
|
|
2368
831
|
};
|
|
2369
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2370
|
-
const parsedOutput = {
|
|
2371
|
-
...output,
|
|
2372
|
-
body: await parseErrorBody(output.body, context),
|
|
2373
|
-
};
|
|
2374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2375
|
-
switch (errorCode) {
|
|
2376
|
-
case "ApplicationDoesNotExistException":
|
|
2377
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
2378
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "ArnNotSupportedException":
|
|
2380
|
-
case "com.amazonaws.codedeploy#ArnNotSupportedException":
|
|
2381
|
-
throw await de_ArnNotSupportedExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "DeploymentConfigDoesNotExistException":
|
|
2383
|
-
case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException":
|
|
2384
|
-
throw await de_DeploymentConfigDoesNotExistExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "DeploymentGroupDoesNotExistException":
|
|
2386
|
-
case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException":
|
|
2387
|
-
throw await de_DeploymentGroupDoesNotExistExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "InvalidArnException":
|
|
2389
|
-
case "com.amazonaws.codedeploy#InvalidArnException":
|
|
2390
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "InvalidTagsToAddException":
|
|
2392
|
-
case "com.amazonaws.codedeploy#InvalidTagsToAddException":
|
|
2393
|
-
throw await de_InvalidTagsToAddExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "ResourceArnRequiredException":
|
|
2395
|
-
case "com.amazonaws.codedeploy#ResourceArnRequiredException":
|
|
2396
|
-
throw await de_ResourceArnRequiredExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "TagRequiredException":
|
|
2398
|
-
case "com.amazonaws.codedeploy#TagRequiredException":
|
|
2399
|
-
throw await de_TagRequiredExceptionRes(parsedOutput, context);
|
|
2400
|
-
default:
|
|
2401
|
-
const parsedBody = parsedOutput.body;
|
|
2402
|
-
return throwDefaultError({
|
|
2403
|
-
output,
|
|
2404
|
-
parsedBody,
|
|
2405
|
-
errorCode,
|
|
2406
|
-
});
|
|
2407
|
-
}
|
|
2408
|
-
};
|
|
2409
832
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
2410
833
|
if (output.statusCode >= 300) {
|
|
2411
|
-
return
|
|
834
|
+
return de_CommandError(output, context);
|
|
2412
835
|
}
|
|
2413
836
|
const data = await parseBody(output.body, context);
|
|
2414
837
|
let contents = {};
|
|
@@ -2419,49 +842,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2419
842
|
};
|
|
2420
843
|
return response;
|
|
2421
844
|
};
|
|
2422
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2423
|
-
const parsedOutput = {
|
|
2424
|
-
...output,
|
|
2425
|
-
body: await parseErrorBody(output.body, context),
|
|
2426
|
-
};
|
|
2427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
|
-
switch (errorCode) {
|
|
2429
|
-
case "ApplicationDoesNotExistException":
|
|
2430
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
2431
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "ArnNotSupportedException":
|
|
2433
|
-
case "com.amazonaws.codedeploy#ArnNotSupportedException":
|
|
2434
|
-
throw await de_ArnNotSupportedExceptionRes(parsedOutput, context);
|
|
2435
|
-
case "DeploymentConfigDoesNotExistException":
|
|
2436
|
-
case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException":
|
|
2437
|
-
throw await de_DeploymentConfigDoesNotExistExceptionRes(parsedOutput, context);
|
|
2438
|
-
case "DeploymentGroupDoesNotExistException":
|
|
2439
|
-
case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException":
|
|
2440
|
-
throw await de_DeploymentGroupDoesNotExistExceptionRes(parsedOutput, context);
|
|
2441
|
-
case "InvalidArnException":
|
|
2442
|
-
case "com.amazonaws.codedeploy#InvalidArnException":
|
|
2443
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2444
|
-
case "InvalidTagsToAddException":
|
|
2445
|
-
case "com.amazonaws.codedeploy#InvalidTagsToAddException":
|
|
2446
|
-
throw await de_InvalidTagsToAddExceptionRes(parsedOutput, context);
|
|
2447
|
-
case "ResourceArnRequiredException":
|
|
2448
|
-
case "com.amazonaws.codedeploy#ResourceArnRequiredException":
|
|
2449
|
-
throw await de_ResourceArnRequiredExceptionRes(parsedOutput, context);
|
|
2450
|
-
case "TagRequiredException":
|
|
2451
|
-
case "com.amazonaws.codedeploy#TagRequiredException":
|
|
2452
|
-
throw await de_TagRequiredExceptionRes(parsedOutput, context);
|
|
2453
|
-
default:
|
|
2454
|
-
const parsedBody = parsedOutput.body;
|
|
2455
|
-
return throwDefaultError({
|
|
2456
|
-
output,
|
|
2457
|
-
parsedBody,
|
|
2458
|
-
errorCode,
|
|
2459
|
-
});
|
|
2460
|
-
}
|
|
2461
|
-
};
|
|
2462
845
|
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
2463
846
|
if (output.statusCode >= 300) {
|
|
2464
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
2465
848
|
}
|
|
2466
849
|
await collectBody(output.body, context);
|
|
2467
850
|
const response = {
|
|
@@ -2469,37 +852,9 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
2469
852
|
};
|
|
2470
853
|
return response;
|
|
2471
854
|
};
|
|
2472
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
2473
|
-
const parsedOutput = {
|
|
2474
|
-
...output,
|
|
2475
|
-
body: await parseErrorBody(output.body, context),
|
|
2476
|
-
};
|
|
2477
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
|
-
switch (errorCode) {
|
|
2479
|
-
case "ApplicationAlreadyExistsException":
|
|
2480
|
-
case "com.amazonaws.codedeploy#ApplicationAlreadyExistsException":
|
|
2481
|
-
throw await de_ApplicationAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2482
|
-
case "ApplicationDoesNotExistException":
|
|
2483
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
2484
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
2485
|
-
case "ApplicationNameRequiredException":
|
|
2486
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
2487
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
2488
|
-
case "InvalidApplicationNameException":
|
|
2489
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
2490
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
2491
|
-
default:
|
|
2492
|
-
const parsedBody = parsedOutput.body;
|
|
2493
|
-
return throwDefaultError({
|
|
2494
|
-
output,
|
|
2495
|
-
parsedBody,
|
|
2496
|
-
errorCode,
|
|
2497
|
-
});
|
|
2498
|
-
}
|
|
2499
|
-
};
|
|
2500
855
|
export const de_UpdateDeploymentGroupCommand = async (output, context) => {
|
|
2501
856
|
if (output.statusCode >= 300) {
|
|
2502
|
-
return
|
|
857
|
+
return de_CommandError(output, context);
|
|
2503
858
|
}
|
|
2504
859
|
const data = await parseBody(output.body, context);
|
|
2505
860
|
let contents = {};
|
|
@@ -2510,58 +865,199 @@ export const de_UpdateDeploymentGroupCommand = async (output, context) => {
|
|
|
2510
865
|
};
|
|
2511
866
|
return response;
|
|
2512
867
|
};
|
|
2513
|
-
const
|
|
868
|
+
const de_CommandError = async (output, context) => {
|
|
2514
869
|
const parsedOutput = {
|
|
2515
870
|
...output,
|
|
2516
871
|
body: await parseErrorBody(output.body, context),
|
|
2517
872
|
};
|
|
2518
873
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2519
874
|
switch (errorCode) {
|
|
875
|
+
case "InstanceLimitExceededException":
|
|
876
|
+
case "com.amazonaws.codedeploy#InstanceLimitExceededException":
|
|
877
|
+
throw await de_InstanceLimitExceededExceptionRes(parsedOutput, context);
|
|
878
|
+
case "InstanceNameRequiredException":
|
|
879
|
+
case "com.amazonaws.codedeploy#InstanceNameRequiredException":
|
|
880
|
+
throw await de_InstanceNameRequiredExceptionRes(parsedOutput, context);
|
|
881
|
+
case "InstanceNotRegisteredException":
|
|
882
|
+
case "com.amazonaws.codedeploy#InstanceNotRegisteredException":
|
|
883
|
+
throw await de_InstanceNotRegisteredExceptionRes(parsedOutput, context);
|
|
884
|
+
case "InvalidInstanceNameException":
|
|
885
|
+
case "com.amazonaws.codedeploy#InvalidInstanceNameException":
|
|
886
|
+
throw await de_InvalidInstanceNameExceptionRes(parsedOutput, context);
|
|
887
|
+
case "InvalidTagException":
|
|
888
|
+
case "com.amazonaws.codedeploy#InvalidTagException":
|
|
889
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
890
|
+
case "TagLimitExceededException":
|
|
891
|
+
case "com.amazonaws.codedeploy#TagLimitExceededException":
|
|
892
|
+
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
893
|
+
case "TagRequiredException":
|
|
894
|
+
case "com.amazonaws.codedeploy#TagRequiredException":
|
|
895
|
+
throw await de_TagRequiredExceptionRes(parsedOutput, context);
|
|
896
|
+
case "ApplicationDoesNotExistException":
|
|
897
|
+
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
898
|
+
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
899
|
+
case "ApplicationNameRequiredException":
|
|
900
|
+
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
901
|
+
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
902
|
+
case "BatchLimitExceededException":
|
|
903
|
+
case "com.amazonaws.codedeploy#BatchLimitExceededException":
|
|
904
|
+
throw await de_BatchLimitExceededExceptionRes(parsedOutput, context);
|
|
905
|
+
case "InvalidApplicationNameException":
|
|
906
|
+
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
907
|
+
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
908
|
+
case "InvalidRevisionException":
|
|
909
|
+
case "com.amazonaws.codedeploy#InvalidRevisionException":
|
|
910
|
+
throw await de_InvalidRevisionExceptionRes(parsedOutput, context);
|
|
911
|
+
case "RevisionRequiredException":
|
|
912
|
+
case "com.amazonaws.codedeploy#RevisionRequiredException":
|
|
913
|
+
throw await de_RevisionRequiredExceptionRes(parsedOutput, context);
|
|
914
|
+
case "DeploymentConfigDoesNotExistException":
|
|
915
|
+
case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException":
|
|
916
|
+
throw await de_DeploymentConfigDoesNotExistExceptionRes(parsedOutput, context);
|
|
917
|
+
case "DeploymentGroupNameRequiredException":
|
|
918
|
+
case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException":
|
|
919
|
+
throw await de_DeploymentGroupNameRequiredExceptionRes(parsedOutput, context);
|
|
920
|
+
case "InvalidDeploymentGroupNameException":
|
|
921
|
+
case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException":
|
|
922
|
+
throw await de_InvalidDeploymentGroupNameExceptionRes(parsedOutput, context);
|
|
923
|
+
case "DeploymentDoesNotExistException":
|
|
924
|
+
case "com.amazonaws.codedeploy#DeploymentDoesNotExistException":
|
|
925
|
+
throw await de_DeploymentDoesNotExistExceptionRes(parsedOutput, context);
|
|
926
|
+
case "DeploymentIdRequiredException":
|
|
927
|
+
case "com.amazonaws.codedeploy#DeploymentIdRequiredException":
|
|
928
|
+
throw await de_DeploymentIdRequiredExceptionRes(parsedOutput, context);
|
|
929
|
+
case "InstanceIdRequiredException":
|
|
930
|
+
case "com.amazonaws.codedeploy#InstanceIdRequiredException":
|
|
931
|
+
throw await de_InstanceIdRequiredExceptionRes(parsedOutput, context);
|
|
932
|
+
case "InvalidComputePlatformException":
|
|
933
|
+
case "com.amazonaws.codedeploy#InvalidComputePlatformException":
|
|
934
|
+
throw await de_InvalidComputePlatformExceptionRes(parsedOutput, context);
|
|
935
|
+
case "InvalidDeploymentIdException":
|
|
936
|
+
case "com.amazonaws.codedeploy#InvalidDeploymentIdException":
|
|
937
|
+
throw await de_InvalidDeploymentIdExceptionRes(parsedOutput, context);
|
|
938
|
+
case "DeploymentNotStartedException":
|
|
939
|
+
case "com.amazonaws.codedeploy#DeploymentNotStartedException":
|
|
940
|
+
throw await de_DeploymentNotStartedExceptionRes(parsedOutput, context);
|
|
941
|
+
case "DeploymentTargetDoesNotExistException":
|
|
942
|
+
case "com.amazonaws.codedeploy#DeploymentTargetDoesNotExistException":
|
|
943
|
+
throw await de_DeploymentTargetDoesNotExistExceptionRes(parsedOutput, context);
|
|
944
|
+
case "DeploymentTargetIdRequiredException":
|
|
945
|
+
case "com.amazonaws.codedeploy#DeploymentTargetIdRequiredException":
|
|
946
|
+
throw await de_DeploymentTargetIdRequiredExceptionRes(parsedOutput, context);
|
|
947
|
+
case "DeploymentTargetListSizeExceededException":
|
|
948
|
+
case "com.amazonaws.codedeploy#DeploymentTargetListSizeExceededException":
|
|
949
|
+
throw await de_DeploymentTargetListSizeExceededExceptionRes(parsedOutput, context);
|
|
950
|
+
case "InstanceDoesNotExistException":
|
|
951
|
+
case "com.amazonaws.codedeploy#InstanceDoesNotExistException":
|
|
952
|
+
throw await de_InstanceDoesNotExistExceptionRes(parsedOutput, context);
|
|
953
|
+
case "InvalidDeploymentTargetIdException":
|
|
954
|
+
case "com.amazonaws.codedeploy#InvalidDeploymentTargetIdException":
|
|
955
|
+
throw await de_InvalidDeploymentTargetIdExceptionRes(parsedOutput, context);
|
|
956
|
+
case "DeploymentAlreadyCompletedException":
|
|
957
|
+
case "com.amazonaws.codedeploy#DeploymentAlreadyCompletedException":
|
|
958
|
+
throw await de_DeploymentAlreadyCompletedExceptionRes(parsedOutput, context);
|
|
959
|
+
case "DeploymentIsNotInReadyStateException":
|
|
960
|
+
case "com.amazonaws.codedeploy#DeploymentIsNotInReadyStateException":
|
|
961
|
+
throw await de_DeploymentIsNotInReadyStateExceptionRes(parsedOutput, context);
|
|
962
|
+
case "InvalidDeploymentStatusException":
|
|
963
|
+
case "com.amazonaws.codedeploy#InvalidDeploymentStatusException":
|
|
964
|
+
throw await de_InvalidDeploymentStatusExceptionRes(parsedOutput, context);
|
|
965
|
+
case "InvalidDeploymentWaitTypeException":
|
|
966
|
+
case "com.amazonaws.codedeploy#InvalidDeploymentWaitTypeException":
|
|
967
|
+
throw await de_InvalidDeploymentWaitTypeExceptionRes(parsedOutput, context);
|
|
968
|
+
case "UnsupportedActionForDeploymentTypeException":
|
|
969
|
+
case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException":
|
|
970
|
+
throw await de_UnsupportedActionForDeploymentTypeExceptionRes(parsedOutput, context);
|
|
971
|
+
case "ApplicationAlreadyExistsException":
|
|
972
|
+
case "com.amazonaws.codedeploy#ApplicationAlreadyExistsException":
|
|
973
|
+
throw await de_ApplicationAlreadyExistsExceptionRes(parsedOutput, context);
|
|
974
|
+
case "ApplicationLimitExceededException":
|
|
975
|
+
case "com.amazonaws.codedeploy#ApplicationLimitExceededException":
|
|
976
|
+
throw await de_ApplicationLimitExceededExceptionRes(parsedOutput, context);
|
|
977
|
+
case "InvalidTagsToAddException":
|
|
978
|
+
case "com.amazonaws.codedeploy#InvalidTagsToAddException":
|
|
979
|
+
throw await de_InvalidTagsToAddExceptionRes(parsedOutput, context);
|
|
2520
980
|
case "AlarmsLimitExceededException":
|
|
2521
981
|
case "com.amazonaws.codedeploy#AlarmsLimitExceededException":
|
|
2522
982
|
throw await de_AlarmsLimitExceededExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "ApplicationDoesNotExistException":
|
|
2524
|
-
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
2525
|
-
throw await de_ApplicationDoesNotExistExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "ApplicationNameRequiredException":
|
|
2527
|
-
case "com.amazonaws.codedeploy#ApplicationNameRequiredException":
|
|
2528
|
-
throw await de_ApplicationNameRequiredExceptionRes(parsedOutput, context);
|
|
2529
|
-
case "DeploymentConfigDoesNotExistException":
|
|
2530
|
-
case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException":
|
|
2531
|
-
throw await de_DeploymentConfigDoesNotExistExceptionRes(parsedOutput, context);
|
|
2532
|
-
case "DeploymentGroupAlreadyExistsException":
|
|
2533
|
-
case "com.amazonaws.codedeploy#DeploymentGroupAlreadyExistsException":
|
|
2534
|
-
throw await de_DeploymentGroupAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2535
983
|
case "DeploymentGroupDoesNotExistException":
|
|
2536
984
|
case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException":
|
|
2537
985
|
throw await de_DeploymentGroupDoesNotExistExceptionRes(parsedOutput, context);
|
|
2538
|
-
case "
|
|
2539
|
-
case "com.amazonaws.codedeploy#
|
|
2540
|
-
throw await
|
|
2541
|
-
case "
|
|
2542
|
-
case "com.amazonaws.codedeploy#
|
|
2543
|
-
throw await
|
|
986
|
+
case "DeploymentLimitExceededException":
|
|
987
|
+
case "com.amazonaws.codedeploy#DeploymentLimitExceededException":
|
|
988
|
+
throw await de_DeploymentLimitExceededExceptionRes(parsedOutput, context);
|
|
989
|
+
case "DescriptionTooLongException":
|
|
990
|
+
case "com.amazonaws.codedeploy#DescriptionTooLongException":
|
|
991
|
+
throw await de_DescriptionTooLongExceptionRes(parsedOutput, context);
|
|
2544
992
|
case "InvalidAlarmConfigException":
|
|
2545
993
|
case "com.amazonaws.codedeploy#InvalidAlarmConfigException":
|
|
2546
994
|
throw await de_InvalidAlarmConfigExceptionRes(parsedOutput, context);
|
|
2547
|
-
case "InvalidApplicationNameException":
|
|
2548
|
-
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
2549
|
-
throw await de_InvalidApplicationNameExceptionRes(parsedOutput, context);
|
|
2550
995
|
case "InvalidAutoRollbackConfigException":
|
|
2551
996
|
case "com.amazonaws.codedeploy#InvalidAutoRollbackConfigException":
|
|
2552
997
|
throw await de_InvalidAutoRollbackConfigExceptionRes(parsedOutput, context);
|
|
2553
998
|
case "InvalidAutoScalingGroupException":
|
|
2554
999
|
case "com.amazonaws.codedeploy#InvalidAutoScalingGroupException":
|
|
2555
1000
|
throw await de_InvalidAutoScalingGroupExceptionRes(parsedOutput, context);
|
|
2556
|
-
case "InvalidBlueGreenDeploymentConfigurationException":
|
|
2557
|
-
case "com.amazonaws.codedeploy#InvalidBlueGreenDeploymentConfigurationException":
|
|
2558
|
-
throw await de_InvalidBlueGreenDeploymentConfigurationExceptionRes(parsedOutput, context);
|
|
2559
1001
|
case "InvalidDeploymentConfigNameException":
|
|
2560
1002
|
case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException":
|
|
2561
1003
|
throw await de_InvalidDeploymentConfigNameExceptionRes(parsedOutput, context);
|
|
2562
|
-
case "
|
|
2563
|
-
case "com.amazonaws.codedeploy#
|
|
2564
|
-
throw await
|
|
1004
|
+
case "InvalidFileExistsBehaviorException":
|
|
1005
|
+
case "com.amazonaws.codedeploy#InvalidFileExistsBehaviorException":
|
|
1006
|
+
throw await de_InvalidFileExistsBehaviorExceptionRes(parsedOutput, context);
|
|
1007
|
+
case "InvalidGitHubAccountTokenException":
|
|
1008
|
+
case "com.amazonaws.codedeploy#InvalidGitHubAccountTokenException":
|
|
1009
|
+
throw await de_InvalidGitHubAccountTokenExceptionRes(parsedOutput, context);
|
|
1010
|
+
case "InvalidIgnoreApplicationStopFailuresValueException":
|
|
1011
|
+
case "com.amazonaws.codedeploy#InvalidIgnoreApplicationStopFailuresValueException":
|
|
1012
|
+
throw await de_InvalidIgnoreApplicationStopFailuresValueExceptionRes(parsedOutput, context);
|
|
1013
|
+
case "InvalidLoadBalancerInfoException":
|
|
1014
|
+
case "com.amazonaws.codedeploy#InvalidLoadBalancerInfoException":
|
|
1015
|
+
throw await de_InvalidLoadBalancerInfoExceptionRes(parsedOutput, context);
|
|
1016
|
+
case "InvalidRoleException":
|
|
1017
|
+
case "com.amazonaws.codedeploy#InvalidRoleException":
|
|
1018
|
+
throw await de_InvalidRoleExceptionRes(parsedOutput, context);
|
|
1019
|
+
case "InvalidTargetInstancesException":
|
|
1020
|
+
case "com.amazonaws.codedeploy#InvalidTargetInstancesException":
|
|
1021
|
+
throw await de_InvalidTargetInstancesExceptionRes(parsedOutput, context);
|
|
1022
|
+
case "InvalidTrafficRoutingConfigurationException":
|
|
1023
|
+
case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException":
|
|
1024
|
+
throw await de_InvalidTrafficRoutingConfigurationExceptionRes(parsedOutput, context);
|
|
1025
|
+
case "InvalidUpdateOutdatedInstancesOnlyValueException":
|
|
1026
|
+
case "com.amazonaws.codedeploy#InvalidUpdateOutdatedInstancesOnlyValueException":
|
|
1027
|
+
throw await de_InvalidUpdateOutdatedInstancesOnlyValueExceptionRes(parsedOutput, context);
|
|
1028
|
+
case "RevisionDoesNotExistException":
|
|
1029
|
+
case "com.amazonaws.codedeploy#RevisionDoesNotExistException":
|
|
1030
|
+
throw await de_RevisionDoesNotExistExceptionRes(parsedOutput, context);
|
|
1031
|
+
case "ThrottlingException":
|
|
1032
|
+
case "com.amazonaws.codedeploy#ThrottlingException":
|
|
1033
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1034
|
+
case "DeploymentConfigAlreadyExistsException":
|
|
1035
|
+
case "com.amazonaws.codedeploy#DeploymentConfigAlreadyExistsException":
|
|
1036
|
+
throw await de_DeploymentConfigAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1037
|
+
case "DeploymentConfigLimitExceededException":
|
|
1038
|
+
case "com.amazonaws.codedeploy#DeploymentConfigLimitExceededException":
|
|
1039
|
+
throw await de_DeploymentConfigLimitExceededExceptionRes(parsedOutput, context);
|
|
1040
|
+
case "DeploymentConfigNameRequiredException":
|
|
1041
|
+
case "com.amazonaws.codedeploy#DeploymentConfigNameRequiredException":
|
|
1042
|
+
throw await de_DeploymentConfigNameRequiredExceptionRes(parsedOutput, context);
|
|
1043
|
+
case "InvalidMinimumHealthyHostValueException":
|
|
1044
|
+
case "com.amazonaws.codedeploy#InvalidMinimumHealthyHostValueException":
|
|
1045
|
+
throw await de_InvalidMinimumHealthyHostValueExceptionRes(parsedOutput, context);
|
|
1046
|
+
case "InvalidZonalDeploymentConfigurationException":
|
|
1047
|
+
case "com.amazonaws.codedeploy#InvalidZonalDeploymentConfigurationException":
|
|
1048
|
+
throw await de_InvalidZonalDeploymentConfigurationExceptionRes(parsedOutput, context);
|
|
1049
|
+
case "DeploymentGroupAlreadyExistsException":
|
|
1050
|
+
case "com.amazonaws.codedeploy#DeploymentGroupAlreadyExistsException":
|
|
1051
|
+
throw await de_DeploymentGroupAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1052
|
+
case "DeploymentGroupLimitExceededException":
|
|
1053
|
+
case "com.amazonaws.codedeploy#DeploymentGroupLimitExceededException":
|
|
1054
|
+
throw await de_DeploymentGroupLimitExceededExceptionRes(parsedOutput, context);
|
|
1055
|
+
case "ECSServiceMappingLimitExceededException":
|
|
1056
|
+
case "com.amazonaws.codedeploy#ECSServiceMappingLimitExceededException":
|
|
1057
|
+
throw await de_ECSServiceMappingLimitExceededExceptionRes(parsedOutput, context);
|
|
1058
|
+
case "InvalidBlueGreenDeploymentConfigurationException":
|
|
1059
|
+
case "com.amazonaws.codedeploy#InvalidBlueGreenDeploymentConfigurationException":
|
|
1060
|
+
throw await de_InvalidBlueGreenDeploymentConfigurationExceptionRes(parsedOutput, context);
|
|
2565
1061
|
case "InvalidDeploymentStyleException":
|
|
2566
1062
|
case "com.amazonaws.codedeploy#InvalidDeploymentStyleException":
|
|
2567
1063
|
throw await de_InvalidDeploymentStyleExceptionRes(parsedOutput, context);
|
|
@@ -2577,39 +1073,135 @@ const de_UpdateDeploymentGroupCommandError = async (output, context) => {
|
|
|
2577
1073
|
case "InvalidInputException":
|
|
2578
1074
|
case "com.amazonaws.codedeploy#InvalidInputException":
|
|
2579
1075
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2580
|
-
case "InvalidLoadBalancerInfoException":
|
|
2581
|
-
case "com.amazonaws.codedeploy#InvalidLoadBalancerInfoException":
|
|
2582
|
-
throw await de_InvalidLoadBalancerInfoExceptionRes(parsedOutput, context);
|
|
2583
1076
|
case "InvalidOnPremisesTagCombinationException":
|
|
2584
1077
|
case "com.amazonaws.codedeploy#InvalidOnPremisesTagCombinationException":
|
|
2585
1078
|
throw await de_InvalidOnPremisesTagCombinationExceptionRes(parsedOutput, context);
|
|
2586
|
-
case "InvalidRoleException":
|
|
2587
|
-
case "com.amazonaws.codedeploy#InvalidRoleException":
|
|
2588
|
-
throw await de_InvalidRoleExceptionRes(parsedOutput, context);
|
|
2589
|
-
case "InvalidTagException":
|
|
2590
|
-
case "com.amazonaws.codedeploy#InvalidTagException":
|
|
2591
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
2592
1079
|
case "InvalidTargetGroupPairException":
|
|
2593
1080
|
case "com.amazonaws.codedeploy#InvalidTargetGroupPairException":
|
|
2594
1081
|
throw await de_InvalidTargetGroupPairExceptionRes(parsedOutput, context);
|
|
2595
|
-
case "InvalidTrafficRoutingConfigurationException":
|
|
2596
|
-
case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException":
|
|
2597
|
-
throw await de_InvalidTrafficRoutingConfigurationExceptionRes(parsedOutput, context);
|
|
2598
1082
|
case "InvalidTriggerConfigException":
|
|
2599
1083
|
case "com.amazonaws.codedeploy#InvalidTriggerConfigException":
|
|
2600
1084
|
throw await de_InvalidTriggerConfigExceptionRes(parsedOutput, context);
|
|
2601
1085
|
case "LifecycleHookLimitExceededException":
|
|
2602
1086
|
case "com.amazonaws.codedeploy#LifecycleHookLimitExceededException":
|
|
2603
1087
|
throw await de_LifecycleHookLimitExceededExceptionRes(parsedOutput, context);
|
|
1088
|
+
case "RoleRequiredException":
|
|
1089
|
+
case "com.amazonaws.codedeploy#RoleRequiredException":
|
|
1090
|
+
throw await de_RoleRequiredExceptionRes(parsedOutput, context);
|
|
2604
1091
|
case "TagSetListLimitExceededException":
|
|
2605
1092
|
case "com.amazonaws.codedeploy#TagSetListLimitExceededException":
|
|
2606
1093
|
throw await de_TagSetListLimitExceededExceptionRes(parsedOutput, context);
|
|
2607
|
-
case "ThrottlingException":
|
|
2608
|
-
case "com.amazonaws.codedeploy#ThrottlingException":
|
|
2609
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2610
1094
|
case "TriggerTargetsLimitExceededException":
|
|
2611
1095
|
case "com.amazonaws.codedeploy#TriggerTargetsLimitExceededException":
|
|
2612
1096
|
throw await de_TriggerTargetsLimitExceededExceptionRes(parsedOutput, context);
|
|
1097
|
+
case "DeploymentConfigInUseException":
|
|
1098
|
+
case "com.amazonaws.codedeploy#DeploymentConfigInUseException":
|
|
1099
|
+
throw await de_DeploymentConfigInUseExceptionRes(parsedOutput, context);
|
|
1100
|
+
case "InvalidOperationException":
|
|
1101
|
+
case "com.amazonaws.codedeploy#InvalidOperationException":
|
|
1102
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1103
|
+
case "GitHubAccountTokenDoesNotExistException":
|
|
1104
|
+
case "com.amazonaws.codedeploy#GitHubAccountTokenDoesNotExistException":
|
|
1105
|
+
throw await de_GitHubAccountTokenDoesNotExistExceptionRes(parsedOutput, context);
|
|
1106
|
+
case "GitHubAccountTokenNameRequiredException":
|
|
1107
|
+
case "com.amazonaws.codedeploy#GitHubAccountTokenNameRequiredException":
|
|
1108
|
+
throw await de_GitHubAccountTokenNameRequiredExceptionRes(parsedOutput, context);
|
|
1109
|
+
case "InvalidGitHubAccountTokenNameException":
|
|
1110
|
+
case "com.amazonaws.codedeploy#InvalidGitHubAccountTokenNameException":
|
|
1111
|
+
throw await de_InvalidGitHubAccountTokenNameExceptionRes(parsedOutput, context);
|
|
1112
|
+
case "OperationNotSupportedException":
|
|
1113
|
+
case "com.amazonaws.codedeploy#OperationNotSupportedException":
|
|
1114
|
+
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1115
|
+
case "ResourceValidationException":
|
|
1116
|
+
case "com.amazonaws.codedeploy#ResourceValidationException":
|
|
1117
|
+
throw await de_ResourceValidationExceptionRes(parsedOutput, context);
|
|
1118
|
+
case "BucketNameFilterRequiredException":
|
|
1119
|
+
case "com.amazonaws.codedeploy#BucketNameFilterRequiredException":
|
|
1120
|
+
throw await de_BucketNameFilterRequiredExceptionRes(parsedOutput, context);
|
|
1121
|
+
case "InvalidBucketNameFilterException":
|
|
1122
|
+
case "com.amazonaws.codedeploy#InvalidBucketNameFilterException":
|
|
1123
|
+
throw await de_InvalidBucketNameFilterExceptionRes(parsedOutput, context);
|
|
1124
|
+
case "InvalidDeployedStateFilterException":
|
|
1125
|
+
case "com.amazonaws.codedeploy#InvalidDeployedStateFilterException":
|
|
1126
|
+
throw await de_InvalidDeployedStateFilterExceptionRes(parsedOutput, context);
|
|
1127
|
+
case "InvalidKeyPrefixFilterException":
|
|
1128
|
+
case "com.amazonaws.codedeploy#InvalidKeyPrefixFilterException":
|
|
1129
|
+
throw await de_InvalidKeyPrefixFilterExceptionRes(parsedOutput, context);
|
|
1130
|
+
case "InvalidNextTokenException":
|
|
1131
|
+
case "com.amazonaws.codedeploy#InvalidNextTokenException":
|
|
1132
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1133
|
+
case "InvalidSortByException":
|
|
1134
|
+
case "com.amazonaws.codedeploy#InvalidSortByException":
|
|
1135
|
+
throw await de_InvalidSortByExceptionRes(parsedOutput, context);
|
|
1136
|
+
case "InvalidSortOrderException":
|
|
1137
|
+
case "com.amazonaws.codedeploy#InvalidSortOrderException":
|
|
1138
|
+
throw await de_InvalidSortOrderExceptionRes(parsedOutput, context);
|
|
1139
|
+
case "InvalidDeploymentInstanceTypeException":
|
|
1140
|
+
case "com.amazonaws.codedeploy#InvalidDeploymentInstanceTypeException":
|
|
1141
|
+
throw await de_InvalidDeploymentInstanceTypeExceptionRes(parsedOutput, context);
|
|
1142
|
+
case "InvalidInstanceStatusException":
|
|
1143
|
+
case "com.amazonaws.codedeploy#InvalidInstanceStatusException":
|
|
1144
|
+
throw await de_InvalidInstanceStatusExceptionRes(parsedOutput, context);
|
|
1145
|
+
case "InvalidInstanceTypeException":
|
|
1146
|
+
case "com.amazonaws.codedeploy#InvalidInstanceTypeException":
|
|
1147
|
+
throw await de_InvalidInstanceTypeExceptionRes(parsedOutput, context);
|
|
1148
|
+
case "InvalidTargetFilterNameException":
|
|
1149
|
+
case "com.amazonaws.codedeploy#InvalidTargetFilterNameException":
|
|
1150
|
+
throw await de_InvalidTargetFilterNameExceptionRes(parsedOutput, context);
|
|
1151
|
+
case "InvalidExternalIdException":
|
|
1152
|
+
case "com.amazonaws.codedeploy#InvalidExternalIdException":
|
|
1153
|
+
throw await de_InvalidExternalIdExceptionRes(parsedOutput, context);
|
|
1154
|
+
case "InvalidTimeRangeException":
|
|
1155
|
+
case "com.amazonaws.codedeploy#InvalidTimeRangeException":
|
|
1156
|
+
throw await de_InvalidTimeRangeExceptionRes(parsedOutput, context);
|
|
1157
|
+
case "InvalidRegistrationStatusException":
|
|
1158
|
+
case "com.amazonaws.codedeploy#InvalidRegistrationStatusException":
|
|
1159
|
+
throw await de_InvalidRegistrationStatusExceptionRes(parsedOutput, context);
|
|
1160
|
+
case "InvalidTagFilterException":
|
|
1161
|
+
case "com.amazonaws.codedeploy#InvalidTagFilterException":
|
|
1162
|
+
throw await de_InvalidTagFilterExceptionRes(parsedOutput, context);
|
|
1163
|
+
case "ArnNotSupportedException":
|
|
1164
|
+
case "com.amazonaws.codedeploy#ArnNotSupportedException":
|
|
1165
|
+
throw await de_ArnNotSupportedExceptionRes(parsedOutput, context);
|
|
1166
|
+
case "InvalidArnException":
|
|
1167
|
+
case "com.amazonaws.codedeploy#InvalidArnException":
|
|
1168
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1169
|
+
case "ResourceArnRequiredException":
|
|
1170
|
+
case "com.amazonaws.codedeploy#ResourceArnRequiredException":
|
|
1171
|
+
throw await de_ResourceArnRequiredExceptionRes(parsedOutput, context);
|
|
1172
|
+
case "InvalidLifecycleEventHookExecutionIdException":
|
|
1173
|
+
case "com.amazonaws.codedeploy#InvalidLifecycleEventHookExecutionIdException":
|
|
1174
|
+
throw await de_InvalidLifecycleEventHookExecutionIdExceptionRes(parsedOutput, context);
|
|
1175
|
+
case "InvalidLifecycleEventHookExecutionStatusException":
|
|
1176
|
+
case "com.amazonaws.codedeploy#InvalidLifecycleEventHookExecutionStatusException":
|
|
1177
|
+
throw await de_InvalidLifecycleEventHookExecutionStatusExceptionRes(parsedOutput, context);
|
|
1178
|
+
case "LifecycleEventAlreadyCompletedException":
|
|
1179
|
+
case "com.amazonaws.codedeploy#LifecycleEventAlreadyCompletedException":
|
|
1180
|
+
throw await de_LifecycleEventAlreadyCompletedExceptionRes(parsedOutput, context);
|
|
1181
|
+
case "IamArnRequiredException":
|
|
1182
|
+
case "com.amazonaws.codedeploy#IamArnRequiredException":
|
|
1183
|
+
throw await de_IamArnRequiredExceptionRes(parsedOutput, context);
|
|
1184
|
+
case "IamSessionArnAlreadyRegisteredException":
|
|
1185
|
+
case "com.amazonaws.codedeploy#IamSessionArnAlreadyRegisteredException":
|
|
1186
|
+
throw await de_IamSessionArnAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
1187
|
+
case "IamUserArnAlreadyRegisteredException":
|
|
1188
|
+
case "com.amazonaws.codedeploy#IamUserArnAlreadyRegisteredException":
|
|
1189
|
+
throw await de_IamUserArnAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
1190
|
+
case "IamUserArnRequiredException":
|
|
1191
|
+
case "com.amazonaws.codedeploy#IamUserArnRequiredException":
|
|
1192
|
+
throw await de_IamUserArnRequiredExceptionRes(parsedOutput, context);
|
|
1193
|
+
case "InstanceNameAlreadyRegisteredException":
|
|
1194
|
+
case "com.amazonaws.codedeploy#InstanceNameAlreadyRegisteredException":
|
|
1195
|
+
throw await de_InstanceNameAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
1196
|
+
case "InvalidIamSessionArnException":
|
|
1197
|
+
case "com.amazonaws.codedeploy#InvalidIamSessionArnException":
|
|
1198
|
+
throw await de_InvalidIamSessionArnExceptionRes(parsedOutput, context);
|
|
1199
|
+
case "InvalidIamUserArnException":
|
|
1200
|
+
case "com.amazonaws.codedeploy#InvalidIamUserArnException":
|
|
1201
|
+
throw await de_InvalidIamUserArnExceptionRes(parsedOutput, context);
|
|
1202
|
+
case "MultipleIamArnsProvidedException":
|
|
1203
|
+
case "com.amazonaws.codedeploy#MultipleIamArnsProvidedException":
|
|
1204
|
+
throw await de_MultipleIamArnsProvidedExceptionRes(parsedOutput, context);
|
|
2613
1205
|
default:
|
|
2614
1206
|
const parsedBody = parsedOutput.body;
|
|
2615
1207
|
return throwDefaultError({
|