@aws-sdk/client-app-mesh 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +103 -1454
- package/dist-es/protocols/Aws_restJson1.js +89 -1440
- package/package.json +3 -3
|
@@ -598,7 +598,7 @@ export const se_UpdateVirtualServiceCommand = async (input, context) => {
|
|
|
598
598
|
};
|
|
599
599
|
export const de_CreateGatewayRouteCommand = async (output, context) => {
|
|
600
600
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
601
|
-
return
|
|
601
|
+
return de_CommandError(output, context);
|
|
602
602
|
}
|
|
603
603
|
const contents = map({
|
|
604
604
|
$metadata: deserializeMetadata(output),
|
|
@@ -607,49 +607,9 @@ export const de_CreateGatewayRouteCommand = async (output, context) => {
|
|
|
607
607
|
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
608
608
|
return contents;
|
|
609
609
|
};
|
|
610
|
-
const de_CreateGatewayRouteCommandError = async (output, context) => {
|
|
611
|
-
const parsedOutput = {
|
|
612
|
-
...output,
|
|
613
|
-
body: await parseErrorBody(output.body, context),
|
|
614
|
-
};
|
|
615
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
616
|
-
switch (errorCode) {
|
|
617
|
-
case "BadRequestException":
|
|
618
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
619
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
620
|
-
case "ConflictException":
|
|
621
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
622
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
623
|
-
case "ForbiddenException":
|
|
624
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
625
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
626
|
-
case "InternalServerErrorException":
|
|
627
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
628
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
629
|
-
case "LimitExceededException":
|
|
630
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
631
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
632
|
-
case "NotFoundException":
|
|
633
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
634
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
635
|
-
case "ServiceUnavailableException":
|
|
636
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
637
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
638
|
-
case "TooManyRequestsException":
|
|
639
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
640
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
641
|
-
default:
|
|
642
|
-
const parsedBody = parsedOutput.body;
|
|
643
|
-
return throwDefaultError({
|
|
644
|
-
output,
|
|
645
|
-
parsedBody,
|
|
646
|
-
errorCode,
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
};
|
|
650
610
|
export const de_CreateMeshCommand = async (output, context) => {
|
|
651
611
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
652
|
-
return
|
|
612
|
+
return de_CommandError(output, context);
|
|
653
613
|
}
|
|
654
614
|
const contents = map({
|
|
655
615
|
$metadata: deserializeMetadata(output),
|
|
@@ -658,49 +618,9 @@ export const de_CreateMeshCommand = async (output, context) => {
|
|
|
658
618
|
contents.mesh = de_MeshData(data, context);
|
|
659
619
|
return contents;
|
|
660
620
|
};
|
|
661
|
-
const de_CreateMeshCommandError = async (output, context) => {
|
|
662
|
-
const parsedOutput = {
|
|
663
|
-
...output,
|
|
664
|
-
body: await parseErrorBody(output.body, context),
|
|
665
|
-
};
|
|
666
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
667
|
-
switch (errorCode) {
|
|
668
|
-
case "BadRequestException":
|
|
669
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
670
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
671
|
-
case "ConflictException":
|
|
672
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
673
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
674
|
-
case "ForbiddenException":
|
|
675
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
676
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
677
|
-
case "InternalServerErrorException":
|
|
678
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
679
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
680
|
-
case "LimitExceededException":
|
|
681
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
682
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
683
|
-
case "NotFoundException":
|
|
684
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
685
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
686
|
-
case "ServiceUnavailableException":
|
|
687
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
688
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
689
|
-
case "TooManyRequestsException":
|
|
690
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
691
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
692
|
-
default:
|
|
693
|
-
const parsedBody = parsedOutput.body;
|
|
694
|
-
return throwDefaultError({
|
|
695
|
-
output,
|
|
696
|
-
parsedBody,
|
|
697
|
-
errorCode,
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
};
|
|
701
621
|
export const de_CreateRouteCommand = async (output, context) => {
|
|
702
622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
703
|
-
return
|
|
623
|
+
return de_CommandError(output, context);
|
|
704
624
|
}
|
|
705
625
|
const contents = map({
|
|
706
626
|
$metadata: deserializeMetadata(output),
|
|
@@ -709,49 +629,9 @@ export const de_CreateRouteCommand = async (output, context) => {
|
|
|
709
629
|
contents.route = de_RouteData(data, context);
|
|
710
630
|
return contents;
|
|
711
631
|
};
|
|
712
|
-
const de_CreateRouteCommandError = async (output, context) => {
|
|
713
|
-
const parsedOutput = {
|
|
714
|
-
...output,
|
|
715
|
-
body: await parseErrorBody(output.body, context),
|
|
716
|
-
};
|
|
717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
718
|
-
switch (errorCode) {
|
|
719
|
-
case "BadRequestException":
|
|
720
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
721
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ConflictException":
|
|
723
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
724
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
725
|
-
case "ForbiddenException":
|
|
726
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
727
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
728
|
-
case "InternalServerErrorException":
|
|
729
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
730
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
731
|
-
case "LimitExceededException":
|
|
732
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
733
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
734
|
-
case "NotFoundException":
|
|
735
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
736
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
737
|
-
case "ServiceUnavailableException":
|
|
738
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
739
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
740
|
-
case "TooManyRequestsException":
|
|
741
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
742
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
743
|
-
default:
|
|
744
|
-
const parsedBody = parsedOutput.body;
|
|
745
|
-
return throwDefaultError({
|
|
746
|
-
output,
|
|
747
|
-
parsedBody,
|
|
748
|
-
errorCode,
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
};
|
|
752
632
|
export const de_CreateVirtualGatewayCommand = async (output, context) => {
|
|
753
633
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
|
-
return
|
|
634
|
+
return de_CommandError(output, context);
|
|
755
635
|
}
|
|
756
636
|
const contents = map({
|
|
757
637
|
$metadata: deserializeMetadata(output),
|
|
@@ -760,49 +640,9 @@ export const de_CreateVirtualGatewayCommand = async (output, context) => {
|
|
|
760
640
|
contents.virtualGateway = de_VirtualGatewayData(data, context);
|
|
761
641
|
return contents;
|
|
762
642
|
};
|
|
763
|
-
const de_CreateVirtualGatewayCommandError = async (output, context) => {
|
|
764
|
-
const parsedOutput = {
|
|
765
|
-
...output,
|
|
766
|
-
body: await parseErrorBody(output.body, context),
|
|
767
|
-
};
|
|
768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
|
-
switch (errorCode) {
|
|
770
|
-
case "BadRequestException":
|
|
771
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
772
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ConflictException":
|
|
774
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
775
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
776
|
-
case "ForbiddenException":
|
|
777
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
778
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
779
|
-
case "InternalServerErrorException":
|
|
780
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
781
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
782
|
-
case "LimitExceededException":
|
|
783
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
784
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
785
|
-
case "NotFoundException":
|
|
786
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
787
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
788
|
-
case "ServiceUnavailableException":
|
|
789
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
790
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
791
|
-
case "TooManyRequestsException":
|
|
792
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
793
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
794
|
-
default:
|
|
795
|
-
const parsedBody = parsedOutput.body;
|
|
796
|
-
return throwDefaultError({
|
|
797
|
-
output,
|
|
798
|
-
parsedBody,
|
|
799
|
-
errorCode,
|
|
800
|
-
});
|
|
801
|
-
}
|
|
802
|
-
};
|
|
803
643
|
export const de_CreateVirtualNodeCommand = async (output, context) => {
|
|
804
644
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
|
-
return
|
|
645
|
+
return de_CommandError(output, context);
|
|
806
646
|
}
|
|
807
647
|
const contents = map({
|
|
808
648
|
$metadata: deserializeMetadata(output),
|
|
@@ -811,49 +651,9 @@ export const de_CreateVirtualNodeCommand = async (output, context) => {
|
|
|
811
651
|
contents.virtualNode = de_VirtualNodeData(data, context);
|
|
812
652
|
return contents;
|
|
813
653
|
};
|
|
814
|
-
const de_CreateVirtualNodeCommandError = async (output, context) => {
|
|
815
|
-
const parsedOutput = {
|
|
816
|
-
...output,
|
|
817
|
-
body: await parseErrorBody(output.body, context),
|
|
818
|
-
};
|
|
819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
820
|
-
switch (errorCode) {
|
|
821
|
-
case "BadRequestException":
|
|
822
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
823
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ConflictException":
|
|
825
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
826
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
827
|
-
case "ForbiddenException":
|
|
828
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
829
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
830
|
-
case "InternalServerErrorException":
|
|
831
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
832
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
833
|
-
case "LimitExceededException":
|
|
834
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
835
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
836
|
-
case "NotFoundException":
|
|
837
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
838
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
839
|
-
case "ServiceUnavailableException":
|
|
840
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
841
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
842
|
-
case "TooManyRequestsException":
|
|
843
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
844
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
845
|
-
default:
|
|
846
|
-
const parsedBody = parsedOutput.body;
|
|
847
|
-
return throwDefaultError({
|
|
848
|
-
output,
|
|
849
|
-
parsedBody,
|
|
850
|
-
errorCode,
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
};
|
|
854
654
|
export const de_CreateVirtualRouterCommand = async (output, context) => {
|
|
855
655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
856
|
-
return
|
|
656
|
+
return de_CommandError(output, context);
|
|
857
657
|
}
|
|
858
658
|
const contents = map({
|
|
859
659
|
$metadata: deserializeMetadata(output),
|
|
@@ -862,49 +662,9 @@ export const de_CreateVirtualRouterCommand = async (output, context) => {
|
|
|
862
662
|
contents.virtualRouter = de_VirtualRouterData(data, context);
|
|
863
663
|
return contents;
|
|
864
664
|
};
|
|
865
|
-
const de_CreateVirtualRouterCommandError = async (output, context) => {
|
|
866
|
-
const parsedOutput = {
|
|
867
|
-
...output,
|
|
868
|
-
body: await parseErrorBody(output.body, context),
|
|
869
|
-
};
|
|
870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
|
-
switch (errorCode) {
|
|
872
|
-
case "BadRequestException":
|
|
873
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
874
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
875
|
-
case "ConflictException":
|
|
876
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
877
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ForbiddenException":
|
|
879
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
880
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
881
|
-
case "InternalServerErrorException":
|
|
882
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
883
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
884
|
-
case "LimitExceededException":
|
|
885
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
886
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
887
|
-
case "NotFoundException":
|
|
888
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
889
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ServiceUnavailableException":
|
|
891
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
892
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
893
|
-
case "TooManyRequestsException":
|
|
894
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
895
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
896
|
-
default:
|
|
897
|
-
const parsedBody = parsedOutput.body;
|
|
898
|
-
return throwDefaultError({
|
|
899
|
-
output,
|
|
900
|
-
parsedBody,
|
|
901
|
-
errorCode,
|
|
902
|
-
});
|
|
903
|
-
}
|
|
904
|
-
};
|
|
905
665
|
export const de_CreateVirtualServiceCommand = async (output, context) => {
|
|
906
666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
907
|
-
return
|
|
667
|
+
return de_CommandError(output, context);
|
|
908
668
|
}
|
|
909
669
|
const contents = map({
|
|
910
670
|
$metadata: deserializeMetadata(output),
|
|
@@ -913,49 +673,9 @@ export const de_CreateVirtualServiceCommand = async (output, context) => {
|
|
|
913
673
|
contents.virtualService = de_VirtualServiceData(data, context);
|
|
914
674
|
return contents;
|
|
915
675
|
};
|
|
916
|
-
const de_CreateVirtualServiceCommandError = async (output, context) => {
|
|
917
|
-
const parsedOutput = {
|
|
918
|
-
...output,
|
|
919
|
-
body: await parseErrorBody(output.body, context),
|
|
920
|
-
};
|
|
921
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
|
-
switch (errorCode) {
|
|
923
|
-
case "BadRequestException":
|
|
924
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
925
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
926
|
-
case "ConflictException":
|
|
927
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
928
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ForbiddenException":
|
|
930
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
931
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
932
|
-
case "InternalServerErrorException":
|
|
933
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
934
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
935
|
-
case "LimitExceededException":
|
|
936
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
937
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
938
|
-
case "NotFoundException":
|
|
939
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
940
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
941
|
-
case "ServiceUnavailableException":
|
|
942
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
943
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
944
|
-
case "TooManyRequestsException":
|
|
945
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
946
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
947
|
-
default:
|
|
948
|
-
const parsedBody = parsedOutput.body;
|
|
949
|
-
return throwDefaultError({
|
|
950
|
-
output,
|
|
951
|
-
parsedBody,
|
|
952
|
-
errorCode,
|
|
953
|
-
});
|
|
954
|
-
}
|
|
955
|
-
};
|
|
956
676
|
export const de_DeleteGatewayRouteCommand = async (output, context) => {
|
|
957
677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
958
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
959
679
|
}
|
|
960
680
|
const contents = map({
|
|
961
681
|
$metadata: deserializeMetadata(output),
|
|
@@ -964,46 +684,9 @@ export const de_DeleteGatewayRouteCommand = async (output, context) => {
|
|
|
964
684
|
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
965
685
|
return contents;
|
|
966
686
|
};
|
|
967
|
-
const de_DeleteGatewayRouteCommandError = async (output, context) => {
|
|
968
|
-
const parsedOutput = {
|
|
969
|
-
...output,
|
|
970
|
-
body: await parseErrorBody(output.body, context),
|
|
971
|
-
};
|
|
972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
|
-
switch (errorCode) {
|
|
974
|
-
case "BadRequestException":
|
|
975
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
976
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ForbiddenException":
|
|
978
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
979
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
980
|
-
case "InternalServerErrorException":
|
|
981
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
982
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
983
|
-
case "NotFoundException":
|
|
984
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
985
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
986
|
-
case "ResourceInUseException":
|
|
987
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
988
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
989
|
-
case "ServiceUnavailableException":
|
|
990
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
991
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
992
|
-
case "TooManyRequestsException":
|
|
993
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
994
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
995
|
-
default:
|
|
996
|
-
const parsedBody = parsedOutput.body;
|
|
997
|
-
return throwDefaultError({
|
|
998
|
-
output,
|
|
999
|
-
parsedBody,
|
|
1000
|
-
errorCode,
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
};
|
|
1004
687
|
export const de_DeleteMeshCommand = async (output, context) => {
|
|
1005
688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1006
|
-
return
|
|
689
|
+
return de_CommandError(output, context);
|
|
1007
690
|
}
|
|
1008
691
|
const contents = map({
|
|
1009
692
|
$metadata: deserializeMetadata(output),
|
|
@@ -1012,46 +695,9 @@ export const de_DeleteMeshCommand = async (output, context) => {
|
|
|
1012
695
|
contents.mesh = de_MeshData(data, context);
|
|
1013
696
|
return contents;
|
|
1014
697
|
};
|
|
1015
|
-
const de_DeleteMeshCommandError = async (output, context) => {
|
|
1016
|
-
const parsedOutput = {
|
|
1017
|
-
...output,
|
|
1018
|
-
body: await parseErrorBody(output.body, context),
|
|
1019
|
-
};
|
|
1020
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1021
|
-
switch (errorCode) {
|
|
1022
|
-
case "BadRequestException":
|
|
1023
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1024
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ForbiddenException":
|
|
1026
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1027
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "InternalServerErrorException":
|
|
1029
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1030
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "NotFoundException":
|
|
1032
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1033
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "ResourceInUseException":
|
|
1035
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1036
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "ServiceUnavailableException":
|
|
1038
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1039
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1040
|
-
case "TooManyRequestsException":
|
|
1041
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1042
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1043
|
-
default:
|
|
1044
|
-
const parsedBody = parsedOutput.body;
|
|
1045
|
-
return throwDefaultError({
|
|
1046
|
-
output,
|
|
1047
|
-
parsedBody,
|
|
1048
|
-
errorCode,
|
|
1049
|
-
});
|
|
1050
|
-
}
|
|
1051
|
-
};
|
|
1052
698
|
export const de_DeleteRouteCommand = async (output, context) => {
|
|
1053
699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1054
|
-
return
|
|
700
|
+
return de_CommandError(output, context);
|
|
1055
701
|
}
|
|
1056
702
|
const contents = map({
|
|
1057
703
|
$metadata: deserializeMetadata(output),
|
|
@@ -1060,46 +706,9 @@ export const de_DeleteRouteCommand = async (output, context) => {
|
|
|
1060
706
|
contents.route = de_RouteData(data, context);
|
|
1061
707
|
return contents;
|
|
1062
708
|
};
|
|
1063
|
-
const de_DeleteRouteCommandError = async (output, context) => {
|
|
1064
|
-
const parsedOutput = {
|
|
1065
|
-
...output,
|
|
1066
|
-
body: await parseErrorBody(output.body, context),
|
|
1067
|
-
};
|
|
1068
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
|
-
switch (errorCode) {
|
|
1070
|
-
case "BadRequestException":
|
|
1071
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1072
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ForbiddenException":
|
|
1074
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1075
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "InternalServerErrorException":
|
|
1077
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1078
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "NotFoundException":
|
|
1080
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1081
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "ResourceInUseException":
|
|
1083
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1084
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "ServiceUnavailableException":
|
|
1086
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1087
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "TooManyRequestsException":
|
|
1089
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1090
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1091
|
-
default:
|
|
1092
|
-
const parsedBody = parsedOutput.body;
|
|
1093
|
-
return throwDefaultError({
|
|
1094
|
-
output,
|
|
1095
|
-
parsedBody,
|
|
1096
|
-
errorCode,
|
|
1097
|
-
});
|
|
1098
|
-
}
|
|
1099
|
-
};
|
|
1100
709
|
export const de_DeleteVirtualGatewayCommand = async (output, context) => {
|
|
1101
710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1102
|
-
return
|
|
711
|
+
return de_CommandError(output, context);
|
|
1103
712
|
}
|
|
1104
713
|
const contents = map({
|
|
1105
714
|
$metadata: deserializeMetadata(output),
|
|
@@ -1108,46 +717,9 @@ export const de_DeleteVirtualGatewayCommand = async (output, context) => {
|
|
|
1108
717
|
contents.virtualGateway = de_VirtualGatewayData(data, context);
|
|
1109
718
|
return contents;
|
|
1110
719
|
};
|
|
1111
|
-
const de_DeleteVirtualGatewayCommandError = async (output, context) => {
|
|
1112
|
-
const parsedOutput = {
|
|
1113
|
-
...output,
|
|
1114
|
-
body: await parseErrorBody(output.body, context),
|
|
1115
|
-
};
|
|
1116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
|
-
switch (errorCode) {
|
|
1118
|
-
case "BadRequestException":
|
|
1119
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1120
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "ForbiddenException":
|
|
1122
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1123
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "InternalServerErrorException":
|
|
1125
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1126
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "NotFoundException":
|
|
1128
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1129
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "ResourceInUseException":
|
|
1131
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1132
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ServiceUnavailableException":
|
|
1134
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1135
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "TooManyRequestsException":
|
|
1137
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1138
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1139
|
-
default:
|
|
1140
|
-
const parsedBody = parsedOutput.body;
|
|
1141
|
-
return throwDefaultError({
|
|
1142
|
-
output,
|
|
1143
|
-
parsedBody,
|
|
1144
|
-
errorCode,
|
|
1145
|
-
});
|
|
1146
|
-
}
|
|
1147
|
-
};
|
|
1148
720
|
export const de_DeleteVirtualNodeCommand = async (output, context) => {
|
|
1149
721
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1150
|
-
return
|
|
722
|
+
return de_CommandError(output, context);
|
|
1151
723
|
}
|
|
1152
724
|
const contents = map({
|
|
1153
725
|
$metadata: deserializeMetadata(output),
|
|
@@ -1156,46 +728,9 @@ export const de_DeleteVirtualNodeCommand = async (output, context) => {
|
|
|
1156
728
|
contents.virtualNode = de_VirtualNodeData(data, context);
|
|
1157
729
|
return contents;
|
|
1158
730
|
};
|
|
1159
|
-
const de_DeleteVirtualNodeCommandError = async (output, context) => {
|
|
1160
|
-
const parsedOutput = {
|
|
1161
|
-
...output,
|
|
1162
|
-
body: await parseErrorBody(output.body, context),
|
|
1163
|
-
};
|
|
1164
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1165
|
-
switch (errorCode) {
|
|
1166
|
-
case "BadRequestException":
|
|
1167
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1168
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ForbiddenException":
|
|
1170
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1171
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "InternalServerErrorException":
|
|
1173
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1174
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "NotFoundException":
|
|
1176
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1177
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ResourceInUseException":
|
|
1179
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1180
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "ServiceUnavailableException":
|
|
1182
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1183
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "TooManyRequestsException":
|
|
1185
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1186
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1187
|
-
default:
|
|
1188
|
-
const parsedBody = parsedOutput.body;
|
|
1189
|
-
return throwDefaultError({
|
|
1190
|
-
output,
|
|
1191
|
-
parsedBody,
|
|
1192
|
-
errorCode,
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
|
-
};
|
|
1196
731
|
export const de_DeleteVirtualRouterCommand = async (output, context) => {
|
|
1197
732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1198
|
-
return
|
|
733
|
+
return de_CommandError(output, context);
|
|
1199
734
|
}
|
|
1200
735
|
const contents = map({
|
|
1201
736
|
$metadata: deserializeMetadata(output),
|
|
@@ -1204,46 +739,9 @@ export const de_DeleteVirtualRouterCommand = async (output, context) => {
|
|
|
1204
739
|
contents.virtualRouter = de_VirtualRouterData(data, context);
|
|
1205
740
|
return contents;
|
|
1206
741
|
};
|
|
1207
|
-
const de_DeleteVirtualRouterCommandError = async (output, context) => {
|
|
1208
|
-
const parsedOutput = {
|
|
1209
|
-
...output,
|
|
1210
|
-
body: await parseErrorBody(output.body, context),
|
|
1211
|
-
};
|
|
1212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
|
-
switch (errorCode) {
|
|
1214
|
-
case "BadRequestException":
|
|
1215
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1216
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "ForbiddenException":
|
|
1218
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1219
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "InternalServerErrorException":
|
|
1221
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1222
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "NotFoundException":
|
|
1224
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1225
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "ResourceInUseException":
|
|
1227
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1228
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ServiceUnavailableException":
|
|
1230
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1231
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "TooManyRequestsException":
|
|
1233
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1234
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1235
|
-
default:
|
|
1236
|
-
const parsedBody = parsedOutput.body;
|
|
1237
|
-
return throwDefaultError({
|
|
1238
|
-
output,
|
|
1239
|
-
parsedBody,
|
|
1240
|
-
errorCode,
|
|
1241
|
-
});
|
|
1242
|
-
}
|
|
1243
|
-
};
|
|
1244
742
|
export const de_DeleteVirtualServiceCommand = async (output, context) => {
|
|
1245
743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1246
|
-
return
|
|
744
|
+
return de_CommandError(output, context);
|
|
1247
745
|
}
|
|
1248
746
|
const contents = map({
|
|
1249
747
|
$metadata: deserializeMetadata(output),
|
|
@@ -1252,226 +750,53 @@ export const de_DeleteVirtualServiceCommand = async (output, context) => {
|
|
|
1252
750
|
contents.virtualService = de_VirtualServiceData(data, context);
|
|
1253
751
|
return contents;
|
|
1254
752
|
};
|
|
1255
|
-
const de_DeleteVirtualServiceCommandError = async (output, context) => {
|
|
1256
|
-
const parsedOutput = {
|
|
1257
|
-
...output,
|
|
1258
|
-
body: await parseErrorBody(output.body, context),
|
|
1259
|
-
};
|
|
1260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
-
switch (errorCode) {
|
|
1262
|
-
case "BadRequestException":
|
|
1263
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1264
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "ForbiddenException":
|
|
1266
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1267
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "InternalServerErrorException":
|
|
1269
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1270
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "NotFoundException":
|
|
1272
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1273
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "ResourceInUseException":
|
|
1275
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1276
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "ServiceUnavailableException":
|
|
1278
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1279
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "TooManyRequestsException":
|
|
1281
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1282
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1283
|
-
default:
|
|
1284
|
-
const parsedBody = parsedOutput.body;
|
|
1285
|
-
return throwDefaultError({
|
|
1286
|
-
output,
|
|
1287
|
-
parsedBody,
|
|
1288
|
-
errorCode,
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
};
|
|
1292
753
|
export const de_DescribeGatewayRouteCommand = async (output, context) => {
|
|
1293
754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1294
|
-
return
|
|
755
|
+
return de_CommandError(output, context);
|
|
1295
756
|
}
|
|
1296
757
|
const contents = map({
|
|
1297
758
|
$metadata: deserializeMetadata(output),
|
|
1298
759
|
});
|
|
1299
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
1300
|
-
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
1301
|
-
return contents;
|
|
1302
|
-
};
|
|
1303
|
-
const
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
body: await parseErrorBody(output.body, context),
|
|
1307
|
-
};
|
|
1308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
|
-
switch (errorCode) {
|
|
1310
|
-
case "BadRequestException":
|
|
1311
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1312
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "ForbiddenException":
|
|
1314
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1315
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "InternalServerErrorException":
|
|
1317
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1318
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "NotFoundException":
|
|
1320
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1321
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "ServiceUnavailableException":
|
|
1323
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1324
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "TooManyRequestsException":
|
|
1326
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1327
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1328
|
-
default:
|
|
1329
|
-
const parsedBody = parsedOutput.body;
|
|
1330
|
-
return throwDefaultError({
|
|
1331
|
-
output,
|
|
1332
|
-
parsedBody,
|
|
1333
|
-
errorCode,
|
|
1334
|
-
});
|
|
1335
|
-
}
|
|
1336
|
-
};
|
|
1337
|
-
export const de_DescribeMeshCommand = async (output, context) => {
|
|
1338
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1339
|
-
return de_DescribeMeshCommandError(output, context);
|
|
1340
|
-
}
|
|
1341
|
-
const contents = map({
|
|
1342
|
-
$metadata: deserializeMetadata(output),
|
|
1343
|
-
});
|
|
1344
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
1345
|
-
contents.mesh = de_MeshData(data, context);
|
|
1346
|
-
return contents;
|
|
1347
|
-
};
|
|
1348
|
-
const de_DescribeMeshCommandError = async (output, context) => {
|
|
1349
|
-
const parsedOutput = {
|
|
1350
|
-
...output,
|
|
1351
|
-
body: await parseErrorBody(output.body, context),
|
|
1352
|
-
};
|
|
1353
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
|
-
switch (errorCode) {
|
|
1355
|
-
case "BadRequestException":
|
|
1356
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1357
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "ForbiddenException":
|
|
1359
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1360
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1361
|
-
case "InternalServerErrorException":
|
|
1362
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1363
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1364
|
-
case "NotFoundException":
|
|
1365
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1366
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1367
|
-
case "ServiceUnavailableException":
|
|
1368
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1369
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1370
|
-
case "TooManyRequestsException":
|
|
1371
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1372
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1373
|
-
default:
|
|
1374
|
-
const parsedBody = parsedOutput.body;
|
|
1375
|
-
return throwDefaultError({
|
|
1376
|
-
output,
|
|
1377
|
-
parsedBody,
|
|
1378
|
-
errorCode,
|
|
1379
|
-
});
|
|
1380
|
-
}
|
|
1381
|
-
};
|
|
1382
|
-
export const de_DescribeRouteCommand = async (output, context) => {
|
|
1383
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1384
|
-
return de_DescribeRouteCommandError(output, context);
|
|
1385
|
-
}
|
|
1386
|
-
const contents = map({
|
|
1387
|
-
$metadata: deserializeMetadata(output),
|
|
1388
|
-
});
|
|
1389
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
1390
|
-
contents.route = de_RouteData(data, context);
|
|
1391
|
-
return contents;
|
|
1392
|
-
};
|
|
1393
|
-
const de_DescribeRouteCommandError = async (output, context) => {
|
|
1394
|
-
const parsedOutput = {
|
|
1395
|
-
...output,
|
|
1396
|
-
body: await parseErrorBody(output.body, context),
|
|
1397
|
-
};
|
|
1398
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
-
switch (errorCode) {
|
|
1400
|
-
case "BadRequestException":
|
|
1401
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1402
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "ForbiddenException":
|
|
1404
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1405
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "InternalServerErrorException":
|
|
1407
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1408
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "NotFoundException":
|
|
1410
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1411
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "ServiceUnavailableException":
|
|
1413
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1414
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "TooManyRequestsException":
|
|
1416
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1417
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1418
|
-
default:
|
|
1419
|
-
const parsedBody = parsedOutput.body;
|
|
1420
|
-
return throwDefaultError({
|
|
1421
|
-
output,
|
|
1422
|
-
parsedBody,
|
|
1423
|
-
errorCode,
|
|
1424
|
-
});
|
|
760
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
761
|
+
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
762
|
+
return contents;
|
|
763
|
+
};
|
|
764
|
+
export const de_DescribeMeshCommand = async (output, context) => {
|
|
765
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
|
+
return de_CommandError(output, context);
|
|
1425
767
|
}
|
|
768
|
+
const contents = map({
|
|
769
|
+
$metadata: deserializeMetadata(output),
|
|
770
|
+
});
|
|
771
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
772
|
+
contents.mesh = de_MeshData(data, context);
|
|
773
|
+
return contents;
|
|
1426
774
|
};
|
|
1427
|
-
export const
|
|
775
|
+
export const de_DescribeRouteCommand = async (output, context) => {
|
|
1428
776
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1429
|
-
return
|
|
777
|
+
return de_CommandError(output, context);
|
|
1430
778
|
}
|
|
1431
779
|
const contents = map({
|
|
1432
780
|
$metadata: deserializeMetadata(output),
|
|
1433
781
|
});
|
|
1434
782
|
const data = __expectObject(await parseBody(output.body, context));
|
|
1435
|
-
contents.
|
|
783
|
+
contents.route = de_RouteData(data, context);
|
|
1436
784
|
return contents;
|
|
1437
785
|
};
|
|
1438
|
-
const
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
body: await parseErrorBody(output.body, context),
|
|
1442
|
-
};
|
|
1443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1444
|
-
switch (errorCode) {
|
|
1445
|
-
case "BadRequestException":
|
|
1446
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1447
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1448
|
-
case "ForbiddenException":
|
|
1449
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1450
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "InternalServerErrorException":
|
|
1452
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1453
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "NotFoundException":
|
|
1455
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1456
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "ServiceUnavailableException":
|
|
1458
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1459
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1460
|
-
case "TooManyRequestsException":
|
|
1461
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1462
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1463
|
-
default:
|
|
1464
|
-
const parsedBody = parsedOutput.body;
|
|
1465
|
-
return throwDefaultError({
|
|
1466
|
-
output,
|
|
1467
|
-
parsedBody,
|
|
1468
|
-
errorCode,
|
|
1469
|
-
});
|
|
786
|
+
export const de_DescribeVirtualGatewayCommand = async (output, context) => {
|
|
787
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
788
|
+
return de_CommandError(output, context);
|
|
1470
789
|
}
|
|
790
|
+
const contents = map({
|
|
791
|
+
$metadata: deserializeMetadata(output),
|
|
792
|
+
});
|
|
793
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
794
|
+
contents.virtualGateway = de_VirtualGatewayData(data, context);
|
|
795
|
+
return contents;
|
|
1471
796
|
};
|
|
1472
797
|
export const de_DescribeVirtualNodeCommand = async (output, context) => {
|
|
1473
798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1474
|
-
return
|
|
799
|
+
return de_CommandError(output, context);
|
|
1475
800
|
}
|
|
1476
801
|
const contents = map({
|
|
1477
802
|
$metadata: deserializeMetadata(output),
|
|
@@ -1480,43 +805,9 @@ export const de_DescribeVirtualNodeCommand = async (output, context) => {
|
|
|
1480
805
|
contents.virtualNode = de_VirtualNodeData(data, context);
|
|
1481
806
|
return contents;
|
|
1482
807
|
};
|
|
1483
|
-
const de_DescribeVirtualNodeCommandError = async (output, context) => {
|
|
1484
|
-
const parsedOutput = {
|
|
1485
|
-
...output,
|
|
1486
|
-
body: await parseErrorBody(output.body, context),
|
|
1487
|
-
};
|
|
1488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
|
-
switch (errorCode) {
|
|
1490
|
-
case "BadRequestException":
|
|
1491
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1492
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "ForbiddenException":
|
|
1494
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1495
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "InternalServerErrorException":
|
|
1497
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1498
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "NotFoundException":
|
|
1500
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1501
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ServiceUnavailableException":
|
|
1503
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1504
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "TooManyRequestsException":
|
|
1506
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1507
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1508
|
-
default:
|
|
1509
|
-
const parsedBody = parsedOutput.body;
|
|
1510
|
-
return throwDefaultError({
|
|
1511
|
-
output,
|
|
1512
|
-
parsedBody,
|
|
1513
|
-
errorCode,
|
|
1514
|
-
});
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1517
808
|
export const de_DescribeVirtualRouterCommand = async (output, context) => {
|
|
1518
809
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1519
|
-
return
|
|
810
|
+
return de_CommandError(output, context);
|
|
1520
811
|
}
|
|
1521
812
|
const contents = map({
|
|
1522
813
|
$metadata: deserializeMetadata(output),
|
|
@@ -1525,43 +816,9 @@ export const de_DescribeVirtualRouterCommand = async (output, context) => {
|
|
|
1525
816
|
contents.virtualRouter = de_VirtualRouterData(data, context);
|
|
1526
817
|
return contents;
|
|
1527
818
|
};
|
|
1528
|
-
const de_DescribeVirtualRouterCommandError = async (output, context) => {
|
|
1529
|
-
const parsedOutput = {
|
|
1530
|
-
...output,
|
|
1531
|
-
body: await parseErrorBody(output.body, context),
|
|
1532
|
-
};
|
|
1533
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
|
-
switch (errorCode) {
|
|
1535
|
-
case "BadRequestException":
|
|
1536
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1537
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "ForbiddenException":
|
|
1539
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1540
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "InternalServerErrorException":
|
|
1542
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1543
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "NotFoundException":
|
|
1545
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1546
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ServiceUnavailableException":
|
|
1548
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1549
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "TooManyRequestsException":
|
|
1551
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1552
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1553
|
-
default:
|
|
1554
|
-
const parsedBody = parsedOutput.body;
|
|
1555
|
-
return throwDefaultError({
|
|
1556
|
-
output,
|
|
1557
|
-
parsedBody,
|
|
1558
|
-
errorCode,
|
|
1559
|
-
});
|
|
1560
|
-
}
|
|
1561
|
-
};
|
|
1562
819
|
export const de_DescribeVirtualServiceCommand = async (output, context) => {
|
|
1563
820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1564
|
-
return
|
|
821
|
+
return de_CommandError(output, context);
|
|
1565
822
|
}
|
|
1566
823
|
const contents = map({
|
|
1567
824
|
$metadata: deserializeMetadata(output),
|
|
@@ -1570,43 +827,9 @@ export const de_DescribeVirtualServiceCommand = async (output, context) => {
|
|
|
1570
827
|
contents.virtualService = de_VirtualServiceData(data, context);
|
|
1571
828
|
return contents;
|
|
1572
829
|
};
|
|
1573
|
-
const de_DescribeVirtualServiceCommandError = async (output, context) => {
|
|
1574
|
-
const parsedOutput = {
|
|
1575
|
-
...output,
|
|
1576
|
-
body: await parseErrorBody(output.body, context),
|
|
1577
|
-
};
|
|
1578
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
|
-
switch (errorCode) {
|
|
1580
|
-
case "BadRequestException":
|
|
1581
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1582
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "ForbiddenException":
|
|
1584
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1585
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "InternalServerErrorException":
|
|
1587
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1588
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "NotFoundException":
|
|
1590
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1591
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ServiceUnavailableException":
|
|
1593
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1594
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "TooManyRequestsException":
|
|
1596
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1597
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
return throwDefaultError({
|
|
1601
|
-
output,
|
|
1602
|
-
parsedBody,
|
|
1603
|
-
errorCode,
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
};
|
|
1607
830
|
export const de_ListGatewayRoutesCommand = async (output, context) => {
|
|
1608
831
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1609
|
-
return
|
|
832
|
+
return de_CommandError(output, context);
|
|
1610
833
|
}
|
|
1611
834
|
const contents = map({
|
|
1612
835
|
$metadata: deserializeMetadata(output),
|
|
@@ -1619,43 +842,9 @@ export const de_ListGatewayRoutesCommand = async (output, context) => {
|
|
|
1619
842
|
Object.assign(contents, doc);
|
|
1620
843
|
return contents;
|
|
1621
844
|
};
|
|
1622
|
-
const de_ListGatewayRoutesCommandError = async (output, context) => {
|
|
1623
|
-
const parsedOutput = {
|
|
1624
|
-
...output,
|
|
1625
|
-
body: await parseErrorBody(output.body, context),
|
|
1626
|
-
};
|
|
1627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
|
-
switch (errorCode) {
|
|
1629
|
-
case "BadRequestException":
|
|
1630
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1631
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1632
|
-
case "ForbiddenException":
|
|
1633
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1634
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "InternalServerErrorException":
|
|
1636
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1637
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1638
|
-
case "NotFoundException":
|
|
1639
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1640
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1641
|
-
case "ServiceUnavailableException":
|
|
1642
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1643
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "TooManyRequestsException":
|
|
1645
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1646
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1647
|
-
default:
|
|
1648
|
-
const parsedBody = parsedOutput.body;
|
|
1649
|
-
return throwDefaultError({
|
|
1650
|
-
output,
|
|
1651
|
-
parsedBody,
|
|
1652
|
-
errorCode,
|
|
1653
|
-
});
|
|
1654
|
-
}
|
|
1655
|
-
};
|
|
1656
845
|
export const de_ListMeshesCommand = async (output, context) => {
|
|
1657
846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1658
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
1659
848
|
}
|
|
1660
849
|
const contents = map({
|
|
1661
850
|
$metadata: deserializeMetadata(output),
|
|
@@ -1668,43 +857,9 @@ export const de_ListMeshesCommand = async (output, context) => {
|
|
|
1668
857
|
Object.assign(contents, doc);
|
|
1669
858
|
return contents;
|
|
1670
859
|
};
|
|
1671
|
-
const de_ListMeshesCommandError = async (output, context) => {
|
|
1672
|
-
const parsedOutput = {
|
|
1673
|
-
...output,
|
|
1674
|
-
body: await parseErrorBody(output.body, context),
|
|
1675
|
-
};
|
|
1676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1677
|
-
switch (errorCode) {
|
|
1678
|
-
case "BadRequestException":
|
|
1679
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1680
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "ForbiddenException":
|
|
1682
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1683
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "InternalServerErrorException":
|
|
1685
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1686
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "NotFoundException":
|
|
1688
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1689
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "ServiceUnavailableException":
|
|
1691
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1692
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "TooManyRequestsException":
|
|
1694
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1695
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1696
|
-
default:
|
|
1697
|
-
const parsedBody = parsedOutput.body;
|
|
1698
|
-
return throwDefaultError({
|
|
1699
|
-
output,
|
|
1700
|
-
parsedBody,
|
|
1701
|
-
errorCode,
|
|
1702
|
-
});
|
|
1703
|
-
}
|
|
1704
|
-
};
|
|
1705
860
|
export const de_ListRoutesCommand = async (output, context) => {
|
|
1706
861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1707
|
-
return
|
|
862
|
+
return de_CommandError(output, context);
|
|
1708
863
|
}
|
|
1709
864
|
const contents = map({
|
|
1710
865
|
$metadata: deserializeMetadata(output),
|
|
@@ -1713,47 +868,13 @@ export const de_ListRoutesCommand = async (output, context) => {
|
|
|
1713
868
|
const doc = take(data, {
|
|
1714
869
|
nextToken: __expectString,
|
|
1715
870
|
routes: (_) => de_RouteList(_, context),
|
|
1716
|
-
});
|
|
1717
|
-
Object.assign(contents, doc);
|
|
1718
|
-
return contents;
|
|
1719
|
-
};
|
|
1720
|
-
const de_ListRoutesCommandError = async (output, context) => {
|
|
1721
|
-
const parsedOutput = {
|
|
1722
|
-
...output,
|
|
1723
|
-
body: await parseErrorBody(output.body, context),
|
|
1724
|
-
};
|
|
1725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1726
|
-
switch (errorCode) {
|
|
1727
|
-
case "BadRequestException":
|
|
1728
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1729
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ForbiddenException":
|
|
1731
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1732
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "InternalServerErrorException":
|
|
1734
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1735
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "NotFoundException":
|
|
1737
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1738
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "ServiceUnavailableException":
|
|
1740
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1741
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "TooManyRequestsException":
|
|
1743
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1744
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1745
|
-
default:
|
|
1746
|
-
const parsedBody = parsedOutput.body;
|
|
1747
|
-
return throwDefaultError({
|
|
1748
|
-
output,
|
|
1749
|
-
parsedBody,
|
|
1750
|
-
errorCode,
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
871
|
+
});
|
|
872
|
+
Object.assign(contents, doc);
|
|
873
|
+
return contents;
|
|
1753
874
|
};
|
|
1754
875
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1755
876
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1756
|
-
return
|
|
877
|
+
return de_CommandError(output, context);
|
|
1757
878
|
}
|
|
1758
879
|
const contents = map({
|
|
1759
880
|
$metadata: deserializeMetadata(output),
|
|
@@ -1766,43 +887,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1766
887
|
Object.assign(contents, doc);
|
|
1767
888
|
return contents;
|
|
1768
889
|
};
|
|
1769
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1770
|
-
const parsedOutput = {
|
|
1771
|
-
...output,
|
|
1772
|
-
body: await parseErrorBody(output.body, context),
|
|
1773
|
-
};
|
|
1774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1775
|
-
switch (errorCode) {
|
|
1776
|
-
case "BadRequestException":
|
|
1777
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1778
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "ForbiddenException":
|
|
1780
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1781
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "InternalServerErrorException":
|
|
1783
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1784
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "NotFoundException":
|
|
1786
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1787
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "ServiceUnavailableException":
|
|
1789
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1790
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1791
|
-
case "TooManyRequestsException":
|
|
1792
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1793
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1794
|
-
default:
|
|
1795
|
-
const parsedBody = parsedOutput.body;
|
|
1796
|
-
return throwDefaultError({
|
|
1797
|
-
output,
|
|
1798
|
-
parsedBody,
|
|
1799
|
-
errorCode,
|
|
1800
|
-
});
|
|
1801
|
-
}
|
|
1802
|
-
};
|
|
1803
890
|
export const de_ListVirtualGatewaysCommand = async (output, context) => {
|
|
1804
891
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1805
|
-
return
|
|
892
|
+
return de_CommandError(output, context);
|
|
1806
893
|
}
|
|
1807
894
|
const contents = map({
|
|
1808
895
|
$metadata: deserializeMetadata(output),
|
|
@@ -1815,43 +902,9 @@ export const de_ListVirtualGatewaysCommand = async (output, context) => {
|
|
|
1815
902
|
Object.assign(contents, doc);
|
|
1816
903
|
return contents;
|
|
1817
904
|
};
|
|
1818
|
-
const de_ListVirtualGatewaysCommandError = async (output, context) => {
|
|
1819
|
-
const parsedOutput = {
|
|
1820
|
-
...output,
|
|
1821
|
-
body: await parseErrorBody(output.body, context),
|
|
1822
|
-
};
|
|
1823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1824
|
-
switch (errorCode) {
|
|
1825
|
-
case "BadRequestException":
|
|
1826
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1827
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "ForbiddenException":
|
|
1829
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1830
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "InternalServerErrorException":
|
|
1832
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1833
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "NotFoundException":
|
|
1835
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1836
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "ServiceUnavailableException":
|
|
1838
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1839
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "TooManyRequestsException":
|
|
1841
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1842
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1843
|
-
default:
|
|
1844
|
-
const parsedBody = parsedOutput.body;
|
|
1845
|
-
return throwDefaultError({
|
|
1846
|
-
output,
|
|
1847
|
-
parsedBody,
|
|
1848
|
-
errorCode,
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
};
|
|
1852
905
|
export const de_ListVirtualNodesCommand = async (output, context) => {
|
|
1853
906
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1854
|
-
return
|
|
907
|
+
return de_CommandError(output, context);
|
|
1855
908
|
}
|
|
1856
909
|
const contents = map({
|
|
1857
910
|
$metadata: deserializeMetadata(output),
|
|
@@ -1864,43 +917,9 @@ export const de_ListVirtualNodesCommand = async (output, context) => {
|
|
|
1864
917
|
Object.assign(contents, doc);
|
|
1865
918
|
return contents;
|
|
1866
919
|
};
|
|
1867
|
-
const de_ListVirtualNodesCommandError = async (output, context) => {
|
|
1868
|
-
const parsedOutput = {
|
|
1869
|
-
...output,
|
|
1870
|
-
body: await parseErrorBody(output.body, context),
|
|
1871
|
-
};
|
|
1872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1873
|
-
switch (errorCode) {
|
|
1874
|
-
case "BadRequestException":
|
|
1875
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1876
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1877
|
-
case "ForbiddenException":
|
|
1878
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1879
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "InternalServerErrorException":
|
|
1881
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1882
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1883
|
-
case "NotFoundException":
|
|
1884
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1885
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1886
|
-
case "ServiceUnavailableException":
|
|
1887
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1888
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1889
|
-
case "TooManyRequestsException":
|
|
1890
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1891
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1892
|
-
default:
|
|
1893
|
-
const parsedBody = parsedOutput.body;
|
|
1894
|
-
return throwDefaultError({
|
|
1895
|
-
output,
|
|
1896
|
-
parsedBody,
|
|
1897
|
-
errorCode,
|
|
1898
|
-
});
|
|
1899
|
-
}
|
|
1900
|
-
};
|
|
1901
920
|
export const de_ListVirtualRoutersCommand = async (output, context) => {
|
|
1902
921
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1903
|
-
return
|
|
922
|
+
return de_CommandError(output, context);
|
|
1904
923
|
}
|
|
1905
924
|
const contents = map({
|
|
1906
925
|
$metadata: deserializeMetadata(output),
|
|
@@ -1913,43 +932,9 @@ export const de_ListVirtualRoutersCommand = async (output, context) => {
|
|
|
1913
932
|
Object.assign(contents, doc);
|
|
1914
933
|
return contents;
|
|
1915
934
|
};
|
|
1916
|
-
const de_ListVirtualRoutersCommandError = async (output, context) => {
|
|
1917
|
-
const parsedOutput = {
|
|
1918
|
-
...output,
|
|
1919
|
-
body: await parseErrorBody(output.body, context),
|
|
1920
|
-
};
|
|
1921
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1922
|
-
switch (errorCode) {
|
|
1923
|
-
case "BadRequestException":
|
|
1924
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1925
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1926
|
-
case "ForbiddenException":
|
|
1927
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1928
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "InternalServerErrorException":
|
|
1930
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1931
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1932
|
-
case "NotFoundException":
|
|
1933
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1934
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1935
|
-
case "ServiceUnavailableException":
|
|
1936
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1937
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1938
|
-
case "TooManyRequestsException":
|
|
1939
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1940
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1941
|
-
default:
|
|
1942
|
-
const parsedBody = parsedOutput.body;
|
|
1943
|
-
return throwDefaultError({
|
|
1944
|
-
output,
|
|
1945
|
-
parsedBody,
|
|
1946
|
-
errorCode,
|
|
1947
|
-
});
|
|
1948
|
-
}
|
|
1949
|
-
};
|
|
1950
935
|
export const de_ListVirtualServicesCommand = async (output, context) => {
|
|
1951
936
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1952
|
-
return
|
|
937
|
+
return de_CommandError(output, context);
|
|
1953
938
|
}
|
|
1954
939
|
const contents = map({
|
|
1955
940
|
$metadata: deserializeMetadata(output),
|
|
@@ -1959,137 +944,32 @@ export const de_ListVirtualServicesCommand = async (output, context) => {
|
|
|
1959
944
|
nextToken: __expectString,
|
|
1960
945
|
virtualServices: (_) => de_VirtualServiceList(_, context),
|
|
1961
946
|
});
|
|
1962
|
-
Object.assign(contents, doc);
|
|
1963
|
-
return contents;
|
|
1964
|
-
};
|
|
1965
|
-
const
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
case "InternalServerErrorException":
|
|
1979
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1980
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "NotFoundException":
|
|
1982
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1983
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "ServiceUnavailableException":
|
|
1985
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1986
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "TooManyRequestsException":
|
|
1988
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1989
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1990
|
-
default:
|
|
1991
|
-
const parsedBody = parsedOutput.body;
|
|
1992
|
-
return throwDefaultError({
|
|
1993
|
-
output,
|
|
1994
|
-
parsedBody,
|
|
1995
|
-
errorCode,
|
|
1996
|
-
});
|
|
1997
|
-
}
|
|
1998
|
-
};
|
|
1999
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
2000
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2001
|
-
return de_TagResourceCommandError(output, context);
|
|
2002
|
-
}
|
|
2003
|
-
const contents = map({
|
|
2004
|
-
$metadata: deserializeMetadata(output),
|
|
2005
|
-
});
|
|
2006
|
-
await collectBody(output.body, context);
|
|
2007
|
-
return contents;
|
|
2008
|
-
};
|
|
2009
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2010
|
-
const parsedOutput = {
|
|
2011
|
-
...output,
|
|
2012
|
-
body: await parseErrorBody(output.body, context),
|
|
2013
|
-
};
|
|
2014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2015
|
-
switch (errorCode) {
|
|
2016
|
-
case "BadRequestException":
|
|
2017
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2018
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2019
|
-
case "ForbiddenException":
|
|
2020
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2021
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2022
|
-
case "InternalServerErrorException":
|
|
2023
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2024
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "NotFoundException":
|
|
2026
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2027
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "ServiceUnavailableException":
|
|
2029
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2030
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "TooManyRequestsException":
|
|
2032
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2033
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "TooManyTagsException":
|
|
2035
|
-
case "com.amazonaws.appmesh#TooManyTagsException":
|
|
2036
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2037
|
-
default:
|
|
2038
|
-
const parsedBody = parsedOutput.body;
|
|
2039
|
-
return throwDefaultError({
|
|
2040
|
-
output,
|
|
2041
|
-
parsedBody,
|
|
2042
|
-
errorCode,
|
|
2043
|
-
});
|
|
2044
|
-
}
|
|
2045
|
-
};
|
|
2046
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
2047
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2048
|
-
return de_UntagResourceCommandError(output, context);
|
|
2049
|
-
}
|
|
2050
|
-
const contents = map({
|
|
2051
|
-
$metadata: deserializeMetadata(output),
|
|
2052
|
-
});
|
|
2053
|
-
await collectBody(output.body, context);
|
|
2054
|
-
return contents;
|
|
2055
|
-
};
|
|
2056
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2057
|
-
const parsedOutput = {
|
|
2058
|
-
...output,
|
|
2059
|
-
body: await parseErrorBody(output.body, context),
|
|
2060
|
-
};
|
|
2061
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
|
-
switch (errorCode) {
|
|
2063
|
-
case "BadRequestException":
|
|
2064
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2065
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "ForbiddenException":
|
|
2067
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2068
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "InternalServerErrorException":
|
|
2070
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2071
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "NotFoundException":
|
|
2073
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2074
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "ServiceUnavailableException":
|
|
2076
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2077
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "TooManyRequestsException":
|
|
2079
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2080
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2081
|
-
default:
|
|
2082
|
-
const parsedBody = parsedOutput.body;
|
|
2083
|
-
return throwDefaultError({
|
|
2084
|
-
output,
|
|
2085
|
-
parsedBody,
|
|
2086
|
-
errorCode,
|
|
2087
|
-
});
|
|
947
|
+
Object.assign(contents, doc);
|
|
948
|
+
return contents;
|
|
949
|
+
};
|
|
950
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
951
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
952
|
+
return de_CommandError(output, context);
|
|
953
|
+
}
|
|
954
|
+
const contents = map({
|
|
955
|
+
$metadata: deserializeMetadata(output),
|
|
956
|
+
});
|
|
957
|
+
await collectBody(output.body, context);
|
|
958
|
+
return contents;
|
|
959
|
+
};
|
|
960
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
961
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
962
|
+
return de_CommandError(output, context);
|
|
2088
963
|
}
|
|
964
|
+
const contents = map({
|
|
965
|
+
$metadata: deserializeMetadata(output),
|
|
966
|
+
});
|
|
967
|
+
await collectBody(output.body, context);
|
|
968
|
+
return contents;
|
|
2089
969
|
};
|
|
2090
970
|
export const de_UpdateGatewayRouteCommand = async (output, context) => {
|
|
2091
971
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2092
|
-
return
|
|
972
|
+
return de_CommandError(output, context);
|
|
2093
973
|
}
|
|
2094
974
|
const contents = map({
|
|
2095
975
|
$metadata: deserializeMetadata(output),
|
|
@@ -2098,49 +978,9 @@ export const de_UpdateGatewayRouteCommand = async (output, context) => {
|
|
|
2098
978
|
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
2099
979
|
return contents;
|
|
2100
980
|
};
|
|
2101
|
-
const de_UpdateGatewayRouteCommandError = async (output, context) => {
|
|
2102
|
-
const parsedOutput = {
|
|
2103
|
-
...output,
|
|
2104
|
-
body: await parseErrorBody(output.body, context),
|
|
2105
|
-
};
|
|
2106
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2107
|
-
switch (errorCode) {
|
|
2108
|
-
case "BadRequestException":
|
|
2109
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2110
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "ConflictException":
|
|
2112
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2113
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "ForbiddenException":
|
|
2115
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2116
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "InternalServerErrorException":
|
|
2118
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2119
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "LimitExceededException":
|
|
2121
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
2122
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2123
|
-
case "NotFoundException":
|
|
2124
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2125
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2126
|
-
case "ServiceUnavailableException":
|
|
2127
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2128
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2129
|
-
case "TooManyRequestsException":
|
|
2130
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2131
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2132
|
-
default:
|
|
2133
|
-
const parsedBody = parsedOutput.body;
|
|
2134
|
-
return throwDefaultError({
|
|
2135
|
-
output,
|
|
2136
|
-
parsedBody,
|
|
2137
|
-
errorCode,
|
|
2138
|
-
});
|
|
2139
|
-
}
|
|
2140
|
-
};
|
|
2141
981
|
export const de_UpdateMeshCommand = async (output, context) => {
|
|
2142
982
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2143
|
-
return
|
|
983
|
+
return de_CommandError(output, context);
|
|
2144
984
|
}
|
|
2145
985
|
const contents = map({
|
|
2146
986
|
$metadata: deserializeMetadata(output),
|
|
@@ -2149,46 +989,9 @@ export const de_UpdateMeshCommand = async (output, context) => {
|
|
|
2149
989
|
contents.mesh = de_MeshData(data, context);
|
|
2150
990
|
return contents;
|
|
2151
991
|
};
|
|
2152
|
-
const de_UpdateMeshCommandError = async (output, context) => {
|
|
2153
|
-
const parsedOutput = {
|
|
2154
|
-
...output,
|
|
2155
|
-
body: await parseErrorBody(output.body, context),
|
|
2156
|
-
};
|
|
2157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2158
|
-
switch (errorCode) {
|
|
2159
|
-
case "BadRequestException":
|
|
2160
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2161
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2162
|
-
case "ConflictException":
|
|
2163
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2164
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2165
|
-
case "ForbiddenException":
|
|
2166
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2167
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2168
|
-
case "InternalServerErrorException":
|
|
2169
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2170
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "NotFoundException":
|
|
2172
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2173
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2174
|
-
case "ServiceUnavailableException":
|
|
2175
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2176
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2177
|
-
case "TooManyRequestsException":
|
|
2178
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2179
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2180
|
-
default:
|
|
2181
|
-
const parsedBody = parsedOutput.body;
|
|
2182
|
-
return throwDefaultError({
|
|
2183
|
-
output,
|
|
2184
|
-
parsedBody,
|
|
2185
|
-
errorCode,
|
|
2186
|
-
});
|
|
2187
|
-
}
|
|
2188
|
-
};
|
|
2189
992
|
export const de_UpdateRouteCommand = async (output, context) => {
|
|
2190
993
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2191
|
-
return
|
|
994
|
+
return de_CommandError(output, context);
|
|
2192
995
|
}
|
|
2193
996
|
const contents = map({
|
|
2194
997
|
$metadata: deserializeMetadata(output),
|
|
@@ -2197,49 +1000,9 @@ export const de_UpdateRouteCommand = async (output, context) => {
|
|
|
2197
1000
|
contents.route = de_RouteData(data, context);
|
|
2198
1001
|
return contents;
|
|
2199
1002
|
};
|
|
2200
|
-
const de_UpdateRouteCommandError = async (output, context) => {
|
|
2201
|
-
const parsedOutput = {
|
|
2202
|
-
...output,
|
|
2203
|
-
body: await parseErrorBody(output.body, context),
|
|
2204
|
-
};
|
|
2205
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2206
|
-
switch (errorCode) {
|
|
2207
|
-
case "BadRequestException":
|
|
2208
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2209
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "ConflictException":
|
|
2211
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2212
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "ForbiddenException":
|
|
2214
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2215
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "InternalServerErrorException":
|
|
2217
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2218
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2219
|
-
case "LimitExceededException":
|
|
2220
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
2221
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2222
|
-
case "NotFoundException":
|
|
2223
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2224
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2225
|
-
case "ServiceUnavailableException":
|
|
2226
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2227
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2228
|
-
case "TooManyRequestsException":
|
|
2229
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2230
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2231
|
-
default:
|
|
2232
|
-
const parsedBody = parsedOutput.body;
|
|
2233
|
-
return throwDefaultError({
|
|
2234
|
-
output,
|
|
2235
|
-
parsedBody,
|
|
2236
|
-
errorCode,
|
|
2237
|
-
});
|
|
2238
|
-
}
|
|
2239
|
-
};
|
|
2240
1003
|
export const de_UpdateVirtualGatewayCommand = async (output, context) => {
|
|
2241
1004
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2242
|
-
return
|
|
1005
|
+
return de_CommandError(output, context);
|
|
2243
1006
|
}
|
|
2244
1007
|
const contents = map({
|
|
2245
1008
|
$metadata: deserializeMetadata(output),
|
|
@@ -2248,49 +1011,9 @@ export const de_UpdateVirtualGatewayCommand = async (output, context) => {
|
|
|
2248
1011
|
contents.virtualGateway = de_VirtualGatewayData(data, context);
|
|
2249
1012
|
return contents;
|
|
2250
1013
|
};
|
|
2251
|
-
const de_UpdateVirtualGatewayCommandError = async (output, context) => {
|
|
2252
|
-
const parsedOutput = {
|
|
2253
|
-
...output,
|
|
2254
|
-
body: await parseErrorBody(output.body, context),
|
|
2255
|
-
};
|
|
2256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
|
-
switch (errorCode) {
|
|
2258
|
-
case "BadRequestException":
|
|
2259
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2260
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2261
|
-
case "ConflictException":
|
|
2262
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2263
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "ForbiddenException":
|
|
2265
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2266
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "InternalServerErrorException":
|
|
2268
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2269
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "LimitExceededException":
|
|
2271
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
2272
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "NotFoundException":
|
|
2274
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2275
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "ServiceUnavailableException":
|
|
2277
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2278
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "TooManyRequestsException":
|
|
2280
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2281
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2282
|
-
default:
|
|
2283
|
-
const parsedBody = parsedOutput.body;
|
|
2284
|
-
return throwDefaultError({
|
|
2285
|
-
output,
|
|
2286
|
-
parsedBody,
|
|
2287
|
-
errorCode,
|
|
2288
|
-
});
|
|
2289
|
-
}
|
|
2290
|
-
};
|
|
2291
1014
|
export const de_UpdateVirtualNodeCommand = async (output, context) => {
|
|
2292
1015
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2293
|
-
return
|
|
1016
|
+
return de_CommandError(output, context);
|
|
2294
1017
|
}
|
|
2295
1018
|
const contents = map({
|
|
2296
1019
|
$metadata: deserializeMetadata(output),
|
|
@@ -2299,49 +1022,9 @@ export const de_UpdateVirtualNodeCommand = async (output, context) => {
|
|
|
2299
1022
|
contents.virtualNode = de_VirtualNodeData(data, context);
|
|
2300
1023
|
return contents;
|
|
2301
1024
|
};
|
|
2302
|
-
const de_UpdateVirtualNodeCommandError = async (output, context) => {
|
|
2303
|
-
const parsedOutput = {
|
|
2304
|
-
...output,
|
|
2305
|
-
body: await parseErrorBody(output.body, context),
|
|
2306
|
-
};
|
|
2307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2308
|
-
switch (errorCode) {
|
|
2309
|
-
case "BadRequestException":
|
|
2310
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2311
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2312
|
-
case "ConflictException":
|
|
2313
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2314
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "ForbiddenException":
|
|
2316
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2317
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "InternalServerErrorException":
|
|
2319
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2320
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "LimitExceededException":
|
|
2322
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
2323
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "NotFoundException":
|
|
2325
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2326
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "ServiceUnavailableException":
|
|
2328
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2329
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "TooManyRequestsException":
|
|
2331
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2332
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2333
|
-
default:
|
|
2334
|
-
const parsedBody = parsedOutput.body;
|
|
2335
|
-
return throwDefaultError({
|
|
2336
|
-
output,
|
|
2337
|
-
parsedBody,
|
|
2338
|
-
errorCode,
|
|
2339
|
-
});
|
|
2340
|
-
}
|
|
2341
|
-
};
|
|
2342
1025
|
export const de_UpdateVirtualRouterCommand = async (output, context) => {
|
|
2343
1026
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2344
|
-
return
|
|
1027
|
+
return de_CommandError(output, context);
|
|
2345
1028
|
}
|
|
2346
1029
|
const contents = map({
|
|
2347
1030
|
$metadata: deserializeMetadata(output),
|
|
@@ -2350,49 +1033,9 @@ export const de_UpdateVirtualRouterCommand = async (output, context) => {
|
|
|
2350
1033
|
contents.virtualRouter = de_VirtualRouterData(data, context);
|
|
2351
1034
|
return contents;
|
|
2352
1035
|
};
|
|
2353
|
-
const de_UpdateVirtualRouterCommandError = async (output, context) => {
|
|
2354
|
-
const parsedOutput = {
|
|
2355
|
-
...output,
|
|
2356
|
-
body: await parseErrorBody(output.body, context),
|
|
2357
|
-
};
|
|
2358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2359
|
-
switch (errorCode) {
|
|
2360
|
-
case "BadRequestException":
|
|
2361
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2362
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2363
|
-
case "ConflictException":
|
|
2364
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2365
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2366
|
-
case "ForbiddenException":
|
|
2367
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2368
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2369
|
-
case "InternalServerErrorException":
|
|
2370
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2371
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2372
|
-
case "LimitExceededException":
|
|
2373
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
2374
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2375
|
-
case "NotFoundException":
|
|
2376
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2377
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2378
|
-
case "ServiceUnavailableException":
|
|
2379
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2380
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2381
|
-
case "TooManyRequestsException":
|
|
2382
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2383
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2384
|
-
default:
|
|
2385
|
-
const parsedBody = parsedOutput.body;
|
|
2386
|
-
return throwDefaultError({
|
|
2387
|
-
output,
|
|
2388
|
-
parsedBody,
|
|
2389
|
-
errorCode,
|
|
2390
|
-
});
|
|
2391
|
-
}
|
|
2392
|
-
};
|
|
2393
1036
|
export const de_UpdateVirtualServiceCommand = async (output, context) => {
|
|
2394
1037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2395
|
-
return
|
|
1038
|
+
return de_CommandError(output, context);
|
|
2396
1039
|
}
|
|
2397
1040
|
const contents = map({
|
|
2398
1041
|
$metadata: deserializeMetadata(output),
|
|
@@ -2401,7 +1044,7 @@ export const de_UpdateVirtualServiceCommand = async (output, context) => {
|
|
|
2401
1044
|
contents.virtualService = de_VirtualServiceData(data, context);
|
|
2402
1045
|
return contents;
|
|
2403
1046
|
};
|
|
2404
|
-
const
|
|
1047
|
+
const de_CommandError = async (output, context) => {
|
|
2405
1048
|
const parsedOutput = {
|
|
2406
1049
|
...output,
|
|
2407
1050
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2432,6 +1075,12 @@ const de_UpdateVirtualServiceCommandError = async (output, context) => {
|
|
|
2432
1075
|
case "TooManyRequestsException":
|
|
2433
1076
|
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2434
1077
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1078
|
+
case "ResourceInUseException":
|
|
1079
|
+
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1080
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1081
|
+
case "TooManyTagsException":
|
|
1082
|
+
case "com.amazonaws.appmesh#TooManyTagsException":
|
|
1083
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2435
1084
|
default:
|
|
2436
1085
|
const parsedBody = parsedOutput.body;
|
|
2437
1086
|
return throwDefaultError({
|