@aws-sdk/client-m2 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +65 -1093
- package/dist-es/protocols/Aws_restJson1.js +101 -1129
- package/package.json +3 -3
|
@@ -438,7 +438,7 @@ export const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
|
438
438
|
};
|
|
439
439
|
export const de_CancelBatchJobExecutionCommand = async (output, context) => {
|
|
440
440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
441
|
-
return
|
|
441
|
+
return de_CommandError(output, context);
|
|
442
442
|
}
|
|
443
443
|
const contents = map({
|
|
444
444
|
$metadata: deserializeMetadata(output),
|
|
@@ -446,43 +446,9 @@ export const de_CancelBatchJobExecutionCommand = async (output, context) => {
|
|
|
446
446
|
await collectBody(output.body, context);
|
|
447
447
|
return contents;
|
|
448
448
|
};
|
|
449
|
-
const de_CancelBatchJobExecutionCommandError = async (output, context) => {
|
|
450
|
-
const parsedOutput = {
|
|
451
|
-
...output,
|
|
452
|
-
body: await parseErrorBody(output.body, context),
|
|
453
|
-
};
|
|
454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
455
|
-
switch (errorCode) {
|
|
456
|
-
case "AccessDeniedException":
|
|
457
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
458
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
459
|
-
case "ConflictException":
|
|
460
|
-
case "com.amazonaws.m2#ConflictException":
|
|
461
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
462
|
-
case "InternalServerException":
|
|
463
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
464
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
465
|
-
case "ResourceNotFoundException":
|
|
466
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
467
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ThrottlingException":
|
|
469
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
470
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
471
|
-
case "ValidationException":
|
|
472
|
-
case "com.amazonaws.m2#ValidationException":
|
|
473
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
474
|
-
default:
|
|
475
|
-
const parsedBody = parsedOutput.body;
|
|
476
|
-
return throwDefaultError({
|
|
477
|
-
output,
|
|
478
|
-
parsedBody,
|
|
479
|
-
errorCode,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
449
|
export const de_CreateApplicationCommand = async (output, context) => {
|
|
484
450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
485
|
-
return
|
|
451
|
+
return de_CommandError(output, context);
|
|
486
452
|
}
|
|
487
453
|
const contents = map({
|
|
488
454
|
$metadata: deserializeMetadata(output),
|
|
@@ -496,43 +462,9 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
496
462
|
Object.assign(contents, doc);
|
|
497
463
|
return contents;
|
|
498
464
|
};
|
|
499
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
500
|
-
const parsedOutput = {
|
|
501
|
-
...output,
|
|
502
|
-
body: await parseErrorBody(output.body, context),
|
|
503
|
-
};
|
|
504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
505
|
-
switch (errorCode) {
|
|
506
|
-
case "AccessDeniedException":
|
|
507
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
508
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
509
|
-
case "ConflictException":
|
|
510
|
-
case "com.amazonaws.m2#ConflictException":
|
|
511
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
512
|
-
case "InternalServerException":
|
|
513
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
514
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
515
|
-
case "ServiceQuotaExceededException":
|
|
516
|
-
case "com.amazonaws.m2#ServiceQuotaExceededException":
|
|
517
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
518
|
-
case "ThrottlingException":
|
|
519
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
520
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
521
|
-
case "ValidationException":
|
|
522
|
-
case "com.amazonaws.m2#ValidationException":
|
|
523
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
524
|
-
default:
|
|
525
|
-
const parsedBody = parsedOutput.body;
|
|
526
|
-
return throwDefaultError({
|
|
527
|
-
output,
|
|
528
|
-
parsedBody,
|
|
529
|
-
errorCode,
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
465
|
export const de_CreateDataSetImportTaskCommand = async (output, context) => {
|
|
534
466
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
535
|
-
return
|
|
467
|
+
return de_CommandError(output, context);
|
|
536
468
|
}
|
|
537
469
|
const contents = map({
|
|
538
470
|
$metadata: deserializeMetadata(output),
|
|
@@ -544,46 +476,9 @@ export const de_CreateDataSetImportTaskCommand = async (output, context) => {
|
|
|
544
476
|
Object.assign(contents, doc);
|
|
545
477
|
return contents;
|
|
546
478
|
};
|
|
547
|
-
const de_CreateDataSetImportTaskCommandError = async (output, context) => {
|
|
548
|
-
const parsedOutput = {
|
|
549
|
-
...output,
|
|
550
|
-
body: await parseErrorBody(output.body, context),
|
|
551
|
-
};
|
|
552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
|
-
switch (errorCode) {
|
|
554
|
-
case "AccessDeniedException":
|
|
555
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
556
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ConflictException":
|
|
558
|
-
case "com.amazonaws.m2#ConflictException":
|
|
559
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
560
|
-
case "InternalServerException":
|
|
561
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
562
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
563
|
-
case "ResourceNotFoundException":
|
|
564
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
565
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
566
|
-
case "ServiceQuotaExceededException":
|
|
567
|
-
case "com.amazonaws.m2#ServiceQuotaExceededException":
|
|
568
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ThrottlingException":
|
|
570
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
571
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
572
|
-
case "ValidationException":
|
|
573
|
-
case "com.amazonaws.m2#ValidationException":
|
|
574
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
575
|
-
default:
|
|
576
|
-
const parsedBody = parsedOutput.body;
|
|
577
|
-
return throwDefaultError({
|
|
578
|
-
output,
|
|
579
|
-
parsedBody,
|
|
580
|
-
errorCode,
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
479
|
export const de_CreateDeploymentCommand = async (output, context) => {
|
|
585
480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
586
|
-
return
|
|
481
|
+
return de_CommandError(output, context);
|
|
587
482
|
}
|
|
588
483
|
const contents = map({
|
|
589
484
|
$metadata: deserializeMetadata(output),
|
|
@@ -595,46 +490,9 @@ export const de_CreateDeploymentCommand = async (output, context) => {
|
|
|
595
490
|
Object.assign(contents, doc);
|
|
596
491
|
return contents;
|
|
597
492
|
};
|
|
598
|
-
const de_CreateDeploymentCommandError = async (output, context) => {
|
|
599
|
-
const parsedOutput = {
|
|
600
|
-
...output,
|
|
601
|
-
body: await parseErrorBody(output.body, context),
|
|
602
|
-
};
|
|
603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
604
|
-
switch (errorCode) {
|
|
605
|
-
case "AccessDeniedException":
|
|
606
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
607
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
608
|
-
case "ConflictException":
|
|
609
|
-
case "com.amazonaws.m2#ConflictException":
|
|
610
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
611
|
-
case "InternalServerException":
|
|
612
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
613
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
614
|
-
case "ResourceNotFoundException":
|
|
615
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
616
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
617
|
-
case "ServiceQuotaExceededException":
|
|
618
|
-
case "com.amazonaws.m2#ServiceQuotaExceededException":
|
|
619
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
620
|
-
case "ThrottlingException":
|
|
621
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
622
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
623
|
-
case "ValidationException":
|
|
624
|
-
case "com.amazonaws.m2#ValidationException":
|
|
625
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
626
|
-
default:
|
|
627
|
-
const parsedBody = parsedOutput.body;
|
|
628
|
-
return throwDefaultError({
|
|
629
|
-
output,
|
|
630
|
-
parsedBody,
|
|
631
|
-
errorCode,
|
|
632
|
-
});
|
|
633
|
-
}
|
|
634
|
-
};
|
|
635
493
|
export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
636
494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
637
|
-
return
|
|
495
|
+
return de_CommandError(output, context);
|
|
638
496
|
}
|
|
639
497
|
const contents = map({
|
|
640
498
|
$metadata: deserializeMetadata(output),
|
|
@@ -646,43 +504,9 @@ export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
646
504
|
Object.assign(contents, doc);
|
|
647
505
|
return contents;
|
|
648
506
|
};
|
|
649
|
-
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
650
|
-
const parsedOutput = {
|
|
651
|
-
...output,
|
|
652
|
-
body: await parseErrorBody(output.body, context),
|
|
653
|
-
};
|
|
654
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
|
-
switch (errorCode) {
|
|
656
|
-
case "AccessDeniedException":
|
|
657
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
658
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
659
|
-
case "ConflictException":
|
|
660
|
-
case "com.amazonaws.m2#ConflictException":
|
|
661
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
662
|
-
case "InternalServerException":
|
|
663
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
664
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
665
|
-
case "ServiceQuotaExceededException":
|
|
666
|
-
case "com.amazonaws.m2#ServiceQuotaExceededException":
|
|
667
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ThrottlingException":
|
|
669
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
670
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
671
|
-
case "ValidationException":
|
|
672
|
-
case "com.amazonaws.m2#ValidationException":
|
|
673
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
674
|
-
default:
|
|
675
|
-
const parsedBody = parsedOutput.body;
|
|
676
|
-
return throwDefaultError({
|
|
677
|
-
output,
|
|
678
|
-
parsedBody,
|
|
679
|
-
errorCode,
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
};
|
|
683
507
|
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
684
508
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
685
|
-
return
|
|
509
|
+
return de_CommandError(output, context);
|
|
686
510
|
}
|
|
687
511
|
const contents = map({
|
|
688
512
|
$metadata: deserializeMetadata(output),
|
|
@@ -690,40 +514,9 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
690
514
|
await collectBody(output.body, context);
|
|
691
515
|
return contents;
|
|
692
516
|
};
|
|
693
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
694
|
-
const parsedOutput = {
|
|
695
|
-
...output,
|
|
696
|
-
body: await parseErrorBody(output.body, context),
|
|
697
|
-
};
|
|
698
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
699
|
-
switch (errorCode) {
|
|
700
|
-
case "AccessDeniedException":
|
|
701
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
702
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
703
|
-
case "ConflictException":
|
|
704
|
-
case "com.amazonaws.m2#ConflictException":
|
|
705
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
706
|
-
case "InternalServerException":
|
|
707
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
708
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
709
|
-
case "ThrottlingException":
|
|
710
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
711
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
712
|
-
case "ValidationException":
|
|
713
|
-
case "com.amazonaws.m2#ValidationException":
|
|
714
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
715
|
-
default:
|
|
716
|
-
const parsedBody = parsedOutput.body;
|
|
717
|
-
return throwDefaultError({
|
|
718
|
-
output,
|
|
719
|
-
parsedBody,
|
|
720
|
-
errorCode,
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
};
|
|
724
517
|
export const de_DeleteApplicationFromEnvironmentCommand = async (output, context) => {
|
|
725
518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
726
|
-
return
|
|
519
|
+
return de_CommandError(output, context);
|
|
727
520
|
}
|
|
728
521
|
const contents = map({
|
|
729
522
|
$metadata: deserializeMetadata(output),
|
|
@@ -731,43 +524,9 @@ export const de_DeleteApplicationFromEnvironmentCommand = async (output, context
|
|
|
731
524
|
await collectBody(output.body, context);
|
|
732
525
|
return contents;
|
|
733
526
|
};
|
|
734
|
-
const de_DeleteApplicationFromEnvironmentCommandError = async (output, context) => {
|
|
735
|
-
const parsedOutput = {
|
|
736
|
-
...output,
|
|
737
|
-
body: await parseErrorBody(output.body, context),
|
|
738
|
-
};
|
|
739
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
740
|
-
switch (errorCode) {
|
|
741
|
-
case "AccessDeniedException":
|
|
742
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
743
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
744
|
-
case "ConflictException":
|
|
745
|
-
case "com.amazonaws.m2#ConflictException":
|
|
746
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
747
|
-
case "InternalServerException":
|
|
748
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
749
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ResourceNotFoundException":
|
|
751
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
752
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
753
|
-
case "ThrottlingException":
|
|
754
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
755
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
756
|
-
case "ValidationException":
|
|
757
|
-
case "com.amazonaws.m2#ValidationException":
|
|
758
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
759
|
-
default:
|
|
760
|
-
const parsedBody = parsedOutput.body;
|
|
761
|
-
return throwDefaultError({
|
|
762
|
-
output,
|
|
763
|
-
parsedBody,
|
|
764
|
-
errorCode,
|
|
765
|
-
});
|
|
766
|
-
}
|
|
767
|
-
};
|
|
768
527
|
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
769
528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
770
|
-
return
|
|
529
|
+
return de_CommandError(output, context);
|
|
771
530
|
}
|
|
772
531
|
const contents = map({
|
|
773
532
|
$metadata: deserializeMetadata(output),
|
|
@@ -775,40 +534,9 @@ export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
|
775
534
|
await collectBody(output.body, context);
|
|
776
535
|
return contents;
|
|
777
536
|
};
|
|
778
|
-
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
779
|
-
const parsedOutput = {
|
|
780
|
-
...output,
|
|
781
|
-
body: await parseErrorBody(output.body, context),
|
|
782
|
-
};
|
|
783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
|
-
switch (errorCode) {
|
|
785
|
-
case "AccessDeniedException":
|
|
786
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
787
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
788
|
-
case "ConflictException":
|
|
789
|
-
case "com.amazonaws.m2#ConflictException":
|
|
790
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
791
|
-
case "InternalServerException":
|
|
792
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
793
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
794
|
-
case "ThrottlingException":
|
|
795
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
796
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
797
|
-
case "ValidationException":
|
|
798
|
-
case "com.amazonaws.m2#ValidationException":
|
|
799
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
800
|
-
default:
|
|
801
|
-
const parsedBody = parsedOutput.body;
|
|
802
|
-
return throwDefaultError({
|
|
803
|
-
output,
|
|
804
|
-
parsedBody,
|
|
805
|
-
errorCode,
|
|
806
|
-
});
|
|
807
|
-
}
|
|
808
|
-
};
|
|
809
537
|
export const de_GetApplicationCommand = async (output, context) => {
|
|
810
538
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
811
|
-
return
|
|
539
|
+
return de_CommandError(output, context);
|
|
812
540
|
}
|
|
813
541
|
const contents = map({
|
|
814
542
|
$metadata: deserializeMetadata(output),
|
|
@@ -839,40 +567,9 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
839
567
|
Object.assign(contents, doc);
|
|
840
568
|
return contents;
|
|
841
569
|
};
|
|
842
|
-
const de_GetApplicationCommandError = async (output, context) => {
|
|
843
|
-
const parsedOutput = {
|
|
844
|
-
...output,
|
|
845
|
-
body: await parseErrorBody(output.body, context),
|
|
846
|
-
};
|
|
847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
switch (errorCode) {
|
|
849
|
-
case "AccessDeniedException":
|
|
850
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
851
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
852
|
-
case "InternalServerException":
|
|
853
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
854
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ResourceNotFoundException":
|
|
856
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
857
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ThrottlingException":
|
|
859
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
860
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
861
|
-
case "ValidationException":
|
|
862
|
-
case "com.amazonaws.m2#ValidationException":
|
|
863
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
864
|
-
default:
|
|
865
|
-
const parsedBody = parsedOutput.body;
|
|
866
|
-
return throwDefaultError({
|
|
867
|
-
output,
|
|
868
|
-
parsedBody,
|
|
869
|
-
errorCode,
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
570
|
export const de_GetApplicationVersionCommand = async (output, context) => {
|
|
874
571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
875
|
-
return
|
|
572
|
+
return de_CommandError(output, context);
|
|
876
573
|
}
|
|
877
574
|
const contents = map({
|
|
878
575
|
$metadata: deserializeMetadata(output),
|
|
@@ -890,40 +587,9 @@ export const de_GetApplicationVersionCommand = async (output, context) => {
|
|
|
890
587
|
Object.assign(contents, doc);
|
|
891
588
|
return contents;
|
|
892
589
|
};
|
|
893
|
-
const de_GetApplicationVersionCommandError = async (output, context) => {
|
|
894
|
-
const parsedOutput = {
|
|
895
|
-
...output,
|
|
896
|
-
body: await parseErrorBody(output.body, context),
|
|
897
|
-
};
|
|
898
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
899
|
-
switch (errorCode) {
|
|
900
|
-
case "AccessDeniedException":
|
|
901
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
902
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
903
|
-
case "InternalServerException":
|
|
904
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
905
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
906
|
-
case "ResourceNotFoundException":
|
|
907
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
908
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
909
|
-
case "ThrottlingException":
|
|
910
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
911
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
912
|
-
case "ValidationException":
|
|
913
|
-
case "com.amazonaws.m2#ValidationException":
|
|
914
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
915
|
-
default:
|
|
916
|
-
const parsedBody = parsedOutput.body;
|
|
917
|
-
return throwDefaultError({
|
|
918
|
-
output,
|
|
919
|
-
parsedBody,
|
|
920
|
-
errorCode,
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
590
|
export const de_GetBatchJobExecutionCommand = async (output, context) => {
|
|
925
591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
926
|
-
return
|
|
592
|
+
return de_CommandError(output, context);
|
|
927
593
|
}
|
|
928
594
|
const contents = map({
|
|
929
595
|
$metadata: deserializeMetadata(output),
|
|
@@ -937,49 +603,18 @@ export const de_GetBatchJobExecutionCommand = async (output, context) => {
|
|
|
937
603
|
jobId: __expectString,
|
|
938
604
|
jobName: __expectString,
|
|
939
605
|
jobType: __expectString,
|
|
940
|
-
jobUser: __expectString,
|
|
941
|
-
returnCode: __expectString,
|
|
942
|
-
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
943
|
-
status: __expectString,
|
|
944
|
-
statusReason: __expectString,
|
|
945
|
-
});
|
|
946
|
-
Object.assign(contents, doc);
|
|
947
|
-
return contents;
|
|
948
|
-
};
|
|
949
|
-
const de_GetBatchJobExecutionCommandError = async (output, context) => {
|
|
950
|
-
const parsedOutput = {
|
|
951
|
-
...output,
|
|
952
|
-
body: await parseErrorBody(output.body, context),
|
|
953
|
-
};
|
|
954
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
955
|
-
switch (errorCode) {
|
|
956
|
-
case "AccessDeniedException":
|
|
957
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
958
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
959
|
-
case "InternalServerException":
|
|
960
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
961
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ResourceNotFoundException":
|
|
963
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
964
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ThrottlingException":
|
|
966
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
967
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
968
|
-
case "ValidationException":
|
|
969
|
-
case "com.amazonaws.m2#ValidationException":
|
|
970
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
971
|
-
default:
|
|
972
|
-
const parsedBody = parsedOutput.body;
|
|
973
|
-
return throwDefaultError({
|
|
974
|
-
output,
|
|
975
|
-
parsedBody,
|
|
976
|
-
errorCode,
|
|
977
|
-
});
|
|
978
|
-
}
|
|
606
|
+
jobUser: __expectString,
|
|
607
|
+
returnCode: __expectString,
|
|
608
|
+
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
609
|
+
status: __expectString,
|
|
610
|
+
statusReason: __expectString,
|
|
611
|
+
});
|
|
612
|
+
Object.assign(contents, doc);
|
|
613
|
+
return contents;
|
|
979
614
|
};
|
|
980
615
|
export const de_GetDataSetDetailsCommand = async (output, context) => {
|
|
981
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
982
|
-
return
|
|
617
|
+
return de_CommandError(output, context);
|
|
983
618
|
}
|
|
984
619
|
const contents = map({
|
|
985
620
|
$metadata: deserializeMetadata(output),
|
|
@@ -999,49 +634,9 @@ export const de_GetDataSetDetailsCommand = async (output, context) => {
|
|
|
999
634
|
Object.assign(contents, doc);
|
|
1000
635
|
return contents;
|
|
1001
636
|
};
|
|
1002
|
-
const de_GetDataSetDetailsCommandError = async (output, context) => {
|
|
1003
|
-
const parsedOutput = {
|
|
1004
|
-
...output,
|
|
1005
|
-
body: await parseErrorBody(output.body, context),
|
|
1006
|
-
};
|
|
1007
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
|
-
switch (errorCode) {
|
|
1009
|
-
case "AccessDeniedException":
|
|
1010
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1011
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "ConflictException":
|
|
1013
|
-
case "com.amazonaws.m2#ConflictException":
|
|
1014
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "ExecutionTimeoutException":
|
|
1016
|
-
case "com.amazonaws.m2#ExecutionTimeoutException":
|
|
1017
|
-
throw await de_ExecutionTimeoutExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "InternalServerException":
|
|
1019
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1020
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "ResourceNotFoundException":
|
|
1022
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1023
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "ServiceUnavailableException":
|
|
1025
|
-
case "com.amazonaws.m2#ServiceUnavailableException":
|
|
1026
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ThrottlingException":
|
|
1028
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1029
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "ValidationException":
|
|
1031
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1032
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1033
|
-
default:
|
|
1034
|
-
const parsedBody = parsedOutput.body;
|
|
1035
|
-
return throwDefaultError({
|
|
1036
|
-
output,
|
|
1037
|
-
parsedBody,
|
|
1038
|
-
errorCode,
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
};
|
|
1042
637
|
export const de_GetDataSetImportTaskCommand = async (output, context) => {
|
|
1043
638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1044
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
1045
640
|
}
|
|
1046
641
|
const contents = map({
|
|
1047
642
|
$metadata: deserializeMetadata(output),
|
|
@@ -1055,40 +650,9 @@ export const de_GetDataSetImportTaskCommand = async (output, context) => {
|
|
|
1055
650
|
Object.assign(contents, doc);
|
|
1056
651
|
return contents;
|
|
1057
652
|
};
|
|
1058
|
-
const de_GetDataSetImportTaskCommandError = async (output, context) => {
|
|
1059
|
-
const parsedOutput = {
|
|
1060
|
-
...output,
|
|
1061
|
-
body: await parseErrorBody(output.body, context),
|
|
1062
|
-
};
|
|
1063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
|
-
switch (errorCode) {
|
|
1065
|
-
case "AccessDeniedException":
|
|
1066
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1067
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "InternalServerException":
|
|
1069
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1070
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ResourceNotFoundException":
|
|
1072
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1073
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "ThrottlingException":
|
|
1075
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1076
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "ValidationException":
|
|
1078
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1079
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
return throwDefaultError({
|
|
1083
|
-
output,
|
|
1084
|
-
parsedBody,
|
|
1085
|
-
errorCode,
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
653
|
export const de_GetDeploymentCommand = async (output, context) => {
|
|
1090
654
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1091
|
-
return
|
|
655
|
+
return de_CommandError(output, context);
|
|
1092
656
|
}
|
|
1093
657
|
const contents = map({
|
|
1094
658
|
$metadata: deserializeMetadata(output),
|
|
@@ -1106,40 +670,9 @@ export const de_GetDeploymentCommand = async (output, context) => {
|
|
|
1106
670
|
Object.assign(contents, doc);
|
|
1107
671
|
return contents;
|
|
1108
672
|
};
|
|
1109
|
-
const de_GetDeploymentCommandError = async (output, context) => {
|
|
1110
|
-
const parsedOutput = {
|
|
1111
|
-
...output,
|
|
1112
|
-
body: await parseErrorBody(output.body, context),
|
|
1113
|
-
};
|
|
1114
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1115
|
-
switch (errorCode) {
|
|
1116
|
-
case "AccessDeniedException":
|
|
1117
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1118
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "InternalServerException":
|
|
1120
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1121
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "ResourceNotFoundException":
|
|
1123
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1124
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "ThrottlingException":
|
|
1126
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1127
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "ValidationException":
|
|
1129
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1130
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1131
|
-
default:
|
|
1132
|
-
const parsedBody = parsedOutput.body;
|
|
1133
|
-
return throwDefaultError({
|
|
1134
|
-
output,
|
|
1135
|
-
parsedBody,
|
|
1136
|
-
errorCode,
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
};
|
|
1140
673
|
export const de_GetEnvironmentCommand = async (output, context) => {
|
|
1141
674
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1142
|
-
return
|
|
675
|
+
return de_CommandError(output, context);
|
|
1143
676
|
}
|
|
1144
677
|
const contents = map({
|
|
1145
678
|
$metadata: deserializeMetadata(output),
|
|
@@ -1172,493 +705,158 @@ export const de_GetEnvironmentCommand = async (output, context) => {
|
|
|
1172
705
|
Object.assign(contents, doc);
|
|
1173
706
|
return contents;
|
|
1174
707
|
};
|
|
1175
|
-
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
1176
|
-
const parsedOutput = {
|
|
1177
|
-
...output,
|
|
1178
|
-
body: await parseErrorBody(output.body, context),
|
|
1179
|
-
};
|
|
1180
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1181
|
-
switch (errorCode) {
|
|
1182
|
-
case "AccessDeniedException":
|
|
1183
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1184
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "InternalServerException":
|
|
1186
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1187
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ResourceNotFoundException":
|
|
1189
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1190
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "ThrottlingException":
|
|
1192
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1193
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "ValidationException":
|
|
1195
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1196
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1197
|
-
default:
|
|
1198
|
-
const parsedBody = parsedOutput.body;
|
|
1199
|
-
return throwDefaultError({
|
|
1200
|
-
output,
|
|
1201
|
-
parsedBody,
|
|
1202
|
-
errorCode,
|
|
1203
|
-
});
|
|
1204
|
-
}
|
|
1205
|
-
};
|
|
1206
708
|
export const de_GetSignedBluinsightsUrlCommand = async (output, context) => {
|
|
1207
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1208
|
-
return
|
|
1209
|
-
}
|
|
1210
|
-
const contents = map({
|
|
1211
|
-
$metadata: deserializeMetadata(output),
|
|
1212
|
-
});
|
|
1213
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1214
|
-
const doc = take(data, {
|
|
1215
|
-
signedBiUrl: __expectString,
|
|
1216
|
-
});
|
|
1217
|
-
Object.assign(contents, doc);
|
|
1218
|
-
return contents;
|
|
1219
|
-
};
|
|
1220
|
-
const de_GetSignedBluinsightsUrlCommandError = async (output, context) => {
|
|
1221
|
-
const parsedOutput = {
|
|
1222
|
-
...output,
|
|
1223
|
-
body: await parseErrorBody(output.body, context),
|
|
1224
|
-
};
|
|
1225
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
|
-
switch (errorCode) {
|
|
1227
|
-
case "AccessDeniedException":
|
|
1228
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1229
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "InternalServerException":
|
|
1231
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1232
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "ThrottlingException":
|
|
1234
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1235
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1236
|
-
default:
|
|
1237
|
-
const parsedBody = parsedOutput.body;
|
|
1238
|
-
return throwDefaultError({
|
|
1239
|
-
output,
|
|
1240
|
-
parsedBody,
|
|
1241
|
-
errorCode,
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
};
|
|
1245
|
-
export const de_ListApplicationsCommand = async (output, context) => {
|
|
1246
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1247
|
-
return de_ListApplicationsCommandError(output, context);
|
|
1248
|
-
}
|
|
1249
|
-
const contents = map({
|
|
1250
|
-
$metadata: deserializeMetadata(output),
|
|
1251
|
-
});
|
|
1252
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1253
|
-
const doc = take(data, {
|
|
1254
|
-
applications: (_) => de_ApplicationSummaryList(_, context),
|
|
1255
|
-
nextToken: __expectString,
|
|
1256
|
-
});
|
|
1257
|
-
Object.assign(contents, doc);
|
|
1258
|
-
return contents;
|
|
1259
|
-
};
|
|
1260
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
1261
|
-
const parsedOutput = {
|
|
1262
|
-
...output,
|
|
1263
|
-
body: await parseErrorBody(output.body, context),
|
|
1264
|
-
};
|
|
1265
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1266
|
-
switch (errorCode) {
|
|
1267
|
-
case "AccessDeniedException":
|
|
1268
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1269
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "InternalServerException":
|
|
1271
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1272
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "ThrottlingException":
|
|
1274
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1275
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "ValidationException":
|
|
1277
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1278
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1279
|
-
default:
|
|
1280
|
-
const parsedBody = parsedOutput.body;
|
|
1281
|
-
return throwDefaultError({
|
|
1282
|
-
output,
|
|
1283
|
-
parsedBody,
|
|
1284
|
-
errorCode,
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
};
|
|
1288
|
-
export const de_ListApplicationVersionsCommand = async (output, context) => {
|
|
1289
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1290
|
-
return de_ListApplicationVersionsCommandError(output, context);
|
|
1291
|
-
}
|
|
1292
|
-
const contents = map({
|
|
1293
|
-
$metadata: deserializeMetadata(output),
|
|
1294
|
-
});
|
|
1295
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1296
|
-
const doc = take(data, {
|
|
1297
|
-
applicationVersions: (_) => de_ApplicationVersionSummaryList(_, context),
|
|
1298
|
-
nextToken: __expectString,
|
|
1299
|
-
});
|
|
1300
|
-
Object.assign(contents, doc);
|
|
1301
|
-
return contents;
|
|
1302
|
-
};
|
|
1303
|
-
const de_ListApplicationVersionsCommandError = async (output, context) => {
|
|
1304
|
-
const parsedOutput = {
|
|
1305
|
-
...output,
|
|
1306
|
-
body: await parseErrorBody(output.body, context),
|
|
1307
|
-
};
|
|
1308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
|
-
switch (errorCode) {
|
|
1310
|
-
case "AccessDeniedException":
|
|
1311
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1312
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "InternalServerException":
|
|
1314
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1315
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "ResourceNotFoundException":
|
|
1317
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1318
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "ThrottlingException":
|
|
1320
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1321
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "ValidationException":
|
|
1323
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1324
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1325
|
-
default:
|
|
1326
|
-
const parsedBody = parsedOutput.body;
|
|
1327
|
-
return throwDefaultError({
|
|
1328
|
-
output,
|
|
1329
|
-
parsedBody,
|
|
1330
|
-
errorCode,
|
|
1331
|
-
});
|
|
709
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
710
|
+
return de_CommandError(output, context);
|
|
1332
711
|
}
|
|
712
|
+
const contents = map({
|
|
713
|
+
$metadata: deserializeMetadata(output),
|
|
714
|
+
});
|
|
715
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
716
|
+
const doc = take(data, {
|
|
717
|
+
signedBiUrl: __expectString,
|
|
718
|
+
});
|
|
719
|
+
Object.assign(contents, doc);
|
|
720
|
+
return contents;
|
|
1333
721
|
};
|
|
1334
|
-
export const
|
|
722
|
+
export const de_ListApplicationsCommand = async (output, context) => {
|
|
1335
723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1336
|
-
return
|
|
724
|
+
return de_CommandError(output, context);
|
|
1337
725
|
}
|
|
1338
726
|
const contents = map({
|
|
1339
727
|
$metadata: deserializeMetadata(output),
|
|
1340
728
|
});
|
|
1341
729
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1342
730
|
const doc = take(data, {
|
|
1343
|
-
|
|
731
|
+
applications: (_) => de_ApplicationSummaryList(_, context),
|
|
1344
732
|
nextToken: __expectString,
|
|
1345
733
|
});
|
|
1346
734
|
Object.assign(contents, doc);
|
|
1347
735
|
return contents;
|
|
1348
736
|
};
|
|
1349
|
-
const
|
|
1350
|
-
const parsedOutput = {
|
|
1351
|
-
...output,
|
|
1352
|
-
body: await parseErrorBody(output.body, context),
|
|
1353
|
-
};
|
|
1354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1355
|
-
switch (errorCode) {
|
|
1356
|
-
case "AccessDeniedException":
|
|
1357
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1358
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "InternalServerException":
|
|
1360
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1361
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "ResourceNotFoundException":
|
|
1363
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1364
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "ThrottlingException":
|
|
1366
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1367
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "ValidationException":
|
|
1369
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1370
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1371
|
-
default:
|
|
1372
|
-
const parsedBody = parsedOutput.body;
|
|
1373
|
-
return throwDefaultError({
|
|
1374
|
-
output,
|
|
1375
|
-
parsedBody,
|
|
1376
|
-
errorCode,
|
|
1377
|
-
});
|
|
1378
|
-
}
|
|
1379
|
-
};
|
|
1380
|
-
export const de_ListBatchJobExecutionsCommand = async (output, context) => {
|
|
737
|
+
export const de_ListApplicationVersionsCommand = async (output, context) => {
|
|
1381
738
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1382
|
-
return
|
|
739
|
+
return de_CommandError(output, context);
|
|
1383
740
|
}
|
|
1384
741
|
const contents = map({
|
|
1385
742
|
$metadata: deserializeMetadata(output),
|
|
1386
743
|
});
|
|
1387
744
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1388
745
|
const doc = take(data, {
|
|
1389
|
-
|
|
746
|
+
applicationVersions: (_) => de_ApplicationVersionSummaryList(_, context),
|
|
1390
747
|
nextToken: __expectString,
|
|
1391
748
|
});
|
|
1392
749
|
Object.assign(contents, doc);
|
|
1393
750
|
return contents;
|
|
1394
751
|
};
|
|
1395
|
-
const
|
|
1396
|
-
const parsedOutput = {
|
|
1397
|
-
...output,
|
|
1398
|
-
body: await parseErrorBody(output.body, context),
|
|
1399
|
-
};
|
|
1400
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1401
|
-
switch (errorCode) {
|
|
1402
|
-
case "AccessDeniedException":
|
|
1403
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1404
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "InternalServerException":
|
|
1406
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1407
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "ResourceNotFoundException":
|
|
1409
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1410
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "ThrottlingException":
|
|
1412
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1413
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "ValidationException":
|
|
1415
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1416
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1417
|
-
default:
|
|
1418
|
-
const parsedBody = parsedOutput.body;
|
|
1419
|
-
return throwDefaultError({
|
|
1420
|
-
output,
|
|
1421
|
-
parsedBody,
|
|
1422
|
-
errorCode,
|
|
1423
|
-
});
|
|
1424
|
-
}
|
|
1425
|
-
};
|
|
1426
|
-
export const de_ListDataSetImportHistoryCommand = async (output, context) => {
|
|
752
|
+
export const de_ListBatchJobDefinitionsCommand = async (output, context) => {
|
|
1427
753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1428
|
-
return
|
|
754
|
+
return de_CommandError(output, context);
|
|
1429
755
|
}
|
|
1430
756
|
const contents = map({
|
|
1431
757
|
$metadata: deserializeMetadata(output),
|
|
1432
758
|
});
|
|
1433
759
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1434
760
|
const doc = take(data, {
|
|
1435
|
-
|
|
761
|
+
batchJobDefinitions: _json,
|
|
1436
762
|
nextToken: __expectString,
|
|
1437
763
|
});
|
|
1438
764
|
Object.assign(contents, doc);
|
|
1439
765
|
return contents;
|
|
1440
766
|
};
|
|
1441
|
-
const
|
|
1442
|
-
const parsedOutput = {
|
|
1443
|
-
...output,
|
|
1444
|
-
body: await parseErrorBody(output.body, context),
|
|
1445
|
-
};
|
|
1446
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1447
|
-
switch (errorCode) {
|
|
1448
|
-
case "AccessDeniedException":
|
|
1449
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1450
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "InternalServerException":
|
|
1452
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1453
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "ResourceNotFoundException":
|
|
1455
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1456
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "ThrottlingException":
|
|
1458
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1459
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1460
|
-
case "ValidationException":
|
|
1461
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1462
|
-
throw await de_ValidationExceptionRes(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_ListDataSetsCommand = async (output, context) => {
|
|
767
|
+
export const de_ListBatchJobExecutionsCommand = async (output, context) => {
|
|
1473
768
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1474
|
-
return
|
|
769
|
+
return de_CommandError(output, context);
|
|
1475
770
|
}
|
|
1476
771
|
const contents = map({
|
|
1477
772
|
$metadata: deserializeMetadata(output),
|
|
1478
773
|
});
|
|
1479
774
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1480
775
|
const doc = take(data, {
|
|
1481
|
-
|
|
776
|
+
batchJobExecutions: (_) => de_BatchJobExecutionSummaryList(_, context),
|
|
1482
777
|
nextToken: __expectString,
|
|
1483
778
|
});
|
|
1484
779
|
Object.assign(contents, doc);
|
|
1485
780
|
return contents;
|
|
1486
781
|
};
|
|
1487
|
-
const
|
|
1488
|
-
const parsedOutput = {
|
|
1489
|
-
...output,
|
|
1490
|
-
body: await parseErrorBody(output.body, context),
|
|
1491
|
-
};
|
|
1492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
|
-
switch (errorCode) {
|
|
1494
|
-
case "AccessDeniedException":
|
|
1495
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1496
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ConflictException":
|
|
1498
|
-
case "com.amazonaws.m2#ConflictException":
|
|
1499
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "ExecutionTimeoutException":
|
|
1501
|
-
case "com.amazonaws.m2#ExecutionTimeoutException":
|
|
1502
|
-
throw await de_ExecutionTimeoutExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "InternalServerException":
|
|
1504
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1505
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "ResourceNotFoundException":
|
|
1507
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1508
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "ServiceUnavailableException":
|
|
1510
|
-
case "com.amazonaws.m2#ServiceUnavailableException":
|
|
1511
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "ThrottlingException":
|
|
1513
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1514
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ValidationException":
|
|
1516
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1517
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1518
|
-
default:
|
|
1519
|
-
const parsedBody = parsedOutput.body;
|
|
1520
|
-
return throwDefaultError({
|
|
1521
|
-
output,
|
|
1522
|
-
parsedBody,
|
|
1523
|
-
errorCode,
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
};
|
|
1527
|
-
export const de_ListDeploymentsCommand = async (output, context) => {
|
|
782
|
+
export const de_ListDataSetImportHistoryCommand = async (output, context) => {
|
|
1528
783
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1529
|
-
return
|
|
784
|
+
return de_CommandError(output, context);
|
|
1530
785
|
}
|
|
1531
786
|
const contents = map({
|
|
1532
787
|
$metadata: deserializeMetadata(output),
|
|
1533
788
|
});
|
|
1534
789
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1535
790
|
const doc = take(data, {
|
|
1536
|
-
|
|
791
|
+
dataSetImportTasks: _json,
|
|
1537
792
|
nextToken: __expectString,
|
|
1538
793
|
});
|
|
1539
794
|
Object.assign(contents, doc);
|
|
1540
795
|
return contents;
|
|
1541
796
|
};
|
|
1542
|
-
const
|
|
1543
|
-
const parsedOutput = {
|
|
1544
|
-
...output,
|
|
1545
|
-
body: await parseErrorBody(output.body, context),
|
|
1546
|
-
};
|
|
1547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1548
|
-
switch (errorCode) {
|
|
1549
|
-
case "AccessDeniedException":
|
|
1550
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1551
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "InternalServerException":
|
|
1553
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1554
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ResourceNotFoundException":
|
|
1556
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1557
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1558
|
-
case "ThrottlingException":
|
|
1559
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1560
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1561
|
-
case "ValidationException":
|
|
1562
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1563
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1564
|
-
default:
|
|
1565
|
-
const parsedBody = parsedOutput.body;
|
|
1566
|
-
return throwDefaultError({
|
|
1567
|
-
output,
|
|
1568
|
-
parsedBody,
|
|
1569
|
-
errorCode,
|
|
1570
|
-
});
|
|
1571
|
-
}
|
|
1572
|
-
};
|
|
1573
|
-
export const de_ListEngineVersionsCommand = async (output, context) => {
|
|
797
|
+
export const de_ListDataSetsCommand = async (output, context) => {
|
|
1574
798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1575
|
-
return
|
|
799
|
+
return de_CommandError(output, context);
|
|
1576
800
|
}
|
|
1577
801
|
const contents = map({
|
|
1578
802
|
$metadata: deserializeMetadata(output),
|
|
1579
803
|
});
|
|
1580
804
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1581
805
|
const doc = take(data, {
|
|
1582
|
-
|
|
806
|
+
dataSets: (_) => de_DataSetsSummaryList(_, context),
|
|
1583
807
|
nextToken: __expectString,
|
|
1584
808
|
});
|
|
1585
809
|
Object.assign(contents, doc);
|
|
1586
810
|
return contents;
|
|
1587
811
|
};
|
|
1588
|
-
const
|
|
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 "AccessDeniedException":
|
|
1596
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1597
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "InternalServerException":
|
|
1599
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1600
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "ThrottlingException":
|
|
1602
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1603
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "ValidationException":
|
|
1605
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1606
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1607
|
-
default:
|
|
1608
|
-
const parsedBody = parsedOutput.body;
|
|
1609
|
-
return throwDefaultError({
|
|
1610
|
-
output,
|
|
1611
|
-
parsedBody,
|
|
1612
|
-
errorCode,
|
|
1613
|
-
});
|
|
1614
|
-
}
|
|
1615
|
-
};
|
|
1616
|
-
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
812
|
+
export const de_ListDeploymentsCommand = async (output, context) => {
|
|
1617
813
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1618
|
-
return
|
|
814
|
+
return de_CommandError(output, context);
|
|
1619
815
|
}
|
|
1620
816
|
const contents = map({
|
|
1621
817
|
$metadata: deserializeMetadata(output),
|
|
1622
818
|
});
|
|
1623
819
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1624
820
|
const doc = take(data, {
|
|
1625
|
-
|
|
821
|
+
deployments: (_) => de_DeploymentList(_, context),
|
|
1626
822
|
nextToken: __expectString,
|
|
1627
823
|
});
|
|
1628
824
|
Object.assign(contents, doc);
|
|
1629
825
|
return contents;
|
|
1630
826
|
};
|
|
1631
|
-
const
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1650
|
-
default:
|
|
1651
|
-
const parsedBody = parsedOutput.body;
|
|
1652
|
-
return throwDefaultError({
|
|
1653
|
-
output,
|
|
1654
|
-
parsedBody,
|
|
1655
|
-
errorCode,
|
|
1656
|
-
});
|
|
827
|
+
export const de_ListEngineVersionsCommand = async (output, context) => {
|
|
828
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
+
return de_CommandError(output, context);
|
|
830
|
+
}
|
|
831
|
+
const contents = map({
|
|
832
|
+
$metadata: deserializeMetadata(output),
|
|
833
|
+
});
|
|
834
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
835
|
+
const doc = take(data, {
|
|
836
|
+
engineVersions: _json,
|
|
837
|
+
nextToken: __expectString,
|
|
838
|
+
});
|
|
839
|
+
Object.assign(contents, doc);
|
|
840
|
+
return contents;
|
|
841
|
+
};
|
|
842
|
+
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
843
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
844
|
+
return de_CommandError(output, context);
|
|
1657
845
|
}
|
|
846
|
+
const contents = map({
|
|
847
|
+
$metadata: deserializeMetadata(output),
|
|
848
|
+
});
|
|
849
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
850
|
+
const doc = take(data, {
|
|
851
|
+
environments: (_) => de_EnvironmentSummaryList(_, context),
|
|
852
|
+
nextToken: __expectString,
|
|
853
|
+
});
|
|
854
|
+
Object.assign(contents, doc);
|
|
855
|
+
return contents;
|
|
1658
856
|
};
|
|
1659
857
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1660
858
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1661
|
-
return
|
|
859
|
+
return de_CommandError(output, context);
|
|
1662
860
|
}
|
|
1663
861
|
const contents = map({
|
|
1664
862
|
$metadata: deserializeMetadata(output),
|
|
@@ -1670,40 +868,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1670
868
|
Object.assign(contents, doc);
|
|
1671
869
|
return contents;
|
|
1672
870
|
};
|
|
1673
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1674
|
-
const parsedOutput = {
|
|
1675
|
-
...output,
|
|
1676
|
-
body: await parseErrorBody(output.body, context),
|
|
1677
|
-
};
|
|
1678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1679
|
-
switch (errorCode) {
|
|
1680
|
-
case "AccessDeniedException":
|
|
1681
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1682
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1683
|
-
case "InternalServerException":
|
|
1684
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1685
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1686
|
-
case "ResourceNotFoundException":
|
|
1687
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1688
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1689
|
-
case "ThrottlingException":
|
|
1690
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1691
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "ValidationException":
|
|
1693
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1695
|
-
default:
|
|
1696
|
-
const parsedBody = parsedOutput.body;
|
|
1697
|
-
return throwDefaultError({
|
|
1698
|
-
output,
|
|
1699
|
-
parsedBody,
|
|
1700
|
-
errorCode,
|
|
1701
|
-
});
|
|
1702
|
-
}
|
|
1703
|
-
};
|
|
1704
871
|
export const de_StartApplicationCommand = async (output, context) => {
|
|
1705
872
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1706
|
-
return
|
|
873
|
+
return de_CommandError(output, context);
|
|
1707
874
|
}
|
|
1708
875
|
const contents = map({
|
|
1709
876
|
$metadata: deserializeMetadata(output),
|
|
@@ -1711,43 +878,9 @@ export const de_StartApplicationCommand = async (output, context) => {
|
|
|
1711
878
|
await collectBody(output.body, context);
|
|
1712
879
|
return contents;
|
|
1713
880
|
};
|
|
1714
|
-
const de_StartApplicationCommandError = async (output, context) => {
|
|
1715
|
-
const parsedOutput = {
|
|
1716
|
-
...output,
|
|
1717
|
-
body: await parseErrorBody(output.body, context),
|
|
1718
|
-
};
|
|
1719
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1720
|
-
switch (errorCode) {
|
|
1721
|
-
case "AccessDeniedException":
|
|
1722
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1723
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "ConflictException":
|
|
1725
|
-
case "com.amazonaws.m2#ConflictException":
|
|
1726
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "InternalServerException":
|
|
1728
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1729
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ResourceNotFoundException":
|
|
1731
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1732
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "ThrottlingException":
|
|
1734
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1735
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "ValidationException":
|
|
1737
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1738
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1739
|
-
default:
|
|
1740
|
-
const parsedBody = parsedOutput.body;
|
|
1741
|
-
return throwDefaultError({
|
|
1742
|
-
output,
|
|
1743
|
-
parsedBody,
|
|
1744
|
-
errorCode,
|
|
1745
|
-
});
|
|
1746
|
-
}
|
|
1747
|
-
};
|
|
1748
881
|
export const de_StartBatchJobCommand = async (output, context) => {
|
|
1749
882
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1750
|
-
return
|
|
883
|
+
return de_CommandError(output, context);
|
|
1751
884
|
}
|
|
1752
885
|
const contents = map({
|
|
1753
886
|
$metadata: deserializeMetadata(output),
|
|
@@ -1759,43 +892,9 @@ export const de_StartBatchJobCommand = async (output, context) => {
|
|
|
1759
892
|
Object.assign(contents, doc);
|
|
1760
893
|
return contents;
|
|
1761
894
|
};
|
|
1762
|
-
const de_StartBatchJobCommandError = async (output, context) => {
|
|
1763
|
-
const parsedOutput = {
|
|
1764
|
-
...output,
|
|
1765
|
-
body: await parseErrorBody(output.body, context),
|
|
1766
|
-
};
|
|
1767
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
|
-
switch (errorCode) {
|
|
1769
|
-
case "AccessDeniedException":
|
|
1770
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1771
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1772
|
-
case "ConflictException":
|
|
1773
|
-
case "com.amazonaws.m2#ConflictException":
|
|
1774
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1775
|
-
case "InternalServerException":
|
|
1776
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1777
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "ResourceNotFoundException":
|
|
1779
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1780
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "ThrottlingException":
|
|
1782
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1783
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1784
|
-
case "ValidationException":
|
|
1785
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1786
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1787
|
-
default:
|
|
1788
|
-
const parsedBody = parsedOutput.body;
|
|
1789
|
-
return throwDefaultError({
|
|
1790
|
-
output,
|
|
1791
|
-
parsedBody,
|
|
1792
|
-
errorCode,
|
|
1793
|
-
});
|
|
1794
|
-
}
|
|
1795
|
-
};
|
|
1796
895
|
export const de_StopApplicationCommand = async (output, context) => {
|
|
1797
896
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1798
|
-
return
|
|
897
|
+
return de_CommandError(output, context);
|
|
1799
898
|
}
|
|
1800
899
|
const contents = map({
|
|
1801
900
|
$metadata: deserializeMetadata(output),
|
|
@@ -1803,43 +902,9 @@ export const de_StopApplicationCommand = async (output, context) => {
|
|
|
1803
902
|
await collectBody(output.body, context);
|
|
1804
903
|
return contents;
|
|
1805
904
|
};
|
|
1806
|
-
const de_StopApplicationCommandError = async (output, context) => {
|
|
1807
|
-
const parsedOutput = {
|
|
1808
|
-
...output,
|
|
1809
|
-
body: await parseErrorBody(output.body, context),
|
|
1810
|
-
};
|
|
1811
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1812
|
-
switch (errorCode) {
|
|
1813
|
-
case "AccessDeniedException":
|
|
1814
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1815
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1816
|
-
case "ConflictException":
|
|
1817
|
-
case "com.amazonaws.m2#ConflictException":
|
|
1818
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1819
|
-
case "InternalServerException":
|
|
1820
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1821
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "ResourceNotFoundException":
|
|
1823
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1824
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "ThrottlingException":
|
|
1826
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1827
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "ValidationException":
|
|
1829
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1830
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1831
|
-
default:
|
|
1832
|
-
const parsedBody = parsedOutput.body;
|
|
1833
|
-
return throwDefaultError({
|
|
1834
|
-
output,
|
|
1835
|
-
parsedBody,
|
|
1836
|
-
errorCode,
|
|
1837
|
-
});
|
|
1838
|
-
}
|
|
1839
|
-
};
|
|
1840
905
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1841
906
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1842
|
-
return
|
|
907
|
+
return de_CommandError(output, context);
|
|
1843
908
|
}
|
|
1844
909
|
const contents = map({
|
|
1845
910
|
$metadata: deserializeMetadata(output),
|
|
@@ -1847,43 +912,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1847
912
|
await collectBody(output.body, context);
|
|
1848
913
|
return contents;
|
|
1849
914
|
};
|
|
1850
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1851
|
-
const parsedOutput = {
|
|
1852
|
-
...output,
|
|
1853
|
-
body: await parseErrorBody(output.body, context),
|
|
1854
|
-
};
|
|
1855
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1856
|
-
switch (errorCode) {
|
|
1857
|
-
case "AccessDeniedException":
|
|
1858
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1859
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1860
|
-
case "InternalServerException":
|
|
1861
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1862
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "ResourceNotFoundException":
|
|
1864
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1865
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "ServiceQuotaExceededException":
|
|
1867
|
-
case "com.amazonaws.m2#ServiceQuotaExceededException":
|
|
1868
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "ThrottlingException":
|
|
1870
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1871
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "ValidationException":
|
|
1873
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1874
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1875
|
-
default:
|
|
1876
|
-
const parsedBody = parsedOutput.body;
|
|
1877
|
-
return throwDefaultError({
|
|
1878
|
-
output,
|
|
1879
|
-
parsedBody,
|
|
1880
|
-
errorCode,
|
|
1881
|
-
});
|
|
1882
|
-
}
|
|
1883
|
-
};
|
|
1884
915
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1885
916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1886
|
-
return
|
|
917
|
+
return de_CommandError(output, context);
|
|
1887
918
|
}
|
|
1888
919
|
const contents = map({
|
|
1889
920
|
$metadata: deserializeMetadata(output),
|
|
@@ -1891,40 +922,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1891
922
|
await collectBody(output.body, context);
|
|
1892
923
|
return contents;
|
|
1893
924
|
};
|
|
1894
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1895
|
-
const parsedOutput = {
|
|
1896
|
-
...output,
|
|
1897
|
-
body: await parseErrorBody(output.body, context),
|
|
1898
|
-
};
|
|
1899
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1900
|
-
switch (errorCode) {
|
|
1901
|
-
case "AccessDeniedException":
|
|
1902
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1903
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1904
|
-
case "InternalServerException":
|
|
1905
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1906
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1907
|
-
case "ResourceNotFoundException":
|
|
1908
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1909
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1910
|
-
case "ThrottlingException":
|
|
1911
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1912
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1913
|
-
case "ValidationException":
|
|
1914
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1915
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1916
|
-
default:
|
|
1917
|
-
const parsedBody = parsedOutput.body;
|
|
1918
|
-
return throwDefaultError({
|
|
1919
|
-
output,
|
|
1920
|
-
parsedBody,
|
|
1921
|
-
errorCode,
|
|
1922
|
-
});
|
|
1923
|
-
}
|
|
1924
|
-
};
|
|
1925
925
|
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
1926
926
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1927
|
-
return
|
|
927
|
+
return de_CommandError(output, context);
|
|
1928
928
|
}
|
|
1929
929
|
const contents = map({
|
|
1930
930
|
$metadata: deserializeMetadata(output),
|
|
@@ -1936,43 +936,9 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
1936
936
|
Object.assign(contents, doc);
|
|
1937
937
|
return contents;
|
|
1938
938
|
};
|
|
1939
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1940
|
-
const parsedOutput = {
|
|
1941
|
-
...output,
|
|
1942
|
-
body: await parseErrorBody(output.body, context),
|
|
1943
|
-
};
|
|
1944
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1945
|
-
switch (errorCode) {
|
|
1946
|
-
case "AccessDeniedException":
|
|
1947
|
-
case "com.amazonaws.m2#AccessDeniedException":
|
|
1948
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "ConflictException":
|
|
1950
|
-
case "com.amazonaws.m2#ConflictException":
|
|
1951
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "InternalServerException":
|
|
1953
|
-
case "com.amazonaws.m2#InternalServerException":
|
|
1954
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "ResourceNotFoundException":
|
|
1956
|
-
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
1957
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "ThrottlingException":
|
|
1959
|
-
case "com.amazonaws.m2#ThrottlingException":
|
|
1960
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "ValidationException":
|
|
1962
|
-
case "com.amazonaws.m2#ValidationException":
|
|
1963
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1964
|
-
default:
|
|
1965
|
-
const parsedBody = parsedOutput.body;
|
|
1966
|
-
return throwDefaultError({
|
|
1967
|
-
output,
|
|
1968
|
-
parsedBody,
|
|
1969
|
-
errorCode,
|
|
1970
|
-
});
|
|
1971
|
-
}
|
|
1972
|
-
};
|
|
1973
939
|
export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
1974
940
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1975
|
-
return
|
|
941
|
+
return de_CommandError(output, context);
|
|
1976
942
|
}
|
|
1977
943
|
const contents = map({
|
|
1978
944
|
$metadata: deserializeMetadata(output),
|
|
@@ -1984,7 +950,7 @@ export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
|
1984
950
|
Object.assign(contents, doc);
|
|
1985
951
|
return contents;
|
|
1986
952
|
};
|
|
1987
|
-
const
|
|
953
|
+
const de_CommandError = async (output, context) => {
|
|
1988
954
|
const parsedOutput = {
|
|
1989
955
|
...output,
|
|
1990
956
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2003,15 +969,21 @@ const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
|
2003
969
|
case "ResourceNotFoundException":
|
|
2004
970
|
case "com.amazonaws.m2#ResourceNotFoundException":
|
|
2005
971
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2006
|
-
case "ServiceQuotaExceededException":
|
|
2007
|
-
case "com.amazonaws.m2#ServiceQuotaExceededException":
|
|
2008
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2009
972
|
case "ThrottlingException":
|
|
2010
973
|
case "com.amazonaws.m2#ThrottlingException":
|
|
2011
974
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2012
975
|
case "ValidationException":
|
|
2013
976
|
case "com.amazonaws.m2#ValidationException":
|
|
2014
977
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
978
|
+
case "ServiceQuotaExceededException":
|
|
979
|
+
case "com.amazonaws.m2#ServiceQuotaExceededException":
|
|
980
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
981
|
+
case "ExecutionTimeoutException":
|
|
982
|
+
case "com.amazonaws.m2#ExecutionTimeoutException":
|
|
983
|
+
throw await de_ExecutionTimeoutExceptionRes(parsedOutput, context);
|
|
984
|
+
case "ServiceUnavailableException":
|
|
985
|
+
case "com.amazonaws.m2#ServiceUnavailableException":
|
|
986
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2015
987
|
default:
|
|
2016
988
|
const parsedBody = parsedOutput.body;
|
|
2017
989
|
return throwDefaultError({
|