@aws-sdk/client-direct-connect 3.112.0 → 3.121.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +315 -253
- package/dist-es/protocols/Aws_json1_1.js +315 -253
- package/package.json +6 -6
|
@@ -654,8 +654,7 @@ const deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommand
|
|
|
654
654
|
body: await parseBody(output.body, context),
|
|
655
655
|
};
|
|
656
656
|
let response;
|
|
657
|
-
|
|
658
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
658
|
switch (errorCode) {
|
|
660
659
|
case "DirectConnectClientException":
|
|
661
660
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -665,10 +664,12 @@ const deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommand
|
|
|
665
664
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
666
665
|
default:
|
|
667
666
|
const parsedBody = parsedOutput.body;
|
|
667
|
+
const $metadata = deserializeMetadata(output);
|
|
668
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
668
669
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
669
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
670
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
670
671
|
$fault: "client",
|
|
671
|
-
$metadata
|
|
672
|
+
$metadata,
|
|
672
673
|
});
|
|
673
674
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
674
675
|
}
|
|
@@ -693,8 +694,7 @@ const deserializeAws_json1_1AllocateConnectionOnInterconnectCommandError = async
|
|
|
693
694
|
body: await parseBody(output.body, context),
|
|
694
695
|
};
|
|
695
696
|
let response;
|
|
696
|
-
|
|
697
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
698
698
|
switch (errorCode) {
|
|
699
699
|
case "DirectConnectClientException":
|
|
700
700
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -704,10 +704,12 @@ const deserializeAws_json1_1AllocateConnectionOnInterconnectCommandError = async
|
|
|
704
704
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
705
705
|
default:
|
|
706
706
|
const parsedBody = parsedOutput.body;
|
|
707
|
+
const $metadata = deserializeMetadata(output);
|
|
708
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
707
709
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
708
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
710
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
709
711
|
$fault: "client",
|
|
710
|
-
$metadata
|
|
712
|
+
$metadata,
|
|
711
713
|
});
|
|
712
714
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
713
715
|
}
|
|
@@ -732,8 +734,7 @@ const deserializeAws_json1_1AllocateHostedConnectionCommandError = async (output
|
|
|
732
734
|
body: await parseBody(output.body, context),
|
|
733
735
|
};
|
|
734
736
|
let response;
|
|
735
|
-
|
|
736
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
738
|
switch (errorCode) {
|
|
738
739
|
case "DirectConnectClientException":
|
|
739
740
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -749,10 +750,12 @@ const deserializeAws_json1_1AllocateHostedConnectionCommandError = async (output
|
|
|
749
750
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
750
751
|
default:
|
|
751
752
|
const parsedBody = parsedOutput.body;
|
|
753
|
+
const $metadata = deserializeMetadata(output);
|
|
754
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
752
755
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
753
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
756
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
754
757
|
$fault: "client",
|
|
755
|
-
$metadata
|
|
758
|
+
$metadata,
|
|
756
759
|
});
|
|
757
760
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
758
761
|
}
|
|
@@ -777,8 +780,7 @@ const deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommandError = async
|
|
|
777
780
|
body: await parseBody(output.body, context),
|
|
778
781
|
};
|
|
779
782
|
let response;
|
|
780
|
-
|
|
781
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
784
|
switch (errorCode) {
|
|
783
785
|
case "DirectConnectClientException":
|
|
784
786
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -794,10 +796,12 @@ const deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommandError = async
|
|
|
794
796
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
795
797
|
default:
|
|
796
798
|
const parsedBody = parsedOutput.body;
|
|
799
|
+
const $metadata = deserializeMetadata(output);
|
|
800
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
797
801
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
798
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
802
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
799
803
|
$fault: "client",
|
|
800
|
-
$metadata
|
|
804
|
+
$metadata,
|
|
801
805
|
});
|
|
802
806
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
803
807
|
}
|
|
@@ -822,8 +826,7 @@ const deserializeAws_json1_1AllocatePublicVirtualInterfaceCommandError = async (
|
|
|
822
826
|
body: await parseBody(output.body, context),
|
|
823
827
|
};
|
|
824
828
|
let response;
|
|
825
|
-
|
|
826
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
830
|
switch (errorCode) {
|
|
828
831
|
case "DirectConnectClientException":
|
|
829
832
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -839,10 +842,12 @@ const deserializeAws_json1_1AllocatePublicVirtualInterfaceCommandError = async (
|
|
|
839
842
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
840
843
|
default:
|
|
841
844
|
const parsedBody = parsedOutput.body;
|
|
845
|
+
const $metadata = deserializeMetadata(output);
|
|
846
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
842
847
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
843
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
848
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
844
849
|
$fault: "client",
|
|
845
|
-
$metadata
|
|
850
|
+
$metadata,
|
|
846
851
|
});
|
|
847
852
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
848
853
|
}
|
|
@@ -867,8 +872,7 @@ const deserializeAws_json1_1AllocateTransitVirtualInterfaceCommandError = async
|
|
|
867
872
|
body: await parseBody(output.body, context),
|
|
868
873
|
};
|
|
869
874
|
let response;
|
|
870
|
-
|
|
871
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
876
|
switch (errorCode) {
|
|
873
877
|
case "DirectConnectClientException":
|
|
874
878
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -884,10 +888,12 @@ const deserializeAws_json1_1AllocateTransitVirtualInterfaceCommandError = async
|
|
|
884
888
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
885
889
|
default:
|
|
886
890
|
const parsedBody = parsedOutput.body;
|
|
891
|
+
const $metadata = deserializeMetadata(output);
|
|
892
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
887
893
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
894
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
889
895
|
$fault: "client",
|
|
890
|
-
$metadata
|
|
896
|
+
$metadata,
|
|
891
897
|
});
|
|
892
898
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
893
899
|
}
|
|
@@ -912,8 +918,7 @@ const deserializeAws_json1_1AssociateConnectionWithLagCommandError = async (outp
|
|
|
912
918
|
body: await parseBody(output.body, context),
|
|
913
919
|
};
|
|
914
920
|
let response;
|
|
915
|
-
|
|
916
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
922
|
switch (errorCode) {
|
|
918
923
|
case "DirectConnectClientException":
|
|
919
924
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -923,10 +928,12 @@ const deserializeAws_json1_1AssociateConnectionWithLagCommandError = async (outp
|
|
|
923
928
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
924
929
|
default:
|
|
925
930
|
const parsedBody = parsedOutput.body;
|
|
931
|
+
const $metadata = deserializeMetadata(output);
|
|
932
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
926
933
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
927
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
934
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
928
935
|
$fault: "client",
|
|
929
|
-
$metadata
|
|
936
|
+
$metadata,
|
|
930
937
|
});
|
|
931
938
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
932
939
|
}
|
|
@@ -951,8 +958,7 @@ const deserializeAws_json1_1AssociateHostedConnectionCommandError = async (outpu
|
|
|
951
958
|
body: await parseBody(output.body, context),
|
|
952
959
|
};
|
|
953
960
|
let response;
|
|
954
|
-
|
|
955
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
962
|
switch (errorCode) {
|
|
957
963
|
case "DirectConnectClientException":
|
|
958
964
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -962,10 +968,12 @@ const deserializeAws_json1_1AssociateHostedConnectionCommandError = async (outpu
|
|
|
962
968
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
963
969
|
default:
|
|
964
970
|
const parsedBody = parsedOutput.body;
|
|
971
|
+
const $metadata = deserializeMetadata(output);
|
|
972
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
965
973
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
966
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
974
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
967
975
|
$fault: "client",
|
|
968
|
-
$metadata
|
|
976
|
+
$metadata,
|
|
969
977
|
});
|
|
970
978
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
971
979
|
}
|
|
@@ -990,8 +998,7 @@ const deserializeAws_json1_1AssociateMacSecKeyCommandError = async (output, cont
|
|
|
990
998
|
body: await parseBody(output.body, context),
|
|
991
999
|
};
|
|
992
1000
|
let response;
|
|
993
|
-
|
|
994
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
995
1002
|
switch (errorCode) {
|
|
996
1003
|
case "DirectConnectClientException":
|
|
997
1004
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1001,10 +1008,12 @@ const deserializeAws_json1_1AssociateMacSecKeyCommandError = async (output, cont
|
|
|
1001
1008
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1002
1009
|
default:
|
|
1003
1010
|
const parsedBody = parsedOutput.body;
|
|
1011
|
+
const $metadata = deserializeMetadata(output);
|
|
1012
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1004
1013
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1005
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1014
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1006
1015
|
$fault: "client",
|
|
1007
|
-
$metadata
|
|
1016
|
+
$metadata,
|
|
1008
1017
|
});
|
|
1009
1018
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1010
1019
|
}
|
|
@@ -1029,8 +1038,7 @@ const deserializeAws_json1_1AssociateVirtualInterfaceCommandError = async (outpu
|
|
|
1029
1038
|
body: await parseBody(output.body, context),
|
|
1030
1039
|
};
|
|
1031
1040
|
let response;
|
|
1032
|
-
|
|
1033
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
1042
|
switch (errorCode) {
|
|
1035
1043
|
case "DirectConnectClientException":
|
|
1036
1044
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1040,10 +1048,12 @@ const deserializeAws_json1_1AssociateVirtualInterfaceCommandError = async (outpu
|
|
|
1040
1048
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1041
1049
|
default:
|
|
1042
1050
|
const parsedBody = parsedOutput.body;
|
|
1051
|
+
const $metadata = deserializeMetadata(output);
|
|
1052
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1043
1053
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1044
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1054
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1045
1055
|
$fault: "client",
|
|
1046
|
-
$metadata
|
|
1056
|
+
$metadata,
|
|
1047
1057
|
});
|
|
1048
1058
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1049
1059
|
}
|
|
@@ -1068,8 +1078,7 @@ const deserializeAws_json1_1ConfirmConnectionCommandError = async (output, conte
|
|
|
1068
1078
|
body: await parseBody(output.body, context),
|
|
1069
1079
|
};
|
|
1070
1080
|
let response;
|
|
1071
|
-
|
|
1072
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
1082
|
switch (errorCode) {
|
|
1074
1083
|
case "DirectConnectClientException":
|
|
1075
1084
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1079,10 +1088,12 @@ const deserializeAws_json1_1ConfirmConnectionCommandError = async (output, conte
|
|
|
1079
1088
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1080
1089
|
default:
|
|
1081
1090
|
const parsedBody = parsedOutput.body;
|
|
1091
|
+
const $metadata = deserializeMetadata(output);
|
|
1092
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1082
1093
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1083
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1094
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1084
1095
|
$fault: "client",
|
|
1085
|
-
$metadata
|
|
1096
|
+
$metadata,
|
|
1086
1097
|
});
|
|
1087
1098
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1088
1099
|
}
|
|
@@ -1107,8 +1118,7 @@ const deserializeAws_json1_1ConfirmCustomerAgreementCommandError = async (output
|
|
|
1107
1118
|
body: await parseBody(output.body, context),
|
|
1108
1119
|
};
|
|
1109
1120
|
let response;
|
|
1110
|
-
|
|
1111
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1121
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1112
1122
|
switch (errorCode) {
|
|
1113
1123
|
case "DirectConnectClientException":
|
|
1114
1124
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1118,10 +1128,12 @@ const deserializeAws_json1_1ConfirmCustomerAgreementCommandError = async (output
|
|
|
1118
1128
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1119
1129
|
default:
|
|
1120
1130
|
const parsedBody = parsedOutput.body;
|
|
1131
|
+
const $metadata = deserializeMetadata(output);
|
|
1132
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1121
1133
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1122
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1134
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1123
1135
|
$fault: "client",
|
|
1124
|
-
$metadata
|
|
1136
|
+
$metadata,
|
|
1125
1137
|
});
|
|
1126
1138
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1127
1139
|
}
|
|
@@ -1146,8 +1158,7 @@ const deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommandError = async (
|
|
|
1146
1158
|
body: await parseBody(output.body, context),
|
|
1147
1159
|
};
|
|
1148
1160
|
let response;
|
|
1149
|
-
|
|
1150
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
1162
|
switch (errorCode) {
|
|
1152
1163
|
case "DirectConnectClientException":
|
|
1153
1164
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1157,10 +1168,12 @@ const deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommandError = async (
|
|
|
1157
1168
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1158
1169
|
default:
|
|
1159
1170
|
const parsedBody = parsedOutput.body;
|
|
1171
|
+
const $metadata = deserializeMetadata(output);
|
|
1172
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1160
1173
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1161
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1174
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1162
1175
|
$fault: "client",
|
|
1163
|
-
$metadata
|
|
1176
|
+
$metadata,
|
|
1164
1177
|
});
|
|
1165
1178
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1166
1179
|
}
|
|
@@ -1185,8 +1198,7 @@ const deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommandError = async (o
|
|
|
1185
1198
|
body: await parseBody(output.body, context),
|
|
1186
1199
|
};
|
|
1187
1200
|
let response;
|
|
1188
|
-
|
|
1189
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
1202
|
switch (errorCode) {
|
|
1191
1203
|
case "DirectConnectClientException":
|
|
1192
1204
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1196,10 +1208,12 @@ const deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommandError = async (o
|
|
|
1196
1208
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1197
1209
|
default:
|
|
1198
1210
|
const parsedBody = parsedOutput.body;
|
|
1211
|
+
const $metadata = deserializeMetadata(output);
|
|
1212
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1199
1213
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1214
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1201
1215
|
$fault: "client",
|
|
1202
|
-
$metadata
|
|
1216
|
+
$metadata,
|
|
1203
1217
|
});
|
|
1204
1218
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1205
1219
|
}
|
|
@@ -1224,8 +1238,7 @@ const deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommandError = async (
|
|
|
1224
1238
|
body: await parseBody(output.body, context),
|
|
1225
1239
|
};
|
|
1226
1240
|
let response;
|
|
1227
|
-
|
|
1228
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
1242
|
switch (errorCode) {
|
|
1230
1243
|
case "DirectConnectClientException":
|
|
1231
1244
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1235,10 +1248,12 @@ const deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommandError = async (
|
|
|
1235
1248
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1236
1249
|
default:
|
|
1237
1250
|
const parsedBody = parsedOutput.body;
|
|
1251
|
+
const $metadata = deserializeMetadata(output);
|
|
1252
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1238
1253
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1239
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1254
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1240
1255
|
$fault: "client",
|
|
1241
|
-
$metadata
|
|
1256
|
+
$metadata,
|
|
1242
1257
|
});
|
|
1243
1258
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1244
1259
|
}
|
|
@@ -1263,8 +1278,7 @@ const deserializeAws_json1_1CreateBGPPeerCommandError = async (output, context)
|
|
|
1263
1278
|
body: await parseBody(output.body, context),
|
|
1264
1279
|
};
|
|
1265
1280
|
let response;
|
|
1266
|
-
|
|
1267
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
1282
|
switch (errorCode) {
|
|
1269
1283
|
case "DirectConnectClientException":
|
|
1270
1284
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1274,10 +1288,12 @@ const deserializeAws_json1_1CreateBGPPeerCommandError = async (output, context)
|
|
|
1274
1288
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1275
1289
|
default:
|
|
1276
1290
|
const parsedBody = parsedOutput.body;
|
|
1291
|
+
const $metadata = deserializeMetadata(output);
|
|
1292
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1277
1293
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1278
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1294
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1279
1295
|
$fault: "client",
|
|
1280
|
-
$metadata
|
|
1296
|
+
$metadata,
|
|
1281
1297
|
});
|
|
1282
1298
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1283
1299
|
}
|
|
@@ -1302,8 +1318,7 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
1302
1318
|
body: await parseBody(output.body, context),
|
|
1303
1319
|
};
|
|
1304
1320
|
let response;
|
|
1305
|
-
|
|
1306
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
1322
|
switch (errorCode) {
|
|
1308
1323
|
case "DirectConnectClientException":
|
|
1309
1324
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1319,10 +1334,12 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
1319
1334
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1320
1335
|
default:
|
|
1321
1336
|
const parsedBody = parsedOutput.body;
|
|
1337
|
+
const $metadata = deserializeMetadata(output);
|
|
1338
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1322
1339
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1323
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1340
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1324
1341
|
$fault: "client",
|
|
1325
|
-
$metadata
|
|
1342
|
+
$metadata,
|
|
1326
1343
|
});
|
|
1327
1344
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1328
1345
|
}
|
|
@@ -1347,8 +1364,7 @@ const deserializeAws_json1_1CreateDirectConnectGatewayCommandError = async (outp
|
|
|
1347
1364
|
body: await parseBody(output.body, context),
|
|
1348
1365
|
};
|
|
1349
1366
|
let response;
|
|
1350
|
-
|
|
1351
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
1368
|
switch (errorCode) {
|
|
1353
1369
|
case "DirectConnectClientException":
|
|
1354
1370
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1358,10 +1374,12 @@ const deserializeAws_json1_1CreateDirectConnectGatewayCommandError = async (outp
|
|
|
1358
1374
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1359
1375
|
default:
|
|
1360
1376
|
const parsedBody = parsedOutput.body;
|
|
1377
|
+
const $metadata = deserializeMetadata(output);
|
|
1378
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1361
1379
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1362
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1380
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1363
1381
|
$fault: "client",
|
|
1364
|
-
$metadata
|
|
1382
|
+
$metadata,
|
|
1365
1383
|
});
|
|
1366
1384
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1367
1385
|
}
|
|
@@ -1386,8 +1404,7 @@ const deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommandError =
|
|
|
1386
1404
|
body: await parseBody(output.body, context),
|
|
1387
1405
|
};
|
|
1388
1406
|
let response;
|
|
1389
|
-
|
|
1390
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1407
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
1408
|
switch (errorCode) {
|
|
1392
1409
|
case "DirectConnectClientException":
|
|
1393
1410
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1397,10 +1414,12 @@ const deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommandError =
|
|
|
1397
1414
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1398
1415
|
default:
|
|
1399
1416
|
const parsedBody = parsedOutput.body;
|
|
1417
|
+
const $metadata = deserializeMetadata(output);
|
|
1418
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1400
1419
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1401
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1420
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1402
1421
|
$fault: "client",
|
|
1403
|
-
$metadata
|
|
1422
|
+
$metadata,
|
|
1404
1423
|
});
|
|
1405
1424
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1406
1425
|
}
|
|
@@ -1425,8 +1444,7 @@ const deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommand
|
|
|
1425
1444
|
body: await parseBody(output.body, context),
|
|
1426
1445
|
};
|
|
1427
1446
|
let response;
|
|
1428
|
-
|
|
1429
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
1448
|
switch (errorCode) {
|
|
1431
1449
|
case "DirectConnectClientException":
|
|
1432
1450
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1436,10 +1454,12 @@ const deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommand
|
|
|
1436
1454
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1437
1455
|
default:
|
|
1438
1456
|
const parsedBody = parsedOutput.body;
|
|
1457
|
+
const $metadata = deserializeMetadata(output);
|
|
1458
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1439
1459
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1440
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1460
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1441
1461
|
$fault: "client",
|
|
1442
|
-
$metadata
|
|
1462
|
+
$metadata,
|
|
1443
1463
|
});
|
|
1444
1464
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1445
1465
|
}
|
|
@@ -1464,8 +1484,7 @@ const deserializeAws_json1_1CreateInterconnectCommandError = async (output, cont
|
|
|
1464
1484
|
body: await parseBody(output.body, context),
|
|
1465
1485
|
};
|
|
1466
1486
|
let response;
|
|
1467
|
-
|
|
1468
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1487
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
1488
|
switch (errorCode) {
|
|
1470
1489
|
case "DirectConnectClientException":
|
|
1471
1490
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1481,10 +1500,12 @@ const deserializeAws_json1_1CreateInterconnectCommandError = async (output, cont
|
|
|
1481
1500
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1482
1501
|
default:
|
|
1483
1502
|
const parsedBody = parsedOutput.body;
|
|
1503
|
+
const $metadata = deserializeMetadata(output);
|
|
1504
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1484
1505
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1485
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1506
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1486
1507
|
$fault: "client",
|
|
1487
|
-
$metadata
|
|
1508
|
+
$metadata,
|
|
1488
1509
|
});
|
|
1489
1510
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1490
1511
|
}
|
|
@@ -1509,8 +1530,7 @@ const deserializeAws_json1_1CreateLagCommandError = async (output, context) => {
|
|
|
1509
1530
|
body: await parseBody(output.body, context),
|
|
1510
1531
|
};
|
|
1511
1532
|
let response;
|
|
1512
|
-
|
|
1513
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1533
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
1534
|
switch (errorCode) {
|
|
1515
1535
|
case "DirectConnectClientException":
|
|
1516
1536
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1526,10 +1546,12 @@ const deserializeAws_json1_1CreateLagCommandError = async (output, context) => {
|
|
|
1526
1546
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1527
1547
|
default:
|
|
1528
1548
|
const parsedBody = parsedOutput.body;
|
|
1549
|
+
const $metadata = deserializeMetadata(output);
|
|
1550
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1529
1551
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1530
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1552
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1531
1553
|
$fault: "client",
|
|
1532
|
-
$metadata
|
|
1554
|
+
$metadata,
|
|
1533
1555
|
});
|
|
1534
1556
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1535
1557
|
}
|
|
@@ -1554,8 +1576,7 @@ const deserializeAws_json1_1CreatePrivateVirtualInterfaceCommandError = async (o
|
|
|
1554
1576
|
body: await parseBody(output.body, context),
|
|
1555
1577
|
};
|
|
1556
1578
|
let response;
|
|
1557
|
-
|
|
1558
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1559
1580
|
switch (errorCode) {
|
|
1560
1581
|
case "DirectConnectClientException":
|
|
1561
1582
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1571,10 +1592,12 @@ const deserializeAws_json1_1CreatePrivateVirtualInterfaceCommandError = async (o
|
|
|
1571
1592
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1572
1593
|
default:
|
|
1573
1594
|
const parsedBody = parsedOutput.body;
|
|
1595
|
+
const $metadata = deserializeMetadata(output);
|
|
1596
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1574
1597
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1575
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1598
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1576
1599
|
$fault: "client",
|
|
1577
|
-
$metadata
|
|
1600
|
+
$metadata,
|
|
1578
1601
|
});
|
|
1579
1602
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1580
1603
|
}
|
|
@@ -1599,8 +1622,7 @@ const deserializeAws_json1_1CreatePublicVirtualInterfaceCommandError = async (ou
|
|
|
1599
1622
|
body: await parseBody(output.body, context),
|
|
1600
1623
|
};
|
|
1601
1624
|
let response;
|
|
1602
|
-
|
|
1603
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
1626
|
switch (errorCode) {
|
|
1605
1627
|
case "DirectConnectClientException":
|
|
1606
1628
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1616,10 +1638,12 @@ const deserializeAws_json1_1CreatePublicVirtualInterfaceCommandError = async (ou
|
|
|
1616
1638
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1617
1639
|
default:
|
|
1618
1640
|
const parsedBody = parsedOutput.body;
|
|
1641
|
+
const $metadata = deserializeMetadata(output);
|
|
1642
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1619
1643
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1620
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1644
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1621
1645
|
$fault: "client",
|
|
1622
|
-
$metadata
|
|
1646
|
+
$metadata,
|
|
1623
1647
|
});
|
|
1624
1648
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1625
1649
|
}
|
|
@@ -1644,8 +1668,7 @@ const deserializeAws_json1_1CreateTransitVirtualInterfaceCommandError = async (o
|
|
|
1644
1668
|
body: await parseBody(output.body, context),
|
|
1645
1669
|
};
|
|
1646
1670
|
let response;
|
|
1647
|
-
|
|
1648
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1671
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
1672
|
switch (errorCode) {
|
|
1650
1673
|
case "DirectConnectClientException":
|
|
1651
1674
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1661,10 +1684,12 @@ const deserializeAws_json1_1CreateTransitVirtualInterfaceCommandError = async (o
|
|
|
1661
1684
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1662
1685
|
default:
|
|
1663
1686
|
const parsedBody = parsedOutput.body;
|
|
1687
|
+
const $metadata = deserializeMetadata(output);
|
|
1688
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1664
1689
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1665
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1690
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1666
1691
|
$fault: "client",
|
|
1667
|
-
$metadata
|
|
1692
|
+
$metadata,
|
|
1668
1693
|
});
|
|
1669
1694
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1670
1695
|
}
|
|
@@ -1689,8 +1714,7 @@ const deserializeAws_json1_1DeleteBGPPeerCommandError = async (output, context)
|
|
|
1689
1714
|
body: await parseBody(output.body, context),
|
|
1690
1715
|
};
|
|
1691
1716
|
let response;
|
|
1692
|
-
|
|
1693
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
1718
|
switch (errorCode) {
|
|
1695
1719
|
case "DirectConnectClientException":
|
|
1696
1720
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1700,10 +1724,12 @@ const deserializeAws_json1_1DeleteBGPPeerCommandError = async (output, context)
|
|
|
1700
1724
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1701
1725
|
default:
|
|
1702
1726
|
const parsedBody = parsedOutput.body;
|
|
1727
|
+
const $metadata = deserializeMetadata(output);
|
|
1728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1703
1729
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1704
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1705
1731
|
$fault: "client",
|
|
1706
|
-
$metadata
|
|
1732
|
+
$metadata,
|
|
1707
1733
|
});
|
|
1708
1734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1709
1735
|
}
|
|
@@ -1728,8 +1754,7 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1728
1754
|
body: await parseBody(output.body, context),
|
|
1729
1755
|
};
|
|
1730
1756
|
let response;
|
|
1731
|
-
|
|
1732
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1757
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1733
1758
|
switch (errorCode) {
|
|
1734
1759
|
case "DirectConnectClientException":
|
|
1735
1760
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1739,10 +1764,12 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1739
1764
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1740
1765
|
default:
|
|
1741
1766
|
const parsedBody = parsedOutput.body;
|
|
1767
|
+
const $metadata = deserializeMetadata(output);
|
|
1768
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1742
1769
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1743
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1770
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1744
1771
|
$fault: "client",
|
|
1745
|
-
$metadata
|
|
1772
|
+
$metadata,
|
|
1746
1773
|
});
|
|
1747
1774
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1748
1775
|
}
|
|
@@ -1767,8 +1794,7 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayCommandError = async (outp
|
|
|
1767
1794
|
body: await parseBody(output.body, context),
|
|
1768
1795
|
};
|
|
1769
1796
|
let response;
|
|
1770
|
-
|
|
1771
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1797
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1772
1798
|
switch (errorCode) {
|
|
1773
1799
|
case "DirectConnectClientException":
|
|
1774
1800
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1778,10 +1804,12 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayCommandError = async (outp
|
|
|
1778
1804
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1779
1805
|
default:
|
|
1780
1806
|
const parsedBody = parsedOutput.body;
|
|
1807
|
+
const $metadata = deserializeMetadata(output);
|
|
1808
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1781
1809
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1782
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1810
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1783
1811
|
$fault: "client",
|
|
1784
|
-
$metadata
|
|
1812
|
+
$metadata,
|
|
1785
1813
|
});
|
|
1786
1814
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1787
1815
|
}
|
|
@@ -1806,8 +1834,7 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommandError =
|
|
|
1806
1834
|
body: await parseBody(output.body, context),
|
|
1807
1835
|
};
|
|
1808
1836
|
let response;
|
|
1809
|
-
|
|
1810
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1811
1838
|
switch (errorCode) {
|
|
1812
1839
|
case "DirectConnectClientException":
|
|
1813
1840
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1817,10 +1844,12 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommandError =
|
|
|
1817
1844
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1818
1845
|
default:
|
|
1819
1846
|
const parsedBody = parsedOutput.body;
|
|
1847
|
+
const $metadata = deserializeMetadata(output);
|
|
1848
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1820
1849
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1821
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1822
1851
|
$fault: "client",
|
|
1823
|
-
$metadata
|
|
1852
|
+
$metadata,
|
|
1824
1853
|
});
|
|
1825
1854
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1826
1855
|
}
|
|
@@ -1845,8 +1874,7 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommand
|
|
|
1845
1874
|
body: await parseBody(output.body, context),
|
|
1846
1875
|
};
|
|
1847
1876
|
let response;
|
|
1848
|
-
|
|
1849
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1850
1878
|
switch (errorCode) {
|
|
1851
1879
|
case "DirectConnectClientException":
|
|
1852
1880
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1856,10 +1884,12 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommand
|
|
|
1856
1884
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1857
1885
|
default:
|
|
1858
1886
|
const parsedBody = parsedOutput.body;
|
|
1887
|
+
const $metadata = deserializeMetadata(output);
|
|
1888
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1859
1889
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1860
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1890
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1861
1891
|
$fault: "client",
|
|
1862
|
-
$metadata
|
|
1892
|
+
$metadata,
|
|
1863
1893
|
});
|
|
1864
1894
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1865
1895
|
}
|
|
@@ -1884,8 +1914,7 @@ const deserializeAws_json1_1DeleteInterconnectCommandError = async (output, cont
|
|
|
1884
1914
|
body: await parseBody(output.body, context),
|
|
1885
1915
|
};
|
|
1886
1916
|
let response;
|
|
1887
|
-
|
|
1888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1917
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
1918
|
switch (errorCode) {
|
|
1890
1919
|
case "DirectConnectClientException":
|
|
1891
1920
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1895,10 +1924,12 @@ const deserializeAws_json1_1DeleteInterconnectCommandError = async (output, cont
|
|
|
1895
1924
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1896
1925
|
default:
|
|
1897
1926
|
const parsedBody = parsedOutput.body;
|
|
1927
|
+
const $metadata = deserializeMetadata(output);
|
|
1928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1898
1929
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1899
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1900
1931
|
$fault: "client",
|
|
1901
|
-
$metadata
|
|
1932
|
+
$metadata,
|
|
1902
1933
|
});
|
|
1903
1934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1904
1935
|
}
|
|
@@ -1923,8 +1954,7 @@ const deserializeAws_json1_1DeleteLagCommandError = async (output, context) => {
|
|
|
1923
1954
|
body: await parseBody(output.body, context),
|
|
1924
1955
|
};
|
|
1925
1956
|
let response;
|
|
1926
|
-
|
|
1927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1928
1958
|
switch (errorCode) {
|
|
1929
1959
|
case "DirectConnectClientException":
|
|
1930
1960
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1934,10 +1964,12 @@ const deserializeAws_json1_1DeleteLagCommandError = async (output, context) => {
|
|
|
1934
1964
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1935
1965
|
default:
|
|
1936
1966
|
const parsedBody = parsedOutput.body;
|
|
1967
|
+
const $metadata = deserializeMetadata(output);
|
|
1968
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1937
1969
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1938
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1970
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1939
1971
|
$fault: "client",
|
|
1940
|
-
$metadata
|
|
1972
|
+
$metadata,
|
|
1941
1973
|
});
|
|
1942
1974
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1943
1975
|
}
|
|
@@ -1962,8 +1994,7 @@ const deserializeAws_json1_1DeleteVirtualInterfaceCommandError = async (output,
|
|
|
1962
1994
|
body: await parseBody(output.body, context),
|
|
1963
1995
|
};
|
|
1964
1996
|
let response;
|
|
1965
|
-
|
|
1966
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1967
1998
|
switch (errorCode) {
|
|
1968
1999
|
case "DirectConnectClientException":
|
|
1969
2000
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1973,10 +2004,12 @@ const deserializeAws_json1_1DeleteVirtualInterfaceCommandError = async (output,
|
|
|
1973
2004
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1974
2005
|
default:
|
|
1975
2006
|
const parsedBody = parsedOutput.body;
|
|
2007
|
+
const $metadata = deserializeMetadata(output);
|
|
2008
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1976
2009
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1977
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2010
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1978
2011
|
$fault: "client",
|
|
1979
|
-
$metadata
|
|
2012
|
+
$metadata,
|
|
1980
2013
|
});
|
|
1981
2014
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1982
2015
|
}
|
|
@@ -2001,8 +2034,7 @@ const deserializeAws_json1_1DescribeConnectionLoaCommandError = async (output, c
|
|
|
2001
2034
|
body: await parseBody(output.body, context),
|
|
2002
2035
|
};
|
|
2003
2036
|
let response;
|
|
2004
|
-
|
|
2005
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2037
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
2038
|
switch (errorCode) {
|
|
2007
2039
|
case "DirectConnectClientException":
|
|
2008
2040
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2012,10 +2044,12 @@ const deserializeAws_json1_1DescribeConnectionLoaCommandError = async (output, c
|
|
|
2012
2044
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2013
2045
|
default:
|
|
2014
2046
|
const parsedBody = parsedOutput.body;
|
|
2047
|
+
const $metadata = deserializeMetadata(output);
|
|
2048
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2015
2049
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2016
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2017
2051
|
$fault: "client",
|
|
2018
|
-
$metadata
|
|
2052
|
+
$metadata,
|
|
2019
2053
|
});
|
|
2020
2054
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2021
2055
|
}
|
|
@@ -2040,8 +2074,7 @@ const deserializeAws_json1_1DescribeConnectionsCommandError = async (output, con
|
|
|
2040
2074
|
body: await parseBody(output.body, context),
|
|
2041
2075
|
};
|
|
2042
2076
|
let response;
|
|
2043
|
-
|
|
2044
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2045
2078
|
switch (errorCode) {
|
|
2046
2079
|
case "DirectConnectClientException":
|
|
2047
2080
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2051,10 +2084,12 @@ const deserializeAws_json1_1DescribeConnectionsCommandError = async (output, con
|
|
|
2051
2084
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2052
2085
|
default:
|
|
2053
2086
|
const parsedBody = parsedOutput.body;
|
|
2087
|
+
const $metadata = deserializeMetadata(output);
|
|
2088
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2054
2089
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2055
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2090
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2056
2091
|
$fault: "client",
|
|
2057
|
-
$metadata
|
|
2092
|
+
$metadata,
|
|
2058
2093
|
});
|
|
2059
2094
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2060
2095
|
}
|
|
@@ -2079,8 +2114,7 @@ const deserializeAws_json1_1DescribeConnectionsOnInterconnectCommandError = asyn
|
|
|
2079
2114
|
body: await parseBody(output.body, context),
|
|
2080
2115
|
};
|
|
2081
2116
|
let response;
|
|
2082
|
-
|
|
2083
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2084
2118
|
switch (errorCode) {
|
|
2085
2119
|
case "DirectConnectClientException":
|
|
2086
2120
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2090,10 +2124,12 @@ const deserializeAws_json1_1DescribeConnectionsOnInterconnectCommandError = asyn
|
|
|
2090
2124
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2091
2125
|
default:
|
|
2092
2126
|
const parsedBody = parsedOutput.body;
|
|
2127
|
+
const $metadata = deserializeMetadata(output);
|
|
2128
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2093
2129
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2094
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2130
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2095
2131
|
$fault: "client",
|
|
2096
|
-
$metadata
|
|
2132
|
+
$metadata,
|
|
2097
2133
|
});
|
|
2098
2134
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2099
2135
|
}
|
|
@@ -2118,8 +2154,7 @@ const deserializeAws_json1_1DescribeCustomerMetadataCommandError = async (output
|
|
|
2118
2154
|
body: await parseBody(output.body, context),
|
|
2119
2155
|
};
|
|
2120
2156
|
let response;
|
|
2121
|
-
|
|
2122
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2157
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2123
2158
|
switch (errorCode) {
|
|
2124
2159
|
case "DirectConnectClientException":
|
|
2125
2160
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2129,10 +2164,12 @@ const deserializeAws_json1_1DescribeCustomerMetadataCommandError = async (output
|
|
|
2129
2164
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2130
2165
|
default:
|
|
2131
2166
|
const parsedBody = parsedOutput.body;
|
|
2167
|
+
const $metadata = deserializeMetadata(output);
|
|
2168
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2132
2169
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2133
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2170
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2134
2171
|
$fault: "client",
|
|
2135
|
-
$metadata
|
|
2172
|
+
$metadata,
|
|
2136
2173
|
});
|
|
2137
2174
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2138
2175
|
}
|
|
@@ -2157,8 +2194,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsComm
|
|
|
2157
2194
|
body: await parseBody(output.body, context),
|
|
2158
2195
|
};
|
|
2159
2196
|
let response;
|
|
2160
|
-
|
|
2161
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2197
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
2198
|
switch (errorCode) {
|
|
2163
2199
|
case "DirectConnectClientException":
|
|
2164
2200
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2168,10 +2204,12 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsComm
|
|
|
2168
2204
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2169
2205
|
default:
|
|
2170
2206
|
const parsedBody = parsedOutput.body;
|
|
2207
|
+
const $metadata = deserializeMetadata(output);
|
|
2208
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2171
2209
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2172
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2210
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2173
2211
|
$fault: "client",
|
|
2174
|
-
$metadata
|
|
2212
|
+
$metadata,
|
|
2175
2213
|
});
|
|
2176
2214
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2177
2215
|
}
|
|
@@ -2196,8 +2234,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommandError
|
|
|
2196
2234
|
body: await parseBody(output.body, context),
|
|
2197
2235
|
};
|
|
2198
2236
|
let response;
|
|
2199
|
-
|
|
2200
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2201
2238
|
switch (errorCode) {
|
|
2202
2239
|
case "DirectConnectClientException":
|
|
2203
2240
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2207,10 +2244,12 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommandError
|
|
|
2207
2244
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2208
2245
|
default:
|
|
2209
2246
|
const parsedBody = parsedOutput.body;
|
|
2247
|
+
const $metadata = deserializeMetadata(output);
|
|
2248
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2210
2249
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2250
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2212
2251
|
$fault: "client",
|
|
2213
|
-
$metadata
|
|
2252
|
+
$metadata,
|
|
2214
2253
|
});
|
|
2215
2254
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2216
2255
|
}
|
|
@@ -2235,8 +2274,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommandError
|
|
|
2235
2274
|
body: await parseBody(output.body, context),
|
|
2236
2275
|
};
|
|
2237
2276
|
let response;
|
|
2238
|
-
|
|
2239
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2240
2278
|
switch (errorCode) {
|
|
2241
2279
|
case "DirectConnectClientException":
|
|
2242
2280
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2246,10 +2284,12 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommandError
|
|
|
2246
2284
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2247
2285
|
default:
|
|
2248
2286
|
const parsedBody = parsedOutput.body;
|
|
2287
|
+
const $metadata = deserializeMetadata(output);
|
|
2288
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2249
2289
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2250
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2290
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2251
2291
|
$fault: "client",
|
|
2252
|
-
$metadata
|
|
2292
|
+
$metadata,
|
|
2253
2293
|
});
|
|
2254
2294
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2255
2295
|
}
|
|
@@ -2274,8 +2314,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewaysCommandError = async (o
|
|
|
2274
2314
|
body: await parseBody(output.body, context),
|
|
2275
2315
|
};
|
|
2276
2316
|
let response;
|
|
2277
|
-
|
|
2278
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
2318
|
switch (errorCode) {
|
|
2280
2319
|
case "DirectConnectClientException":
|
|
2281
2320
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2285,10 +2324,12 @@ const deserializeAws_json1_1DescribeDirectConnectGatewaysCommandError = async (o
|
|
|
2285
2324
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2286
2325
|
default:
|
|
2287
2326
|
const parsedBody = parsedOutput.body;
|
|
2327
|
+
const $metadata = deserializeMetadata(output);
|
|
2328
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2288
2329
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2289
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2290
2331
|
$fault: "client",
|
|
2291
|
-
$metadata
|
|
2332
|
+
$metadata,
|
|
2292
2333
|
});
|
|
2293
2334
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2294
2335
|
}
|
|
@@ -2313,8 +2354,7 @@ const deserializeAws_json1_1DescribeHostedConnectionsCommandError = async (outpu
|
|
|
2313
2354
|
body: await parseBody(output.body, context),
|
|
2314
2355
|
};
|
|
2315
2356
|
let response;
|
|
2316
|
-
|
|
2317
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2357
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2318
2358
|
switch (errorCode) {
|
|
2319
2359
|
case "DirectConnectClientException":
|
|
2320
2360
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2324,10 +2364,12 @@ const deserializeAws_json1_1DescribeHostedConnectionsCommandError = async (outpu
|
|
|
2324
2364
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2325
2365
|
default:
|
|
2326
2366
|
const parsedBody = parsedOutput.body;
|
|
2367
|
+
const $metadata = deserializeMetadata(output);
|
|
2368
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2327
2369
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2328
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2370
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2329
2371
|
$fault: "client",
|
|
2330
|
-
$metadata
|
|
2372
|
+
$metadata,
|
|
2331
2373
|
});
|
|
2332
2374
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2333
2375
|
}
|
|
@@ -2352,8 +2394,7 @@ const deserializeAws_json1_1DescribeInterconnectLoaCommandError = async (output,
|
|
|
2352
2394
|
body: await parseBody(output.body, context),
|
|
2353
2395
|
};
|
|
2354
2396
|
let response;
|
|
2355
|
-
|
|
2356
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2397
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2357
2398
|
switch (errorCode) {
|
|
2358
2399
|
case "DirectConnectClientException":
|
|
2359
2400
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2363,10 +2404,12 @@ const deserializeAws_json1_1DescribeInterconnectLoaCommandError = async (output,
|
|
|
2363
2404
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2364
2405
|
default:
|
|
2365
2406
|
const parsedBody = parsedOutput.body;
|
|
2407
|
+
const $metadata = deserializeMetadata(output);
|
|
2408
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2366
2409
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2367
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2410
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2368
2411
|
$fault: "client",
|
|
2369
|
-
$metadata
|
|
2412
|
+
$metadata,
|
|
2370
2413
|
});
|
|
2371
2414
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2372
2415
|
}
|
|
@@ -2391,8 +2434,7 @@ const deserializeAws_json1_1DescribeInterconnectsCommandError = async (output, c
|
|
|
2391
2434
|
body: await parseBody(output.body, context),
|
|
2392
2435
|
};
|
|
2393
2436
|
let response;
|
|
2394
|
-
|
|
2395
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2437
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
2438
|
switch (errorCode) {
|
|
2397
2439
|
case "DirectConnectClientException":
|
|
2398
2440
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2402,10 +2444,12 @@ const deserializeAws_json1_1DescribeInterconnectsCommandError = async (output, c
|
|
|
2402
2444
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2403
2445
|
default:
|
|
2404
2446
|
const parsedBody = parsedOutput.body;
|
|
2447
|
+
const $metadata = deserializeMetadata(output);
|
|
2448
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2405
2449
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2450
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2407
2451
|
$fault: "client",
|
|
2408
|
-
$metadata
|
|
2452
|
+
$metadata,
|
|
2409
2453
|
});
|
|
2410
2454
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2411
2455
|
}
|
|
@@ -2430,8 +2474,7 @@ const deserializeAws_json1_1DescribeLagsCommandError = async (output, context) =
|
|
|
2430
2474
|
body: await parseBody(output.body, context),
|
|
2431
2475
|
};
|
|
2432
2476
|
let response;
|
|
2433
|
-
|
|
2434
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2477
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2435
2478
|
switch (errorCode) {
|
|
2436
2479
|
case "DirectConnectClientException":
|
|
2437
2480
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2441,10 +2484,12 @@ const deserializeAws_json1_1DescribeLagsCommandError = async (output, context) =
|
|
|
2441
2484
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2442
2485
|
default:
|
|
2443
2486
|
const parsedBody = parsedOutput.body;
|
|
2487
|
+
const $metadata = deserializeMetadata(output);
|
|
2488
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2444
2489
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2445
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2490
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2446
2491
|
$fault: "client",
|
|
2447
|
-
$metadata
|
|
2492
|
+
$metadata,
|
|
2448
2493
|
});
|
|
2449
2494
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2450
2495
|
}
|
|
@@ -2469,8 +2514,7 @@ const deserializeAws_json1_1DescribeLoaCommandError = async (output, context) =>
|
|
|
2469
2514
|
body: await parseBody(output.body, context),
|
|
2470
2515
|
};
|
|
2471
2516
|
let response;
|
|
2472
|
-
|
|
2473
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2517
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2474
2518
|
switch (errorCode) {
|
|
2475
2519
|
case "DirectConnectClientException":
|
|
2476
2520
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2480,10 +2524,12 @@ const deserializeAws_json1_1DescribeLoaCommandError = async (output, context) =>
|
|
|
2480
2524
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2481
2525
|
default:
|
|
2482
2526
|
const parsedBody = parsedOutput.body;
|
|
2527
|
+
const $metadata = deserializeMetadata(output);
|
|
2528
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2483
2529
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2484
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2530
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2485
2531
|
$fault: "client",
|
|
2486
|
-
$metadata
|
|
2532
|
+
$metadata,
|
|
2487
2533
|
});
|
|
2488
2534
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2489
2535
|
}
|
|
@@ -2508,8 +2554,7 @@ const deserializeAws_json1_1DescribeLocationsCommandError = async (output, conte
|
|
|
2508
2554
|
body: await parseBody(output.body, context),
|
|
2509
2555
|
};
|
|
2510
2556
|
let response;
|
|
2511
|
-
|
|
2512
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2557
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2513
2558
|
switch (errorCode) {
|
|
2514
2559
|
case "DirectConnectClientException":
|
|
2515
2560
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2519,10 +2564,12 @@ const deserializeAws_json1_1DescribeLocationsCommandError = async (output, conte
|
|
|
2519
2564
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2520
2565
|
default:
|
|
2521
2566
|
const parsedBody = parsedOutput.body;
|
|
2567
|
+
const $metadata = deserializeMetadata(output);
|
|
2568
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2522
2569
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2523
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2570
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2524
2571
|
$fault: "client",
|
|
2525
|
-
$metadata
|
|
2572
|
+
$metadata,
|
|
2526
2573
|
});
|
|
2527
2574
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2528
2575
|
}
|
|
@@ -2547,8 +2594,7 @@ const deserializeAws_json1_1DescribeRouterConfigurationCommandError = async (out
|
|
|
2547
2594
|
body: await parseBody(output.body, context),
|
|
2548
2595
|
};
|
|
2549
2596
|
let response;
|
|
2550
|
-
|
|
2551
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2597
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2552
2598
|
switch (errorCode) {
|
|
2553
2599
|
case "DirectConnectClientException":
|
|
2554
2600
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2558,10 +2604,12 @@ const deserializeAws_json1_1DescribeRouterConfigurationCommandError = async (out
|
|
|
2558
2604
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2559
2605
|
default:
|
|
2560
2606
|
const parsedBody = parsedOutput.body;
|
|
2607
|
+
const $metadata = deserializeMetadata(output);
|
|
2608
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2561
2609
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2562
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2610
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2563
2611
|
$fault: "client",
|
|
2564
|
-
$metadata
|
|
2612
|
+
$metadata,
|
|
2565
2613
|
});
|
|
2566
2614
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2567
2615
|
}
|
|
@@ -2586,8 +2634,7 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
2586
2634
|
body: await parseBody(output.body, context),
|
|
2587
2635
|
};
|
|
2588
2636
|
let response;
|
|
2589
|
-
|
|
2590
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2637
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2591
2638
|
switch (errorCode) {
|
|
2592
2639
|
case "DirectConnectClientException":
|
|
2593
2640
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2597,10 +2644,12 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
2597
2644
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2598
2645
|
default:
|
|
2599
2646
|
const parsedBody = parsedOutput.body;
|
|
2647
|
+
const $metadata = deserializeMetadata(output);
|
|
2648
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2600
2649
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2601
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2650
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2602
2651
|
$fault: "client",
|
|
2603
|
-
$metadata
|
|
2652
|
+
$metadata,
|
|
2604
2653
|
});
|
|
2605
2654
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2606
2655
|
}
|
|
@@ -2625,8 +2674,7 @@ const deserializeAws_json1_1DescribeVirtualGatewaysCommandError = async (output,
|
|
|
2625
2674
|
body: await parseBody(output.body, context),
|
|
2626
2675
|
};
|
|
2627
2676
|
let response;
|
|
2628
|
-
|
|
2629
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2677
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2630
2678
|
switch (errorCode) {
|
|
2631
2679
|
case "DirectConnectClientException":
|
|
2632
2680
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2636,10 +2684,12 @@ const deserializeAws_json1_1DescribeVirtualGatewaysCommandError = async (output,
|
|
|
2636
2684
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2637
2685
|
default:
|
|
2638
2686
|
const parsedBody = parsedOutput.body;
|
|
2687
|
+
const $metadata = deserializeMetadata(output);
|
|
2688
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2639
2689
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2640
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2690
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2641
2691
|
$fault: "client",
|
|
2642
|
-
$metadata
|
|
2692
|
+
$metadata,
|
|
2643
2693
|
});
|
|
2644
2694
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2645
2695
|
}
|
|
@@ -2664,8 +2714,7 @@ const deserializeAws_json1_1DescribeVirtualInterfacesCommandError = async (outpu
|
|
|
2664
2714
|
body: await parseBody(output.body, context),
|
|
2665
2715
|
};
|
|
2666
2716
|
let response;
|
|
2667
|
-
|
|
2668
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2669
2718
|
switch (errorCode) {
|
|
2670
2719
|
case "DirectConnectClientException":
|
|
2671
2720
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2675,10 +2724,12 @@ const deserializeAws_json1_1DescribeVirtualInterfacesCommandError = async (outpu
|
|
|
2675
2724
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2676
2725
|
default:
|
|
2677
2726
|
const parsedBody = parsedOutput.body;
|
|
2727
|
+
const $metadata = deserializeMetadata(output);
|
|
2728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2678
2729
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2679
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2680
2731
|
$fault: "client",
|
|
2681
|
-
$metadata
|
|
2732
|
+
$metadata,
|
|
2682
2733
|
});
|
|
2683
2734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2684
2735
|
}
|
|
@@ -2703,8 +2754,7 @@ const deserializeAws_json1_1DisassociateConnectionFromLagCommandError = async (o
|
|
|
2703
2754
|
body: await parseBody(output.body, context),
|
|
2704
2755
|
};
|
|
2705
2756
|
let response;
|
|
2706
|
-
|
|
2707
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2757
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2708
2758
|
switch (errorCode) {
|
|
2709
2759
|
case "DirectConnectClientException":
|
|
2710
2760
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2714,10 +2764,12 @@ const deserializeAws_json1_1DisassociateConnectionFromLagCommandError = async (o
|
|
|
2714
2764
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2715
2765
|
default:
|
|
2716
2766
|
const parsedBody = parsedOutput.body;
|
|
2767
|
+
const $metadata = deserializeMetadata(output);
|
|
2768
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2717
2769
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2718
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2770
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2719
2771
|
$fault: "client",
|
|
2720
|
-
$metadata
|
|
2772
|
+
$metadata,
|
|
2721
2773
|
});
|
|
2722
2774
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2723
2775
|
}
|
|
@@ -2742,8 +2794,7 @@ const deserializeAws_json1_1DisassociateMacSecKeyCommandError = async (output, c
|
|
|
2742
2794
|
body: await parseBody(output.body, context),
|
|
2743
2795
|
};
|
|
2744
2796
|
let response;
|
|
2745
|
-
|
|
2746
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2747
2798
|
switch (errorCode) {
|
|
2748
2799
|
case "DirectConnectClientException":
|
|
2749
2800
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2753,10 +2804,12 @@ const deserializeAws_json1_1DisassociateMacSecKeyCommandError = async (output, c
|
|
|
2753
2804
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2754
2805
|
default:
|
|
2755
2806
|
const parsedBody = parsedOutput.body;
|
|
2807
|
+
const $metadata = deserializeMetadata(output);
|
|
2808
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2756
2809
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2757
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2810
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2758
2811
|
$fault: "client",
|
|
2759
|
-
$metadata
|
|
2812
|
+
$metadata,
|
|
2760
2813
|
});
|
|
2761
2814
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2762
2815
|
}
|
|
@@ -2781,8 +2834,7 @@ const deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommandError = async
|
|
|
2781
2834
|
body: await parseBody(output.body, context),
|
|
2782
2835
|
};
|
|
2783
2836
|
let response;
|
|
2784
|
-
|
|
2785
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2786
2838
|
switch (errorCode) {
|
|
2787
2839
|
case "DirectConnectClientException":
|
|
2788
2840
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2792,10 +2844,12 @@ const deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommandError = async
|
|
|
2792
2844
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2793
2845
|
default:
|
|
2794
2846
|
const parsedBody = parsedOutput.body;
|
|
2847
|
+
const $metadata = deserializeMetadata(output);
|
|
2848
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2795
2849
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2796
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2797
2851
|
$fault: "client",
|
|
2798
|
-
$metadata
|
|
2852
|
+
$metadata,
|
|
2799
2853
|
});
|
|
2800
2854
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2801
2855
|
}
|
|
@@ -2820,8 +2874,7 @@ const deserializeAws_json1_1StartBgpFailoverTestCommandError = async (output, co
|
|
|
2820
2874
|
body: await parseBody(output.body, context),
|
|
2821
2875
|
};
|
|
2822
2876
|
let response;
|
|
2823
|
-
|
|
2824
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2877
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2825
2878
|
switch (errorCode) {
|
|
2826
2879
|
case "DirectConnectClientException":
|
|
2827
2880
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2831,10 +2884,12 @@ const deserializeAws_json1_1StartBgpFailoverTestCommandError = async (output, co
|
|
|
2831
2884
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2832
2885
|
default:
|
|
2833
2886
|
const parsedBody = parsedOutput.body;
|
|
2887
|
+
const $metadata = deserializeMetadata(output);
|
|
2888
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2834
2889
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2835
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2890
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2836
2891
|
$fault: "client",
|
|
2837
|
-
$metadata
|
|
2892
|
+
$metadata,
|
|
2838
2893
|
});
|
|
2839
2894
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2840
2895
|
}
|
|
@@ -2859,8 +2914,7 @@ const deserializeAws_json1_1StopBgpFailoverTestCommandError = async (output, con
|
|
|
2859
2914
|
body: await parseBody(output.body, context),
|
|
2860
2915
|
};
|
|
2861
2916
|
let response;
|
|
2862
|
-
|
|
2863
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2917
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2864
2918
|
switch (errorCode) {
|
|
2865
2919
|
case "DirectConnectClientException":
|
|
2866
2920
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2870,10 +2924,12 @@ const deserializeAws_json1_1StopBgpFailoverTestCommandError = async (output, con
|
|
|
2870
2924
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2871
2925
|
default:
|
|
2872
2926
|
const parsedBody = parsedOutput.body;
|
|
2927
|
+
const $metadata = deserializeMetadata(output);
|
|
2928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2873
2929
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2874
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2875
2931
|
$fault: "client",
|
|
2876
|
-
$metadata
|
|
2932
|
+
$metadata,
|
|
2877
2933
|
});
|
|
2878
2934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2879
2935
|
}
|
|
@@ -2898,8 +2954,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2898
2954
|
body: await parseBody(output.body, context),
|
|
2899
2955
|
};
|
|
2900
2956
|
let response;
|
|
2901
|
-
|
|
2902
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2903
2958
|
switch (errorCode) {
|
|
2904
2959
|
case "DirectConnectClientException":
|
|
2905
2960
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2915,10 +2970,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2915
2970
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2916
2971
|
default:
|
|
2917
2972
|
const parsedBody = parsedOutput.body;
|
|
2973
|
+
const $metadata = deserializeMetadata(output);
|
|
2974
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2918
2975
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2919
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2976
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2920
2977
|
$fault: "client",
|
|
2921
|
-
$metadata
|
|
2978
|
+
$metadata,
|
|
2922
2979
|
});
|
|
2923
2980
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2924
2981
|
}
|
|
@@ -2943,8 +3000,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2943
3000
|
body: await parseBody(output.body, context),
|
|
2944
3001
|
};
|
|
2945
3002
|
let response;
|
|
2946
|
-
|
|
2947
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3003
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2948
3004
|
switch (errorCode) {
|
|
2949
3005
|
case "DirectConnectClientException":
|
|
2950
3006
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2954,10 +3010,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2954
3010
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2955
3011
|
default:
|
|
2956
3012
|
const parsedBody = parsedOutput.body;
|
|
3013
|
+
const $metadata = deserializeMetadata(output);
|
|
3014
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2957
3015
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2958
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3016
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2959
3017
|
$fault: "client",
|
|
2960
|
-
$metadata
|
|
3018
|
+
$metadata,
|
|
2961
3019
|
});
|
|
2962
3020
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2963
3021
|
}
|
|
@@ -2982,8 +3040,7 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
2982
3040
|
body: await parseBody(output.body, context),
|
|
2983
3041
|
};
|
|
2984
3042
|
let response;
|
|
2985
|
-
|
|
2986
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3043
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2987
3044
|
switch (errorCode) {
|
|
2988
3045
|
case "DirectConnectClientException":
|
|
2989
3046
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2993,10 +3050,12 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
2993
3050
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2994
3051
|
default:
|
|
2995
3052
|
const parsedBody = parsedOutput.body;
|
|
3053
|
+
const $metadata = deserializeMetadata(output);
|
|
3054
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2996
3055
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2997
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3056
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2998
3057
|
$fault: "client",
|
|
2999
|
-
$metadata
|
|
3058
|
+
$metadata,
|
|
3000
3059
|
});
|
|
3001
3060
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3002
3061
|
}
|
|
@@ -3021,8 +3080,7 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayCommandError = async (outp
|
|
|
3021
3080
|
body: await parseBody(output.body, context),
|
|
3022
3081
|
};
|
|
3023
3082
|
let response;
|
|
3024
|
-
|
|
3025
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3083
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3026
3084
|
switch (errorCode) {
|
|
3027
3085
|
case "DirectConnectClientException":
|
|
3028
3086
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -3032,10 +3090,12 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayCommandError = async (outp
|
|
|
3032
3090
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3033
3091
|
default:
|
|
3034
3092
|
const parsedBody = parsedOutput.body;
|
|
3093
|
+
const $metadata = deserializeMetadata(output);
|
|
3094
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3035
3095
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
3036
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3096
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3037
3097
|
$fault: "client",
|
|
3038
|
-
$metadata
|
|
3098
|
+
$metadata,
|
|
3039
3099
|
});
|
|
3040
3100
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3041
3101
|
}
|
|
@@ -3060,8 +3120,7 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommandError =
|
|
|
3060
3120
|
body: await parseBody(output.body, context),
|
|
3061
3121
|
};
|
|
3062
3122
|
let response;
|
|
3063
|
-
|
|
3064
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3123
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3065
3124
|
switch (errorCode) {
|
|
3066
3125
|
case "DirectConnectClientException":
|
|
3067
3126
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -3071,10 +3130,12 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommandError =
|
|
|
3071
3130
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3072
3131
|
default:
|
|
3073
3132
|
const parsedBody = parsedOutput.body;
|
|
3133
|
+
const $metadata = deserializeMetadata(output);
|
|
3134
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3074
3135
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
3075
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3136
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3076
3137
|
$fault: "client",
|
|
3077
|
-
$metadata
|
|
3138
|
+
$metadata,
|
|
3078
3139
|
});
|
|
3079
3140
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3080
3141
|
}
|
|
@@ -3099,8 +3160,7 @@ const deserializeAws_json1_1UpdateLagCommandError = async (output, context) => {
|
|
|
3099
3160
|
body: await parseBody(output.body, context),
|
|
3100
3161
|
};
|
|
3101
3162
|
let response;
|
|
3102
|
-
|
|
3103
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3163
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3104
3164
|
switch (errorCode) {
|
|
3105
3165
|
case "DirectConnectClientException":
|
|
3106
3166
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -3110,10 +3170,12 @@ const deserializeAws_json1_1UpdateLagCommandError = async (output, context) => {
|
|
|
3110
3170
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3111
3171
|
default:
|
|
3112
3172
|
const parsedBody = parsedOutput.body;
|
|
3173
|
+
const $metadata = deserializeMetadata(output);
|
|
3174
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3113
3175
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
3114
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3115
3177
|
$fault: "client",
|
|
3116
|
-
$metadata
|
|
3178
|
+
$metadata,
|
|
3117
3179
|
});
|
|
3118
3180
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3119
3181
|
}
|
|
@@ -3138,8 +3200,7 @@ const deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommandError = async
|
|
|
3138
3200
|
body: await parseBody(output.body, context),
|
|
3139
3201
|
};
|
|
3140
3202
|
let response;
|
|
3141
|
-
|
|
3142
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3203
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3143
3204
|
switch (errorCode) {
|
|
3144
3205
|
case "DirectConnectClientException":
|
|
3145
3206
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -3149,10 +3210,12 @@ const deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommandError = async
|
|
|
3149
3210
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3150
3211
|
default:
|
|
3151
3212
|
const parsedBody = parsedOutput.body;
|
|
3213
|
+
const $metadata = deserializeMetadata(output);
|
|
3214
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3152
3215
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
3153
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3216
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3154
3217
|
$fault: "client",
|
|
3155
|
-
$metadata
|
|
3218
|
+
$metadata,
|
|
3156
3219
|
});
|
|
3157
3220
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3158
3221
|
}
|
|
@@ -4775,5 +4838,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4775
4838
|
if (data["__type"] !== undefined) {
|
|
4776
4839
|
return sanitizeErrorCode(data["__type"]);
|
|
4777
4840
|
}
|
|
4778
|
-
return "";
|
|
4779
4841
|
};
|