@aws-sdk/client-direct-connect 3.141.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +315 -519
- package/dist-es/protocols/Aws_json1_1.js +505 -520
- package/package.json +6 -6
|
@@ -653,7 +653,6 @@ const deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommand
|
|
|
653
653
|
...output,
|
|
654
654
|
body: await parseBody(output.body, context),
|
|
655
655
|
};
|
|
656
|
-
let response;
|
|
657
656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
657
|
switch (errorCode) {
|
|
659
658
|
case "DirectConnectClientException":
|
|
@@ -664,14 +663,12 @@ const deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommand
|
|
|
664
663
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
665
664
|
default:
|
|
666
665
|
const parsedBody = parsedOutput.body;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
$metadata,
|
|
666
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
667
|
+
output,
|
|
668
|
+
parsedBody,
|
|
669
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
670
|
+
errorCode,
|
|
673
671
|
});
|
|
674
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
675
672
|
}
|
|
676
673
|
};
|
|
677
674
|
const deserializeAws_json1_1AllocateConnectionOnInterconnectCommand = async (output, context) => {
|
|
@@ -693,7 +690,6 @@ const deserializeAws_json1_1AllocateConnectionOnInterconnectCommandError = async
|
|
|
693
690
|
...output,
|
|
694
691
|
body: await parseBody(output.body, context),
|
|
695
692
|
};
|
|
696
|
-
let response;
|
|
697
693
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
698
694
|
switch (errorCode) {
|
|
699
695
|
case "DirectConnectClientException":
|
|
@@ -704,14 +700,12 @@ const deserializeAws_json1_1AllocateConnectionOnInterconnectCommandError = async
|
|
|
704
700
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
705
701
|
default:
|
|
706
702
|
const parsedBody = parsedOutput.body;
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
$metadata,
|
|
703
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
704
|
+
output,
|
|
705
|
+
parsedBody,
|
|
706
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
707
|
+
errorCode,
|
|
713
708
|
});
|
|
714
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
715
709
|
}
|
|
716
710
|
};
|
|
717
711
|
const deserializeAws_json1_1AllocateHostedConnectionCommand = async (output, context) => {
|
|
@@ -733,7 +727,6 @@ const deserializeAws_json1_1AllocateHostedConnectionCommandError = async (output
|
|
|
733
727
|
...output,
|
|
734
728
|
body: await parseBody(output.body, context),
|
|
735
729
|
};
|
|
736
|
-
let response;
|
|
737
730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
738
731
|
switch (errorCode) {
|
|
739
732
|
case "DirectConnectClientException":
|
|
@@ -750,14 +743,12 @@ const deserializeAws_json1_1AllocateHostedConnectionCommandError = async (output
|
|
|
750
743
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
751
744
|
default:
|
|
752
745
|
const parsedBody = parsedOutput.body;
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
$metadata,
|
|
746
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
747
|
+
output,
|
|
748
|
+
parsedBody,
|
|
749
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
750
|
+
errorCode,
|
|
759
751
|
});
|
|
760
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
761
752
|
}
|
|
762
753
|
};
|
|
763
754
|
const deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommand = async (output, context) => {
|
|
@@ -779,7 +770,6 @@ const deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommandError = async
|
|
|
779
770
|
...output,
|
|
780
771
|
body: await parseBody(output.body, context),
|
|
781
772
|
};
|
|
782
|
-
let response;
|
|
783
773
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
774
|
switch (errorCode) {
|
|
785
775
|
case "DirectConnectClientException":
|
|
@@ -796,14 +786,12 @@ const deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommandError = async
|
|
|
796
786
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
797
787
|
default:
|
|
798
788
|
const parsedBody = parsedOutput.body;
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
$metadata,
|
|
789
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
790
|
+
output,
|
|
791
|
+
parsedBody,
|
|
792
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
793
|
+
errorCode,
|
|
805
794
|
});
|
|
806
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
807
795
|
}
|
|
808
796
|
};
|
|
809
797
|
const deserializeAws_json1_1AllocatePublicVirtualInterfaceCommand = async (output, context) => {
|
|
@@ -825,7 +813,6 @@ const deserializeAws_json1_1AllocatePublicVirtualInterfaceCommandError = async (
|
|
|
825
813
|
...output,
|
|
826
814
|
body: await parseBody(output.body, context),
|
|
827
815
|
};
|
|
828
|
-
let response;
|
|
829
816
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
830
817
|
switch (errorCode) {
|
|
831
818
|
case "DirectConnectClientException":
|
|
@@ -842,14 +829,12 @@ const deserializeAws_json1_1AllocatePublicVirtualInterfaceCommandError = async (
|
|
|
842
829
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
843
830
|
default:
|
|
844
831
|
const parsedBody = parsedOutput.body;
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
$metadata,
|
|
832
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
833
|
+
output,
|
|
834
|
+
parsedBody,
|
|
835
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
836
|
+
errorCode,
|
|
851
837
|
});
|
|
852
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
853
838
|
}
|
|
854
839
|
};
|
|
855
840
|
const deserializeAws_json1_1AllocateTransitVirtualInterfaceCommand = async (output, context) => {
|
|
@@ -871,7 +856,6 @@ const deserializeAws_json1_1AllocateTransitVirtualInterfaceCommandError = async
|
|
|
871
856
|
...output,
|
|
872
857
|
body: await parseBody(output.body, context),
|
|
873
858
|
};
|
|
874
|
-
let response;
|
|
875
859
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
876
860
|
switch (errorCode) {
|
|
877
861
|
case "DirectConnectClientException":
|
|
@@ -888,14 +872,12 @@ const deserializeAws_json1_1AllocateTransitVirtualInterfaceCommandError = async
|
|
|
888
872
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
889
873
|
default:
|
|
890
874
|
const parsedBody = parsedOutput.body;
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
$metadata,
|
|
875
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
876
|
+
output,
|
|
877
|
+
parsedBody,
|
|
878
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
879
|
+
errorCode,
|
|
897
880
|
});
|
|
898
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
899
881
|
}
|
|
900
882
|
};
|
|
901
883
|
const deserializeAws_json1_1AssociateConnectionWithLagCommand = async (output, context) => {
|
|
@@ -917,7 +899,6 @@ const deserializeAws_json1_1AssociateConnectionWithLagCommandError = async (outp
|
|
|
917
899
|
...output,
|
|
918
900
|
body: await parseBody(output.body, context),
|
|
919
901
|
};
|
|
920
|
-
let response;
|
|
921
902
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
903
|
switch (errorCode) {
|
|
923
904
|
case "DirectConnectClientException":
|
|
@@ -928,14 +909,12 @@ const deserializeAws_json1_1AssociateConnectionWithLagCommandError = async (outp
|
|
|
928
909
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
929
910
|
default:
|
|
930
911
|
const parsedBody = parsedOutput.body;
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
$metadata,
|
|
912
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
913
|
+
output,
|
|
914
|
+
parsedBody,
|
|
915
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
916
|
+
errorCode,
|
|
937
917
|
});
|
|
938
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
939
918
|
}
|
|
940
919
|
};
|
|
941
920
|
const deserializeAws_json1_1AssociateHostedConnectionCommand = async (output, context) => {
|
|
@@ -957,7 +936,6 @@ const deserializeAws_json1_1AssociateHostedConnectionCommandError = async (outpu
|
|
|
957
936
|
...output,
|
|
958
937
|
body: await parseBody(output.body, context),
|
|
959
938
|
};
|
|
960
|
-
let response;
|
|
961
939
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
940
|
switch (errorCode) {
|
|
963
941
|
case "DirectConnectClientException":
|
|
@@ -968,14 +946,12 @@ const deserializeAws_json1_1AssociateHostedConnectionCommandError = async (outpu
|
|
|
968
946
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
969
947
|
default:
|
|
970
948
|
const parsedBody = parsedOutput.body;
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
$metadata,
|
|
949
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
950
|
+
output,
|
|
951
|
+
parsedBody,
|
|
952
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
953
|
+
errorCode,
|
|
977
954
|
});
|
|
978
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
979
955
|
}
|
|
980
956
|
};
|
|
981
957
|
const deserializeAws_json1_1AssociateMacSecKeyCommand = async (output, context) => {
|
|
@@ -997,7 +973,6 @@ const deserializeAws_json1_1AssociateMacSecKeyCommandError = async (output, cont
|
|
|
997
973
|
...output,
|
|
998
974
|
body: await parseBody(output.body, context),
|
|
999
975
|
};
|
|
1000
|
-
let response;
|
|
1001
976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1002
977
|
switch (errorCode) {
|
|
1003
978
|
case "DirectConnectClientException":
|
|
@@ -1008,14 +983,12 @@ const deserializeAws_json1_1AssociateMacSecKeyCommandError = async (output, cont
|
|
|
1008
983
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1009
984
|
default:
|
|
1010
985
|
const parsedBody = parsedOutput.body;
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
$metadata,
|
|
986
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
987
|
+
output,
|
|
988
|
+
parsedBody,
|
|
989
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
990
|
+
errorCode,
|
|
1017
991
|
});
|
|
1018
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1019
992
|
}
|
|
1020
993
|
};
|
|
1021
994
|
const deserializeAws_json1_1AssociateVirtualInterfaceCommand = async (output, context) => {
|
|
@@ -1037,7 +1010,6 @@ const deserializeAws_json1_1AssociateVirtualInterfaceCommandError = async (outpu
|
|
|
1037
1010
|
...output,
|
|
1038
1011
|
body: await parseBody(output.body, context),
|
|
1039
1012
|
};
|
|
1040
|
-
let response;
|
|
1041
1013
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
1014
|
switch (errorCode) {
|
|
1043
1015
|
case "DirectConnectClientException":
|
|
@@ -1048,14 +1020,12 @@ const deserializeAws_json1_1AssociateVirtualInterfaceCommandError = async (outpu
|
|
|
1048
1020
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1049
1021
|
default:
|
|
1050
1022
|
const parsedBody = parsedOutput.body;
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
$metadata,
|
|
1023
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1024
|
+
output,
|
|
1025
|
+
parsedBody,
|
|
1026
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1027
|
+
errorCode,
|
|
1057
1028
|
});
|
|
1058
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1059
1029
|
}
|
|
1060
1030
|
};
|
|
1061
1031
|
const deserializeAws_json1_1ConfirmConnectionCommand = async (output, context) => {
|
|
@@ -1077,7 +1047,6 @@ const deserializeAws_json1_1ConfirmConnectionCommandError = async (output, conte
|
|
|
1077
1047
|
...output,
|
|
1078
1048
|
body: await parseBody(output.body, context),
|
|
1079
1049
|
};
|
|
1080
|
-
let response;
|
|
1081
1050
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1082
1051
|
switch (errorCode) {
|
|
1083
1052
|
case "DirectConnectClientException":
|
|
@@ -1088,14 +1057,12 @@ const deserializeAws_json1_1ConfirmConnectionCommandError = async (output, conte
|
|
|
1088
1057
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1089
1058
|
default:
|
|
1090
1059
|
const parsedBody = parsedOutput.body;
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
$metadata,
|
|
1060
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1061
|
+
output,
|
|
1062
|
+
parsedBody,
|
|
1063
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1064
|
+
errorCode,
|
|
1097
1065
|
});
|
|
1098
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1099
1066
|
}
|
|
1100
1067
|
};
|
|
1101
1068
|
const deserializeAws_json1_1ConfirmCustomerAgreementCommand = async (output, context) => {
|
|
@@ -1117,7 +1084,6 @@ const deserializeAws_json1_1ConfirmCustomerAgreementCommandError = async (output
|
|
|
1117
1084
|
...output,
|
|
1118
1085
|
body: await parseBody(output.body, context),
|
|
1119
1086
|
};
|
|
1120
|
-
let response;
|
|
1121
1087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
1088
|
switch (errorCode) {
|
|
1123
1089
|
case "DirectConnectClientException":
|
|
@@ -1128,14 +1094,12 @@ const deserializeAws_json1_1ConfirmCustomerAgreementCommandError = async (output
|
|
|
1128
1094
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1129
1095
|
default:
|
|
1130
1096
|
const parsedBody = parsedOutput.body;
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
$metadata,
|
|
1097
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1098
|
+
output,
|
|
1099
|
+
parsedBody,
|
|
1100
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1101
|
+
errorCode,
|
|
1137
1102
|
});
|
|
1138
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1139
1103
|
}
|
|
1140
1104
|
};
|
|
1141
1105
|
const deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommand = async (output, context) => {
|
|
@@ -1157,7 +1121,6 @@ const deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommandError = async (
|
|
|
1157
1121
|
...output,
|
|
1158
1122
|
body: await parseBody(output.body, context),
|
|
1159
1123
|
};
|
|
1160
|
-
let response;
|
|
1161
1124
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
1125
|
switch (errorCode) {
|
|
1163
1126
|
case "DirectConnectClientException":
|
|
@@ -1168,14 +1131,12 @@ const deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommandError = async (
|
|
|
1168
1131
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1169
1132
|
default:
|
|
1170
1133
|
const parsedBody = parsedOutput.body;
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
$metadata,
|
|
1134
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1135
|
+
output,
|
|
1136
|
+
parsedBody,
|
|
1137
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1138
|
+
errorCode,
|
|
1177
1139
|
});
|
|
1178
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1179
1140
|
}
|
|
1180
1141
|
};
|
|
1181
1142
|
const deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommand = async (output, context) => {
|
|
@@ -1197,7 +1158,6 @@ const deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommandError = async (o
|
|
|
1197
1158
|
...output,
|
|
1198
1159
|
body: await parseBody(output.body, context),
|
|
1199
1160
|
};
|
|
1200
|
-
let response;
|
|
1201
1161
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
1162
|
switch (errorCode) {
|
|
1203
1163
|
case "DirectConnectClientException":
|
|
@@ -1208,14 +1168,12 @@ const deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommandError = async (o
|
|
|
1208
1168
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1209
1169
|
default:
|
|
1210
1170
|
const parsedBody = parsedOutput.body;
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
$metadata,
|
|
1171
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1172
|
+
output,
|
|
1173
|
+
parsedBody,
|
|
1174
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1175
|
+
errorCode,
|
|
1217
1176
|
});
|
|
1218
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1219
1177
|
}
|
|
1220
1178
|
};
|
|
1221
1179
|
const deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommand = async (output, context) => {
|
|
@@ -1237,7 +1195,6 @@ const deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommandError = async (
|
|
|
1237
1195
|
...output,
|
|
1238
1196
|
body: await parseBody(output.body, context),
|
|
1239
1197
|
};
|
|
1240
|
-
let response;
|
|
1241
1198
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
1199
|
switch (errorCode) {
|
|
1243
1200
|
case "DirectConnectClientException":
|
|
@@ -1248,14 +1205,12 @@ const deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommandError = async (
|
|
|
1248
1205
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1249
1206
|
default:
|
|
1250
1207
|
const parsedBody = parsedOutput.body;
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
$metadata,
|
|
1208
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1209
|
+
output,
|
|
1210
|
+
parsedBody,
|
|
1211
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1212
|
+
errorCode,
|
|
1257
1213
|
});
|
|
1258
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1259
1214
|
}
|
|
1260
1215
|
};
|
|
1261
1216
|
const deserializeAws_json1_1CreateBGPPeerCommand = async (output, context) => {
|
|
@@ -1277,7 +1232,6 @@ const deserializeAws_json1_1CreateBGPPeerCommandError = async (output, context)
|
|
|
1277
1232
|
...output,
|
|
1278
1233
|
body: await parseBody(output.body, context),
|
|
1279
1234
|
};
|
|
1280
|
-
let response;
|
|
1281
1235
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
1236
|
switch (errorCode) {
|
|
1283
1237
|
case "DirectConnectClientException":
|
|
@@ -1288,14 +1242,12 @@ const deserializeAws_json1_1CreateBGPPeerCommandError = async (output, context)
|
|
|
1288
1242
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1289
1243
|
default:
|
|
1290
1244
|
const parsedBody = parsedOutput.body;
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
$metadata,
|
|
1245
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1246
|
+
output,
|
|
1247
|
+
parsedBody,
|
|
1248
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1249
|
+
errorCode,
|
|
1297
1250
|
});
|
|
1298
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1299
1251
|
}
|
|
1300
1252
|
};
|
|
1301
1253
|
const deserializeAws_json1_1CreateConnectionCommand = async (output, context) => {
|
|
@@ -1317,7 +1269,6 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
1317
1269
|
...output,
|
|
1318
1270
|
body: await parseBody(output.body, context),
|
|
1319
1271
|
};
|
|
1320
|
-
let response;
|
|
1321
1272
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1322
1273
|
switch (errorCode) {
|
|
1323
1274
|
case "DirectConnectClientException":
|
|
@@ -1334,14 +1285,12 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
1334
1285
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1335
1286
|
default:
|
|
1336
1287
|
const parsedBody = parsedOutput.body;
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
$metadata,
|
|
1288
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1289
|
+
output,
|
|
1290
|
+
parsedBody,
|
|
1291
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1292
|
+
errorCode,
|
|
1343
1293
|
});
|
|
1344
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1345
1294
|
}
|
|
1346
1295
|
};
|
|
1347
1296
|
const deserializeAws_json1_1CreateDirectConnectGatewayCommand = async (output, context) => {
|
|
@@ -1363,7 +1312,6 @@ const deserializeAws_json1_1CreateDirectConnectGatewayCommandError = async (outp
|
|
|
1363
1312
|
...output,
|
|
1364
1313
|
body: await parseBody(output.body, context),
|
|
1365
1314
|
};
|
|
1366
|
-
let response;
|
|
1367
1315
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
1316
|
switch (errorCode) {
|
|
1369
1317
|
case "DirectConnectClientException":
|
|
@@ -1374,14 +1322,12 @@ const deserializeAws_json1_1CreateDirectConnectGatewayCommandError = async (outp
|
|
|
1374
1322
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1375
1323
|
default:
|
|
1376
1324
|
const parsedBody = parsedOutput.body;
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
$metadata,
|
|
1325
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1326
|
+
output,
|
|
1327
|
+
parsedBody,
|
|
1328
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1329
|
+
errorCode,
|
|
1383
1330
|
});
|
|
1384
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1385
1331
|
}
|
|
1386
1332
|
};
|
|
1387
1333
|
const deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommand = async (output, context) => {
|
|
@@ -1403,7 +1349,6 @@ const deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommandError =
|
|
|
1403
1349
|
...output,
|
|
1404
1350
|
body: await parseBody(output.body, context),
|
|
1405
1351
|
};
|
|
1406
|
-
let response;
|
|
1407
1352
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
1353
|
switch (errorCode) {
|
|
1409
1354
|
case "DirectConnectClientException":
|
|
@@ -1414,14 +1359,12 @@ const deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommandError =
|
|
|
1414
1359
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1415
1360
|
default:
|
|
1416
1361
|
const parsedBody = parsedOutput.body;
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
$metadata,
|
|
1362
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1363
|
+
output,
|
|
1364
|
+
parsedBody,
|
|
1365
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1366
|
+
errorCode,
|
|
1423
1367
|
});
|
|
1424
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1425
1368
|
}
|
|
1426
1369
|
};
|
|
1427
1370
|
const deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommand = async (output, context) => {
|
|
@@ -1443,7 +1386,6 @@ const deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommand
|
|
|
1443
1386
|
...output,
|
|
1444
1387
|
body: await parseBody(output.body, context),
|
|
1445
1388
|
};
|
|
1446
|
-
let response;
|
|
1447
1389
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
1390
|
switch (errorCode) {
|
|
1449
1391
|
case "DirectConnectClientException":
|
|
@@ -1454,14 +1396,12 @@ const deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommand
|
|
|
1454
1396
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1455
1397
|
default:
|
|
1456
1398
|
const parsedBody = parsedOutput.body;
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
$metadata,
|
|
1399
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1400
|
+
output,
|
|
1401
|
+
parsedBody,
|
|
1402
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1403
|
+
errorCode,
|
|
1463
1404
|
});
|
|
1464
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1465
1405
|
}
|
|
1466
1406
|
};
|
|
1467
1407
|
const deserializeAws_json1_1CreateInterconnectCommand = async (output, context) => {
|
|
@@ -1483,7 +1423,6 @@ const deserializeAws_json1_1CreateInterconnectCommandError = async (output, cont
|
|
|
1483
1423
|
...output,
|
|
1484
1424
|
body: await parseBody(output.body, context),
|
|
1485
1425
|
};
|
|
1486
|
-
let response;
|
|
1487
1426
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
1427
|
switch (errorCode) {
|
|
1489
1428
|
case "DirectConnectClientException":
|
|
@@ -1500,14 +1439,12 @@ const deserializeAws_json1_1CreateInterconnectCommandError = async (output, cont
|
|
|
1500
1439
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1501
1440
|
default:
|
|
1502
1441
|
const parsedBody = parsedOutput.body;
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
$metadata,
|
|
1442
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1443
|
+
output,
|
|
1444
|
+
parsedBody,
|
|
1445
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1446
|
+
errorCode,
|
|
1509
1447
|
});
|
|
1510
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1511
1448
|
}
|
|
1512
1449
|
};
|
|
1513
1450
|
const deserializeAws_json1_1CreateLagCommand = async (output, context) => {
|
|
@@ -1529,7 +1466,6 @@ const deserializeAws_json1_1CreateLagCommandError = async (output, context) => {
|
|
|
1529
1466
|
...output,
|
|
1530
1467
|
body: await parseBody(output.body, context),
|
|
1531
1468
|
};
|
|
1532
|
-
let response;
|
|
1533
1469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
1470
|
switch (errorCode) {
|
|
1535
1471
|
case "DirectConnectClientException":
|
|
@@ -1546,14 +1482,12 @@ const deserializeAws_json1_1CreateLagCommandError = async (output, context) => {
|
|
|
1546
1482
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1547
1483
|
default:
|
|
1548
1484
|
const parsedBody = parsedOutput.body;
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
$metadata,
|
|
1485
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1486
|
+
output,
|
|
1487
|
+
parsedBody,
|
|
1488
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1489
|
+
errorCode,
|
|
1555
1490
|
});
|
|
1556
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1557
1491
|
}
|
|
1558
1492
|
};
|
|
1559
1493
|
const deserializeAws_json1_1CreatePrivateVirtualInterfaceCommand = async (output, context) => {
|
|
@@ -1575,7 +1509,6 @@ const deserializeAws_json1_1CreatePrivateVirtualInterfaceCommandError = async (o
|
|
|
1575
1509
|
...output,
|
|
1576
1510
|
body: await parseBody(output.body, context),
|
|
1577
1511
|
};
|
|
1578
|
-
let response;
|
|
1579
1512
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
1513
|
switch (errorCode) {
|
|
1581
1514
|
case "DirectConnectClientException":
|
|
@@ -1592,14 +1525,12 @@ const deserializeAws_json1_1CreatePrivateVirtualInterfaceCommandError = async (o
|
|
|
1592
1525
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1593
1526
|
default:
|
|
1594
1527
|
const parsedBody = parsedOutput.body;
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
$metadata,
|
|
1528
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1529
|
+
output,
|
|
1530
|
+
parsedBody,
|
|
1531
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1532
|
+
errorCode,
|
|
1601
1533
|
});
|
|
1602
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1603
1534
|
}
|
|
1604
1535
|
};
|
|
1605
1536
|
const deserializeAws_json1_1CreatePublicVirtualInterfaceCommand = async (output, context) => {
|
|
@@ -1621,7 +1552,6 @@ const deserializeAws_json1_1CreatePublicVirtualInterfaceCommandError = async (ou
|
|
|
1621
1552
|
...output,
|
|
1622
1553
|
body: await parseBody(output.body, context),
|
|
1623
1554
|
};
|
|
1624
|
-
let response;
|
|
1625
1555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
1556
|
switch (errorCode) {
|
|
1627
1557
|
case "DirectConnectClientException":
|
|
@@ -1638,14 +1568,12 @@ const deserializeAws_json1_1CreatePublicVirtualInterfaceCommandError = async (ou
|
|
|
1638
1568
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1639
1569
|
default:
|
|
1640
1570
|
const parsedBody = parsedOutput.body;
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
$metadata,
|
|
1571
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1572
|
+
output,
|
|
1573
|
+
parsedBody,
|
|
1574
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1575
|
+
errorCode,
|
|
1647
1576
|
});
|
|
1648
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1649
1577
|
}
|
|
1650
1578
|
};
|
|
1651
1579
|
const deserializeAws_json1_1CreateTransitVirtualInterfaceCommand = async (output, context) => {
|
|
@@ -1667,7 +1595,6 @@ const deserializeAws_json1_1CreateTransitVirtualInterfaceCommandError = async (o
|
|
|
1667
1595
|
...output,
|
|
1668
1596
|
body: await parseBody(output.body, context),
|
|
1669
1597
|
};
|
|
1670
|
-
let response;
|
|
1671
1598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
1599
|
switch (errorCode) {
|
|
1673
1600
|
case "DirectConnectClientException":
|
|
@@ -1684,14 +1611,12 @@ const deserializeAws_json1_1CreateTransitVirtualInterfaceCommandError = async (o
|
|
|
1684
1611
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1685
1612
|
default:
|
|
1686
1613
|
const parsedBody = parsedOutput.body;
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
$metadata,
|
|
1614
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1615
|
+
output,
|
|
1616
|
+
parsedBody,
|
|
1617
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1618
|
+
errorCode,
|
|
1693
1619
|
});
|
|
1694
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1695
1620
|
}
|
|
1696
1621
|
};
|
|
1697
1622
|
const deserializeAws_json1_1DeleteBGPPeerCommand = async (output, context) => {
|
|
@@ -1713,7 +1638,6 @@ const deserializeAws_json1_1DeleteBGPPeerCommandError = async (output, context)
|
|
|
1713
1638
|
...output,
|
|
1714
1639
|
body: await parseBody(output.body, context),
|
|
1715
1640
|
};
|
|
1716
|
-
let response;
|
|
1717
1641
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
1642
|
switch (errorCode) {
|
|
1719
1643
|
case "DirectConnectClientException":
|
|
@@ -1724,14 +1648,12 @@ const deserializeAws_json1_1DeleteBGPPeerCommandError = async (output, context)
|
|
|
1724
1648
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1725
1649
|
default:
|
|
1726
1650
|
const parsedBody = parsedOutput.body;
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
$metadata,
|
|
1651
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1652
|
+
output,
|
|
1653
|
+
parsedBody,
|
|
1654
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1655
|
+
errorCode,
|
|
1733
1656
|
});
|
|
1734
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1735
1657
|
}
|
|
1736
1658
|
};
|
|
1737
1659
|
const deserializeAws_json1_1DeleteConnectionCommand = async (output, context) => {
|
|
@@ -1753,7 +1675,6 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1753
1675
|
...output,
|
|
1754
1676
|
body: await parseBody(output.body, context),
|
|
1755
1677
|
};
|
|
1756
|
-
let response;
|
|
1757
1678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1758
1679
|
switch (errorCode) {
|
|
1759
1680
|
case "DirectConnectClientException":
|
|
@@ -1764,14 +1685,12 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1764
1685
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1765
1686
|
default:
|
|
1766
1687
|
const parsedBody = parsedOutput.body;
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
$metadata,
|
|
1688
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1689
|
+
output,
|
|
1690
|
+
parsedBody,
|
|
1691
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1692
|
+
errorCode,
|
|
1773
1693
|
});
|
|
1774
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1775
1694
|
}
|
|
1776
1695
|
};
|
|
1777
1696
|
const deserializeAws_json1_1DeleteDirectConnectGatewayCommand = async (output, context) => {
|
|
@@ -1793,7 +1712,6 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayCommandError = async (outp
|
|
|
1793
1712
|
...output,
|
|
1794
1713
|
body: await parseBody(output.body, context),
|
|
1795
1714
|
};
|
|
1796
|
-
let response;
|
|
1797
1715
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1798
1716
|
switch (errorCode) {
|
|
1799
1717
|
case "DirectConnectClientException":
|
|
@@ -1804,14 +1722,12 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayCommandError = async (outp
|
|
|
1804
1722
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1805
1723
|
default:
|
|
1806
1724
|
const parsedBody = parsedOutput.body;
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
$metadata,
|
|
1725
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1726
|
+
output,
|
|
1727
|
+
parsedBody,
|
|
1728
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1729
|
+
errorCode,
|
|
1813
1730
|
});
|
|
1814
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1815
1731
|
}
|
|
1816
1732
|
};
|
|
1817
1733
|
const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommand = async (output, context) => {
|
|
@@ -1833,7 +1749,6 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommandError =
|
|
|
1833
1749
|
...output,
|
|
1834
1750
|
body: await parseBody(output.body, context),
|
|
1835
1751
|
};
|
|
1836
|
-
let response;
|
|
1837
1752
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
1753
|
switch (errorCode) {
|
|
1839
1754
|
case "DirectConnectClientException":
|
|
@@ -1844,14 +1759,12 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommandError =
|
|
|
1844
1759
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1845
1760
|
default:
|
|
1846
1761
|
const parsedBody = parsedOutput.body;
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
$metadata,
|
|
1762
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1763
|
+
output,
|
|
1764
|
+
parsedBody,
|
|
1765
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1766
|
+
errorCode,
|
|
1853
1767
|
});
|
|
1854
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1855
1768
|
}
|
|
1856
1769
|
};
|
|
1857
1770
|
const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommand = async (output, context) => {
|
|
@@ -1873,7 +1786,6 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommand
|
|
|
1873
1786
|
...output,
|
|
1874
1787
|
body: await parseBody(output.body, context),
|
|
1875
1788
|
};
|
|
1876
|
-
let response;
|
|
1877
1789
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1878
1790
|
switch (errorCode) {
|
|
1879
1791
|
case "DirectConnectClientException":
|
|
@@ -1884,14 +1796,12 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommand
|
|
|
1884
1796
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1885
1797
|
default:
|
|
1886
1798
|
const parsedBody = parsedOutput.body;
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
$metadata,
|
|
1799
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1800
|
+
output,
|
|
1801
|
+
parsedBody,
|
|
1802
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1803
|
+
errorCode,
|
|
1893
1804
|
});
|
|
1894
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1895
1805
|
}
|
|
1896
1806
|
};
|
|
1897
1807
|
const deserializeAws_json1_1DeleteInterconnectCommand = async (output, context) => {
|
|
@@ -1913,7 +1823,6 @@ const deserializeAws_json1_1DeleteInterconnectCommandError = async (output, cont
|
|
|
1913
1823
|
...output,
|
|
1914
1824
|
body: await parseBody(output.body, context),
|
|
1915
1825
|
};
|
|
1916
|
-
let response;
|
|
1917
1826
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1918
1827
|
switch (errorCode) {
|
|
1919
1828
|
case "DirectConnectClientException":
|
|
@@ -1924,14 +1833,12 @@ const deserializeAws_json1_1DeleteInterconnectCommandError = async (output, cont
|
|
|
1924
1833
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1925
1834
|
default:
|
|
1926
1835
|
const parsedBody = parsedOutput.body;
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
$metadata,
|
|
1836
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1837
|
+
output,
|
|
1838
|
+
parsedBody,
|
|
1839
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1840
|
+
errorCode,
|
|
1933
1841
|
});
|
|
1934
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1935
1842
|
}
|
|
1936
1843
|
};
|
|
1937
1844
|
const deserializeAws_json1_1DeleteLagCommand = async (output, context) => {
|
|
@@ -1953,7 +1860,6 @@ const deserializeAws_json1_1DeleteLagCommandError = async (output, context) => {
|
|
|
1953
1860
|
...output,
|
|
1954
1861
|
body: await parseBody(output.body, context),
|
|
1955
1862
|
};
|
|
1956
|
-
let response;
|
|
1957
1863
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
1864
|
switch (errorCode) {
|
|
1959
1865
|
case "DirectConnectClientException":
|
|
@@ -1964,14 +1870,12 @@ const deserializeAws_json1_1DeleteLagCommandError = async (output, context) => {
|
|
|
1964
1870
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1965
1871
|
default:
|
|
1966
1872
|
const parsedBody = parsedOutput.body;
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
$metadata,
|
|
1873
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1874
|
+
output,
|
|
1875
|
+
parsedBody,
|
|
1876
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1877
|
+
errorCode,
|
|
1973
1878
|
});
|
|
1974
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1975
1879
|
}
|
|
1976
1880
|
};
|
|
1977
1881
|
const deserializeAws_json1_1DeleteVirtualInterfaceCommand = async (output, context) => {
|
|
@@ -1993,7 +1897,6 @@ const deserializeAws_json1_1DeleteVirtualInterfaceCommandError = async (output,
|
|
|
1993
1897
|
...output,
|
|
1994
1898
|
body: await parseBody(output.body, context),
|
|
1995
1899
|
};
|
|
1996
|
-
let response;
|
|
1997
1900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1998
1901
|
switch (errorCode) {
|
|
1999
1902
|
case "DirectConnectClientException":
|
|
@@ -2004,14 +1907,12 @@ const deserializeAws_json1_1DeleteVirtualInterfaceCommandError = async (output,
|
|
|
2004
1907
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2005
1908
|
default:
|
|
2006
1909
|
const parsedBody = parsedOutput.body;
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
$metadata,
|
|
1910
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1911
|
+
output,
|
|
1912
|
+
parsedBody,
|
|
1913
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1914
|
+
errorCode,
|
|
2013
1915
|
});
|
|
2014
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2015
1916
|
}
|
|
2016
1917
|
};
|
|
2017
1918
|
const deserializeAws_json1_1DescribeConnectionLoaCommand = async (output, context) => {
|
|
@@ -2033,7 +1934,6 @@ const deserializeAws_json1_1DescribeConnectionLoaCommandError = async (output, c
|
|
|
2033
1934
|
...output,
|
|
2034
1935
|
body: await parseBody(output.body, context),
|
|
2035
1936
|
};
|
|
2036
|
-
let response;
|
|
2037
1937
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
1938
|
switch (errorCode) {
|
|
2039
1939
|
case "DirectConnectClientException":
|
|
@@ -2044,14 +1944,12 @@ const deserializeAws_json1_1DescribeConnectionLoaCommandError = async (output, c
|
|
|
2044
1944
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2045
1945
|
default:
|
|
2046
1946
|
const parsedBody = parsedOutput.body;
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
$metadata,
|
|
1947
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1948
|
+
output,
|
|
1949
|
+
parsedBody,
|
|
1950
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1951
|
+
errorCode,
|
|
2053
1952
|
});
|
|
2054
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2055
1953
|
}
|
|
2056
1954
|
};
|
|
2057
1955
|
const deserializeAws_json1_1DescribeConnectionsCommand = async (output, context) => {
|
|
@@ -2073,7 +1971,6 @@ const deserializeAws_json1_1DescribeConnectionsCommandError = async (output, con
|
|
|
2073
1971
|
...output,
|
|
2074
1972
|
body: await parseBody(output.body, context),
|
|
2075
1973
|
};
|
|
2076
|
-
let response;
|
|
2077
1974
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2078
1975
|
switch (errorCode) {
|
|
2079
1976
|
case "DirectConnectClientException":
|
|
@@ -2084,14 +1981,12 @@ const deserializeAws_json1_1DescribeConnectionsCommandError = async (output, con
|
|
|
2084
1981
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2085
1982
|
default:
|
|
2086
1983
|
const parsedBody = parsedOutput.body;
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
$metadata,
|
|
1984
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1985
|
+
output,
|
|
1986
|
+
parsedBody,
|
|
1987
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1988
|
+
errorCode,
|
|
2093
1989
|
});
|
|
2094
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2095
1990
|
}
|
|
2096
1991
|
};
|
|
2097
1992
|
const deserializeAws_json1_1DescribeConnectionsOnInterconnectCommand = async (output, context) => {
|
|
@@ -2113,7 +2008,6 @@ const deserializeAws_json1_1DescribeConnectionsOnInterconnectCommandError = asyn
|
|
|
2113
2008
|
...output,
|
|
2114
2009
|
body: await parseBody(output.body, context),
|
|
2115
2010
|
};
|
|
2116
|
-
let response;
|
|
2117
2011
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2118
2012
|
switch (errorCode) {
|
|
2119
2013
|
case "DirectConnectClientException":
|
|
@@ -2124,14 +2018,12 @@ const deserializeAws_json1_1DescribeConnectionsOnInterconnectCommandError = asyn
|
|
|
2124
2018
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2125
2019
|
default:
|
|
2126
2020
|
const parsedBody = parsedOutput.body;
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
$metadata,
|
|
2021
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2022
|
+
output,
|
|
2023
|
+
parsedBody,
|
|
2024
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2025
|
+
errorCode,
|
|
2133
2026
|
});
|
|
2134
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2135
2027
|
}
|
|
2136
2028
|
};
|
|
2137
2029
|
const deserializeAws_json1_1DescribeCustomerMetadataCommand = async (output, context) => {
|
|
@@ -2153,7 +2045,6 @@ const deserializeAws_json1_1DescribeCustomerMetadataCommandError = async (output
|
|
|
2153
2045
|
...output,
|
|
2154
2046
|
body: await parseBody(output.body, context),
|
|
2155
2047
|
};
|
|
2156
|
-
let response;
|
|
2157
2048
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2158
2049
|
switch (errorCode) {
|
|
2159
2050
|
case "DirectConnectClientException":
|
|
@@ -2164,14 +2055,12 @@ const deserializeAws_json1_1DescribeCustomerMetadataCommandError = async (output
|
|
|
2164
2055
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2165
2056
|
default:
|
|
2166
2057
|
const parsedBody = parsedOutput.body;
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
$metadata,
|
|
2058
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2059
|
+
output,
|
|
2060
|
+
parsedBody,
|
|
2061
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2062
|
+
errorCode,
|
|
2173
2063
|
});
|
|
2174
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2175
2064
|
}
|
|
2176
2065
|
};
|
|
2177
2066
|
const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsCommand = async (output, context) => {
|
|
@@ -2193,7 +2082,6 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsComm
|
|
|
2193
2082
|
...output,
|
|
2194
2083
|
body: await parseBody(output.body, context),
|
|
2195
2084
|
};
|
|
2196
|
-
let response;
|
|
2197
2085
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2198
2086
|
switch (errorCode) {
|
|
2199
2087
|
case "DirectConnectClientException":
|
|
@@ -2204,14 +2092,12 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsComm
|
|
|
2204
2092
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2205
2093
|
default:
|
|
2206
2094
|
const parsedBody = parsedOutput.body;
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
$metadata,
|
|
2095
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2096
|
+
output,
|
|
2097
|
+
parsedBody,
|
|
2098
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2099
|
+
errorCode,
|
|
2213
2100
|
});
|
|
2214
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2215
2101
|
}
|
|
2216
2102
|
};
|
|
2217
2103
|
const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommand = async (output, context) => {
|
|
@@ -2233,7 +2119,6 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommandError
|
|
|
2233
2119
|
...output,
|
|
2234
2120
|
body: await parseBody(output.body, context),
|
|
2235
2121
|
};
|
|
2236
|
-
let response;
|
|
2237
2122
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
2123
|
switch (errorCode) {
|
|
2239
2124
|
case "DirectConnectClientException":
|
|
@@ -2244,14 +2129,12 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommandError
|
|
|
2244
2129
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2245
2130
|
default:
|
|
2246
2131
|
const parsedBody = parsedOutput.body;
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
$metadata,
|
|
2132
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2133
|
+
output,
|
|
2134
|
+
parsedBody,
|
|
2135
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2136
|
+
errorCode,
|
|
2253
2137
|
});
|
|
2254
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2255
2138
|
}
|
|
2256
2139
|
};
|
|
2257
2140
|
const deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommand = async (output, context) => {
|
|
@@ -2273,7 +2156,6 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommandError
|
|
|
2273
2156
|
...output,
|
|
2274
2157
|
body: await parseBody(output.body, context),
|
|
2275
2158
|
};
|
|
2276
|
-
let response;
|
|
2277
2159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2278
2160
|
switch (errorCode) {
|
|
2279
2161
|
case "DirectConnectClientException":
|
|
@@ -2284,14 +2166,12 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommandError
|
|
|
2284
2166
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2285
2167
|
default:
|
|
2286
2168
|
const parsedBody = parsedOutput.body;
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
$metadata,
|
|
2169
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2170
|
+
output,
|
|
2171
|
+
parsedBody,
|
|
2172
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2173
|
+
errorCode,
|
|
2293
2174
|
});
|
|
2294
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2295
2175
|
}
|
|
2296
2176
|
};
|
|
2297
2177
|
const deserializeAws_json1_1DescribeDirectConnectGatewaysCommand = async (output, context) => {
|
|
@@ -2313,7 +2193,6 @@ const deserializeAws_json1_1DescribeDirectConnectGatewaysCommandError = async (o
|
|
|
2313
2193
|
...output,
|
|
2314
2194
|
body: await parseBody(output.body, context),
|
|
2315
2195
|
};
|
|
2316
|
-
let response;
|
|
2317
2196
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2318
2197
|
switch (errorCode) {
|
|
2319
2198
|
case "DirectConnectClientException":
|
|
@@ -2324,14 +2203,12 @@ const deserializeAws_json1_1DescribeDirectConnectGatewaysCommandError = async (o
|
|
|
2324
2203
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2325
2204
|
default:
|
|
2326
2205
|
const parsedBody = parsedOutput.body;
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
$metadata,
|
|
2206
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2207
|
+
output,
|
|
2208
|
+
parsedBody,
|
|
2209
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2210
|
+
errorCode,
|
|
2333
2211
|
});
|
|
2334
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2335
2212
|
}
|
|
2336
2213
|
};
|
|
2337
2214
|
const deserializeAws_json1_1DescribeHostedConnectionsCommand = async (output, context) => {
|
|
@@ -2353,7 +2230,6 @@ const deserializeAws_json1_1DescribeHostedConnectionsCommandError = async (outpu
|
|
|
2353
2230
|
...output,
|
|
2354
2231
|
body: await parseBody(output.body, context),
|
|
2355
2232
|
};
|
|
2356
|
-
let response;
|
|
2357
2233
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2358
2234
|
switch (errorCode) {
|
|
2359
2235
|
case "DirectConnectClientException":
|
|
@@ -2364,14 +2240,12 @@ const deserializeAws_json1_1DescribeHostedConnectionsCommandError = async (outpu
|
|
|
2364
2240
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2365
2241
|
default:
|
|
2366
2242
|
const parsedBody = parsedOutput.body;
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
$metadata,
|
|
2243
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2244
|
+
output,
|
|
2245
|
+
parsedBody,
|
|
2246
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2247
|
+
errorCode,
|
|
2373
2248
|
});
|
|
2374
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2375
2249
|
}
|
|
2376
2250
|
};
|
|
2377
2251
|
const deserializeAws_json1_1DescribeInterconnectLoaCommand = async (output, context) => {
|
|
@@ -2393,7 +2267,6 @@ const deserializeAws_json1_1DescribeInterconnectLoaCommandError = async (output,
|
|
|
2393
2267
|
...output,
|
|
2394
2268
|
body: await parseBody(output.body, context),
|
|
2395
2269
|
};
|
|
2396
|
-
let response;
|
|
2397
2270
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2398
2271
|
switch (errorCode) {
|
|
2399
2272
|
case "DirectConnectClientException":
|
|
@@ -2404,14 +2277,12 @@ const deserializeAws_json1_1DescribeInterconnectLoaCommandError = async (output,
|
|
|
2404
2277
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2405
2278
|
default:
|
|
2406
2279
|
const parsedBody = parsedOutput.body;
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
$metadata,
|
|
2280
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2281
|
+
output,
|
|
2282
|
+
parsedBody,
|
|
2283
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2284
|
+
errorCode,
|
|
2413
2285
|
});
|
|
2414
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2415
2286
|
}
|
|
2416
2287
|
};
|
|
2417
2288
|
const deserializeAws_json1_1DescribeInterconnectsCommand = async (output, context) => {
|
|
@@ -2433,7 +2304,6 @@ const deserializeAws_json1_1DescribeInterconnectsCommandError = async (output, c
|
|
|
2433
2304
|
...output,
|
|
2434
2305
|
body: await parseBody(output.body, context),
|
|
2435
2306
|
};
|
|
2436
|
-
let response;
|
|
2437
2307
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2438
2308
|
switch (errorCode) {
|
|
2439
2309
|
case "DirectConnectClientException":
|
|
@@ -2444,14 +2314,12 @@ const deserializeAws_json1_1DescribeInterconnectsCommandError = async (output, c
|
|
|
2444
2314
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2445
2315
|
default:
|
|
2446
2316
|
const parsedBody = parsedOutput.body;
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
$metadata,
|
|
2317
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2318
|
+
output,
|
|
2319
|
+
parsedBody,
|
|
2320
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2321
|
+
errorCode,
|
|
2453
2322
|
});
|
|
2454
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2455
2323
|
}
|
|
2456
2324
|
};
|
|
2457
2325
|
const deserializeAws_json1_1DescribeLagsCommand = async (output, context) => {
|
|
@@ -2473,7 +2341,6 @@ const deserializeAws_json1_1DescribeLagsCommandError = async (output, context) =
|
|
|
2473
2341
|
...output,
|
|
2474
2342
|
body: await parseBody(output.body, context),
|
|
2475
2343
|
};
|
|
2476
|
-
let response;
|
|
2477
2344
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
2345
|
switch (errorCode) {
|
|
2479
2346
|
case "DirectConnectClientException":
|
|
@@ -2484,14 +2351,12 @@ const deserializeAws_json1_1DescribeLagsCommandError = async (output, context) =
|
|
|
2484
2351
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2485
2352
|
default:
|
|
2486
2353
|
const parsedBody = parsedOutput.body;
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
$metadata,
|
|
2354
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2355
|
+
output,
|
|
2356
|
+
parsedBody,
|
|
2357
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2358
|
+
errorCode,
|
|
2493
2359
|
});
|
|
2494
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2495
2360
|
}
|
|
2496
2361
|
};
|
|
2497
2362
|
const deserializeAws_json1_1DescribeLoaCommand = async (output, context) => {
|
|
@@ -2513,7 +2378,6 @@ const deserializeAws_json1_1DescribeLoaCommandError = async (output, context) =>
|
|
|
2513
2378
|
...output,
|
|
2514
2379
|
body: await parseBody(output.body, context),
|
|
2515
2380
|
};
|
|
2516
|
-
let response;
|
|
2517
2381
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2518
2382
|
switch (errorCode) {
|
|
2519
2383
|
case "DirectConnectClientException":
|
|
@@ -2524,14 +2388,12 @@ const deserializeAws_json1_1DescribeLoaCommandError = async (output, context) =>
|
|
|
2524
2388
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2525
2389
|
default:
|
|
2526
2390
|
const parsedBody = parsedOutput.body;
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
$metadata,
|
|
2391
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2392
|
+
output,
|
|
2393
|
+
parsedBody,
|
|
2394
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2395
|
+
errorCode,
|
|
2533
2396
|
});
|
|
2534
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2535
2397
|
}
|
|
2536
2398
|
};
|
|
2537
2399
|
const deserializeAws_json1_1DescribeLocationsCommand = async (output, context) => {
|
|
@@ -2553,7 +2415,6 @@ const deserializeAws_json1_1DescribeLocationsCommandError = async (output, conte
|
|
|
2553
2415
|
...output,
|
|
2554
2416
|
body: await parseBody(output.body, context),
|
|
2555
2417
|
};
|
|
2556
|
-
let response;
|
|
2557
2418
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2558
2419
|
switch (errorCode) {
|
|
2559
2420
|
case "DirectConnectClientException":
|
|
@@ -2564,14 +2425,12 @@ const deserializeAws_json1_1DescribeLocationsCommandError = async (output, conte
|
|
|
2564
2425
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2565
2426
|
default:
|
|
2566
2427
|
const parsedBody = parsedOutput.body;
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
$metadata,
|
|
2428
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2429
|
+
output,
|
|
2430
|
+
parsedBody,
|
|
2431
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2432
|
+
errorCode,
|
|
2573
2433
|
});
|
|
2574
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2575
2434
|
}
|
|
2576
2435
|
};
|
|
2577
2436
|
const deserializeAws_json1_1DescribeRouterConfigurationCommand = async (output, context) => {
|
|
@@ -2593,7 +2452,6 @@ const deserializeAws_json1_1DescribeRouterConfigurationCommandError = async (out
|
|
|
2593
2452
|
...output,
|
|
2594
2453
|
body: await parseBody(output.body, context),
|
|
2595
2454
|
};
|
|
2596
|
-
let response;
|
|
2597
2455
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2598
2456
|
switch (errorCode) {
|
|
2599
2457
|
case "DirectConnectClientException":
|
|
@@ -2604,14 +2462,12 @@ const deserializeAws_json1_1DescribeRouterConfigurationCommandError = async (out
|
|
|
2604
2462
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2605
2463
|
default:
|
|
2606
2464
|
const parsedBody = parsedOutput.body;
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
$metadata,
|
|
2465
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2466
|
+
output,
|
|
2467
|
+
parsedBody,
|
|
2468
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2469
|
+
errorCode,
|
|
2613
2470
|
});
|
|
2614
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2615
2471
|
}
|
|
2616
2472
|
};
|
|
2617
2473
|
const deserializeAws_json1_1DescribeTagsCommand = async (output, context) => {
|
|
@@ -2633,7 +2489,6 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
2633
2489
|
...output,
|
|
2634
2490
|
body: await parseBody(output.body, context),
|
|
2635
2491
|
};
|
|
2636
|
-
let response;
|
|
2637
2492
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2638
2493
|
switch (errorCode) {
|
|
2639
2494
|
case "DirectConnectClientException":
|
|
@@ -2644,14 +2499,12 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
2644
2499
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2645
2500
|
default:
|
|
2646
2501
|
const parsedBody = parsedOutput.body;
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
$metadata,
|
|
2502
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2503
|
+
output,
|
|
2504
|
+
parsedBody,
|
|
2505
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2506
|
+
errorCode,
|
|
2653
2507
|
});
|
|
2654
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2655
2508
|
}
|
|
2656
2509
|
};
|
|
2657
2510
|
const deserializeAws_json1_1DescribeVirtualGatewaysCommand = async (output, context) => {
|
|
@@ -2673,7 +2526,6 @@ const deserializeAws_json1_1DescribeVirtualGatewaysCommandError = async (output,
|
|
|
2673
2526
|
...output,
|
|
2674
2527
|
body: await parseBody(output.body, context),
|
|
2675
2528
|
};
|
|
2676
|
-
let response;
|
|
2677
2529
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2678
2530
|
switch (errorCode) {
|
|
2679
2531
|
case "DirectConnectClientException":
|
|
@@ -2684,14 +2536,12 @@ const deserializeAws_json1_1DescribeVirtualGatewaysCommandError = async (output,
|
|
|
2684
2536
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2685
2537
|
default:
|
|
2686
2538
|
const parsedBody = parsedOutput.body;
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
$metadata,
|
|
2539
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2540
|
+
output,
|
|
2541
|
+
parsedBody,
|
|
2542
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2543
|
+
errorCode,
|
|
2693
2544
|
});
|
|
2694
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2695
2545
|
}
|
|
2696
2546
|
};
|
|
2697
2547
|
const deserializeAws_json1_1DescribeVirtualInterfacesCommand = async (output, context) => {
|
|
@@ -2713,7 +2563,6 @@ const deserializeAws_json1_1DescribeVirtualInterfacesCommandError = async (outpu
|
|
|
2713
2563
|
...output,
|
|
2714
2564
|
body: await parseBody(output.body, context),
|
|
2715
2565
|
};
|
|
2716
|
-
let response;
|
|
2717
2566
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2718
2567
|
switch (errorCode) {
|
|
2719
2568
|
case "DirectConnectClientException":
|
|
@@ -2724,14 +2573,12 @@ const deserializeAws_json1_1DescribeVirtualInterfacesCommandError = async (outpu
|
|
|
2724
2573
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2725
2574
|
default:
|
|
2726
2575
|
const parsedBody = parsedOutput.body;
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
$metadata,
|
|
2576
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2577
|
+
output,
|
|
2578
|
+
parsedBody,
|
|
2579
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2580
|
+
errorCode,
|
|
2733
2581
|
});
|
|
2734
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2735
2582
|
}
|
|
2736
2583
|
};
|
|
2737
2584
|
const deserializeAws_json1_1DisassociateConnectionFromLagCommand = async (output, context) => {
|
|
@@ -2753,7 +2600,6 @@ const deserializeAws_json1_1DisassociateConnectionFromLagCommandError = async (o
|
|
|
2753
2600
|
...output,
|
|
2754
2601
|
body: await parseBody(output.body, context),
|
|
2755
2602
|
};
|
|
2756
|
-
let response;
|
|
2757
2603
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2758
2604
|
switch (errorCode) {
|
|
2759
2605
|
case "DirectConnectClientException":
|
|
@@ -2764,14 +2610,12 @@ const deserializeAws_json1_1DisassociateConnectionFromLagCommandError = async (o
|
|
|
2764
2610
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2765
2611
|
default:
|
|
2766
2612
|
const parsedBody = parsedOutput.body;
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
$metadata,
|
|
2613
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2614
|
+
output,
|
|
2615
|
+
parsedBody,
|
|
2616
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2617
|
+
errorCode,
|
|
2773
2618
|
});
|
|
2774
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2775
2619
|
}
|
|
2776
2620
|
};
|
|
2777
2621
|
const deserializeAws_json1_1DisassociateMacSecKeyCommand = async (output, context) => {
|
|
@@ -2793,7 +2637,6 @@ const deserializeAws_json1_1DisassociateMacSecKeyCommandError = async (output, c
|
|
|
2793
2637
|
...output,
|
|
2794
2638
|
body: await parseBody(output.body, context),
|
|
2795
2639
|
};
|
|
2796
|
-
let response;
|
|
2797
2640
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
2641
|
switch (errorCode) {
|
|
2799
2642
|
case "DirectConnectClientException":
|
|
@@ -2804,14 +2647,12 @@ const deserializeAws_json1_1DisassociateMacSecKeyCommandError = async (output, c
|
|
|
2804
2647
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2805
2648
|
default:
|
|
2806
2649
|
const parsedBody = parsedOutput.body;
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
$metadata,
|
|
2650
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2651
|
+
output,
|
|
2652
|
+
parsedBody,
|
|
2653
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2654
|
+
errorCode,
|
|
2813
2655
|
});
|
|
2814
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2815
2656
|
}
|
|
2816
2657
|
};
|
|
2817
2658
|
const deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommand = async (output, context) => {
|
|
@@ -2833,7 +2674,6 @@ const deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommandError = async
|
|
|
2833
2674
|
...output,
|
|
2834
2675
|
body: await parseBody(output.body, context),
|
|
2835
2676
|
};
|
|
2836
|
-
let response;
|
|
2837
2677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2838
2678
|
switch (errorCode) {
|
|
2839
2679
|
case "DirectConnectClientException":
|
|
@@ -2844,14 +2684,12 @@ const deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommandError = async
|
|
|
2844
2684
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2845
2685
|
default:
|
|
2846
2686
|
const parsedBody = parsedOutput.body;
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
$metadata,
|
|
2687
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2688
|
+
output,
|
|
2689
|
+
parsedBody,
|
|
2690
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2691
|
+
errorCode,
|
|
2853
2692
|
});
|
|
2854
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2855
2693
|
}
|
|
2856
2694
|
};
|
|
2857
2695
|
const deserializeAws_json1_1StartBgpFailoverTestCommand = async (output, context) => {
|
|
@@ -2873,7 +2711,6 @@ const deserializeAws_json1_1StartBgpFailoverTestCommandError = async (output, co
|
|
|
2873
2711
|
...output,
|
|
2874
2712
|
body: await parseBody(output.body, context),
|
|
2875
2713
|
};
|
|
2876
|
-
let response;
|
|
2877
2714
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2878
2715
|
switch (errorCode) {
|
|
2879
2716
|
case "DirectConnectClientException":
|
|
@@ -2884,14 +2721,12 @@ const deserializeAws_json1_1StartBgpFailoverTestCommandError = async (output, co
|
|
|
2884
2721
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2885
2722
|
default:
|
|
2886
2723
|
const parsedBody = parsedOutput.body;
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
$metadata,
|
|
2724
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2725
|
+
output,
|
|
2726
|
+
parsedBody,
|
|
2727
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2728
|
+
errorCode,
|
|
2893
2729
|
});
|
|
2894
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2895
2730
|
}
|
|
2896
2731
|
};
|
|
2897
2732
|
const deserializeAws_json1_1StopBgpFailoverTestCommand = async (output, context) => {
|
|
@@ -2913,7 +2748,6 @@ const deserializeAws_json1_1StopBgpFailoverTestCommandError = async (output, con
|
|
|
2913
2748
|
...output,
|
|
2914
2749
|
body: await parseBody(output.body, context),
|
|
2915
2750
|
};
|
|
2916
|
-
let response;
|
|
2917
2751
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2918
2752
|
switch (errorCode) {
|
|
2919
2753
|
case "DirectConnectClientException":
|
|
@@ -2924,14 +2758,12 @@ const deserializeAws_json1_1StopBgpFailoverTestCommandError = async (output, con
|
|
|
2924
2758
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2925
2759
|
default:
|
|
2926
2760
|
const parsedBody = parsedOutput.body;
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
$metadata,
|
|
2761
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2762
|
+
output,
|
|
2763
|
+
parsedBody,
|
|
2764
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2765
|
+
errorCode,
|
|
2933
2766
|
});
|
|
2934
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2935
2767
|
}
|
|
2936
2768
|
};
|
|
2937
2769
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -2953,7 +2785,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2953
2785
|
...output,
|
|
2954
2786
|
body: await parseBody(output.body, context),
|
|
2955
2787
|
};
|
|
2956
|
-
let response;
|
|
2957
2788
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2958
2789
|
switch (errorCode) {
|
|
2959
2790
|
case "DirectConnectClientException":
|
|
@@ -2970,14 +2801,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2970
2801
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2971
2802
|
default:
|
|
2972
2803
|
const parsedBody = parsedOutput.body;
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
$metadata,
|
|
2804
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2805
|
+
output,
|
|
2806
|
+
parsedBody,
|
|
2807
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2808
|
+
errorCode,
|
|
2979
2809
|
});
|
|
2980
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2981
2810
|
}
|
|
2982
2811
|
};
|
|
2983
2812
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -2999,7 +2828,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2999
2828
|
...output,
|
|
3000
2829
|
body: await parseBody(output.body, context),
|
|
3001
2830
|
};
|
|
3002
|
-
let response;
|
|
3003
2831
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3004
2832
|
switch (errorCode) {
|
|
3005
2833
|
case "DirectConnectClientException":
|
|
@@ -3010,14 +2838,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3010
2838
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3011
2839
|
default:
|
|
3012
2840
|
const parsedBody = parsedOutput.body;
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
$metadata,
|
|
2841
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2842
|
+
output,
|
|
2843
|
+
parsedBody,
|
|
2844
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2845
|
+
errorCode,
|
|
3019
2846
|
});
|
|
3020
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3021
2847
|
}
|
|
3022
2848
|
};
|
|
3023
2849
|
const deserializeAws_json1_1UpdateConnectionCommand = async (output, context) => {
|
|
@@ -3039,7 +2865,6 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
3039
2865
|
...output,
|
|
3040
2866
|
body: await parseBody(output.body, context),
|
|
3041
2867
|
};
|
|
3042
|
-
let response;
|
|
3043
2868
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3044
2869
|
switch (errorCode) {
|
|
3045
2870
|
case "DirectConnectClientException":
|
|
@@ -3050,14 +2875,12 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
3050
2875
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3051
2876
|
default:
|
|
3052
2877
|
const parsedBody = parsedOutput.body;
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
$metadata,
|
|
2878
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2879
|
+
output,
|
|
2880
|
+
parsedBody,
|
|
2881
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2882
|
+
errorCode,
|
|
3059
2883
|
});
|
|
3060
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3061
2884
|
}
|
|
3062
2885
|
};
|
|
3063
2886
|
const deserializeAws_json1_1UpdateDirectConnectGatewayCommand = async (output, context) => {
|
|
@@ -3079,7 +2902,6 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayCommandError = async (outp
|
|
|
3079
2902
|
...output,
|
|
3080
2903
|
body: await parseBody(output.body, context),
|
|
3081
2904
|
};
|
|
3082
|
-
let response;
|
|
3083
2905
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3084
2906
|
switch (errorCode) {
|
|
3085
2907
|
case "DirectConnectClientException":
|
|
@@ -3090,14 +2912,12 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayCommandError = async (outp
|
|
|
3090
2912
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3091
2913
|
default:
|
|
3092
2914
|
const parsedBody = parsedOutput.body;
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
$metadata,
|
|
2915
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2916
|
+
output,
|
|
2917
|
+
parsedBody,
|
|
2918
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2919
|
+
errorCode,
|
|
3099
2920
|
});
|
|
3100
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3101
2921
|
}
|
|
3102
2922
|
};
|
|
3103
2923
|
const deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommand = async (output, context) => {
|
|
@@ -3119,7 +2939,6 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommandError =
|
|
|
3119
2939
|
...output,
|
|
3120
2940
|
body: await parseBody(output.body, context),
|
|
3121
2941
|
};
|
|
3122
|
-
let response;
|
|
3123
2942
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3124
2943
|
switch (errorCode) {
|
|
3125
2944
|
case "DirectConnectClientException":
|
|
@@ -3130,14 +2949,12 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommandError =
|
|
|
3130
2949
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3131
2950
|
default:
|
|
3132
2951
|
const parsedBody = parsedOutput.body;
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
$metadata,
|
|
2952
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2953
|
+
output,
|
|
2954
|
+
parsedBody,
|
|
2955
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2956
|
+
errorCode,
|
|
3139
2957
|
});
|
|
3140
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3141
2958
|
}
|
|
3142
2959
|
};
|
|
3143
2960
|
const deserializeAws_json1_1UpdateLagCommand = async (output, context) => {
|
|
@@ -3159,7 +2976,6 @@ const deserializeAws_json1_1UpdateLagCommandError = async (output, context) => {
|
|
|
3159
2976
|
...output,
|
|
3160
2977
|
body: await parseBody(output.body, context),
|
|
3161
2978
|
};
|
|
3162
|
-
let response;
|
|
3163
2979
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3164
2980
|
switch (errorCode) {
|
|
3165
2981
|
case "DirectConnectClientException":
|
|
@@ -3170,14 +2986,12 @@ const deserializeAws_json1_1UpdateLagCommandError = async (output, context) => {
|
|
|
3170
2986
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3171
2987
|
default:
|
|
3172
2988
|
const parsedBody = parsedOutput.body;
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
$metadata,
|
|
2989
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2990
|
+
output,
|
|
2991
|
+
parsedBody,
|
|
2992
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2993
|
+
errorCode,
|
|
3179
2994
|
});
|
|
3180
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3181
2995
|
}
|
|
3182
2996
|
};
|
|
3183
2997
|
const deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommand = async (output, context) => {
|
|
@@ -3199,7 +3013,6 @@ const deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommandError = async
|
|
|
3199
3013
|
...output,
|
|
3200
3014
|
body: await parseBody(output.body, context),
|
|
3201
3015
|
};
|
|
3202
|
-
let response;
|
|
3203
3016
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3204
3017
|
switch (errorCode) {
|
|
3205
3018
|
case "DirectConnectClientException":
|
|
@@ -3210,14 +3023,12 @@ const deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommandError = async
|
|
|
3210
3023
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3211
3024
|
default:
|
|
3212
3025
|
const parsedBody = parsedOutput.body;
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
$metadata,
|
|
3026
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3027
|
+
output,
|
|
3028
|
+
parsedBody,
|
|
3029
|
+
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
3030
|
+
errorCode,
|
|
3219
3031
|
});
|
|
3220
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3221
3032
|
}
|
|
3222
3033
|
};
|
|
3223
3034
|
const deserializeAws_json1_1DirectConnectClientExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -3344,9 +3155,6 @@ const serializeAws_json1_1BGPPeerIdList = (input, context) => {
|
|
|
3344
3155
|
return input
|
|
3345
3156
|
.filter((e) => e != null)
|
|
3346
3157
|
.map((entry) => {
|
|
3347
|
-
if (entry === null) {
|
|
3348
|
-
return null;
|
|
3349
|
-
}
|
|
3350
3158
|
return entry;
|
|
3351
3159
|
});
|
|
3352
3160
|
};
|
|
@@ -3741,9 +3549,6 @@ const serializeAws_json1_1ResourceArnList = (input, context) => {
|
|
|
3741
3549
|
return input
|
|
3742
3550
|
.filter((e) => e != null)
|
|
3743
3551
|
.map((entry) => {
|
|
3744
|
-
if (entry === null) {
|
|
3745
|
-
return null;
|
|
3746
|
-
}
|
|
3747
3552
|
return entry;
|
|
3748
3553
|
});
|
|
3749
3554
|
};
|
|
@@ -3756,9 +3561,6 @@ const serializeAws_json1_1RouteFilterPrefixList = (input, context) => {
|
|
|
3756
3561
|
return input
|
|
3757
3562
|
.filter((e) => e != null)
|
|
3758
3563
|
.map((entry) => {
|
|
3759
|
-
if (entry === null) {
|
|
3760
|
-
return null;
|
|
3761
|
-
}
|
|
3762
3564
|
return serializeAws_json1_1RouteFilterPrefix(entry, context);
|
|
3763
3565
|
});
|
|
3764
3566
|
};
|
|
@@ -3784,9 +3586,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
3784
3586
|
return input
|
|
3785
3587
|
.filter((e) => e != null)
|
|
3786
3588
|
.map((entry) => {
|
|
3787
|
-
if (entry === null) {
|
|
3788
|
-
return null;
|
|
3789
|
-
}
|
|
3790
3589
|
return entry;
|
|
3791
3590
|
});
|
|
3792
3591
|
};
|
|
@@ -3794,9 +3593,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
3794
3593
|
return input
|
|
3795
3594
|
.filter((e) => e != null)
|
|
3796
3595
|
.map((entry) => {
|
|
3797
|
-
if (entry === null) {
|
|
3798
|
-
return null;
|
|
3799
|
-
}
|
|
3800
3596
|
return serializeAws_json1_1Tag(entry, context);
|
|
3801
3597
|
});
|
|
3802
3598
|
};
|