@aws-sdk/client-proton 3.503.1 → 3.507.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 +127 -2925
- package/dist-es/protocols/Aws_json1_0.js +231 -3029
- package/package.json +3 -3
|
@@ -528,7 +528,7 @@ export const se_UpdateTemplateSyncConfigCommand = async (input, context) => {
|
|
|
528
528
|
};
|
|
529
529
|
export const de_AcceptEnvironmentAccountConnectionCommand = async (output, context) => {
|
|
530
530
|
if (output.statusCode >= 300) {
|
|
531
|
-
return
|
|
531
|
+
return de_CommandError(output, context);
|
|
532
532
|
}
|
|
533
533
|
const data = await parseBody(output.body, context);
|
|
534
534
|
let contents = {};
|
|
@@ -539,43 +539,9 @@ export const de_AcceptEnvironmentAccountConnectionCommand = async (output, conte
|
|
|
539
539
|
};
|
|
540
540
|
return response;
|
|
541
541
|
};
|
|
542
|
-
const de_AcceptEnvironmentAccountConnectionCommandError = async (output, context) => {
|
|
543
|
-
const parsedOutput = {
|
|
544
|
-
...output,
|
|
545
|
-
body: await parseErrorBody(output.body, context),
|
|
546
|
-
};
|
|
547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
|
-
switch (errorCode) {
|
|
549
|
-
case "AccessDeniedException":
|
|
550
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
551
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
552
|
-
case "ConflictException":
|
|
553
|
-
case "com.amazonaws.proton#ConflictException":
|
|
554
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
555
|
-
case "InternalServerException":
|
|
556
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
557
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
558
|
-
case "ResourceNotFoundException":
|
|
559
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
560
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ThrottlingException":
|
|
562
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
563
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
564
|
-
case "ValidationException":
|
|
565
|
-
case "com.amazonaws.proton#ValidationException":
|
|
566
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
567
|
-
default:
|
|
568
|
-
const parsedBody = parsedOutput.body;
|
|
569
|
-
return throwDefaultError({
|
|
570
|
-
output,
|
|
571
|
-
parsedBody,
|
|
572
|
-
errorCode,
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
542
|
export const de_CancelComponentDeploymentCommand = async (output, context) => {
|
|
577
543
|
if (output.statusCode >= 300) {
|
|
578
|
-
return
|
|
544
|
+
return de_CommandError(output, context);
|
|
579
545
|
}
|
|
580
546
|
const data = await parseBody(output.body, context);
|
|
581
547
|
let contents = {};
|
|
@@ -586,43 +552,9 @@ export const de_CancelComponentDeploymentCommand = async (output, context) => {
|
|
|
586
552
|
};
|
|
587
553
|
return response;
|
|
588
554
|
};
|
|
589
|
-
const de_CancelComponentDeploymentCommandError = async (output, context) => {
|
|
590
|
-
const parsedOutput = {
|
|
591
|
-
...output,
|
|
592
|
-
body: await parseErrorBody(output.body, context),
|
|
593
|
-
};
|
|
594
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
595
|
-
switch (errorCode) {
|
|
596
|
-
case "AccessDeniedException":
|
|
597
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
598
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
599
|
-
case "ConflictException":
|
|
600
|
-
case "com.amazonaws.proton#ConflictException":
|
|
601
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
602
|
-
case "InternalServerException":
|
|
603
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
604
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
605
|
-
case "ResourceNotFoundException":
|
|
606
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
607
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
608
|
-
case "ThrottlingException":
|
|
609
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
610
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
611
|
-
case "ValidationException":
|
|
612
|
-
case "com.amazonaws.proton#ValidationException":
|
|
613
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
614
|
-
default:
|
|
615
|
-
const parsedBody = parsedOutput.body;
|
|
616
|
-
return throwDefaultError({
|
|
617
|
-
output,
|
|
618
|
-
parsedBody,
|
|
619
|
-
errorCode,
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
555
|
export const de_CancelEnvironmentDeploymentCommand = async (output, context) => {
|
|
624
556
|
if (output.statusCode >= 300) {
|
|
625
|
-
return
|
|
557
|
+
return de_CommandError(output, context);
|
|
626
558
|
}
|
|
627
559
|
const data = await parseBody(output.body, context);
|
|
628
560
|
let contents = {};
|
|
@@ -633,43 +565,9 @@ export const de_CancelEnvironmentDeploymentCommand = async (output, context) =>
|
|
|
633
565
|
};
|
|
634
566
|
return response;
|
|
635
567
|
};
|
|
636
|
-
const de_CancelEnvironmentDeploymentCommandError = async (output, context) => {
|
|
637
|
-
const parsedOutput = {
|
|
638
|
-
...output,
|
|
639
|
-
body: await parseErrorBody(output.body, context),
|
|
640
|
-
};
|
|
641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
642
|
-
switch (errorCode) {
|
|
643
|
-
case "AccessDeniedException":
|
|
644
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
645
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
646
|
-
case "ConflictException":
|
|
647
|
-
case "com.amazonaws.proton#ConflictException":
|
|
648
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
649
|
-
case "InternalServerException":
|
|
650
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
651
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
652
|
-
case "ResourceNotFoundException":
|
|
653
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
654
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
655
|
-
case "ThrottlingException":
|
|
656
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
657
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
658
|
-
case "ValidationException":
|
|
659
|
-
case "com.amazonaws.proton#ValidationException":
|
|
660
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
661
|
-
default:
|
|
662
|
-
const parsedBody = parsedOutput.body;
|
|
663
|
-
return throwDefaultError({
|
|
664
|
-
output,
|
|
665
|
-
parsedBody,
|
|
666
|
-
errorCode,
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
};
|
|
670
568
|
export const de_CancelServiceInstanceDeploymentCommand = async (output, context) => {
|
|
671
569
|
if (output.statusCode >= 300) {
|
|
672
|
-
return
|
|
570
|
+
return de_CommandError(output, context);
|
|
673
571
|
}
|
|
674
572
|
const data = await parseBody(output.body, context);
|
|
675
573
|
let contents = {};
|
|
@@ -680,43 +578,9 @@ export const de_CancelServiceInstanceDeploymentCommand = async (output, context)
|
|
|
680
578
|
};
|
|
681
579
|
return response;
|
|
682
580
|
};
|
|
683
|
-
const de_CancelServiceInstanceDeploymentCommandError = async (output, context) => {
|
|
684
|
-
const parsedOutput = {
|
|
685
|
-
...output,
|
|
686
|
-
body: await parseErrorBody(output.body, context),
|
|
687
|
-
};
|
|
688
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
689
|
-
switch (errorCode) {
|
|
690
|
-
case "AccessDeniedException":
|
|
691
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
692
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
693
|
-
case "ConflictException":
|
|
694
|
-
case "com.amazonaws.proton#ConflictException":
|
|
695
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
696
|
-
case "InternalServerException":
|
|
697
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
698
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
699
|
-
case "ResourceNotFoundException":
|
|
700
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
701
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
702
|
-
case "ThrottlingException":
|
|
703
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
704
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
705
|
-
case "ValidationException":
|
|
706
|
-
case "com.amazonaws.proton#ValidationException":
|
|
707
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
708
|
-
default:
|
|
709
|
-
const parsedBody = parsedOutput.body;
|
|
710
|
-
return throwDefaultError({
|
|
711
|
-
output,
|
|
712
|
-
parsedBody,
|
|
713
|
-
errorCode,
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
581
|
export const de_CancelServicePipelineDeploymentCommand = async (output, context) => {
|
|
718
582
|
if (output.statusCode >= 300) {
|
|
719
|
-
return
|
|
583
|
+
return de_CommandError(output, context);
|
|
720
584
|
}
|
|
721
585
|
const data = await parseBody(output.body, context);
|
|
722
586
|
let contents = {};
|
|
@@ -727,43 +591,9 @@ export const de_CancelServicePipelineDeploymentCommand = async (output, context)
|
|
|
727
591
|
};
|
|
728
592
|
return response;
|
|
729
593
|
};
|
|
730
|
-
const de_CancelServicePipelineDeploymentCommandError = async (output, context) => {
|
|
731
|
-
const parsedOutput = {
|
|
732
|
-
...output,
|
|
733
|
-
body: await parseErrorBody(output.body, context),
|
|
734
|
-
};
|
|
735
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
|
-
switch (errorCode) {
|
|
737
|
-
case "AccessDeniedException":
|
|
738
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
739
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
740
|
-
case "ConflictException":
|
|
741
|
-
case "com.amazonaws.proton#ConflictException":
|
|
742
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
743
|
-
case "InternalServerException":
|
|
744
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
745
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
746
|
-
case "ResourceNotFoundException":
|
|
747
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
748
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
749
|
-
case "ThrottlingException":
|
|
750
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
751
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
752
|
-
case "ValidationException":
|
|
753
|
-
case "com.amazonaws.proton#ValidationException":
|
|
754
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
755
|
-
default:
|
|
756
|
-
const parsedBody = parsedOutput.body;
|
|
757
|
-
return throwDefaultError({
|
|
758
|
-
output,
|
|
759
|
-
parsedBody,
|
|
760
|
-
errorCode,
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
594
|
export const de_CreateComponentCommand = async (output, context) => {
|
|
765
595
|
if (output.statusCode >= 300) {
|
|
766
|
-
return
|
|
596
|
+
return de_CommandError(output, context);
|
|
767
597
|
}
|
|
768
598
|
const data = await parseBody(output.body, context);
|
|
769
599
|
let contents = {};
|
|
@@ -774,46 +604,9 @@ export const de_CreateComponentCommand = async (output, context) => {
|
|
|
774
604
|
};
|
|
775
605
|
return response;
|
|
776
606
|
};
|
|
777
|
-
const de_CreateComponentCommandError = async (output, context) => {
|
|
778
|
-
const parsedOutput = {
|
|
779
|
-
...output,
|
|
780
|
-
body: await parseErrorBody(output.body, context),
|
|
781
|
-
};
|
|
782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
-
switch (errorCode) {
|
|
784
|
-
case "AccessDeniedException":
|
|
785
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
786
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
787
|
-
case "ConflictException":
|
|
788
|
-
case "com.amazonaws.proton#ConflictException":
|
|
789
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
790
|
-
case "InternalServerException":
|
|
791
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
792
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
793
|
-
case "ResourceNotFoundException":
|
|
794
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
795
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
796
|
-
case "ServiceQuotaExceededException":
|
|
797
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
798
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
799
|
-
case "ThrottlingException":
|
|
800
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
801
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
802
|
-
case "ValidationException":
|
|
803
|
-
case "com.amazonaws.proton#ValidationException":
|
|
804
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
805
|
-
default:
|
|
806
|
-
const parsedBody = parsedOutput.body;
|
|
807
|
-
return throwDefaultError({
|
|
808
|
-
output,
|
|
809
|
-
parsedBody,
|
|
810
|
-
errorCode,
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
};
|
|
814
607
|
export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
815
608
|
if (output.statusCode >= 300) {
|
|
816
|
-
return
|
|
609
|
+
return de_CommandError(output, context);
|
|
817
610
|
}
|
|
818
611
|
const data = await parseBody(output.body, context);
|
|
819
612
|
let contents = {};
|
|
@@ -824,46 +617,9 @@ export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
824
617
|
};
|
|
825
618
|
return response;
|
|
826
619
|
};
|
|
827
|
-
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
828
|
-
const parsedOutput = {
|
|
829
|
-
...output,
|
|
830
|
-
body: await parseErrorBody(output.body, context),
|
|
831
|
-
};
|
|
832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
|
-
switch (errorCode) {
|
|
834
|
-
case "AccessDeniedException":
|
|
835
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
836
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ConflictException":
|
|
838
|
-
case "com.amazonaws.proton#ConflictException":
|
|
839
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
840
|
-
case "InternalServerException":
|
|
841
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
842
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ResourceNotFoundException":
|
|
844
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
845
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
846
|
-
case "ServiceQuotaExceededException":
|
|
847
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
848
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
849
|
-
case "ThrottlingException":
|
|
850
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
851
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ValidationException":
|
|
853
|
-
case "com.amazonaws.proton#ValidationException":
|
|
854
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
855
|
-
default:
|
|
856
|
-
const parsedBody = parsedOutput.body;
|
|
857
|
-
return throwDefaultError({
|
|
858
|
-
output,
|
|
859
|
-
parsedBody,
|
|
860
|
-
errorCode,
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
};
|
|
864
620
|
export const de_CreateEnvironmentAccountConnectionCommand = async (output, context) => {
|
|
865
621
|
if (output.statusCode >= 300) {
|
|
866
|
-
return
|
|
622
|
+
return de_CommandError(output, context);
|
|
867
623
|
}
|
|
868
624
|
const data = await parseBody(output.body, context);
|
|
869
625
|
let contents = {};
|
|
@@ -874,90 +630,22 @@ export const de_CreateEnvironmentAccountConnectionCommand = async (output, conte
|
|
|
874
630
|
};
|
|
875
631
|
return response;
|
|
876
632
|
};
|
|
877
|
-
const
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
case "ConflictException":
|
|
888
|
-
case "com.amazonaws.proton#ConflictException":
|
|
889
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
890
|
-
case "InternalServerException":
|
|
891
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
892
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ServiceQuotaExceededException":
|
|
894
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
895
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ThrottlingException":
|
|
897
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
898
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ValidationException":
|
|
900
|
-
case "com.amazonaws.proton#ValidationException":
|
|
901
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
902
|
-
default:
|
|
903
|
-
const parsedBody = parsedOutput.body;
|
|
904
|
-
return throwDefaultError({
|
|
905
|
-
output,
|
|
906
|
-
parsedBody,
|
|
907
|
-
errorCode,
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
|
-
export const de_CreateEnvironmentTemplateCommand = async (output, context) => {
|
|
912
|
-
if (output.statusCode >= 300) {
|
|
913
|
-
return de_CreateEnvironmentTemplateCommandError(output, context);
|
|
914
|
-
}
|
|
915
|
-
const data = await parseBody(output.body, context);
|
|
916
|
-
let contents = {};
|
|
917
|
-
contents = de_CreateEnvironmentTemplateOutput(data, context);
|
|
918
|
-
const response = {
|
|
919
|
-
$metadata: deserializeMetadata(output),
|
|
920
|
-
...contents,
|
|
633
|
+
export const de_CreateEnvironmentTemplateCommand = async (output, context) => {
|
|
634
|
+
if (output.statusCode >= 300) {
|
|
635
|
+
return de_CommandError(output, context);
|
|
636
|
+
}
|
|
637
|
+
const data = await parseBody(output.body, context);
|
|
638
|
+
let contents = {};
|
|
639
|
+
contents = de_CreateEnvironmentTemplateOutput(data, context);
|
|
640
|
+
const response = {
|
|
641
|
+
$metadata: deserializeMetadata(output),
|
|
642
|
+
...contents,
|
|
921
643
|
};
|
|
922
644
|
return response;
|
|
923
645
|
};
|
|
924
|
-
const de_CreateEnvironmentTemplateCommandError = async (output, context) => {
|
|
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 "AccessDeniedException":
|
|
932
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
933
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ConflictException":
|
|
935
|
-
case "com.amazonaws.proton#ConflictException":
|
|
936
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
937
|
-
case "InternalServerException":
|
|
938
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
939
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ServiceQuotaExceededException":
|
|
941
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
942
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
943
|
-
case "ThrottlingException":
|
|
944
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
945
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
946
|
-
case "ValidationException":
|
|
947
|
-
case "com.amazonaws.proton#ValidationException":
|
|
948
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
949
|
-
default:
|
|
950
|
-
const parsedBody = parsedOutput.body;
|
|
951
|
-
return throwDefaultError({
|
|
952
|
-
output,
|
|
953
|
-
parsedBody,
|
|
954
|
-
errorCode,
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
|
-
};
|
|
958
646
|
export const de_CreateEnvironmentTemplateVersionCommand = async (output, context) => {
|
|
959
647
|
if (output.statusCode >= 300) {
|
|
960
|
-
return
|
|
648
|
+
return de_CommandError(output, context);
|
|
961
649
|
}
|
|
962
650
|
const data = await parseBody(output.body, context);
|
|
963
651
|
let contents = {};
|
|
@@ -968,46 +656,9 @@ export const de_CreateEnvironmentTemplateVersionCommand = async (output, context
|
|
|
968
656
|
};
|
|
969
657
|
return response;
|
|
970
658
|
};
|
|
971
|
-
const de_CreateEnvironmentTemplateVersionCommandError = async (output, context) => {
|
|
972
|
-
const parsedOutput = {
|
|
973
|
-
...output,
|
|
974
|
-
body: await parseErrorBody(output.body, context),
|
|
975
|
-
};
|
|
976
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
|
-
switch (errorCode) {
|
|
978
|
-
case "AccessDeniedException":
|
|
979
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
980
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ConflictException":
|
|
982
|
-
case "com.amazonaws.proton#ConflictException":
|
|
983
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
984
|
-
case "InternalServerException":
|
|
985
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
986
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ResourceNotFoundException":
|
|
988
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
989
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
990
|
-
case "ServiceQuotaExceededException":
|
|
991
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
992
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
993
|
-
case "ThrottlingException":
|
|
994
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
995
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
996
|
-
case "ValidationException":
|
|
997
|
-
case "com.amazonaws.proton#ValidationException":
|
|
998
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
999
|
-
default:
|
|
1000
|
-
const parsedBody = parsedOutput.body;
|
|
1001
|
-
return throwDefaultError({
|
|
1002
|
-
output,
|
|
1003
|
-
parsedBody,
|
|
1004
|
-
errorCode,
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
};
|
|
1008
659
|
export const de_CreateRepositoryCommand = async (output, context) => {
|
|
1009
660
|
if (output.statusCode >= 300) {
|
|
1010
|
-
return
|
|
661
|
+
return de_CommandError(output, context);
|
|
1011
662
|
}
|
|
1012
663
|
const data = await parseBody(output.body, context);
|
|
1013
664
|
let contents = {};
|
|
@@ -1018,43 +669,9 @@ export const de_CreateRepositoryCommand = async (output, context) => {
|
|
|
1018
669
|
};
|
|
1019
670
|
return response;
|
|
1020
671
|
};
|
|
1021
|
-
const de_CreateRepositoryCommandError = async (output, context) => {
|
|
1022
|
-
const parsedOutput = {
|
|
1023
|
-
...output,
|
|
1024
|
-
body: await parseErrorBody(output.body, context),
|
|
1025
|
-
};
|
|
1026
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
|
-
switch (errorCode) {
|
|
1028
|
-
case "AccessDeniedException":
|
|
1029
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1030
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "ConflictException":
|
|
1032
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1033
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "InternalServerException":
|
|
1035
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1036
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "ServiceQuotaExceededException":
|
|
1038
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
1039
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1040
|
-
case "ThrottlingException":
|
|
1041
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1042
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "ValidationException":
|
|
1044
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1045
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1046
|
-
default:
|
|
1047
|
-
const parsedBody = parsedOutput.body;
|
|
1048
|
-
return throwDefaultError({
|
|
1049
|
-
output,
|
|
1050
|
-
parsedBody,
|
|
1051
|
-
errorCode,
|
|
1052
|
-
});
|
|
1053
|
-
}
|
|
1054
|
-
};
|
|
1055
672
|
export const de_CreateServiceCommand = async (output, context) => {
|
|
1056
673
|
if (output.statusCode >= 300) {
|
|
1057
|
-
return
|
|
674
|
+
return de_CommandError(output, context);
|
|
1058
675
|
}
|
|
1059
676
|
const data = await parseBody(output.body, context);
|
|
1060
677
|
let contents = {};
|
|
@@ -1065,46 +682,9 @@ export const de_CreateServiceCommand = async (output, context) => {
|
|
|
1065
682
|
};
|
|
1066
683
|
return response;
|
|
1067
684
|
};
|
|
1068
|
-
const de_CreateServiceCommandError = async (output, context) => {
|
|
1069
|
-
const parsedOutput = {
|
|
1070
|
-
...output,
|
|
1071
|
-
body: await parseErrorBody(output.body, context),
|
|
1072
|
-
};
|
|
1073
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1074
|
-
switch (errorCode) {
|
|
1075
|
-
case "AccessDeniedException":
|
|
1076
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1077
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "ConflictException":
|
|
1079
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1080
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "InternalServerException":
|
|
1082
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1083
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "ResourceNotFoundException":
|
|
1085
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1086
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "ServiceQuotaExceededException":
|
|
1088
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
1089
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "ThrottlingException":
|
|
1091
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1092
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "ValidationException":
|
|
1094
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1095
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1096
|
-
default:
|
|
1097
|
-
const parsedBody = parsedOutput.body;
|
|
1098
|
-
return throwDefaultError({
|
|
1099
|
-
output,
|
|
1100
|
-
parsedBody,
|
|
1101
|
-
errorCode,
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
};
|
|
1105
685
|
export const de_CreateServiceInstanceCommand = async (output, context) => {
|
|
1106
686
|
if (output.statusCode >= 300) {
|
|
1107
|
-
return
|
|
687
|
+
return de_CommandError(output, context);
|
|
1108
688
|
}
|
|
1109
689
|
const data = await parseBody(output.body, context);
|
|
1110
690
|
let contents = {};
|
|
@@ -1115,43 +695,9 @@ export const de_CreateServiceInstanceCommand = async (output, context) => {
|
|
|
1115
695
|
};
|
|
1116
696
|
return response;
|
|
1117
697
|
};
|
|
1118
|
-
const de_CreateServiceInstanceCommandError = async (output, context) => {
|
|
1119
|
-
const parsedOutput = {
|
|
1120
|
-
...output,
|
|
1121
|
-
body: await parseErrorBody(output.body, context),
|
|
1122
|
-
};
|
|
1123
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1124
|
-
switch (errorCode) {
|
|
1125
|
-
case "AccessDeniedException":
|
|
1126
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1127
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "ConflictException":
|
|
1129
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1130
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1131
|
-
case "InternalServerException":
|
|
1132
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1133
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1134
|
-
case "ResourceNotFoundException":
|
|
1135
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1136
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "ThrottlingException":
|
|
1138
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1139
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "ValidationException":
|
|
1141
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1142
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1143
|
-
default:
|
|
1144
|
-
const parsedBody = parsedOutput.body;
|
|
1145
|
-
return throwDefaultError({
|
|
1146
|
-
output,
|
|
1147
|
-
parsedBody,
|
|
1148
|
-
errorCode,
|
|
1149
|
-
});
|
|
1150
|
-
}
|
|
1151
|
-
};
|
|
1152
698
|
export const de_CreateServiceSyncConfigCommand = async (output, context) => {
|
|
1153
699
|
if (output.statusCode >= 300) {
|
|
1154
|
-
return
|
|
700
|
+
return de_CommandError(output, context);
|
|
1155
701
|
}
|
|
1156
702
|
const data = await parseBody(output.body, context);
|
|
1157
703
|
let contents = {};
|
|
@@ -1162,43 +708,9 @@ export const de_CreateServiceSyncConfigCommand = async (output, context) => {
|
|
|
1162
708
|
};
|
|
1163
709
|
return response;
|
|
1164
710
|
};
|
|
1165
|
-
const de_CreateServiceSyncConfigCommandError = async (output, context) => {
|
|
1166
|
-
const parsedOutput = {
|
|
1167
|
-
...output,
|
|
1168
|
-
body: await parseErrorBody(output.body, context),
|
|
1169
|
-
};
|
|
1170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
|
-
switch (errorCode) {
|
|
1172
|
-
case "AccessDeniedException":
|
|
1173
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1174
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ConflictException":
|
|
1176
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1177
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "InternalServerException":
|
|
1179
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1180
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "ServiceQuotaExceededException":
|
|
1182
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
1183
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "ThrottlingException":
|
|
1185
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1186
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "ValidationException":
|
|
1188
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1189
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1190
|
-
default:
|
|
1191
|
-
const parsedBody = parsedOutput.body;
|
|
1192
|
-
return throwDefaultError({
|
|
1193
|
-
output,
|
|
1194
|
-
parsedBody,
|
|
1195
|
-
errorCode,
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
};
|
|
1199
711
|
export const de_CreateServiceTemplateCommand = async (output, context) => {
|
|
1200
712
|
if (output.statusCode >= 300) {
|
|
1201
|
-
return
|
|
713
|
+
return de_CommandError(output, context);
|
|
1202
714
|
}
|
|
1203
715
|
const data = await parseBody(output.body, context);
|
|
1204
716
|
let contents = {};
|
|
@@ -1209,93 +721,22 @@ export const de_CreateServiceTemplateCommand = async (output, context) => {
|
|
|
1209
721
|
};
|
|
1210
722
|
return response;
|
|
1211
723
|
};
|
|
1212
|
-
const
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
case "ConflictException":
|
|
1223
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1224
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "InternalServerException":
|
|
1226
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1227
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "ServiceQuotaExceededException":
|
|
1229
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
1230
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "ThrottlingException":
|
|
1232
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1233
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1234
|
-
case "ValidationException":
|
|
1235
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1236
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1237
|
-
default:
|
|
1238
|
-
const parsedBody = parsedOutput.body;
|
|
1239
|
-
return throwDefaultError({
|
|
1240
|
-
output,
|
|
1241
|
-
parsedBody,
|
|
1242
|
-
errorCode,
|
|
1243
|
-
});
|
|
1244
|
-
}
|
|
1245
|
-
};
|
|
1246
|
-
export const de_CreateServiceTemplateVersionCommand = async (output, context) => {
|
|
1247
|
-
if (output.statusCode >= 300) {
|
|
1248
|
-
return de_CreateServiceTemplateVersionCommandError(output, context);
|
|
1249
|
-
}
|
|
1250
|
-
const data = await parseBody(output.body, context);
|
|
1251
|
-
let contents = {};
|
|
1252
|
-
contents = de_CreateServiceTemplateVersionOutput(data, context);
|
|
1253
|
-
const response = {
|
|
1254
|
-
$metadata: deserializeMetadata(output),
|
|
1255
|
-
...contents,
|
|
724
|
+
export const de_CreateServiceTemplateVersionCommand = async (output, context) => {
|
|
725
|
+
if (output.statusCode >= 300) {
|
|
726
|
+
return de_CommandError(output, context);
|
|
727
|
+
}
|
|
728
|
+
const data = await parseBody(output.body, context);
|
|
729
|
+
let contents = {};
|
|
730
|
+
contents = de_CreateServiceTemplateVersionOutput(data, context);
|
|
731
|
+
const response = {
|
|
732
|
+
$metadata: deserializeMetadata(output),
|
|
733
|
+
...contents,
|
|
1256
734
|
};
|
|
1257
735
|
return response;
|
|
1258
736
|
};
|
|
1259
|
-
const de_CreateServiceTemplateVersionCommandError = async (output, context) => {
|
|
1260
|
-
const parsedOutput = {
|
|
1261
|
-
...output,
|
|
1262
|
-
body: await parseErrorBody(output.body, context),
|
|
1263
|
-
};
|
|
1264
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1265
|
-
switch (errorCode) {
|
|
1266
|
-
case "AccessDeniedException":
|
|
1267
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1268
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "ConflictException":
|
|
1270
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1271
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "InternalServerException":
|
|
1273
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1274
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "ResourceNotFoundException":
|
|
1276
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1277
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "ServiceQuotaExceededException":
|
|
1279
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
1280
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "ThrottlingException":
|
|
1282
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1283
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ValidationException":
|
|
1285
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1286
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1287
|
-
default:
|
|
1288
|
-
const parsedBody = parsedOutput.body;
|
|
1289
|
-
return throwDefaultError({
|
|
1290
|
-
output,
|
|
1291
|
-
parsedBody,
|
|
1292
|
-
errorCode,
|
|
1293
|
-
});
|
|
1294
|
-
}
|
|
1295
|
-
};
|
|
1296
737
|
export const de_CreateTemplateSyncConfigCommand = async (output, context) => {
|
|
1297
738
|
if (output.statusCode >= 300) {
|
|
1298
|
-
return
|
|
739
|
+
return de_CommandError(output, context);
|
|
1299
740
|
}
|
|
1300
741
|
const data = await parseBody(output.body, context);
|
|
1301
742
|
let contents = {};
|
|
@@ -1306,43 +747,9 @@ export const de_CreateTemplateSyncConfigCommand = async (output, context) => {
|
|
|
1306
747
|
};
|
|
1307
748
|
return response;
|
|
1308
749
|
};
|
|
1309
|
-
const de_CreateTemplateSyncConfigCommandError = 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 "AccessDeniedException":
|
|
1317
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1318
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "ConflictException":
|
|
1320
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1321
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "InternalServerException":
|
|
1323
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1324
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ServiceQuotaExceededException":
|
|
1326
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
1327
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ThrottlingException":
|
|
1329
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1330
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "ValidationException":
|
|
1332
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1333
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1334
|
-
default:
|
|
1335
|
-
const parsedBody = parsedOutput.body;
|
|
1336
|
-
return throwDefaultError({
|
|
1337
|
-
output,
|
|
1338
|
-
parsedBody,
|
|
1339
|
-
errorCode,
|
|
1340
|
-
});
|
|
1341
|
-
}
|
|
1342
|
-
};
|
|
1343
750
|
export const de_DeleteComponentCommand = async (output, context) => {
|
|
1344
751
|
if (output.statusCode >= 300) {
|
|
1345
|
-
return
|
|
752
|
+
return de_CommandError(output, context);
|
|
1346
753
|
}
|
|
1347
754
|
const data = await parseBody(output.body, context);
|
|
1348
755
|
let contents = {};
|
|
@@ -1353,43 +760,9 @@ export const de_DeleteComponentCommand = async (output, context) => {
|
|
|
1353
760
|
};
|
|
1354
761
|
return response;
|
|
1355
762
|
};
|
|
1356
|
-
const de_DeleteComponentCommandError = 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 "AccessDeniedException":
|
|
1364
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1365
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "ConflictException":
|
|
1367
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1368
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "InternalServerException":
|
|
1370
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1371
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "ResourceNotFoundException":
|
|
1373
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1374
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "ThrottlingException":
|
|
1376
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1377
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "ValidationException":
|
|
1379
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1380
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1381
|
-
default:
|
|
1382
|
-
const parsedBody = parsedOutput.body;
|
|
1383
|
-
return throwDefaultError({
|
|
1384
|
-
output,
|
|
1385
|
-
parsedBody,
|
|
1386
|
-
errorCode,
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
};
|
|
1390
763
|
export const de_DeleteDeploymentCommand = async (output, context) => {
|
|
1391
764
|
if (output.statusCode >= 300) {
|
|
1392
|
-
return
|
|
765
|
+
return de_CommandError(output, context);
|
|
1393
766
|
}
|
|
1394
767
|
const data = await parseBody(output.body, context);
|
|
1395
768
|
let contents = {};
|
|
@@ -1400,40 +773,9 @@ export const de_DeleteDeploymentCommand = async (output, context) => {
|
|
|
1400
773
|
};
|
|
1401
774
|
return response;
|
|
1402
775
|
};
|
|
1403
|
-
const de_DeleteDeploymentCommandError = async (output, context) => {
|
|
1404
|
-
const parsedOutput = {
|
|
1405
|
-
...output,
|
|
1406
|
-
body: await parseErrorBody(output.body, context),
|
|
1407
|
-
};
|
|
1408
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
|
-
switch (errorCode) {
|
|
1410
|
-
case "AccessDeniedException":
|
|
1411
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1412
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "InternalServerException":
|
|
1414
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1415
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ResourceNotFoundException":
|
|
1417
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "ThrottlingException":
|
|
1420
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1421
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ValidationException":
|
|
1423
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1424
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1425
|
-
default:
|
|
1426
|
-
const parsedBody = parsedOutput.body;
|
|
1427
|
-
return throwDefaultError({
|
|
1428
|
-
output,
|
|
1429
|
-
parsedBody,
|
|
1430
|
-
errorCode,
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
};
|
|
1434
776
|
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
1435
777
|
if (output.statusCode >= 300) {
|
|
1436
|
-
return
|
|
778
|
+
return de_CommandError(output, context);
|
|
1437
779
|
}
|
|
1438
780
|
const data = await parseBody(output.body, context);
|
|
1439
781
|
let contents = {};
|
|
@@ -1444,43 +786,9 @@ export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
|
1444
786
|
};
|
|
1445
787
|
return response;
|
|
1446
788
|
};
|
|
1447
|
-
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
1448
|
-
const parsedOutput = {
|
|
1449
|
-
...output,
|
|
1450
|
-
body: await parseErrorBody(output.body, context),
|
|
1451
|
-
};
|
|
1452
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1453
|
-
switch (errorCode) {
|
|
1454
|
-
case "AccessDeniedException":
|
|
1455
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1456
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "ConflictException":
|
|
1458
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1459
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1460
|
-
case "InternalServerException":
|
|
1461
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1462
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1463
|
-
case "ResourceNotFoundException":
|
|
1464
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1465
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1466
|
-
case "ThrottlingException":
|
|
1467
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1468
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "ValidationException":
|
|
1470
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1471
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1472
|
-
default:
|
|
1473
|
-
const parsedBody = parsedOutput.body;
|
|
1474
|
-
return throwDefaultError({
|
|
1475
|
-
output,
|
|
1476
|
-
parsedBody,
|
|
1477
|
-
errorCode,
|
|
1478
|
-
});
|
|
1479
|
-
}
|
|
1480
|
-
};
|
|
1481
789
|
export const de_DeleteEnvironmentAccountConnectionCommand = async (output, context) => {
|
|
1482
790
|
if (output.statusCode >= 300) {
|
|
1483
|
-
return
|
|
791
|
+
return de_CommandError(output, context);
|
|
1484
792
|
}
|
|
1485
793
|
const data = await parseBody(output.body, context);
|
|
1486
794
|
let contents = {};
|
|
@@ -1491,43 +799,9 @@ export const de_DeleteEnvironmentAccountConnectionCommand = async (output, conte
|
|
|
1491
799
|
};
|
|
1492
800
|
return response;
|
|
1493
801
|
};
|
|
1494
|
-
const de_DeleteEnvironmentAccountConnectionCommandError = async (output, context) => {
|
|
1495
|
-
const parsedOutput = {
|
|
1496
|
-
...output,
|
|
1497
|
-
body: await parseErrorBody(output.body, context),
|
|
1498
|
-
};
|
|
1499
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
|
-
switch (errorCode) {
|
|
1501
|
-
case "AccessDeniedException":
|
|
1502
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1503
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "ConflictException":
|
|
1505
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1506
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "InternalServerException":
|
|
1508
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1509
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "ResourceNotFoundException":
|
|
1511
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1512
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "ThrottlingException":
|
|
1514
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1515
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "ValidationException":
|
|
1517
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1518
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1519
|
-
default:
|
|
1520
|
-
const parsedBody = parsedOutput.body;
|
|
1521
|
-
return throwDefaultError({
|
|
1522
|
-
output,
|
|
1523
|
-
parsedBody,
|
|
1524
|
-
errorCode,
|
|
1525
|
-
});
|
|
1526
|
-
}
|
|
1527
|
-
};
|
|
1528
802
|
export const de_DeleteEnvironmentTemplateCommand = async (output, context) => {
|
|
1529
803
|
if (output.statusCode >= 300) {
|
|
1530
|
-
return
|
|
804
|
+
return de_CommandError(output, context);
|
|
1531
805
|
}
|
|
1532
806
|
const data = await parseBody(output.body, context);
|
|
1533
807
|
let contents = {};
|
|
@@ -1538,90 +812,22 @@ export const de_DeleteEnvironmentTemplateCommand = async (output, context) => {
|
|
|
1538
812
|
};
|
|
1539
813
|
return response;
|
|
1540
814
|
};
|
|
1541
|
-
const
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
case "ConflictException":
|
|
1552
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1553
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "InternalServerException":
|
|
1555
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1556
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "ResourceNotFoundException":
|
|
1558
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1559
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ThrottlingException":
|
|
1561
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1562
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "ValidationException":
|
|
1564
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1565
|
-
throw await de_ValidationExceptionRes(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_DeleteEnvironmentTemplateVersionCommand = async (output, context) => {
|
|
1576
|
-
if (output.statusCode >= 300) {
|
|
1577
|
-
return de_DeleteEnvironmentTemplateVersionCommandError(output, context);
|
|
1578
|
-
}
|
|
1579
|
-
const data = await parseBody(output.body, context);
|
|
1580
|
-
let contents = {};
|
|
1581
|
-
contents = de_DeleteEnvironmentTemplateVersionOutput(data, context);
|
|
1582
|
-
const response = {
|
|
1583
|
-
$metadata: deserializeMetadata(output),
|
|
1584
|
-
...contents,
|
|
815
|
+
export const de_DeleteEnvironmentTemplateVersionCommand = async (output, context) => {
|
|
816
|
+
if (output.statusCode >= 300) {
|
|
817
|
+
return de_CommandError(output, context);
|
|
818
|
+
}
|
|
819
|
+
const data = await parseBody(output.body, context);
|
|
820
|
+
let contents = {};
|
|
821
|
+
contents = de_DeleteEnvironmentTemplateVersionOutput(data, context);
|
|
822
|
+
const response = {
|
|
823
|
+
$metadata: deserializeMetadata(output),
|
|
824
|
+
...contents,
|
|
1585
825
|
};
|
|
1586
826
|
return response;
|
|
1587
827
|
};
|
|
1588
|
-
const de_DeleteEnvironmentTemplateVersionCommandError = 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 "AccessDeniedException":
|
|
1596
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1597
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "ConflictException":
|
|
1599
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1600
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "InternalServerException":
|
|
1602
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1603
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "ResourceNotFoundException":
|
|
1605
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1606
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ThrottlingException":
|
|
1608
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1609
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1610
|
-
case "ValidationException":
|
|
1611
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1612
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1613
|
-
default:
|
|
1614
|
-
const parsedBody = parsedOutput.body;
|
|
1615
|
-
return throwDefaultError({
|
|
1616
|
-
output,
|
|
1617
|
-
parsedBody,
|
|
1618
|
-
errorCode,
|
|
1619
|
-
});
|
|
1620
|
-
}
|
|
1621
|
-
};
|
|
1622
828
|
export const de_DeleteRepositoryCommand = async (output, context) => {
|
|
1623
829
|
if (output.statusCode >= 300) {
|
|
1624
|
-
return
|
|
830
|
+
return de_CommandError(output, context);
|
|
1625
831
|
}
|
|
1626
832
|
const data = await parseBody(output.body, context);
|
|
1627
833
|
let contents = {};
|
|
@@ -1632,43 +838,9 @@ export const de_DeleteRepositoryCommand = async (output, context) => {
|
|
|
1632
838
|
};
|
|
1633
839
|
return response;
|
|
1634
840
|
};
|
|
1635
|
-
const de_DeleteRepositoryCommandError = async (output, context) => {
|
|
1636
|
-
const parsedOutput = {
|
|
1637
|
-
...output,
|
|
1638
|
-
body: await parseErrorBody(output.body, context),
|
|
1639
|
-
};
|
|
1640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
|
-
switch (errorCode) {
|
|
1642
|
-
case "AccessDeniedException":
|
|
1643
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1644
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ConflictException":
|
|
1646
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1647
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "InternalServerException":
|
|
1649
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1650
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "ResourceNotFoundException":
|
|
1652
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1653
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "ThrottlingException":
|
|
1655
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1656
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "ValidationException":
|
|
1658
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1659
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1660
|
-
default:
|
|
1661
|
-
const parsedBody = parsedOutput.body;
|
|
1662
|
-
return throwDefaultError({
|
|
1663
|
-
output,
|
|
1664
|
-
parsedBody,
|
|
1665
|
-
errorCode,
|
|
1666
|
-
});
|
|
1667
|
-
}
|
|
1668
|
-
};
|
|
1669
841
|
export const de_DeleteServiceCommand = async (output, context) => {
|
|
1670
842
|
if (output.statusCode >= 300) {
|
|
1671
|
-
return
|
|
843
|
+
return de_CommandError(output, context);
|
|
1672
844
|
}
|
|
1673
845
|
const data = await parseBody(output.body, context);
|
|
1674
846
|
let contents = {};
|
|
@@ -1679,43 +851,9 @@ export const de_DeleteServiceCommand = async (output, context) => {
|
|
|
1679
851
|
};
|
|
1680
852
|
return response;
|
|
1681
853
|
};
|
|
1682
|
-
const de_DeleteServiceCommandError = async (output, context) => {
|
|
1683
|
-
const parsedOutput = {
|
|
1684
|
-
...output,
|
|
1685
|
-
body: await parseErrorBody(output.body, context),
|
|
1686
|
-
};
|
|
1687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
|
-
switch (errorCode) {
|
|
1689
|
-
case "AccessDeniedException":
|
|
1690
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1691
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "ConflictException":
|
|
1693
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1694
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "InternalServerException":
|
|
1696
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1697
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "ResourceNotFoundException":
|
|
1699
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1700
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "ThrottlingException":
|
|
1702
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1703
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "ValidationException":
|
|
1705
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1706
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1707
|
-
default:
|
|
1708
|
-
const parsedBody = parsedOutput.body;
|
|
1709
|
-
return throwDefaultError({
|
|
1710
|
-
output,
|
|
1711
|
-
parsedBody,
|
|
1712
|
-
errorCode,
|
|
1713
|
-
});
|
|
1714
|
-
}
|
|
1715
|
-
};
|
|
1716
854
|
export const de_DeleteServiceSyncConfigCommand = async (output, context) => {
|
|
1717
855
|
if (output.statusCode >= 300) {
|
|
1718
|
-
return
|
|
856
|
+
return de_CommandError(output, context);
|
|
1719
857
|
}
|
|
1720
858
|
const data = await parseBody(output.body, context);
|
|
1721
859
|
let contents = {};
|
|
@@ -1726,43 +864,9 @@ export const de_DeleteServiceSyncConfigCommand = async (output, context) => {
|
|
|
1726
864
|
};
|
|
1727
865
|
return response;
|
|
1728
866
|
};
|
|
1729
|
-
const de_DeleteServiceSyncConfigCommandError = async (output, context) => {
|
|
1730
|
-
const parsedOutput = {
|
|
1731
|
-
...output,
|
|
1732
|
-
body: await parseErrorBody(output.body, context),
|
|
1733
|
-
};
|
|
1734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
|
-
switch (errorCode) {
|
|
1736
|
-
case "AccessDeniedException":
|
|
1737
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1738
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "ConflictException":
|
|
1740
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1741
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "InternalServerException":
|
|
1743
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1744
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "ResourceNotFoundException":
|
|
1746
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1747
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "ThrottlingException":
|
|
1749
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1750
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "ValidationException":
|
|
1752
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1753
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1754
|
-
default:
|
|
1755
|
-
const parsedBody = parsedOutput.body;
|
|
1756
|
-
return throwDefaultError({
|
|
1757
|
-
output,
|
|
1758
|
-
parsedBody,
|
|
1759
|
-
errorCode,
|
|
1760
|
-
});
|
|
1761
|
-
}
|
|
1762
|
-
};
|
|
1763
867
|
export const de_DeleteServiceTemplateCommand = async (output, context) => {
|
|
1764
868
|
if (output.statusCode >= 300) {
|
|
1765
|
-
return
|
|
869
|
+
return de_CommandError(output, context);
|
|
1766
870
|
}
|
|
1767
871
|
const data = await parseBody(output.body, context);
|
|
1768
872
|
let contents = {};
|
|
@@ -1773,43 +877,9 @@ export const de_DeleteServiceTemplateCommand = async (output, context) => {
|
|
|
1773
877
|
};
|
|
1774
878
|
return response;
|
|
1775
879
|
};
|
|
1776
|
-
const de_DeleteServiceTemplateCommandError = async (output, context) => {
|
|
1777
|
-
const parsedOutput = {
|
|
1778
|
-
...output,
|
|
1779
|
-
body: await parseErrorBody(output.body, context),
|
|
1780
|
-
};
|
|
1781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1782
|
-
switch (errorCode) {
|
|
1783
|
-
case "AccessDeniedException":
|
|
1784
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1785
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1786
|
-
case "ConflictException":
|
|
1787
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1788
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "InternalServerException":
|
|
1790
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1791
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1792
|
-
case "ResourceNotFoundException":
|
|
1793
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1794
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "ThrottlingException":
|
|
1796
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1797
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "ValidationException":
|
|
1799
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1800
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1801
|
-
default:
|
|
1802
|
-
const parsedBody = parsedOutput.body;
|
|
1803
|
-
return throwDefaultError({
|
|
1804
|
-
output,
|
|
1805
|
-
parsedBody,
|
|
1806
|
-
errorCode,
|
|
1807
|
-
});
|
|
1808
|
-
}
|
|
1809
|
-
};
|
|
1810
880
|
export const de_DeleteServiceTemplateVersionCommand = async (output, context) => {
|
|
1811
881
|
if (output.statusCode >= 300) {
|
|
1812
|
-
return
|
|
882
|
+
return de_CommandError(output, context);
|
|
1813
883
|
}
|
|
1814
884
|
const data = await parseBody(output.body, context);
|
|
1815
885
|
let contents = {};
|
|
@@ -1820,43 +890,9 @@ export const de_DeleteServiceTemplateVersionCommand = async (output, context) =>
|
|
|
1820
890
|
};
|
|
1821
891
|
return response;
|
|
1822
892
|
};
|
|
1823
|
-
const de_DeleteServiceTemplateVersionCommandError = async (output, context) => {
|
|
1824
|
-
const parsedOutput = {
|
|
1825
|
-
...output,
|
|
1826
|
-
body: await parseErrorBody(output.body, context),
|
|
1827
|
-
};
|
|
1828
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1829
|
-
switch (errorCode) {
|
|
1830
|
-
case "AccessDeniedException":
|
|
1831
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1832
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1833
|
-
case "ConflictException":
|
|
1834
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1835
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "InternalServerException":
|
|
1837
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1838
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1839
|
-
case "ResourceNotFoundException":
|
|
1840
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1841
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1842
|
-
case "ThrottlingException":
|
|
1843
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1844
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1845
|
-
case "ValidationException":
|
|
1846
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1847
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1848
|
-
default:
|
|
1849
|
-
const parsedBody = parsedOutput.body;
|
|
1850
|
-
return throwDefaultError({
|
|
1851
|
-
output,
|
|
1852
|
-
parsedBody,
|
|
1853
|
-
errorCode,
|
|
1854
|
-
});
|
|
1855
|
-
}
|
|
1856
|
-
};
|
|
1857
893
|
export const de_DeleteTemplateSyncConfigCommand = async (output, context) => {
|
|
1858
894
|
if (output.statusCode >= 300) {
|
|
1859
|
-
return
|
|
895
|
+
return de_CommandError(output, context);
|
|
1860
896
|
}
|
|
1861
897
|
const data = await parseBody(output.body, context);
|
|
1862
898
|
let contents = {};
|
|
@@ -1867,43 +903,9 @@ export const de_DeleteTemplateSyncConfigCommand = async (output, context) => {
|
|
|
1867
903
|
};
|
|
1868
904
|
return response;
|
|
1869
905
|
};
|
|
1870
|
-
const de_DeleteTemplateSyncConfigCommandError = async (output, context) => {
|
|
1871
|
-
const parsedOutput = {
|
|
1872
|
-
...output,
|
|
1873
|
-
body: await parseErrorBody(output.body, context),
|
|
1874
|
-
};
|
|
1875
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1876
|
-
switch (errorCode) {
|
|
1877
|
-
case "AccessDeniedException":
|
|
1878
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1879
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "ConflictException":
|
|
1881
|
-
case "com.amazonaws.proton#ConflictException":
|
|
1882
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1883
|
-
case "InternalServerException":
|
|
1884
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1885
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1886
|
-
case "ResourceNotFoundException":
|
|
1887
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1888
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1889
|
-
case "ThrottlingException":
|
|
1890
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1891
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1892
|
-
case "ValidationException":
|
|
1893
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1894
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1895
|
-
default:
|
|
1896
|
-
const parsedBody = parsedOutput.body;
|
|
1897
|
-
return throwDefaultError({
|
|
1898
|
-
output,
|
|
1899
|
-
parsedBody,
|
|
1900
|
-
errorCode,
|
|
1901
|
-
});
|
|
1902
|
-
}
|
|
1903
|
-
};
|
|
1904
906
|
export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
1905
907
|
if (output.statusCode >= 300) {
|
|
1906
|
-
return
|
|
908
|
+
return de_CommandError(output, context);
|
|
1907
909
|
}
|
|
1908
910
|
const data = await parseBody(output.body, context);
|
|
1909
911
|
let contents = {};
|
|
@@ -1914,40 +916,9 @@ export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
|
1914
916
|
};
|
|
1915
917
|
return response;
|
|
1916
918
|
};
|
|
1917
|
-
const de_GetAccountSettingsCommandError = async (output, context) => {
|
|
1918
|
-
const parsedOutput = {
|
|
1919
|
-
...output,
|
|
1920
|
-
body: await parseErrorBody(output.body, context),
|
|
1921
|
-
};
|
|
1922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1923
|
-
switch (errorCode) {
|
|
1924
|
-
case "AccessDeniedException":
|
|
1925
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1926
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1927
|
-
case "InternalServerException":
|
|
1928
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1929
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1930
|
-
case "ResourceNotFoundException":
|
|
1931
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1932
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1933
|
-
case "ThrottlingException":
|
|
1934
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1935
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1936
|
-
case "ValidationException":
|
|
1937
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1938
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1939
|
-
default:
|
|
1940
|
-
const parsedBody = parsedOutput.body;
|
|
1941
|
-
return throwDefaultError({
|
|
1942
|
-
output,
|
|
1943
|
-
parsedBody,
|
|
1944
|
-
errorCode,
|
|
1945
|
-
});
|
|
1946
|
-
}
|
|
1947
|
-
};
|
|
1948
919
|
export const de_GetComponentCommand = async (output, context) => {
|
|
1949
920
|
if (output.statusCode >= 300) {
|
|
1950
|
-
return
|
|
921
|
+
return de_CommandError(output, context);
|
|
1951
922
|
}
|
|
1952
923
|
const data = await parseBody(output.body, context);
|
|
1953
924
|
let contents = {};
|
|
@@ -1958,40 +929,9 @@ export const de_GetComponentCommand = async (output, context) => {
|
|
|
1958
929
|
};
|
|
1959
930
|
return response;
|
|
1960
931
|
};
|
|
1961
|
-
const de_GetComponentCommandError = async (output, context) => {
|
|
1962
|
-
const parsedOutput = {
|
|
1963
|
-
...output,
|
|
1964
|
-
body: await parseErrorBody(output.body, context),
|
|
1965
|
-
};
|
|
1966
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1967
|
-
switch (errorCode) {
|
|
1968
|
-
case "AccessDeniedException":
|
|
1969
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
1970
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1971
|
-
case "InternalServerException":
|
|
1972
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
1973
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1974
|
-
case "ResourceNotFoundException":
|
|
1975
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1976
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1977
|
-
case "ThrottlingException":
|
|
1978
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
1979
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ValidationException":
|
|
1981
|
-
case "com.amazonaws.proton#ValidationException":
|
|
1982
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1983
|
-
default:
|
|
1984
|
-
const parsedBody = parsedOutput.body;
|
|
1985
|
-
return throwDefaultError({
|
|
1986
|
-
output,
|
|
1987
|
-
parsedBody,
|
|
1988
|
-
errorCode,
|
|
1989
|
-
});
|
|
1990
|
-
}
|
|
1991
|
-
};
|
|
1992
932
|
export const de_GetDeploymentCommand = async (output, context) => {
|
|
1993
933
|
if (output.statusCode >= 300) {
|
|
1994
|
-
return
|
|
934
|
+
return de_CommandError(output, context);
|
|
1995
935
|
}
|
|
1996
936
|
const data = await parseBody(output.body, context);
|
|
1997
937
|
let contents = {};
|
|
@@ -2002,40 +942,9 @@ export const de_GetDeploymentCommand = async (output, context) => {
|
|
|
2002
942
|
};
|
|
2003
943
|
return response;
|
|
2004
944
|
};
|
|
2005
|
-
const de_GetDeploymentCommandError = async (output, context) => {
|
|
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 "AccessDeniedException":
|
|
2013
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2014
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "InternalServerException":
|
|
2016
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2017
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "ResourceNotFoundException":
|
|
2019
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2020
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "ThrottlingException":
|
|
2022
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2023
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2024
|
-
case "ValidationException":
|
|
2025
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2026
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2027
|
-
default:
|
|
2028
|
-
const parsedBody = parsedOutput.body;
|
|
2029
|
-
return throwDefaultError({
|
|
2030
|
-
output,
|
|
2031
|
-
parsedBody,
|
|
2032
|
-
errorCode,
|
|
2033
|
-
});
|
|
2034
|
-
}
|
|
2035
|
-
};
|
|
2036
945
|
export const de_GetEnvironmentCommand = async (output, context) => {
|
|
2037
946
|
if (output.statusCode >= 300) {
|
|
2038
|
-
return
|
|
947
|
+
return de_CommandError(output, context);
|
|
2039
948
|
}
|
|
2040
949
|
const data = await parseBody(output.body, context);
|
|
2041
950
|
let contents = {};
|
|
@@ -2046,40 +955,9 @@ export const de_GetEnvironmentCommand = async (output, context) => {
|
|
|
2046
955
|
};
|
|
2047
956
|
return response;
|
|
2048
957
|
};
|
|
2049
|
-
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
2050
|
-
const parsedOutput = {
|
|
2051
|
-
...output,
|
|
2052
|
-
body: await parseErrorBody(output.body, context),
|
|
2053
|
-
};
|
|
2054
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2055
|
-
switch (errorCode) {
|
|
2056
|
-
case "AccessDeniedException":
|
|
2057
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2058
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2059
|
-
case "InternalServerException":
|
|
2060
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2061
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2062
|
-
case "ResourceNotFoundException":
|
|
2063
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2064
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2065
|
-
case "ThrottlingException":
|
|
2066
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2067
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "ValidationException":
|
|
2069
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2070
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2071
|
-
default:
|
|
2072
|
-
const parsedBody = parsedOutput.body;
|
|
2073
|
-
return throwDefaultError({
|
|
2074
|
-
output,
|
|
2075
|
-
parsedBody,
|
|
2076
|
-
errorCode,
|
|
2077
|
-
});
|
|
2078
|
-
}
|
|
2079
|
-
};
|
|
2080
958
|
export const de_GetEnvironmentAccountConnectionCommand = async (output, context) => {
|
|
2081
959
|
if (output.statusCode >= 300) {
|
|
2082
|
-
return
|
|
960
|
+
return de_CommandError(output, context);
|
|
2083
961
|
}
|
|
2084
962
|
const data = await parseBody(output.body, context);
|
|
2085
963
|
let contents = {};
|
|
@@ -2090,40 +968,9 @@ export const de_GetEnvironmentAccountConnectionCommand = async (output, context)
|
|
|
2090
968
|
};
|
|
2091
969
|
return response;
|
|
2092
970
|
};
|
|
2093
|
-
const de_GetEnvironmentAccountConnectionCommandError = async (output, context) => {
|
|
2094
|
-
const parsedOutput = {
|
|
2095
|
-
...output,
|
|
2096
|
-
body: await parseErrorBody(output.body, context),
|
|
2097
|
-
};
|
|
2098
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2099
|
-
switch (errorCode) {
|
|
2100
|
-
case "AccessDeniedException":
|
|
2101
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2102
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "InternalServerException":
|
|
2104
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2105
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "ResourceNotFoundException":
|
|
2107
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2108
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "ThrottlingException":
|
|
2110
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2111
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ValidationException":
|
|
2113
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2114
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2115
|
-
default:
|
|
2116
|
-
const parsedBody = parsedOutput.body;
|
|
2117
|
-
return throwDefaultError({
|
|
2118
|
-
output,
|
|
2119
|
-
parsedBody,
|
|
2120
|
-
errorCode,
|
|
2121
|
-
});
|
|
2122
|
-
}
|
|
2123
|
-
};
|
|
2124
971
|
export const de_GetEnvironmentTemplateCommand = async (output, context) => {
|
|
2125
972
|
if (output.statusCode >= 300) {
|
|
2126
|
-
return
|
|
973
|
+
return de_CommandError(output, context);
|
|
2127
974
|
}
|
|
2128
975
|
const data = await parseBody(output.body, context);
|
|
2129
976
|
let contents = {};
|
|
@@ -2134,40 +981,9 @@ export const de_GetEnvironmentTemplateCommand = async (output, context) => {
|
|
|
2134
981
|
};
|
|
2135
982
|
return response;
|
|
2136
983
|
};
|
|
2137
|
-
const de_GetEnvironmentTemplateCommandError = async (output, context) => {
|
|
2138
|
-
const parsedOutput = {
|
|
2139
|
-
...output,
|
|
2140
|
-
body: await parseErrorBody(output.body, context),
|
|
2141
|
-
};
|
|
2142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
|
-
switch (errorCode) {
|
|
2144
|
-
case "AccessDeniedException":
|
|
2145
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2146
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "InternalServerException":
|
|
2148
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2149
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2150
|
-
case "ResourceNotFoundException":
|
|
2151
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2153
|
-
case "ThrottlingException":
|
|
2154
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2155
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2156
|
-
case "ValidationException":
|
|
2157
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2158
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2159
|
-
default:
|
|
2160
|
-
const parsedBody = parsedOutput.body;
|
|
2161
|
-
return throwDefaultError({
|
|
2162
|
-
output,
|
|
2163
|
-
parsedBody,
|
|
2164
|
-
errorCode,
|
|
2165
|
-
});
|
|
2166
|
-
}
|
|
2167
|
-
};
|
|
2168
984
|
export const de_GetEnvironmentTemplateVersionCommand = async (output, context) => {
|
|
2169
985
|
if (output.statusCode >= 300) {
|
|
2170
|
-
return
|
|
986
|
+
return de_CommandError(output, context);
|
|
2171
987
|
}
|
|
2172
988
|
const data = await parseBody(output.body, context);
|
|
2173
989
|
let contents = {};
|
|
@@ -2178,40 +994,9 @@ export const de_GetEnvironmentTemplateVersionCommand = async (output, context) =
|
|
|
2178
994
|
};
|
|
2179
995
|
return response;
|
|
2180
996
|
};
|
|
2181
|
-
const de_GetEnvironmentTemplateVersionCommandError = async (output, context) => {
|
|
2182
|
-
const parsedOutput = {
|
|
2183
|
-
...output,
|
|
2184
|
-
body: await parseErrorBody(output.body, context),
|
|
2185
|
-
};
|
|
2186
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2187
|
-
switch (errorCode) {
|
|
2188
|
-
case "AccessDeniedException":
|
|
2189
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2190
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2191
|
-
case "InternalServerException":
|
|
2192
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2193
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "ResourceNotFoundException":
|
|
2195
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2196
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "ThrottlingException":
|
|
2198
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2199
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "ValidationException":
|
|
2201
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2202
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2203
|
-
default:
|
|
2204
|
-
const parsedBody = parsedOutput.body;
|
|
2205
|
-
return throwDefaultError({
|
|
2206
|
-
output,
|
|
2207
|
-
parsedBody,
|
|
2208
|
-
errorCode,
|
|
2209
|
-
});
|
|
2210
|
-
}
|
|
2211
|
-
};
|
|
2212
997
|
export const de_GetRepositoryCommand = async (output, context) => {
|
|
2213
998
|
if (output.statusCode >= 300) {
|
|
2214
|
-
return
|
|
999
|
+
return de_CommandError(output, context);
|
|
2215
1000
|
}
|
|
2216
1001
|
const data = await parseBody(output.body, context);
|
|
2217
1002
|
let contents = {};
|
|
@@ -2222,40 +1007,9 @@ export const de_GetRepositoryCommand = async (output, context) => {
|
|
|
2222
1007
|
};
|
|
2223
1008
|
return response;
|
|
2224
1009
|
};
|
|
2225
|
-
const de_GetRepositoryCommandError = async (output, context) => {
|
|
2226
|
-
const parsedOutput = {
|
|
2227
|
-
...output,
|
|
2228
|
-
body: await parseErrorBody(output.body, context),
|
|
2229
|
-
};
|
|
2230
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2231
|
-
switch (errorCode) {
|
|
2232
|
-
case "AccessDeniedException":
|
|
2233
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2234
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "InternalServerException":
|
|
2236
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2237
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "ResourceNotFoundException":
|
|
2239
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2240
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "ThrottlingException":
|
|
2242
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2243
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "ValidationException":
|
|
2245
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2246
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2247
|
-
default:
|
|
2248
|
-
const parsedBody = parsedOutput.body;
|
|
2249
|
-
return throwDefaultError({
|
|
2250
|
-
output,
|
|
2251
|
-
parsedBody,
|
|
2252
|
-
errorCode,
|
|
2253
|
-
});
|
|
2254
|
-
}
|
|
2255
|
-
};
|
|
2256
1010
|
export const de_GetRepositorySyncStatusCommand = async (output, context) => {
|
|
2257
1011
|
if (output.statusCode >= 300) {
|
|
2258
|
-
return
|
|
1012
|
+
return de_CommandError(output, context);
|
|
2259
1013
|
}
|
|
2260
1014
|
const data = await parseBody(output.body, context);
|
|
2261
1015
|
let contents = {};
|
|
@@ -2266,81 +1020,22 @@ export const de_GetRepositorySyncStatusCommand = async (output, context) => {
|
|
|
2266
1020
|
};
|
|
2267
1021
|
return response;
|
|
2268
1022
|
};
|
|
2269
|
-
const
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
case "InternalServerException":
|
|
2280
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2281
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "ResourceNotFoundException":
|
|
2283
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2284
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "ThrottlingException":
|
|
2286
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2287
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "ValidationException":
|
|
2289
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2290
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2291
|
-
default:
|
|
2292
|
-
const parsedBody = parsedOutput.body;
|
|
2293
|
-
return throwDefaultError({
|
|
2294
|
-
output,
|
|
2295
|
-
parsedBody,
|
|
2296
|
-
errorCode,
|
|
2297
|
-
});
|
|
2298
|
-
}
|
|
2299
|
-
};
|
|
2300
|
-
export const de_GetResourcesSummaryCommand = async (output, context) => {
|
|
2301
|
-
if (output.statusCode >= 300) {
|
|
2302
|
-
return de_GetResourcesSummaryCommandError(output, context);
|
|
2303
|
-
}
|
|
2304
|
-
const data = await parseBody(output.body, context);
|
|
2305
|
-
let contents = {};
|
|
2306
|
-
contents = _json(data);
|
|
2307
|
-
const response = {
|
|
2308
|
-
$metadata: deserializeMetadata(output),
|
|
2309
|
-
...contents,
|
|
1023
|
+
export const de_GetResourcesSummaryCommand = async (output, context) => {
|
|
1024
|
+
if (output.statusCode >= 300) {
|
|
1025
|
+
return de_CommandError(output, context);
|
|
1026
|
+
}
|
|
1027
|
+
const data = await parseBody(output.body, context);
|
|
1028
|
+
let contents = {};
|
|
1029
|
+
contents = _json(data);
|
|
1030
|
+
const response = {
|
|
1031
|
+
$metadata: deserializeMetadata(output),
|
|
1032
|
+
...contents,
|
|
2310
1033
|
};
|
|
2311
1034
|
return response;
|
|
2312
1035
|
};
|
|
2313
|
-
const de_GetResourcesSummaryCommandError = async (output, context) => {
|
|
2314
|
-
const parsedOutput = {
|
|
2315
|
-
...output,
|
|
2316
|
-
body: await parseErrorBody(output.body, context),
|
|
2317
|
-
};
|
|
2318
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2319
|
-
switch (errorCode) {
|
|
2320
|
-
case "AccessDeniedException":
|
|
2321
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2322
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2323
|
-
case "InternalServerException":
|
|
2324
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2325
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "ThrottlingException":
|
|
2327
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2328
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "ValidationException":
|
|
2330
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2331
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2332
|
-
default:
|
|
2333
|
-
const parsedBody = parsedOutput.body;
|
|
2334
|
-
return throwDefaultError({
|
|
2335
|
-
output,
|
|
2336
|
-
parsedBody,
|
|
2337
|
-
errorCode,
|
|
2338
|
-
});
|
|
2339
|
-
}
|
|
2340
|
-
};
|
|
2341
1036
|
export const de_GetServiceCommand = async (output, context) => {
|
|
2342
1037
|
if (output.statusCode >= 300) {
|
|
2343
|
-
return
|
|
1038
|
+
return de_CommandError(output, context);
|
|
2344
1039
|
}
|
|
2345
1040
|
const data = await parseBody(output.body, context);
|
|
2346
1041
|
let contents = {};
|
|
@@ -2351,40 +1046,9 @@ export const de_GetServiceCommand = async (output, context) => {
|
|
|
2351
1046
|
};
|
|
2352
1047
|
return response;
|
|
2353
1048
|
};
|
|
2354
|
-
const de_GetServiceCommandError = async (output, context) => {
|
|
2355
|
-
const parsedOutput = {
|
|
2356
|
-
...output,
|
|
2357
|
-
body: await parseErrorBody(output.body, context),
|
|
2358
|
-
};
|
|
2359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2360
|
-
switch (errorCode) {
|
|
2361
|
-
case "AccessDeniedException":
|
|
2362
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2363
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2364
|
-
case "InternalServerException":
|
|
2365
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2366
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2367
|
-
case "ResourceNotFoundException":
|
|
2368
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2369
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2370
|
-
case "ThrottlingException":
|
|
2371
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2372
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2373
|
-
case "ValidationException":
|
|
2374
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2375
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2376
|
-
default:
|
|
2377
|
-
const parsedBody = parsedOutput.body;
|
|
2378
|
-
return throwDefaultError({
|
|
2379
|
-
output,
|
|
2380
|
-
parsedBody,
|
|
2381
|
-
errorCode,
|
|
2382
|
-
});
|
|
2383
|
-
}
|
|
2384
|
-
};
|
|
2385
1049
|
export const de_GetServiceInstanceCommand = async (output, context) => {
|
|
2386
1050
|
if (output.statusCode >= 300) {
|
|
2387
|
-
return
|
|
1051
|
+
return de_CommandError(output, context);
|
|
2388
1052
|
}
|
|
2389
1053
|
const data = await parseBody(output.body, context);
|
|
2390
1054
|
let contents = {};
|
|
@@ -2395,40 +1059,9 @@ export const de_GetServiceInstanceCommand = async (output, context) => {
|
|
|
2395
1059
|
};
|
|
2396
1060
|
return response;
|
|
2397
1061
|
};
|
|
2398
|
-
const de_GetServiceInstanceCommandError = async (output, context) => {
|
|
2399
|
-
const parsedOutput = {
|
|
2400
|
-
...output,
|
|
2401
|
-
body: await parseErrorBody(output.body, context),
|
|
2402
|
-
};
|
|
2403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2404
|
-
switch (errorCode) {
|
|
2405
|
-
case "AccessDeniedException":
|
|
2406
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2407
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2408
|
-
case "InternalServerException":
|
|
2409
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2410
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2411
|
-
case "ResourceNotFoundException":
|
|
2412
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2413
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2414
|
-
case "ThrottlingException":
|
|
2415
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2416
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2417
|
-
case "ValidationException":
|
|
2418
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2419
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2420
|
-
default:
|
|
2421
|
-
const parsedBody = parsedOutput.body;
|
|
2422
|
-
return throwDefaultError({
|
|
2423
|
-
output,
|
|
2424
|
-
parsedBody,
|
|
2425
|
-
errorCode,
|
|
2426
|
-
});
|
|
2427
|
-
}
|
|
2428
|
-
};
|
|
2429
1062
|
export const de_GetServiceInstanceSyncStatusCommand = async (output, context) => {
|
|
2430
1063
|
if (output.statusCode >= 300) {
|
|
2431
|
-
return
|
|
1064
|
+
return de_CommandError(output, context);
|
|
2432
1065
|
}
|
|
2433
1066
|
const data = await parseBody(output.body, context);
|
|
2434
1067
|
let contents = {};
|
|
@@ -2439,40 +1072,9 @@ export const de_GetServiceInstanceSyncStatusCommand = async (output, context) =>
|
|
|
2439
1072
|
};
|
|
2440
1073
|
return response;
|
|
2441
1074
|
};
|
|
2442
|
-
const de_GetServiceInstanceSyncStatusCommandError = async (output, context) => {
|
|
2443
|
-
const parsedOutput = {
|
|
2444
|
-
...output,
|
|
2445
|
-
body: await parseErrorBody(output.body, context),
|
|
2446
|
-
};
|
|
2447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2448
|
-
switch (errorCode) {
|
|
2449
|
-
case "AccessDeniedException":
|
|
2450
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2451
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2452
|
-
case "InternalServerException":
|
|
2453
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2454
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2455
|
-
case "ResourceNotFoundException":
|
|
2456
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2457
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "ThrottlingException":
|
|
2459
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2460
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2461
|
-
case "ValidationException":
|
|
2462
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2463
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2464
|
-
default:
|
|
2465
|
-
const parsedBody = parsedOutput.body;
|
|
2466
|
-
return throwDefaultError({
|
|
2467
|
-
output,
|
|
2468
|
-
parsedBody,
|
|
2469
|
-
errorCode,
|
|
2470
|
-
});
|
|
2471
|
-
}
|
|
2472
|
-
};
|
|
2473
1075
|
export const de_GetServiceSyncBlockerSummaryCommand = async (output, context) => {
|
|
2474
1076
|
if (output.statusCode >= 300) {
|
|
2475
|
-
return
|
|
1077
|
+
return de_CommandError(output, context);
|
|
2476
1078
|
}
|
|
2477
1079
|
const data = await parseBody(output.body, context);
|
|
2478
1080
|
let contents = {};
|
|
@@ -2483,40 +1085,9 @@ export const de_GetServiceSyncBlockerSummaryCommand = async (output, context) =>
|
|
|
2483
1085
|
};
|
|
2484
1086
|
return response;
|
|
2485
1087
|
};
|
|
2486
|
-
const de_GetServiceSyncBlockerSummaryCommandError = async (output, context) => {
|
|
2487
|
-
const parsedOutput = {
|
|
2488
|
-
...output,
|
|
2489
|
-
body: await parseErrorBody(output.body, context),
|
|
2490
|
-
};
|
|
2491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2492
|
-
switch (errorCode) {
|
|
2493
|
-
case "AccessDeniedException":
|
|
2494
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2495
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2496
|
-
case "InternalServerException":
|
|
2497
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2498
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2499
|
-
case "ResourceNotFoundException":
|
|
2500
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2501
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2502
|
-
case "ThrottlingException":
|
|
2503
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2504
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2505
|
-
case "ValidationException":
|
|
2506
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2507
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2508
|
-
default:
|
|
2509
|
-
const parsedBody = parsedOutput.body;
|
|
2510
|
-
return throwDefaultError({
|
|
2511
|
-
output,
|
|
2512
|
-
parsedBody,
|
|
2513
|
-
errorCode,
|
|
2514
|
-
});
|
|
2515
|
-
}
|
|
2516
|
-
};
|
|
2517
1088
|
export const de_GetServiceSyncConfigCommand = async (output, context) => {
|
|
2518
1089
|
if (output.statusCode >= 300) {
|
|
2519
|
-
return
|
|
1090
|
+
return de_CommandError(output, context);
|
|
2520
1091
|
}
|
|
2521
1092
|
const data = await parseBody(output.body, context);
|
|
2522
1093
|
let contents = {};
|
|
@@ -2527,40 +1098,9 @@ export const de_GetServiceSyncConfigCommand = async (output, context) => {
|
|
|
2527
1098
|
};
|
|
2528
1099
|
return response;
|
|
2529
1100
|
};
|
|
2530
|
-
const de_GetServiceSyncConfigCommandError = async (output, context) => {
|
|
2531
|
-
const parsedOutput = {
|
|
2532
|
-
...output,
|
|
2533
|
-
body: await parseErrorBody(output.body, context),
|
|
2534
|
-
};
|
|
2535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2536
|
-
switch (errorCode) {
|
|
2537
|
-
case "AccessDeniedException":
|
|
2538
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2539
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2540
|
-
case "InternalServerException":
|
|
2541
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2542
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2543
|
-
case "ResourceNotFoundException":
|
|
2544
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2545
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2546
|
-
case "ThrottlingException":
|
|
2547
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2548
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2549
|
-
case "ValidationException":
|
|
2550
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2551
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2552
|
-
default:
|
|
2553
|
-
const parsedBody = parsedOutput.body;
|
|
2554
|
-
return throwDefaultError({
|
|
2555
|
-
output,
|
|
2556
|
-
parsedBody,
|
|
2557
|
-
errorCode,
|
|
2558
|
-
});
|
|
2559
|
-
}
|
|
2560
|
-
};
|
|
2561
1101
|
export const de_GetServiceTemplateCommand = async (output, context) => {
|
|
2562
1102
|
if (output.statusCode >= 300) {
|
|
2563
|
-
return
|
|
1103
|
+
return de_CommandError(output, context);
|
|
2564
1104
|
}
|
|
2565
1105
|
const data = await parseBody(output.body, context);
|
|
2566
1106
|
let contents = {};
|
|
@@ -2571,40 +1111,9 @@ export const de_GetServiceTemplateCommand = async (output, context) => {
|
|
|
2571
1111
|
};
|
|
2572
1112
|
return response;
|
|
2573
1113
|
};
|
|
2574
|
-
const de_GetServiceTemplateCommandError = async (output, context) => {
|
|
2575
|
-
const parsedOutput = {
|
|
2576
|
-
...output,
|
|
2577
|
-
body: await parseErrorBody(output.body, context),
|
|
2578
|
-
};
|
|
2579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2580
|
-
switch (errorCode) {
|
|
2581
|
-
case "AccessDeniedException":
|
|
2582
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2583
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "InternalServerException":
|
|
2585
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2586
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2587
|
-
case "ResourceNotFoundException":
|
|
2588
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2589
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2590
|
-
case "ThrottlingException":
|
|
2591
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2592
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2593
|
-
case "ValidationException":
|
|
2594
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2595
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2596
|
-
default:
|
|
2597
|
-
const parsedBody = parsedOutput.body;
|
|
2598
|
-
return throwDefaultError({
|
|
2599
|
-
output,
|
|
2600
|
-
parsedBody,
|
|
2601
|
-
errorCode,
|
|
2602
|
-
});
|
|
2603
|
-
}
|
|
2604
|
-
};
|
|
2605
1114
|
export const de_GetServiceTemplateVersionCommand = async (output, context) => {
|
|
2606
1115
|
if (output.statusCode >= 300) {
|
|
2607
|
-
return
|
|
1116
|
+
return de_CommandError(output, context);
|
|
2608
1117
|
}
|
|
2609
1118
|
const data = await parseBody(output.body, context);
|
|
2610
1119
|
let contents = {};
|
|
@@ -2615,84 +1124,22 @@ export const de_GetServiceTemplateVersionCommand = async (output, context) => {
|
|
|
2615
1124
|
};
|
|
2616
1125
|
return response;
|
|
2617
1126
|
};
|
|
2618
|
-
const
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
case "InternalServerException":
|
|
2629
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2630
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2631
|
-
case "ResourceNotFoundException":
|
|
2632
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2633
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2634
|
-
case "ThrottlingException":
|
|
2635
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2636
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2637
|
-
case "ValidationException":
|
|
2638
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2639
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2640
|
-
default:
|
|
2641
|
-
const parsedBody = parsedOutput.body;
|
|
2642
|
-
return throwDefaultError({
|
|
2643
|
-
output,
|
|
2644
|
-
parsedBody,
|
|
2645
|
-
errorCode,
|
|
2646
|
-
});
|
|
2647
|
-
}
|
|
2648
|
-
};
|
|
2649
|
-
export const de_GetTemplateSyncConfigCommand = async (output, context) => {
|
|
2650
|
-
if (output.statusCode >= 300) {
|
|
2651
|
-
return de_GetTemplateSyncConfigCommandError(output, context);
|
|
2652
|
-
}
|
|
2653
|
-
const data = await parseBody(output.body, context);
|
|
2654
|
-
let contents = {};
|
|
2655
|
-
contents = _json(data);
|
|
2656
|
-
const response = {
|
|
2657
|
-
$metadata: deserializeMetadata(output),
|
|
2658
|
-
...contents,
|
|
1127
|
+
export const de_GetTemplateSyncConfigCommand = async (output, context) => {
|
|
1128
|
+
if (output.statusCode >= 300) {
|
|
1129
|
+
return de_CommandError(output, context);
|
|
1130
|
+
}
|
|
1131
|
+
const data = await parseBody(output.body, context);
|
|
1132
|
+
let contents = {};
|
|
1133
|
+
contents = _json(data);
|
|
1134
|
+
const response = {
|
|
1135
|
+
$metadata: deserializeMetadata(output),
|
|
1136
|
+
...contents,
|
|
2659
1137
|
};
|
|
2660
1138
|
return response;
|
|
2661
1139
|
};
|
|
2662
|
-
const de_GetTemplateSyncConfigCommandError = async (output, context) => {
|
|
2663
|
-
const parsedOutput = {
|
|
2664
|
-
...output,
|
|
2665
|
-
body: await parseErrorBody(output.body, context),
|
|
2666
|
-
};
|
|
2667
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2668
|
-
switch (errorCode) {
|
|
2669
|
-
case "AccessDeniedException":
|
|
2670
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2671
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "InternalServerException":
|
|
2673
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2674
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "ResourceNotFoundException":
|
|
2676
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2677
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "ThrottlingException":
|
|
2679
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2680
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2681
|
-
case "ValidationException":
|
|
2682
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2683
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2684
|
-
default:
|
|
2685
|
-
const parsedBody = parsedOutput.body;
|
|
2686
|
-
return throwDefaultError({
|
|
2687
|
-
output,
|
|
2688
|
-
parsedBody,
|
|
2689
|
-
errorCode,
|
|
2690
|
-
});
|
|
2691
|
-
}
|
|
2692
|
-
};
|
|
2693
1140
|
export const de_GetTemplateSyncStatusCommand = async (output, context) => {
|
|
2694
1141
|
if (output.statusCode >= 300) {
|
|
2695
|
-
return
|
|
1142
|
+
return de_CommandError(output, context);
|
|
2696
1143
|
}
|
|
2697
1144
|
const data = await parseBody(output.body, context);
|
|
2698
1145
|
let contents = {};
|
|
@@ -2703,40 +1150,9 @@ export const de_GetTemplateSyncStatusCommand = async (output, context) => {
|
|
|
2703
1150
|
};
|
|
2704
1151
|
return response;
|
|
2705
1152
|
};
|
|
2706
|
-
const de_GetTemplateSyncStatusCommandError = async (output, context) => {
|
|
2707
|
-
const parsedOutput = {
|
|
2708
|
-
...output,
|
|
2709
|
-
body: await parseErrorBody(output.body, context),
|
|
2710
|
-
};
|
|
2711
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2712
|
-
switch (errorCode) {
|
|
2713
|
-
case "AccessDeniedException":
|
|
2714
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2715
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2716
|
-
case "InternalServerException":
|
|
2717
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2718
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2719
|
-
case "ResourceNotFoundException":
|
|
2720
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2721
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2722
|
-
case "ThrottlingException":
|
|
2723
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2724
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2725
|
-
case "ValidationException":
|
|
2726
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2727
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2728
|
-
default:
|
|
2729
|
-
const parsedBody = parsedOutput.body;
|
|
2730
|
-
return throwDefaultError({
|
|
2731
|
-
output,
|
|
2732
|
-
parsedBody,
|
|
2733
|
-
errorCode,
|
|
2734
|
-
});
|
|
2735
|
-
}
|
|
2736
|
-
};
|
|
2737
1153
|
export const de_ListComponentOutputsCommand = async (output, context) => {
|
|
2738
1154
|
if (output.statusCode >= 300) {
|
|
2739
|
-
return
|
|
1155
|
+
return de_CommandError(output, context);
|
|
2740
1156
|
}
|
|
2741
1157
|
const data = await parseBody(output.body, context);
|
|
2742
1158
|
let contents = {};
|
|
@@ -2747,40 +1163,9 @@ export const de_ListComponentOutputsCommand = async (output, context) => {
|
|
|
2747
1163
|
};
|
|
2748
1164
|
return response;
|
|
2749
1165
|
};
|
|
2750
|
-
const de_ListComponentOutputsCommandError = async (output, context) => {
|
|
2751
|
-
const parsedOutput = {
|
|
2752
|
-
...output,
|
|
2753
|
-
body: await parseErrorBody(output.body, context),
|
|
2754
|
-
};
|
|
2755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2756
|
-
switch (errorCode) {
|
|
2757
|
-
case "AccessDeniedException":
|
|
2758
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2759
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2760
|
-
case "InternalServerException":
|
|
2761
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2762
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2763
|
-
case "ResourceNotFoundException":
|
|
2764
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2765
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2766
|
-
case "ThrottlingException":
|
|
2767
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2768
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2769
|
-
case "ValidationException":
|
|
2770
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2771
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2772
|
-
default:
|
|
2773
|
-
const parsedBody = parsedOutput.body;
|
|
2774
|
-
return throwDefaultError({
|
|
2775
|
-
output,
|
|
2776
|
-
parsedBody,
|
|
2777
|
-
errorCode,
|
|
2778
|
-
});
|
|
2779
|
-
}
|
|
2780
|
-
};
|
|
2781
1166
|
export const de_ListComponentProvisionedResourcesCommand = async (output, context) => {
|
|
2782
1167
|
if (output.statusCode >= 300) {
|
|
2783
|
-
return
|
|
1168
|
+
return de_CommandError(output, context);
|
|
2784
1169
|
}
|
|
2785
1170
|
const data = await parseBody(output.body, context);
|
|
2786
1171
|
let contents = {};
|
|
@@ -2791,40 +1176,9 @@ export const de_ListComponentProvisionedResourcesCommand = async (output, contex
|
|
|
2791
1176
|
};
|
|
2792
1177
|
return response;
|
|
2793
1178
|
};
|
|
2794
|
-
const de_ListComponentProvisionedResourcesCommandError = async (output, context) => {
|
|
2795
|
-
const parsedOutput = {
|
|
2796
|
-
...output,
|
|
2797
|
-
body: await parseErrorBody(output.body, context),
|
|
2798
|
-
};
|
|
2799
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2800
|
-
switch (errorCode) {
|
|
2801
|
-
case "AccessDeniedException":
|
|
2802
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2803
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "InternalServerException":
|
|
2805
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2806
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "ResourceNotFoundException":
|
|
2808
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2809
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2810
|
-
case "ThrottlingException":
|
|
2811
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2812
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2813
|
-
case "ValidationException":
|
|
2814
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2815
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2816
|
-
default:
|
|
2817
|
-
const parsedBody = parsedOutput.body;
|
|
2818
|
-
return throwDefaultError({
|
|
2819
|
-
output,
|
|
2820
|
-
parsedBody,
|
|
2821
|
-
errorCode,
|
|
2822
|
-
});
|
|
2823
|
-
}
|
|
2824
|
-
};
|
|
2825
1179
|
export const de_ListComponentsCommand = async (output, context) => {
|
|
2826
1180
|
if (output.statusCode >= 300) {
|
|
2827
|
-
return
|
|
1181
|
+
return de_CommandError(output, context);
|
|
2828
1182
|
}
|
|
2829
1183
|
const data = await parseBody(output.body, context);
|
|
2830
1184
|
let contents = {};
|
|
@@ -2835,37 +1189,9 @@ export const de_ListComponentsCommand = async (output, context) => {
|
|
|
2835
1189
|
};
|
|
2836
1190
|
return response;
|
|
2837
1191
|
};
|
|
2838
|
-
const de_ListComponentsCommandError = async (output, context) => {
|
|
2839
|
-
const parsedOutput = {
|
|
2840
|
-
...output,
|
|
2841
|
-
body: await parseErrorBody(output.body, context),
|
|
2842
|
-
};
|
|
2843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2844
|
-
switch (errorCode) {
|
|
2845
|
-
case "AccessDeniedException":
|
|
2846
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2847
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "InternalServerException":
|
|
2849
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2850
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "ThrottlingException":
|
|
2852
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2853
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "ValidationException":
|
|
2855
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2856
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2857
|
-
default:
|
|
2858
|
-
const parsedBody = parsedOutput.body;
|
|
2859
|
-
return throwDefaultError({
|
|
2860
|
-
output,
|
|
2861
|
-
parsedBody,
|
|
2862
|
-
errorCode,
|
|
2863
|
-
});
|
|
2864
|
-
}
|
|
2865
|
-
};
|
|
2866
1192
|
export const de_ListDeploymentsCommand = async (output, context) => {
|
|
2867
1193
|
if (output.statusCode >= 300) {
|
|
2868
|
-
return
|
|
1194
|
+
return de_CommandError(output, context);
|
|
2869
1195
|
}
|
|
2870
1196
|
const data = await parseBody(output.body, context);
|
|
2871
1197
|
let contents = {};
|
|
@@ -2876,40 +1202,9 @@ export const de_ListDeploymentsCommand = async (output, context) => {
|
|
|
2876
1202
|
};
|
|
2877
1203
|
return response;
|
|
2878
1204
|
};
|
|
2879
|
-
const de_ListDeploymentsCommandError = async (output, context) => {
|
|
2880
|
-
const parsedOutput = {
|
|
2881
|
-
...output,
|
|
2882
|
-
body: await parseErrorBody(output.body, context),
|
|
2883
|
-
};
|
|
2884
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2885
|
-
switch (errorCode) {
|
|
2886
|
-
case "AccessDeniedException":
|
|
2887
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2888
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2889
|
-
case "InternalServerException":
|
|
2890
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2891
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "ResourceNotFoundException":
|
|
2893
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2894
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2895
|
-
case "ThrottlingException":
|
|
2896
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2897
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2898
|
-
case "ValidationException":
|
|
2899
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2900
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2901
|
-
default:
|
|
2902
|
-
const parsedBody = parsedOutput.body;
|
|
2903
|
-
return throwDefaultError({
|
|
2904
|
-
output,
|
|
2905
|
-
parsedBody,
|
|
2906
|
-
errorCode,
|
|
2907
|
-
});
|
|
2908
|
-
}
|
|
2909
|
-
};
|
|
2910
1205
|
export const de_ListEnvironmentAccountConnectionsCommand = async (output, context) => {
|
|
2911
1206
|
if (output.statusCode >= 300) {
|
|
2912
|
-
return
|
|
1207
|
+
return de_CommandError(output, context);
|
|
2913
1208
|
}
|
|
2914
1209
|
const data = await parseBody(output.body, context);
|
|
2915
1210
|
let contents = {};
|
|
@@ -2920,37 +1215,22 @@ export const de_ListEnvironmentAccountConnectionsCommand = async (output, contex
|
|
|
2920
1215
|
};
|
|
2921
1216
|
return response;
|
|
2922
1217
|
};
|
|
2923
|
-
const
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
body: await parseErrorBody(output.body, context),
|
|
2927
|
-
};
|
|
2928
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2929
|
-
switch (errorCode) {
|
|
2930
|
-
case "AccessDeniedException":
|
|
2931
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2932
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2933
|
-
case "InternalServerException":
|
|
2934
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2935
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2936
|
-
case "ThrottlingException":
|
|
2937
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2938
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2939
|
-
case "ValidationException":
|
|
2940
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2941
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2942
|
-
default:
|
|
2943
|
-
const parsedBody = parsedOutput.body;
|
|
2944
|
-
return throwDefaultError({
|
|
2945
|
-
output,
|
|
2946
|
-
parsedBody,
|
|
2947
|
-
errorCode,
|
|
2948
|
-
});
|
|
1218
|
+
export const de_ListEnvironmentOutputsCommand = async (output, context) => {
|
|
1219
|
+
if (output.statusCode >= 300) {
|
|
1220
|
+
return de_CommandError(output, context);
|
|
2949
1221
|
}
|
|
1222
|
+
const data = await parseBody(output.body, context);
|
|
1223
|
+
let contents = {};
|
|
1224
|
+
contents = _json(data);
|
|
1225
|
+
const response = {
|
|
1226
|
+
$metadata: deserializeMetadata(output),
|
|
1227
|
+
...contents,
|
|
1228
|
+
};
|
|
1229
|
+
return response;
|
|
2950
1230
|
};
|
|
2951
|
-
export const
|
|
1231
|
+
export const de_ListEnvironmentProvisionedResourcesCommand = async (output, context) => {
|
|
2952
1232
|
if (output.statusCode >= 300) {
|
|
2953
|
-
return
|
|
1233
|
+
return de_CommandError(output, context);
|
|
2954
1234
|
}
|
|
2955
1235
|
const data = await parseBody(output.body, context);
|
|
2956
1236
|
let contents = {};
|
|
@@ -2961,213 +1241,74 @@ export const de_ListEnvironmentOutputsCommand = async (output, context) => {
|
|
|
2961
1241
|
};
|
|
2962
1242
|
return response;
|
|
2963
1243
|
};
|
|
2964
|
-
const
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
1244
|
+
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
1245
|
+
if (output.statusCode >= 300) {
|
|
1246
|
+
return de_CommandError(output, context);
|
|
1247
|
+
}
|
|
1248
|
+
const data = await parseBody(output.body, context);
|
|
1249
|
+
let contents = {};
|
|
1250
|
+
contents = de_ListEnvironmentsOutput(data, context);
|
|
1251
|
+
const response = {
|
|
1252
|
+
$metadata: deserializeMetadata(output),
|
|
1253
|
+
...contents,
|
|
2968
1254
|
};
|
|
2969
|
-
|
|
2970
|
-
switch (errorCode) {
|
|
2971
|
-
case "AccessDeniedException":
|
|
2972
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
2973
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2974
|
-
case "InternalServerException":
|
|
2975
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
2976
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2977
|
-
case "ResourceNotFoundException":
|
|
2978
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
2979
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2980
|
-
case "ThrottlingException":
|
|
2981
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
2982
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2983
|
-
case "ValidationException":
|
|
2984
|
-
case "com.amazonaws.proton#ValidationException":
|
|
2985
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2986
|
-
default:
|
|
2987
|
-
const parsedBody = parsedOutput.body;
|
|
2988
|
-
return throwDefaultError({
|
|
2989
|
-
output,
|
|
2990
|
-
parsedBody,
|
|
2991
|
-
errorCode,
|
|
2992
|
-
});
|
|
2993
|
-
}
|
|
1255
|
+
return response;
|
|
2994
1256
|
};
|
|
2995
|
-
export const
|
|
1257
|
+
export const de_ListEnvironmentTemplatesCommand = async (output, context) => {
|
|
2996
1258
|
if (output.statusCode >= 300) {
|
|
2997
|
-
return
|
|
1259
|
+
return de_CommandError(output, context);
|
|
2998
1260
|
}
|
|
2999
1261
|
const data = await parseBody(output.body, context);
|
|
3000
1262
|
let contents = {};
|
|
3001
|
-
contents =
|
|
1263
|
+
contents = de_ListEnvironmentTemplatesOutput(data, context);
|
|
3002
1264
|
const response = {
|
|
3003
1265
|
$metadata: deserializeMetadata(output),
|
|
3004
1266
|
...contents,
|
|
3005
1267
|
};
|
|
3006
1268
|
return response;
|
|
3007
1269
|
};
|
|
3008
|
-
const
|
|
3009
|
-
const parsedOutput = {
|
|
3010
|
-
...output,
|
|
3011
|
-
body: await parseErrorBody(output.body, context),
|
|
3012
|
-
};
|
|
3013
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3014
|
-
switch (errorCode) {
|
|
3015
|
-
case "AccessDeniedException":
|
|
3016
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3017
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "InternalServerException":
|
|
3019
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3020
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3021
|
-
case "ResourceNotFoundException":
|
|
3022
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3023
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3024
|
-
case "ThrottlingException":
|
|
3025
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3026
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3027
|
-
case "ValidationException":
|
|
3028
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3029
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3030
|
-
default:
|
|
3031
|
-
const parsedBody = parsedOutput.body;
|
|
3032
|
-
return throwDefaultError({
|
|
3033
|
-
output,
|
|
3034
|
-
parsedBody,
|
|
3035
|
-
errorCode,
|
|
3036
|
-
});
|
|
3037
|
-
}
|
|
3038
|
-
};
|
|
3039
|
-
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
1270
|
+
export const de_ListEnvironmentTemplateVersionsCommand = async (output, context) => {
|
|
3040
1271
|
if (output.statusCode >= 300) {
|
|
3041
|
-
return
|
|
1272
|
+
return de_CommandError(output, context);
|
|
3042
1273
|
}
|
|
3043
1274
|
const data = await parseBody(output.body, context);
|
|
3044
1275
|
let contents = {};
|
|
3045
|
-
contents =
|
|
1276
|
+
contents = de_ListEnvironmentTemplateVersionsOutput(data, context);
|
|
3046
1277
|
const response = {
|
|
3047
1278
|
$metadata: deserializeMetadata(output),
|
|
3048
1279
|
...contents,
|
|
3049
1280
|
};
|
|
3050
1281
|
return response;
|
|
3051
1282
|
};
|
|
3052
|
-
const
|
|
3053
|
-
const parsedOutput = {
|
|
3054
|
-
...output,
|
|
3055
|
-
body: await parseErrorBody(output.body, context),
|
|
3056
|
-
};
|
|
3057
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3058
|
-
switch (errorCode) {
|
|
3059
|
-
case "AccessDeniedException":
|
|
3060
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3061
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3062
|
-
case "InternalServerException":
|
|
3063
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3064
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3065
|
-
case "ResourceNotFoundException":
|
|
3066
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3067
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3068
|
-
case "ThrottlingException":
|
|
3069
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3070
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3071
|
-
case "ValidationException":
|
|
3072
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3073
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3074
|
-
default:
|
|
3075
|
-
const parsedBody = parsedOutput.body;
|
|
3076
|
-
return throwDefaultError({
|
|
3077
|
-
output,
|
|
3078
|
-
parsedBody,
|
|
3079
|
-
errorCode,
|
|
3080
|
-
});
|
|
3081
|
-
}
|
|
3082
|
-
};
|
|
3083
|
-
export const de_ListEnvironmentTemplatesCommand = async (output, context) => {
|
|
1283
|
+
export const de_ListRepositoriesCommand = async (output, context) => {
|
|
3084
1284
|
if (output.statusCode >= 300) {
|
|
3085
|
-
return
|
|
1285
|
+
return de_CommandError(output, context);
|
|
3086
1286
|
}
|
|
3087
1287
|
const data = await parseBody(output.body, context);
|
|
3088
1288
|
let contents = {};
|
|
3089
|
-
contents =
|
|
1289
|
+
contents = _json(data);
|
|
3090
1290
|
const response = {
|
|
3091
1291
|
$metadata: deserializeMetadata(output),
|
|
3092
1292
|
...contents,
|
|
3093
1293
|
};
|
|
3094
1294
|
return response;
|
|
3095
1295
|
};
|
|
3096
|
-
const
|
|
3097
|
-
const parsedOutput = {
|
|
3098
|
-
...output,
|
|
3099
|
-
body: await parseErrorBody(output.body, context),
|
|
3100
|
-
};
|
|
3101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3102
|
-
switch (errorCode) {
|
|
3103
|
-
case "AccessDeniedException":
|
|
3104
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3105
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3106
|
-
case "InternalServerException":
|
|
3107
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3108
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3109
|
-
case "ThrottlingException":
|
|
3110
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3111
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3112
|
-
case "ValidationException":
|
|
3113
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3114
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3115
|
-
default:
|
|
3116
|
-
const parsedBody = parsedOutput.body;
|
|
3117
|
-
return throwDefaultError({
|
|
3118
|
-
output,
|
|
3119
|
-
parsedBody,
|
|
3120
|
-
errorCode,
|
|
3121
|
-
});
|
|
3122
|
-
}
|
|
3123
|
-
};
|
|
3124
|
-
export const de_ListEnvironmentTemplateVersionsCommand = async (output, context) => {
|
|
1296
|
+
export const de_ListRepositorySyncDefinitionsCommand = async (output, context) => {
|
|
3125
1297
|
if (output.statusCode >= 300) {
|
|
3126
|
-
return
|
|
1298
|
+
return de_CommandError(output, context);
|
|
3127
1299
|
}
|
|
3128
1300
|
const data = await parseBody(output.body, context);
|
|
3129
1301
|
let contents = {};
|
|
3130
|
-
contents =
|
|
1302
|
+
contents = _json(data);
|
|
3131
1303
|
const response = {
|
|
3132
1304
|
$metadata: deserializeMetadata(output),
|
|
3133
1305
|
...contents,
|
|
3134
1306
|
};
|
|
3135
1307
|
return response;
|
|
3136
1308
|
};
|
|
3137
|
-
const
|
|
3138
|
-
const parsedOutput = {
|
|
3139
|
-
...output,
|
|
3140
|
-
body: await parseErrorBody(output.body, context),
|
|
3141
|
-
};
|
|
3142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3143
|
-
switch (errorCode) {
|
|
3144
|
-
case "AccessDeniedException":
|
|
3145
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3146
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3147
|
-
case "InternalServerException":
|
|
3148
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3149
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3150
|
-
case "ResourceNotFoundException":
|
|
3151
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3153
|
-
case "ThrottlingException":
|
|
3154
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3155
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3156
|
-
case "ValidationException":
|
|
3157
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3158
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3159
|
-
default:
|
|
3160
|
-
const parsedBody = parsedOutput.body;
|
|
3161
|
-
return throwDefaultError({
|
|
3162
|
-
output,
|
|
3163
|
-
parsedBody,
|
|
3164
|
-
errorCode,
|
|
3165
|
-
});
|
|
3166
|
-
}
|
|
3167
|
-
};
|
|
3168
|
-
export const de_ListRepositoriesCommand = async (output, context) => {
|
|
1309
|
+
export const de_ListServiceInstanceOutputsCommand = async (output, context) => {
|
|
3169
1310
|
if (output.statusCode >= 300) {
|
|
3170
|
-
return
|
|
1311
|
+
return de_CommandError(output, context);
|
|
3171
1312
|
}
|
|
3172
1313
|
const data = await parseBody(output.body, context);
|
|
3173
1314
|
let contents = {};
|
|
@@ -3178,40 +1319,9 @@ export const de_ListRepositoriesCommand = async (output, context) => {
|
|
|
3178
1319
|
};
|
|
3179
1320
|
return response;
|
|
3180
1321
|
};
|
|
3181
|
-
const
|
|
3182
|
-
const parsedOutput = {
|
|
3183
|
-
...output,
|
|
3184
|
-
body: await parseErrorBody(output.body, context),
|
|
3185
|
-
};
|
|
3186
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3187
|
-
switch (errorCode) {
|
|
3188
|
-
case "AccessDeniedException":
|
|
3189
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3190
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3191
|
-
case "InternalServerException":
|
|
3192
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3193
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3194
|
-
case "ResourceNotFoundException":
|
|
3195
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3196
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3197
|
-
case "ThrottlingException":
|
|
3198
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3199
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3200
|
-
case "ValidationException":
|
|
3201
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3202
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3203
|
-
default:
|
|
3204
|
-
const parsedBody = parsedOutput.body;
|
|
3205
|
-
return throwDefaultError({
|
|
3206
|
-
output,
|
|
3207
|
-
parsedBody,
|
|
3208
|
-
errorCode,
|
|
3209
|
-
});
|
|
3210
|
-
}
|
|
3211
|
-
};
|
|
3212
|
-
export const de_ListRepositorySyncDefinitionsCommand = async (output, context) => {
|
|
1322
|
+
export const de_ListServiceInstanceProvisionedResourcesCommand = async (output, context) => {
|
|
3213
1323
|
if (output.statusCode >= 300) {
|
|
3214
|
-
return
|
|
1324
|
+
return de_CommandError(output, context);
|
|
3215
1325
|
}
|
|
3216
1326
|
const data = await parseBody(output.body, context);
|
|
3217
1327
|
let contents = {};
|
|
@@ -3222,81 +1332,22 @@ export const de_ListRepositorySyncDefinitionsCommand = async (output, context) =
|
|
|
3222
1332
|
};
|
|
3223
1333
|
return response;
|
|
3224
1334
|
};
|
|
3225
|
-
const
|
|
3226
|
-
const parsedOutput = {
|
|
3227
|
-
...output,
|
|
3228
|
-
body: await parseErrorBody(output.body, context),
|
|
3229
|
-
};
|
|
3230
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3231
|
-
switch (errorCode) {
|
|
3232
|
-
case "AccessDeniedException":
|
|
3233
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3234
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3235
|
-
case "InternalServerException":
|
|
3236
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3237
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3238
|
-
case "ThrottlingException":
|
|
3239
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3240
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3241
|
-
case "ValidationException":
|
|
3242
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3243
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3244
|
-
default:
|
|
3245
|
-
const parsedBody = parsedOutput.body;
|
|
3246
|
-
return throwDefaultError({
|
|
3247
|
-
output,
|
|
3248
|
-
parsedBody,
|
|
3249
|
-
errorCode,
|
|
3250
|
-
});
|
|
3251
|
-
}
|
|
3252
|
-
};
|
|
3253
|
-
export const de_ListServiceInstanceOutputsCommand = async (output, context) => {
|
|
1335
|
+
export const de_ListServiceInstancesCommand = async (output, context) => {
|
|
3254
1336
|
if (output.statusCode >= 300) {
|
|
3255
|
-
return
|
|
1337
|
+
return de_CommandError(output, context);
|
|
3256
1338
|
}
|
|
3257
1339
|
const data = await parseBody(output.body, context);
|
|
3258
1340
|
let contents = {};
|
|
3259
|
-
contents =
|
|
1341
|
+
contents = de_ListServiceInstancesOutput(data, context);
|
|
3260
1342
|
const response = {
|
|
3261
1343
|
$metadata: deserializeMetadata(output),
|
|
3262
1344
|
...contents,
|
|
3263
1345
|
};
|
|
3264
1346
|
return response;
|
|
3265
1347
|
};
|
|
3266
|
-
const
|
|
3267
|
-
const parsedOutput = {
|
|
3268
|
-
...output,
|
|
3269
|
-
body: await parseErrorBody(output.body, context),
|
|
3270
|
-
};
|
|
3271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3272
|
-
switch (errorCode) {
|
|
3273
|
-
case "AccessDeniedException":
|
|
3274
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3275
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3276
|
-
case "InternalServerException":
|
|
3277
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3278
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3279
|
-
case "ResourceNotFoundException":
|
|
3280
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3281
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3282
|
-
case "ThrottlingException":
|
|
3283
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3284
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3285
|
-
case "ValidationException":
|
|
3286
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3287
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3288
|
-
default:
|
|
3289
|
-
const parsedBody = parsedOutput.body;
|
|
3290
|
-
return throwDefaultError({
|
|
3291
|
-
output,
|
|
3292
|
-
parsedBody,
|
|
3293
|
-
errorCode,
|
|
3294
|
-
});
|
|
3295
|
-
}
|
|
3296
|
-
};
|
|
3297
|
-
export const de_ListServiceInstanceProvisionedResourcesCommand = async (output, context) => {
|
|
1348
|
+
export const de_ListServicePipelineOutputsCommand = async (output, context) => {
|
|
3298
1349
|
if (output.statusCode >= 300) {
|
|
3299
|
-
return
|
|
1350
|
+
return de_CommandError(output, context);
|
|
3300
1351
|
}
|
|
3301
1352
|
const data = await parseBody(output.body, context);
|
|
3302
1353
|
let contents = {};
|
|
@@ -3307,128 +1358,61 @@ export const de_ListServiceInstanceProvisionedResourcesCommand = async (output,
|
|
|
3307
1358
|
};
|
|
3308
1359
|
return response;
|
|
3309
1360
|
};
|
|
3310
|
-
const
|
|
3311
|
-
const parsedOutput = {
|
|
3312
|
-
...output,
|
|
3313
|
-
body: await parseErrorBody(output.body, context),
|
|
3314
|
-
};
|
|
3315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3316
|
-
switch (errorCode) {
|
|
3317
|
-
case "AccessDeniedException":
|
|
3318
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3319
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3320
|
-
case "InternalServerException":
|
|
3321
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3322
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3323
|
-
case "ResourceNotFoundException":
|
|
3324
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3325
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3326
|
-
case "ThrottlingException":
|
|
3327
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3328
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3329
|
-
case "ValidationException":
|
|
3330
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3331
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3332
|
-
default:
|
|
3333
|
-
const parsedBody = parsedOutput.body;
|
|
3334
|
-
return throwDefaultError({
|
|
3335
|
-
output,
|
|
3336
|
-
parsedBody,
|
|
3337
|
-
errorCode,
|
|
3338
|
-
});
|
|
3339
|
-
}
|
|
3340
|
-
};
|
|
3341
|
-
export const de_ListServiceInstancesCommand = async (output, context) => {
|
|
1361
|
+
export const de_ListServicePipelineProvisionedResourcesCommand = async (output, context) => {
|
|
3342
1362
|
if (output.statusCode >= 300) {
|
|
3343
|
-
return
|
|
1363
|
+
return de_CommandError(output, context);
|
|
3344
1364
|
}
|
|
3345
1365
|
const data = await parseBody(output.body, context);
|
|
3346
1366
|
let contents = {};
|
|
3347
|
-
contents =
|
|
1367
|
+
contents = _json(data);
|
|
3348
1368
|
const response = {
|
|
3349
1369
|
$metadata: deserializeMetadata(output),
|
|
3350
1370
|
...contents,
|
|
3351
1371
|
};
|
|
3352
1372
|
return response;
|
|
3353
1373
|
};
|
|
3354
|
-
const
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
body: await parseErrorBody(output.body, context),
|
|
3358
|
-
};
|
|
3359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3360
|
-
switch (errorCode) {
|
|
3361
|
-
case "AccessDeniedException":
|
|
3362
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3363
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "InternalServerException":
|
|
3365
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3366
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3367
|
-
case "ResourceNotFoundException":
|
|
3368
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3369
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3370
|
-
case "ThrottlingException":
|
|
3371
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3372
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3373
|
-
case "ValidationException":
|
|
3374
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3375
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3376
|
-
default:
|
|
3377
|
-
const parsedBody = parsedOutput.body;
|
|
3378
|
-
return throwDefaultError({
|
|
3379
|
-
output,
|
|
3380
|
-
parsedBody,
|
|
3381
|
-
errorCode,
|
|
3382
|
-
});
|
|
1374
|
+
export const de_ListServicesCommand = async (output, context) => {
|
|
1375
|
+
if (output.statusCode >= 300) {
|
|
1376
|
+
return de_CommandError(output, context);
|
|
3383
1377
|
}
|
|
1378
|
+
const data = await parseBody(output.body, context);
|
|
1379
|
+
let contents = {};
|
|
1380
|
+
contents = de_ListServicesOutput(data, context);
|
|
1381
|
+
const response = {
|
|
1382
|
+
$metadata: deserializeMetadata(output),
|
|
1383
|
+
...contents,
|
|
1384
|
+
};
|
|
1385
|
+
return response;
|
|
3384
1386
|
};
|
|
3385
|
-
export const
|
|
1387
|
+
export const de_ListServiceTemplatesCommand = async (output, context) => {
|
|
3386
1388
|
if (output.statusCode >= 300) {
|
|
3387
|
-
return
|
|
1389
|
+
return de_CommandError(output, context);
|
|
3388
1390
|
}
|
|
3389
1391
|
const data = await parseBody(output.body, context);
|
|
3390
1392
|
let contents = {};
|
|
3391
|
-
contents =
|
|
1393
|
+
contents = de_ListServiceTemplatesOutput(data, context);
|
|
3392
1394
|
const response = {
|
|
3393
1395
|
$metadata: deserializeMetadata(output),
|
|
3394
1396
|
...contents,
|
|
3395
1397
|
};
|
|
3396
1398
|
return response;
|
|
3397
1399
|
};
|
|
3398
|
-
const
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
body: await parseErrorBody(output.body, context),
|
|
3402
|
-
};
|
|
3403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3404
|
-
switch (errorCode) {
|
|
3405
|
-
case "AccessDeniedException":
|
|
3406
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3407
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3408
|
-
case "InternalServerException":
|
|
3409
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3410
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "ResourceNotFoundException":
|
|
3412
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3413
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "ThrottlingException":
|
|
3415
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3416
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3417
|
-
case "ValidationException":
|
|
3418
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3419
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3420
|
-
default:
|
|
3421
|
-
const parsedBody = parsedOutput.body;
|
|
3422
|
-
return throwDefaultError({
|
|
3423
|
-
output,
|
|
3424
|
-
parsedBody,
|
|
3425
|
-
errorCode,
|
|
3426
|
-
});
|
|
1400
|
+
export const de_ListServiceTemplateVersionsCommand = async (output, context) => {
|
|
1401
|
+
if (output.statusCode >= 300) {
|
|
1402
|
+
return de_CommandError(output, context);
|
|
3427
1403
|
}
|
|
1404
|
+
const data = await parseBody(output.body, context);
|
|
1405
|
+
let contents = {};
|
|
1406
|
+
contents = de_ListServiceTemplateVersionsOutput(data, context);
|
|
1407
|
+
const response = {
|
|
1408
|
+
$metadata: deserializeMetadata(output),
|
|
1409
|
+
...contents,
|
|
1410
|
+
};
|
|
1411
|
+
return response;
|
|
3428
1412
|
};
|
|
3429
|
-
export const
|
|
1413
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
3430
1414
|
if (output.statusCode >= 300) {
|
|
3431
|
-
return
|
|
1415
|
+
return de_CommandError(output, context);
|
|
3432
1416
|
}
|
|
3433
1417
|
const data = await parseBody(output.body, context);
|
|
3434
1418
|
let contents = {};
|
|
@@ -3439,166 +1423,61 @@ export const de_ListServicePipelineProvisionedResourcesCommand = async (output,
|
|
|
3439
1423
|
};
|
|
3440
1424
|
return response;
|
|
3441
1425
|
};
|
|
3442
|
-
const
|
|
3443
|
-
const parsedOutput = {
|
|
3444
|
-
...output,
|
|
3445
|
-
body: await parseErrorBody(output.body, context),
|
|
3446
|
-
};
|
|
3447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3448
|
-
switch (errorCode) {
|
|
3449
|
-
case "AccessDeniedException":
|
|
3450
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3451
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "InternalServerException":
|
|
3453
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3454
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "ResourceNotFoundException":
|
|
3456
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3457
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3458
|
-
case "ThrottlingException":
|
|
3459
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3460
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3461
|
-
case "ValidationException":
|
|
3462
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3463
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3464
|
-
default:
|
|
3465
|
-
const parsedBody = parsedOutput.body;
|
|
3466
|
-
return throwDefaultError({
|
|
3467
|
-
output,
|
|
3468
|
-
parsedBody,
|
|
3469
|
-
errorCode,
|
|
3470
|
-
});
|
|
3471
|
-
}
|
|
3472
|
-
};
|
|
3473
|
-
export const de_ListServicesCommand = async (output, context) => {
|
|
1426
|
+
export const de_NotifyResourceDeploymentStatusChangeCommand = async (output, context) => {
|
|
3474
1427
|
if (output.statusCode >= 300) {
|
|
3475
|
-
return
|
|
1428
|
+
return de_CommandError(output, context);
|
|
3476
1429
|
}
|
|
3477
1430
|
const data = await parseBody(output.body, context);
|
|
3478
1431
|
let contents = {};
|
|
3479
|
-
contents =
|
|
1432
|
+
contents = _json(data);
|
|
3480
1433
|
const response = {
|
|
3481
1434
|
$metadata: deserializeMetadata(output),
|
|
3482
1435
|
...contents,
|
|
3483
1436
|
};
|
|
3484
1437
|
return response;
|
|
3485
1438
|
};
|
|
3486
|
-
const
|
|
3487
|
-
const parsedOutput = {
|
|
3488
|
-
...output,
|
|
3489
|
-
body: await parseErrorBody(output.body, context),
|
|
3490
|
-
};
|
|
3491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3492
|
-
switch (errorCode) {
|
|
3493
|
-
case "AccessDeniedException":
|
|
3494
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3495
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3496
|
-
case "InternalServerException":
|
|
3497
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3498
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3499
|
-
case "ThrottlingException":
|
|
3500
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3501
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3502
|
-
case "ValidationException":
|
|
3503
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3504
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3505
|
-
default:
|
|
3506
|
-
const parsedBody = parsedOutput.body;
|
|
3507
|
-
return throwDefaultError({
|
|
3508
|
-
output,
|
|
3509
|
-
parsedBody,
|
|
3510
|
-
errorCode,
|
|
3511
|
-
});
|
|
3512
|
-
}
|
|
3513
|
-
};
|
|
3514
|
-
export const de_ListServiceTemplatesCommand = async (output, context) => {
|
|
1439
|
+
export const de_RejectEnvironmentAccountConnectionCommand = async (output, context) => {
|
|
3515
1440
|
if (output.statusCode >= 300) {
|
|
3516
|
-
return
|
|
1441
|
+
return de_CommandError(output, context);
|
|
3517
1442
|
}
|
|
3518
1443
|
const data = await parseBody(output.body, context);
|
|
3519
1444
|
let contents = {};
|
|
3520
|
-
contents =
|
|
1445
|
+
contents = de_RejectEnvironmentAccountConnectionOutput(data, context);
|
|
3521
1446
|
const response = {
|
|
3522
1447
|
$metadata: deserializeMetadata(output),
|
|
3523
1448
|
...contents,
|
|
3524
1449
|
};
|
|
3525
1450
|
return response;
|
|
3526
1451
|
};
|
|
3527
|
-
const
|
|
3528
|
-
const parsedOutput = {
|
|
3529
|
-
...output,
|
|
3530
|
-
body: await parseErrorBody(output.body, context),
|
|
3531
|
-
};
|
|
3532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3533
|
-
switch (errorCode) {
|
|
3534
|
-
case "AccessDeniedException":
|
|
3535
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3536
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3537
|
-
case "InternalServerException":
|
|
3538
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3539
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3540
|
-
case "ThrottlingException":
|
|
3541
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3542
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3543
|
-
case "ValidationException":
|
|
3544
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3545
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3546
|
-
default:
|
|
3547
|
-
const parsedBody = parsedOutput.body;
|
|
3548
|
-
return throwDefaultError({
|
|
3549
|
-
output,
|
|
3550
|
-
parsedBody,
|
|
3551
|
-
errorCode,
|
|
3552
|
-
});
|
|
3553
|
-
}
|
|
3554
|
-
};
|
|
3555
|
-
export const de_ListServiceTemplateVersionsCommand = async (output, context) => {
|
|
1452
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
3556
1453
|
if (output.statusCode >= 300) {
|
|
3557
|
-
return
|
|
1454
|
+
return de_CommandError(output, context);
|
|
3558
1455
|
}
|
|
3559
1456
|
const data = await parseBody(output.body, context);
|
|
3560
1457
|
let contents = {};
|
|
3561
|
-
contents =
|
|
1458
|
+
contents = _json(data);
|
|
3562
1459
|
const response = {
|
|
3563
1460
|
$metadata: deserializeMetadata(output),
|
|
3564
1461
|
...contents,
|
|
3565
1462
|
};
|
|
3566
1463
|
return response;
|
|
3567
1464
|
};
|
|
3568
|
-
const
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
body: await parseErrorBody(output.body, context),
|
|
3572
|
-
};
|
|
3573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3574
|
-
switch (errorCode) {
|
|
3575
|
-
case "AccessDeniedException":
|
|
3576
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3577
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3578
|
-
case "InternalServerException":
|
|
3579
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3580
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3581
|
-
case "ResourceNotFoundException":
|
|
3582
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3583
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3584
|
-
case "ThrottlingException":
|
|
3585
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3586
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3587
|
-
case "ValidationException":
|
|
3588
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3589
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3590
|
-
default:
|
|
3591
|
-
const parsedBody = parsedOutput.body;
|
|
3592
|
-
return throwDefaultError({
|
|
3593
|
-
output,
|
|
3594
|
-
parsedBody,
|
|
3595
|
-
errorCode,
|
|
3596
|
-
});
|
|
1465
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1466
|
+
if (output.statusCode >= 300) {
|
|
1467
|
+
return de_CommandError(output, context);
|
|
3597
1468
|
}
|
|
1469
|
+
const data = await parseBody(output.body, context);
|
|
1470
|
+
let contents = {};
|
|
1471
|
+
contents = _json(data);
|
|
1472
|
+
const response = {
|
|
1473
|
+
$metadata: deserializeMetadata(output),
|
|
1474
|
+
...contents,
|
|
1475
|
+
};
|
|
1476
|
+
return response;
|
|
3598
1477
|
};
|
|
3599
|
-
export const
|
|
1478
|
+
export const de_UpdateAccountSettingsCommand = async (output, context) => {
|
|
3600
1479
|
if (output.statusCode >= 300) {
|
|
3601
|
-
return
|
|
1480
|
+
return de_CommandError(output, context);
|
|
3602
1481
|
}
|
|
3603
1482
|
const data = await parseBody(output.body, context);
|
|
3604
1483
|
let contents = {};
|
|
@@ -3609,275 +1488,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
3609
1488
|
};
|
|
3610
1489
|
return response;
|
|
3611
1490
|
};
|
|
3612
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
3613
|
-
const parsedOutput = {
|
|
3614
|
-
...output,
|
|
3615
|
-
body: await parseErrorBody(output.body, context),
|
|
3616
|
-
};
|
|
3617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3618
|
-
switch (errorCode) {
|
|
3619
|
-
case "AccessDeniedException":
|
|
3620
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3621
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3622
|
-
case "InternalServerException":
|
|
3623
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3624
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3625
|
-
case "ResourceNotFoundException":
|
|
3626
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3627
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3628
|
-
case "ThrottlingException":
|
|
3629
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3630
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3631
|
-
case "ValidationException":
|
|
3632
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3633
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3634
|
-
default:
|
|
3635
|
-
const parsedBody = parsedOutput.body;
|
|
3636
|
-
return throwDefaultError({
|
|
3637
|
-
output,
|
|
3638
|
-
parsedBody,
|
|
3639
|
-
errorCode,
|
|
3640
|
-
});
|
|
3641
|
-
}
|
|
3642
|
-
};
|
|
3643
|
-
export const de_NotifyResourceDeploymentStatusChangeCommand = async (output, context) => {
|
|
3644
|
-
if (output.statusCode >= 300) {
|
|
3645
|
-
return de_NotifyResourceDeploymentStatusChangeCommandError(output, context);
|
|
3646
|
-
}
|
|
3647
|
-
const data = await parseBody(output.body, context);
|
|
3648
|
-
let contents = {};
|
|
3649
|
-
contents = _json(data);
|
|
3650
|
-
const response = {
|
|
3651
|
-
$metadata: deserializeMetadata(output),
|
|
3652
|
-
...contents,
|
|
3653
|
-
};
|
|
3654
|
-
return response;
|
|
3655
|
-
};
|
|
3656
|
-
const de_NotifyResourceDeploymentStatusChangeCommandError = async (output, context) => {
|
|
3657
|
-
const parsedOutput = {
|
|
3658
|
-
...output,
|
|
3659
|
-
body: await parseErrorBody(output.body, context),
|
|
3660
|
-
};
|
|
3661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3662
|
-
switch (errorCode) {
|
|
3663
|
-
case "AccessDeniedException":
|
|
3664
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3665
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3666
|
-
case "ConflictException":
|
|
3667
|
-
case "com.amazonaws.proton#ConflictException":
|
|
3668
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3669
|
-
case "InternalServerException":
|
|
3670
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3671
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3672
|
-
case "ResourceNotFoundException":
|
|
3673
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3674
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3675
|
-
case "ServiceQuotaExceededException":
|
|
3676
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
3677
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3678
|
-
case "ThrottlingException":
|
|
3679
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3680
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3681
|
-
case "ValidationException":
|
|
3682
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3683
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3684
|
-
default:
|
|
3685
|
-
const parsedBody = parsedOutput.body;
|
|
3686
|
-
return throwDefaultError({
|
|
3687
|
-
output,
|
|
3688
|
-
parsedBody,
|
|
3689
|
-
errorCode,
|
|
3690
|
-
});
|
|
3691
|
-
}
|
|
3692
|
-
};
|
|
3693
|
-
export const de_RejectEnvironmentAccountConnectionCommand = async (output, context) => {
|
|
3694
|
-
if (output.statusCode >= 300) {
|
|
3695
|
-
return de_RejectEnvironmentAccountConnectionCommandError(output, context);
|
|
3696
|
-
}
|
|
3697
|
-
const data = await parseBody(output.body, context);
|
|
3698
|
-
let contents = {};
|
|
3699
|
-
contents = de_RejectEnvironmentAccountConnectionOutput(data, context);
|
|
3700
|
-
const response = {
|
|
3701
|
-
$metadata: deserializeMetadata(output),
|
|
3702
|
-
...contents,
|
|
3703
|
-
};
|
|
3704
|
-
return response;
|
|
3705
|
-
};
|
|
3706
|
-
const de_RejectEnvironmentAccountConnectionCommandError = async (output, context) => {
|
|
3707
|
-
const parsedOutput = {
|
|
3708
|
-
...output,
|
|
3709
|
-
body: await parseErrorBody(output.body, context),
|
|
3710
|
-
};
|
|
3711
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3712
|
-
switch (errorCode) {
|
|
3713
|
-
case "AccessDeniedException":
|
|
3714
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3715
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3716
|
-
case "ConflictException":
|
|
3717
|
-
case "com.amazonaws.proton#ConflictException":
|
|
3718
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3719
|
-
case "InternalServerException":
|
|
3720
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3721
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3722
|
-
case "ResourceNotFoundException":
|
|
3723
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3724
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3725
|
-
case "ThrottlingException":
|
|
3726
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3727
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3728
|
-
case "ValidationException":
|
|
3729
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3730
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3731
|
-
default:
|
|
3732
|
-
const parsedBody = parsedOutput.body;
|
|
3733
|
-
return throwDefaultError({
|
|
3734
|
-
output,
|
|
3735
|
-
parsedBody,
|
|
3736
|
-
errorCode,
|
|
3737
|
-
});
|
|
3738
|
-
}
|
|
3739
|
-
};
|
|
3740
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
3741
|
-
if (output.statusCode >= 300) {
|
|
3742
|
-
return de_TagResourceCommandError(output, context);
|
|
3743
|
-
}
|
|
3744
|
-
const data = await parseBody(output.body, context);
|
|
3745
|
-
let contents = {};
|
|
3746
|
-
contents = _json(data);
|
|
3747
|
-
const response = {
|
|
3748
|
-
$metadata: deserializeMetadata(output),
|
|
3749
|
-
...contents,
|
|
3750
|
-
};
|
|
3751
|
-
return response;
|
|
3752
|
-
};
|
|
3753
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3754
|
-
const parsedOutput = {
|
|
3755
|
-
...output,
|
|
3756
|
-
body: await parseErrorBody(output.body, context),
|
|
3757
|
-
};
|
|
3758
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3759
|
-
switch (errorCode) {
|
|
3760
|
-
case "AccessDeniedException":
|
|
3761
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3762
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3763
|
-
case "ConflictException":
|
|
3764
|
-
case "com.amazonaws.proton#ConflictException":
|
|
3765
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3766
|
-
case "InternalServerException":
|
|
3767
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3768
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3769
|
-
case "ResourceNotFoundException":
|
|
3770
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3771
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3772
|
-
case "ThrottlingException":
|
|
3773
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3774
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3775
|
-
case "ValidationException":
|
|
3776
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3777
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3778
|
-
default:
|
|
3779
|
-
const parsedBody = parsedOutput.body;
|
|
3780
|
-
return throwDefaultError({
|
|
3781
|
-
output,
|
|
3782
|
-
parsedBody,
|
|
3783
|
-
errorCode,
|
|
3784
|
-
});
|
|
3785
|
-
}
|
|
3786
|
-
};
|
|
3787
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
3788
|
-
if (output.statusCode >= 300) {
|
|
3789
|
-
return de_UntagResourceCommandError(output, context);
|
|
3790
|
-
}
|
|
3791
|
-
const data = await parseBody(output.body, context);
|
|
3792
|
-
let contents = {};
|
|
3793
|
-
contents = _json(data);
|
|
3794
|
-
const response = {
|
|
3795
|
-
$metadata: deserializeMetadata(output),
|
|
3796
|
-
...contents,
|
|
3797
|
-
};
|
|
3798
|
-
return response;
|
|
3799
|
-
};
|
|
3800
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3801
|
-
const parsedOutput = {
|
|
3802
|
-
...output,
|
|
3803
|
-
body: await parseErrorBody(output.body, context),
|
|
3804
|
-
};
|
|
3805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3806
|
-
switch (errorCode) {
|
|
3807
|
-
case "AccessDeniedException":
|
|
3808
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3809
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3810
|
-
case "ConflictException":
|
|
3811
|
-
case "com.amazonaws.proton#ConflictException":
|
|
3812
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3813
|
-
case "InternalServerException":
|
|
3814
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3815
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3816
|
-
case "ResourceNotFoundException":
|
|
3817
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3818
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3819
|
-
case "ThrottlingException":
|
|
3820
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3821
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3822
|
-
case "ValidationException":
|
|
3823
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3824
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3825
|
-
default:
|
|
3826
|
-
const parsedBody = parsedOutput.body;
|
|
3827
|
-
return throwDefaultError({
|
|
3828
|
-
output,
|
|
3829
|
-
parsedBody,
|
|
3830
|
-
errorCode,
|
|
3831
|
-
});
|
|
3832
|
-
}
|
|
3833
|
-
};
|
|
3834
|
-
export const de_UpdateAccountSettingsCommand = async (output, context) => {
|
|
3835
|
-
if (output.statusCode >= 300) {
|
|
3836
|
-
return de_UpdateAccountSettingsCommandError(output, context);
|
|
3837
|
-
}
|
|
3838
|
-
const data = await parseBody(output.body, context);
|
|
3839
|
-
let contents = {};
|
|
3840
|
-
contents = _json(data);
|
|
3841
|
-
const response = {
|
|
3842
|
-
$metadata: deserializeMetadata(output),
|
|
3843
|
-
...contents,
|
|
3844
|
-
};
|
|
3845
|
-
return response;
|
|
3846
|
-
};
|
|
3847
|
-
const de_UpdateAccountSettingsCommandError = async (output, context) => {
|
|
3848
|
-
const parsedOutput = {
|
|
3849
|
-
...output,
|
|
3850
|
-
body: await parseErrorBody(output.body, context),
|
|
3851
|
-
};
|
|
3852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3853
|
-
switch (errorCode) {
|
|
3854
|
-
case "AccessDeniedException":
|
|
3855
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3856
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3857
|
-
case "ConflictException":
|
|
3858
|
-
case "com.amazonaws.proton#ConflictException":
|
|
3859
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3860
|
-
case "InternalServerException":
|
|
3861
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3862
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3863
|
-
case "ThrottlingException":
|
|
3864
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3865
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3866
|
-
case "ValidationException":
|
|
3867
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3868
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3869
|
-
default:
|
|
3870
|
-
const parsedBody = parsedOutput.body;
|
|
3871
|
-
return throwDefaultError({
|
|
3872
|
-
output,
|
|
3873
|
-
parsedBody,
|
|
3874
|
-
errorCode,
|
|
3875
|
-
});
|
|
3876
|
-
}
|
|
3877
|
-
};
|
|
3878
1491
|
export const de_UpdateComponentCommand = async (output, context) => {
|
|
3879
1492
|
if (output.statusCode >= 300) {
|
|
3880
|
-
return
|
|
1493
|
+
return de_CommandError(output, context);
|
|
3881
1494
|
}
|
|
3882
1495
|
const data = await parseBody(output.body, context);
|
|
3883
1496
|
let contents = {};
|
|
@@ -3888,46 +1501,9 @@ export const de_UpdateComponentCommand = async (output, context) => {
|
|
|
3888
1501
|
};
|
|
3889
1502
|
return response;
|
|
3890
1503
|
};
|
|
3891
|
-
const de_UpdateComponentCommandError = async (output, context) => {
|
|
3892
|
-
const parsedOutput = {
|
|
3893
|
-
...output,
|
|
3894
|
-
body: await parseErrorBody(output.body, context),
|
|
3895
|
-
};
|
|
3896
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3897
|
-
switch (errorCode) {
|
|
3898
|
-
case "AccessDeniedException":
|
|
3899
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3900
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3901
|
-
case "ConflictException":
|
|
3902
|
-
case "com.amazonaws.proton#ConflictException":
|
|
3903
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3904
|
-
case "InternalServerException":
|
|
3905
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3906
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3907
|
-
case "ResourceNotFoundException":
|
|
3908
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3909
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3910
|
-
case "ServiceQuotaExceededException":
|
|
3911
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
3912
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3913
|
-
case "ThrottlingException":
|
|
3914
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3915
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3916
|
-
case "ValidationException":
|
|
3917
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3918
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3919
|
-
default:
|
|
3920
|
-
const parsedBody = parsedOutput.body;
|
|
3921
|
-
return throwDefaultError({
|
|
3922
|
-
output,
|
|
3923
|
-
parsedBody,
|
|
3924
|
-
errorCode,
|
|
3925
|
-
});
|
|
3926
|
-
}
|
|
3927
|
-
};
|
|
3928
1504
|
export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
3929
1505
|
if (output.statusCode >= 300) {
|
|
3930
|
-
return
|
|
1506
|
+
return de_CommandError(output, context);
|
|
3931
1507
|
}
|
|
3932
1508
|
const data = await parseBody(output.body, context);
|
|
3933
1509
|
let contents = {};
|
|
@@ -3938,43 +1514,9 @@ export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
|
3938
1514
|
};
|
|
3939
1515
|
return response;
|
|
3940
1516
|
};
|
|
3941
|
-
const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
3942
|
-
const parsedOutput = {
|
|
3943
|
-
...output,
|
|
3944
|
-
body: await parseErrorBody(output.body, context),
|
|
3945
|
-
};
|
|
3946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3947
|
-
switch (errorCode) {
|
|
3948
|
-
case "AccessDeniedException":
|
|
3949
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3950
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3951
|
-
case "ConflictException":
|
|
3952
|
-
case "com.amazonaws.proton#ConflictException":
|
|
3953
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3954
|
-
case "InternalServerException":
|
|
3955
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
3956
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3957
|
-
case "ResourceNotFoundException":
|
|
3958
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3959
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3960
|
-
case "ThrottlingException":
|
|
3961
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
3962
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3963
|
-
case "ValidationException":
|
|
3964
|
-
case "com.amazonaws.proton#ValidationException":
|
|
3965
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3966
|
-
default:
|
|
3967
|
-
const parsedBody = parsedOutput.body;
|
|
3968
|
-
return throwDefaultError({
|
|
3969
|
-
output,
|
|
3970
|
-
parsedBody,
|
|
3971
|
-
errorCode,
|
|
3972
|
-
});
|
|
3973
|
-
}
|
|
3974
|
-
};
|
|
3975
1517
|
export const de_UpdateEnvironmentAccountConnectionCommand = async (output, context) => {
|
|
3976
1518
|
if (output.statusCode >= 300) {
|
|
3977
|
-
return
|
|
1519
|
+
return de_CommandError(output, context);
|
|
3978
1520
|
}
|
|
3979
1521
|
const data = await parseBody(output.body, context);
|
|
3980
1522
|
let contents = {};
|
|
@@ -3985,137 +1527,35 @@ export const de_UpdateEnvironmentAccountConnectionCommand = async (output, conte
|
|
|
3985
1527
|
};
|
|
3986
1528
|
return response;
|
|
3987
1529
|
};
|
|
3988
|
-
const de_UpdateEnvironmentAccountConnectionCommandError = async (output, context) => {
|
|
3989
|
-
const parsedOutput = {
|
|
3990
|
-
...output,
|
|
3991
|
-
body: await parseErrorBody(output.body, context),
|
|
3992
|
-
};
|
|
3993
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3994
|
-
switch (errorCode) {
|
|
3995
|
-
case "AccessDeniedException":
|
|
3996
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
3997
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3998
|
-
case "ConflictException":
|
|
3999
|
-
case "com.amazonaws.proton#ConflictException":
|
|
4000
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4001
|
-
case "InternalServerException":
|
|
4002
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
4003
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4004
|
-
case "ResourceNotFoundException":
|
|
4005
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4006
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4007
|
-
case "ThrottlingException":
|
|
4008
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
4009
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4010
|
-
case "ValidationException":
|
|
4011
|
-
case "com.amazonaws.proton#ValidationException":
|
|
4012
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4013
|
-
default:
|
|
4014
|
-
const parsedBody = parsedOutput.body;
|
|
4015
|
-
return throwDefaultError({
|
|
4016
|
-
output,
|
|
4017
|
-
parsedBody,
|
|
4018
|
-
errorCode,
|
|
4019
|
-
});
|
|
4020
|
-
}
|
|
4021
|
-
};
|
|
4022
1530
|
export const de_UpdateEnvironmentTemplateCommand = async (output, context) => {
|
|
4023
1531
|
if (output.statusCode >= 300) {
|
|
4024
|
-
return
|
|
1532
|
+
return de_CommandError(output, context);
|
|
4025
1533
|
}
|
|
4026
|
-
const data = await parseBody(output.body, context);
|
|
4027
|
-
let contents = {};
|
|
4028
|
-
contents = de_UpdateEnvironmentTemplateOutput(data, context);
|
|
4029
|
-
const response = {
|
|
4030
|
-
$metadata: deserializeMetadata(output),
|
|
4031
|
-
...contents,
|
|
4032
|
-
};
|
|
4033
|
-
return response;
|
|
4034
|
-
};
|
|
4035
|
-
const
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
body: await parseErrorBody(output.body, context),
|
|
4039
|
-
};
|
|
4040
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4041
|
-
switch (errorCode) {
|
|
4042
|
-
case "AccessDeniedException":
|
|
4043
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
4044
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4045
|
-
case "ConflictException":
|
|
4046
|
-
case "com.amazonaws.proton#ConflictException":
|
|
4047
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4048
|
-
case "InternalServerException":
|
|
4049
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
4050
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4051
|
-
case "ResourceNotFoundException":
|
|
4052
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4053
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4054
|
-
case "ThrottlingException":
|
|
4055
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
4056
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4057
|
-
case "ValidationException":
|
|
4058
|
-
case "com.amazonaws.proton#ValidationException":
|
|
4059
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4060
|
-
default:
|
|
4061
|
-
const parsedBody = parsedOutput.body;
|
|
4062
|
-
return throwDefaultError({
|
|
4063
|
-
output,
|
|
4064
|
-
parsedBody,
|
|
4065
|
-
errorCode,
|
|
4066
|
-
});
|
|
4067
|
-
}
|
|
4068
|
-
};
|
|
4069
|
-
export const de_UpdateEnvironmentTemplateVersionCommand = async (output, context) => {
|
|
4070
|
-
if (output.statusCode >= 300) {
|
|
4071
|
-
return de_UpdateEnvironmentTemplateVersionCommandError(output, context);
|
|
4072
|
-
}
|
|
4073
|
-
const data = await parseBody(output.body, context);
|
|
4074
|
-
let contents = {};
|
|
4075
|
-
contents = de_UpdateEnvironmentTemplateVersionOutput(data, context);
|
|
4076
|
-
const response = {
|
|
4077
|
-
$metadata: deserializeMetadata(output),
|
|
4078
|
-
...contents,
|
|
4079
|
-
};
|
|
4080
|
-
return response;
|
|
4081
|
-
};
|
|
4082
|
-
const de_UpdateEnvironmentTemplateVersionCommandError = async (output, context) => {
|
|
4083
|
-
const parsedOutput = {
|
|
4084
|
-
...output,
|
|
4085
|
-
body: await parseErrorBody(output.body, context),
|
|
4086
|
-
};
|
|
4087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4088
|
-
switch (errorCode) {
|
|
4089
|
-
case "AccessDeniedException":
|
|
4090
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
4091
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4092
|
-
case "ConflictException":
|
|
4093
|
-
case "com.amazonaws.proton#ConflictException":
|
|
4094
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4095
|
-
case "InternalServerException":
|
|
4096
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
4097
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4098
|
-
case "ResourceNotFoundException":
|
|
4099
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4101
|
-
case "ThrottlingException":
|
|
4102
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
4103
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4104
|
-
case "ValidationException":
|
|
4105
|
-
case "com.amazonaws.proton#ValidationException":
|
|
4106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4107
|
-
default:
|
|
4108
|
-
const parsedBody = parsedOutput.body;
|
|
4109
|
-
return throwDefaultError({
|
|
4110
|
-
output,
|
|
4111
|
-
parsedBody,
|
|
4112
|
-
errorCode,
|
|
4113
|
-
});
|
|
1534
|
+
const data = await parseBody(output.body, context);
|
|
1535
|
+
let contents = {};
|
|
1536
|
+
contents = de_UpdateEnvironmentTemplateOutput(data, context);
|
|
1537
|
+
const response = {
|
|
1538
|
+
$metadata: deserializeMetadata(output),
|
|
1539
|
+
...contents,
|
|
1540
|
+
};
|
|
1541
|
+
return response;
|
|
1542
|
+
};
|
|
1543
|
+
export const de_UpdateEnvironmentTemplateVersionCommand = async (output, context) => {
|
|
1544
|
+
if (output.statusCode >= 300) {
|
|
1545
|
+
return de_CommandError(output, context);
|
|
4114
1546
|
}
|
|
1547
|
+
const data = await parseBody(output.body, context);
|
|
1548
|
+
let contents = {};
|
|
1549
|
+
contents = de_UpdateEnvironmentTemplateVersionOutput(data, context);
|
|
1550
|
+
const response = {
|
|
1551
|
+
$metadata: deserializeMetadata(output),
|
|
1552
|
+
...contents,
|
|
1553
|
+
};
|
|
1554
|
+
return response;
|
|
4115
1555
|
};
|
|
4116
1556
|
export const de_UpdateServiceCommand = async (output, context) => {
|
|
4117
1557
|
if (output.statusCode >= 300) {
|
|
4118
|
-
return
|
|
1558
|
+
return de_CommandError(output, context);
|
|
4119
1559
|
}
|
|
4120
1560
|
const data = await parseBody(output.body, context);
|
|
4121
1561
|
let contents = {};
|
|
@@ -4126,46 +1566,9 @@ export const de_UpdateServiceCommand = async (output, context) => {
|
|
|
4126
1566
|
};
|
|
4127
1567
|
return response;
|
|
4128
1568
|
};
|
|
4129
|
-
const de_UpdateServiceCommandError = async (output, context) => {
|
|
4130
|
-
const parsedOutput = {
|
|
4131
|
-
...output,
|
|
4132
|
-
body: await parseErrorBody(output.body, context),
|
|
4133
|
-
};
|
|
4134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4135
|
-
switch (errorCode) {
|
|
4136
|
-
case "AccessDeniedException":
|
|
4137
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
4138
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4139
|
-
case "ConflictException":
|
|
4140
|
-
case "com.amazonaws.proton#ConflictException":
|
|
4141
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4142
|
-
case "InternalServerException":
|
|
4143
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
4144
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4145
|
-
case "ResourceNotFoundException":
|
|
4146
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4147
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4148
|
-
case "ServiceQuotaExceededException":
|
|
4149
|
-
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
4150
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4151
|
-
case "ThrottlingException":
|
|
4152
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
4153
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4154
|
-
case "ValidationException":
|
|
4155
|
-
case "com.amazonaws.proton#ValidationException":
|
|
4156
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4157
|
-
default:
|
|
4158
|
-
const parsedBody = parsedOutput.body;
|
|
4159
|
-
return throwDefaultError({
|
|
4160
|
-
output,
|
|
4161
|
-
parsedBody,
|
|
4162
|
-
errorCode,
|
|
4163
|
-
});
|
|
4164
|
-
}
|
|
4165
|
-
};
|
|
4166
1569
|
export const de_UpdateServiceInstanceCommand = async (output, context) => {
|
|
4167
1570
|
if (output.statusCode >= 300) {
|
|
4168
|
-
return
|
|
1571
|
+
return de_CommandError(output, context);
|
|
4169
1572
|
}
|
|
4170
1573
|
const data = await parseBody(output.body, context);
|
|
4171
1574
|
let contents = {};
|
|
@@ -4176,43 +1579,9 @@ export const de_UpdateServiceInstanceCommand = async (output, context) => {
|
|
|
4176
1579
|
};
|
|
4177
1580
|
return response;
|
|
4178
1581
|
};
|
|
4179
|
-
const de_UpdateServiceInstanceCommandError = async (output, context) => {
|
|
4180
|
-
const parsedOutput = {
|
|
4181
|
-
...output,
|
|
4182
|
-
body: await parseErrorBody(output.body, context),
|
|
4183
|
-
};
|
|
4184
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4185
|
-
switch (errorCode) {
|
|
4186
|
-
case "AccessDeniedException":
|
|
4187
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
4188
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4189
|
-
case "ConflictException":
|
|
4190
|
-
case "com.amazonaws.proton#ConflictException":
|
|
4191
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4192
|
-
case "InternalServerException":
|
|
4193
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
4194
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4195
|
-
case "ResourceNotFoundException":
|
|
4196
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4197
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4198
|
-
case "ThrottlingException":
|
|
4199
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
4200
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4201
|
-
case "ValidationException":
|
|
4202
|
-
case "com.amazonaws.proton#ValidationException":
|
|
4203
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4204
|
-
default:
|
|
4205
|
-
const parsedBody = parsedOutput.body;
|
|
4206
|
-
return throwDefaultError({
|
|
4207
|
-
output,
|
|
4208
|
-
parsedBody,
|
|
4209
|
-
errorCode,
|
|
4210
|
-
});
|
|
4211
|
-
}
|
|
4212
|
-
};
|
|
4213
1582
|
export const de_UpdateServicePipelineCommand = async (output, context) => {
|
|
4214
1583
|
if (output.statusCode >= 300) {
|
|
4215
|
-
return
|
|
1584
|
+
return de_CommandError(output, context);
|
|
4216
1585
|
}
|
|
4217
1586
|
const data = await parseBody(output.body, context);
|
|
4218
1587
|
let contents = {};
|
|
@@ -4223,43 +1592,9 @@ export const de_UpdateServicePipelineCommand = async (output, context) => {
|
|
|
4223
1592
|
};
|
|
4224
1593
|
return response;
|
|
4225
1594
|
};
|
|
4226
|
-
const de_UpdateServicePipelineCommandError = async (output, context) => {
|
|
4227
|
-
const parsedOutput = {
|
|
4228
|
-
...output,
|
|
4229
|
-
body: await parseErrorBody(output.body, context),
|
|
4230
|
-
};
|
|
4231
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4232
|
-
switch (errorCode) {
|
|
4233
|
-
case "AccessDeniedException":
|
|
4234
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
4235
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4236
|
-
case "ConflictException":
|
|
4237
|
-
case "com.amazonaws.proton#ConflictException":
|
|
4238
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4239
|
-
case "InternalServerException":
|
|
4240
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
4241
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4242
|
-
case "ResourceNotFoundException":
|
|
4243
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4244
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4245
|
-
case "ThrottlingException":
|
|
4246
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
4247
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4248
|
-
case "ValidationException":
|
|
4249
|
-
case "com.amazonaws.proton#ValidationException":
|
|
4250
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4251
|
-
default:
|
|
4252
|
-
const parsedBody = parsedOutput.body;
|
|
4253
|
-
return throwDefaultError({
|
|
4254
|
-
output,
|
|
4255
|
-
parsedBody,
|
|
4256
|
-
errorCode,
|
|
4257
|
-
});
|
|
4258
|
-
}
|
|
4259
|
-
};
|
|
4260
1595
|
export const de_UpdateServiceSyncBlockerCommand = async (output, context) => {
|
|
4261
1596
|
if (output.statusCode >= 300) {
|
|
4262
|
-
return
|
|
1597
|
+
return de_CommandError(output, context);
|
|
4263
1598
|
}
|
|
4264
1599
|
const data = await parseBody(output.body, context);
|
|
4265
1600
|
let contents = {};
|
|
@@ -4270,43 +1605,9 @@ export const de_UpdateServiceSyncBlockerCommand = async (output, context) => {
|
|
|
4270
1605
|
};
|
|
4271
1606
|
return response;
|
|
4272
1607
|
};
|
|
4273
|
-
const de_UpdateServiceSyncBlockerCommandError = async (output, context) => {
|
|
4274
|
-
const parsedOutput = {
|
|
4275
|
-
...output,
|
|
4276
|
-
body: await parseErrorBody(output.body, context),
|
|
4277
|
-
};
|
|
4278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4279
|
-
switch (errorCode) {
|
|
4280
|
-
case "AccessDeniedException":
|
|
4281
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
4282
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4283
|
-
case "ConflictException":
|
|
4284
|
-
case "com.amazonaws.proton#ConflictException":
|
|
4285
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4286
|
-
case "InternalServerException":
|
|
4287
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
4288
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4289
|
-
case "ResourceNotFoundException":
|
|
4290
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4291
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4292
|
-
case "ThrottlingException":
|
|
4293
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
4294
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4295
|
-
case "ValidationException":
|
|
4296
|
-
case "com.amazonaws.proton#ValidationException":
|
|
4297
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4298
|
-
default:
|
|
4299
|
-
const parsedBody = parsedOutput.body;
|
|
4300
|
-
return throwDefaultError({
|
|
4301
|
-
output,
|
|
4302
|
-
parsedBody,
|
|
4303
|
-
errorCode,
|
|
4304
|
-
});
|
|
4305
|
-
}
|
|
4306
|
-
};
|
|
4307
1608
|
export const de_UpdateServiceSyncConfigCommand = async (output, context) => {
|
|
4308
1609
|
if (output.statusCode >= 300) {
|
|
4309
|
-
return
|
|
1610
|
+
return de_CommandError(output, context);
|
|
4310
1611
|
}
|
|
4311
1612
|
const data = await parseBody(output.body, context);
|
|
4312
1613
|
let contents = {};
|
|
@@ -4317,43 +1618,9 @@ export const de_UpdateServiceSyncConfigCommand = async (output, context) => {
|
|
|
4317
1618
|
};
|
|
4318
1619
|
return response;
|
|
4319
1620
|
};
|
|
4320
|
-
const de_UpdateServiceSyncConfigCommandError = async (output, context) => {
|
|
4321
|
-
const parsedOutput = {
|
|
4322
|
-
...output,
|
|
4323
|
-
body: await parseErrorBody(output.body, context),
|
|
4324
|
-
};
|
|
4325
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4326
|
-
switch (errorCode) {
|
|
4327
|
-
case "AccessDeniedException":
|
|
4328
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
4329
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4330
|
-
case "ConflictException":
|
|
4331
|
-
case "com.amazonaws.proton#ConflictException":
|
|
4332
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4333
|
-
case "InternalServerException":
|
|
4334
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
4335
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4336
|
-
case "ResourceNotFoundException":
|
|
4337
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4338
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4339
|
-
case "ThrottlingException":
|
|
4340
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
4341
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4342
|
-
case "ValidationException":
|
|
4343
|
-
case "com.amazonaws.proton#ValidationException":
|
|
4344
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4345
|
-
default:
|
|
4346
|
-
const parsedBody = parsedOutput.body;
|
|
4347
|
-
return throwDefaultError({
|
|
4348
|
-
output,
|
|
4349
|
-
parsedBody,
|
|
4350
|
-
errorCode,
|
|
4351
|
-
});
|
|
4352
|
-
}
|
|
4353
|
-
};
|
|
4354
1621
|
export const de_UpdateServiceTemplateCommand = async (output, context) => {
|
|
4355
1622
|
if (output.statusCode >= 300) {
|
|
4356
|
-
return
|
|
1623
|
+
return de_CommandError(output, context);
|
|
4357
1624
|
}
|
|
4358
1625
|
const data = await parseBody(output.body, context);
|
|
4359
1626
|
let contents = {};
|
|
@@ -4364,43 +1631,9 @@ export const de_UpdateServiceTemplateCommand = async (output, context) => {
|
|
|
4364
1631
|
};
|
|
4365
1632
|
return response;
|
|
4366
1633
|
};
|
|
4367
|
-
const de_UpdateServiceTemplateCommandError = async (output, context) => {
|
|
4368
|
-
const parsedOutput = {
|
|
4369
|
-
...output,
|
|
4370
|
-
body: await parseErrorBody(output.body, context),
|
|
4371
|
-
};
|
|
4372
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4373
|
-
switch (errorCode) {
|
|
4374
|
-
case "AccessDeniedException":
|
|
4375
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
4376
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4377
|
-
case "ConflictException":
|
|
4378
|
-
case "com.amazonaws.proton#ConflictException":
|
|
4379
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4380
|
-
case "InternalServerException":
|
|
4381
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
4382
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4383
|
-
case "ResourceNotFoundException":
|
|
4384
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4385
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4386
|
-
case "ThrottlingException":
|
|
4387
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
4388
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4389
|
-
case "ValidationException":
|
|
4390
|
-
case "com.amazonaws.proton#ValidationException":
|
|
4391
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4392
|
-
default:
|
|
4393
|
-
const parsedBody = parsedOutput.body;
|
|
4394
|
-
return throwDefaultError({
|
|
4395
|
-
output,
|
|
4396
|
-
parsedBody,
|
|
4397
|
-
errorCode,
|
|
4398
|
-
});
|
|
4399
|
-
}
|
|
4400
|
-
};
|
|
4401
1634
|
export const de_UpdateServiceTemplateVersionCommand = async (output, context) => {
|
|
4402
1635
|
if (output.statusCode >= 300) {
|
|
4403
|
-
return
|
|
1636
|
+
return de_CommandError(output, context);
|
|
4404
1637
|
}
|
|
4405
1638
|
const data = await parseBody(output.body, context);
|
|
4406
1639
|
let contents = {};
|
|
@@ -4411,43 +1644,9 @@ export const de_UpdateServiceTemplateVersionCommand = async (output, context) =>
|
|
|
4411
1644
|
};
|
|
4412
1645
|
return response;
|
|
4413
1646
|
};
|
|
4414
|
-
const de_UpdateServiceTemplateVersionCommandError = async (output, context) => {
|
|
4415
|
-
const parsedOutput = {
|
|
4416
|
-
...output,
|
|
4417
|
-
body: await parseErrorBody(output.body, context),
|
|
4418
|
-
};
|
|
4419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4420
|
-
switch (errorCode) {
|
|
4421
|
-
case "AccessDeniedException":
|
|
4422
|
-
case "com.amazonaws.proton#AccessDeniedException":
|
|
4423
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4424
|
-
case "ConflictException":
|
|
4425
|
-
case "com.amazonaws.proton#ConflictException":
|
|
4426
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4427
|
-
case "InternalServerException":
|
|
4428
|
-
case "com.amazonaws.proton#InternalServerException":
|
|
4429
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4430
|
-
case "ResourceNotFoundException":
|
|
4431
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4432
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4433
|
-
case "ThrottlingException":
|
|
4434
|
-
case "com.amazonaws.proton#ThrottlingException":
|
|
4435
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4436
|
-
case "ValidationException":
|
|
4437
|
-
case "com.amazonaws.proton#ValidationException":
|
|
4438
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4439
|
-
default:
|
|
4440
|
-
const parsedBody = parsedOutput.body;
|
|
4441
|
-
return throwDefaultError({
|
|
4442
|
-
output,
|
|
4443
|
-
parsedBody,
|
|
4444
|
-
errorCode,
|
|
4445
|
-
});
|
|
4446
|
-
}
|
|
4447
|
-
};
|
|
4448
1647
|
export const de_UpdateTemplateSyncConfigCommand = async (output, context) => {
|
|
4449
1648
|
if (output.statusCode >= 300) {
|
|
4450
|
-
return
|
|
1649
|
+
return de_CommandError(output, context);
|
|
4451
1650
|
}
|
|
4452
1651
|
const data = await parseBody(output.body, context);
|
|
4453
1652
|
let contents = {};
|
|
@@ -4458,7 +1657,7 @@ export const de_UpdateTemplateSyncConfigCommand = async (output, context) => {
|
|
|
4458
1657
|
};
|
|
4459
1658
|
return response;
|
|
4460
1659
|
};
|
|
4461
|
-
const
|
|
1660
|
+
const de_CommandError = async (output, context) => {
|
|
4462
1661
|
const parsedOutput = {
|
|
4463
1662
|
...output,
|
|
4464
1663
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4483,6 +1682,9 @@ const de_UpdateTemplateSyncConfigCommandError = async (output, context) => {
|
|
|
4483
1682
|
case "ValidationException":
|
|
4484
1683
|
case "com.amazonaws.proton#ValidationException":
|
|
4485
1684
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1685
|
+
case "ServiceQuotaExceededException":
|
|
1686
|
+
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
1687
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4486
1688
|
default:
|
|
4487
1689
|
const parsedBody = parsedOutput.body;
|
|
4488
1690
|
return throwDefaultError({
|