@aws-sdk/client-direct-connect 3.118.1 → 3.128.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 +608 -691
- package/dist-es/protocols/Aws_json1_1.js +455 -538
- package/package.json +26 -26
|
@@ -715,7 +715,7 @@ export var deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCo
|
|
|
715
715
|
});
|
|
716
716
|
}); };
|
|
717
717
|
var deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
718
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
718
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
719
719
|
var _c;
|
|
720
720
|
return __generator(this, function (_d) {
|
|
721
721
|
switch (_d.label) {
|
|
@@ -725,7 +725,6 @@ var deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommandEr
|
|
|
725
725
|
return [4, parseBody(output.body, context)];
|
|
726
726
|
case 1:
|
|
727
727
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
728
|
-
errorCode = "UnknownError";
|
|
729
728
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
729
|
_b = errorCode;
|
|
731
730
|
switch (_b) {
|
|
@@ -741,10 +740,12 @@ var deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommandEr
|
|
|
741
740
|
case 5: throw _d.sent();
|
|
742
741
|
case 6:
|
|
743
742
|
parsedBody = parsedOutput.body;
|
|
743
|
+
$metadata = deserializeMetadata(output);
|
|
744
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
744
745
|
response = new __BaseException({
|
|
745
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
746
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
746
747
|
$fault: "client",
|
|
747
|
-
$metadata:
|
|
748
|
+
$metadata: $metadata,
|
|
748
749
|
});
|
|
749
750
|
throw __decorateServiceException(response, parsedBody);
|
|
750
751
|
}
|
|
@@ -769,7 +770,7 @@ export var deserializeAws_json1_1AllocateConnectionOnInterconnectCommand = funct
|
|
|
769
770
|
});
|
|
770
771
|
}); };
|
|
771
772
|
var deserializeAws_json1_1AllocateConnectionOnInterconnectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
772
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
773
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
773
774
|
var _c;
|
|
774
775
|
return __generator(this, function (_d) {
|
|
775
776
|
switch (_d.label) {
|
|
@@ -779,7 +780,6 @@ var deserializeAws_json1_1AllocateConnectionOnInterconnectCommandError = functio
|
|
|
779
780
|
return [4, parseBody(output.body, context)];
|
|
780
781
|
case 1:
|
|
781
782
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
782
|
-
errorCode = "UnknownError";
|
|
783
783
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
784
|
_b = errorCode;
|
|
785
785
|
switch (_b) {
|
|
@@ -795,10 +795,12 @@ var deserializeAws_json1_1AllocateConnectionOnInterconnectCommandError = functio
|
|
|
795
795
|
case 5: throw _d.sent();
|
|
796
796
|
case 6:
|
|
797
797
|
parsedBody = parsedOutput.body;
|
|
798
|
+
$metadata = deserializeMetadata(output);
|
|
799
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
798
800
|
response = new __BaseException({
|
|
799
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
800
802
|
$fault: "client",
|
|
801
|
-
$metadata:
|
|
803
|
+
$metadata: $metadata,
|
|
802
804
|
});
|
|
803
805
|
throw __decorateServiceException(response, parsedBody);
|
|
804
806
|
}
|
|
@@ -823,7 +825,7 @@ export var deserializeAws_json1_1AllocateHostedConnectionCommand = function (out
|
|
|
823
825
|
});
|
|
824
826
|
}); };
|
|
825
827
|
var deserializeAws_json1_1AllocateHostedConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
826
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
828
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
827
829
|
var _c;
|
|
828
830
|
return __generator(this, function (_d) {
|
|
829
831
|
switch (_d.label) {
|
|
@@ -833,7 +835,6 @@ var deserializeAws_json1_1AllocateHostedConnectionCommandError = function (outpu
|
|
|
833
835
|
return [4, parseBody(output.body, context)];
|
|
834
836
|
case 1:
|
|
835
837
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
836
|
-
errorCode = "UnknownError";
|
|
837
838
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
839
|
_b = errorCode;
|
|
839
840
|
switch (_b) {
|
|
@@ -857,10 +858,12 @@ var deserializeAws_json1_1AllocateHostedConnectionCommandError = function (outpu
|
|
|
857
858
|
case 9: throw _d.sent();
|
|
858
859
|
case 10:
|
|
859
860
|
parsedBody = parsedOutput.body;
|
|
861
|
+
$metadata = deserializeMetadata(output);
|
|
862
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
860
863
|
response = new __BaseException({
|
|
861
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
862
865
|
$fault: "client",
|
|
863
|
-
$metadata:
|
|
866
|
+
$metadata: $metadata,
|
|
864
867
|
});
|
|
865
868
|
throw __decorateServiceException(response, parsedBody);
|
|
866
869
|
}
|
|
@@ -885,7 +888,7 @@ export var deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommand = functi
|
|
|
885
888
|
});
|
|
886
889
|
}); };
|
|
887
890
|
var deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
888
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
891
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
889
892
|
var _c;
|
|
890
893
|
return __generator(this, function (_d) {
|
|
891
894
|
switch (_d.label) {
|
|
@@ -895,7 +898,6 @@ var deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommandError = function
|
|
|
895
898
|
return [4, parseBody(output.body, context)];
|
|
896
899
|
case 1:
|
|
897
900
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
898
|
-
errorCode = "UnknownError";
|
|
899
901
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
902
|
_b = errorCode;
|
|
901
903
|
switch (_b) {
|
|
@@ -919,10 +921,12 @@ var deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommandError = function
|
|
|
919
921
|
case 9: throw _d.sent();
|
|
920
922
|
case 10:
|
|
921
923
|
parsedBody = parsedOutput.body;
|
|
924
|
+
$metadata = deserializeMetadata(output);
|
|
925
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
922
926
|
response = new __BaseException({
|
|
923
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
927
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
924
928
|
$fault: "client",
|
|
925
|
-
$metadata:
|
|
929
|
+
$metadata: $metadata,
|
|
926
930
|
});
|
|
927
931
|
throw __decorateServiceException(response, parsedBody);
|
|
928
932
|
}
|
|
@@ -947,7 +951,7 @@ export var deserializeAws_json1_1AllocatePublicVirtualInterfaceCommand = functio
|
|
|
947
951
|
});
|
|
948
952
|
}); };
|
|
949
953
|
var deserializeAws_json1_1AllocatePublicVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
950
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
954
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
951
955
|
var _c;
|
|
952
956
|
return __generator(this, function (_d) {
|
|
953
957
|
switch (_d.label) {
|
|
@@ -957,7 +961,6 @@ var deserializeAws_json1_1AllocatePublicVirtualInterfaceCommandError = function
|
|
|
957
961
|
return [4, parseBody(output.body, context)];
|
|
958
962
|
case 1:
|
|
959
963
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
960
|
-
errorCode = "UnknownError";
|
|
961
964
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
965
|
_b = errorCode;
|
|
963
966
|
switch (_b) {
|
|
@@ -981,10 +984,12 @@ var deserializeAws_json1_1AllocatePublicVirtualInterfaceCommandError = function
|
|
|
981
984
|
case 9: throw _d.sent();
|
|
982
985
|
case 10:
|
|
983
986
|
parsedBody = parsedOutput.body;
|
|
987
|
+
$metadata = deserializeMetadata(output);
|
|
988
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
984
989
|
response = new __BaseException({
|
|
985
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
986
991
|
$fault: "client",
|
|
987
|
-
$metadata:
|
|
992
|
+
$metadata: $metadata,
|
|
988
993
|
});
|
|
989
994
|
throw __decorateServiceException(response, parsedBody);
|
|
990
995
|
}
|
|
@@ -1009,7 +1014,7 @@ export var deserializeAws_json1_1AllocateTransitVirtualInterfaceCommand = functi
|
|
|
1009
1014
|
});
|
|
1010
1015
|
}); };
|
|
1011
1016
|
var deserializeAws_json1_1AllocateTransitVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1012
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1017
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1013
1018
|
var _c;
|
|
1014
1019
|
return __generator(this, function (_d) {
|
|
1015
1020
|
switch (_d.label) {
|
|
@@ -1019,7 +1024,6 @@ var deserializeAws_json1_1AllocateTransitVirtualInterfaceCommandError = function
|
|
|
1019
1024
|
return [4, parseBody(output.body, context)];
|
|
1020
1025
|
case 1:
|
|
1021
1026
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1022
|
-
errorCode = "UnknownError";
|
|
1023
1027
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
1028
|
_b = errorCode;
|
|
1025
1029
|
switch (_b) {
|
|
@@ -1043,10 +1047,12 @@ var deserializeAws_json1_1AllocateTransitVirtualInterfaceCommandError = function
|
|
|
1043
1047
|
case 9: throw _d.sent();
|
|
1044
1048
|
case 10:
|
|
1045
1049
|
parsedBody = parsedOutput.body;
|
|
1050
|
+
$metadata = deserializeMetadata(output);
|
|
1051
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1046
1052
|
response = new __BaseException({
|
|
1047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1053
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1048
1054
|
$fault: "client",
|
|
1049
|
-
$metadata:
|
|
1055
|
+
$metadata: $metadata,
|
|
1050
1056
|
});
|
|
1051
1057
|
throw __decorateServiceException(response, parsedBody);
|
|
1052
1058
|
}
|
|
@@ -1071,7 +1077,7 @@ export var deserializeAws_json1_1AssociateConnectionWithLagCommand = function (o
|
|
|
1071
1077
|
});
|
|
1072
1078
|
}); };
|
|
1073
1079
|
var deserializeAws_json1_1AssociateConnectionWithLagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1074
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1080
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1075
1081
|
var _c;
|
|
1076
1082
|
return __generator(this, function (_d) {
|
|
1077
1083
|
switch (_d.label) {
|
|
@@ -1081,7 +1087,6 @@ var deserializeAws_json1_1AssociateConnectionWithLagCommandError = function (out
|
|
|
1081
1087
|
return [4, parseBody(output.body, context)];
|
|
1082
1088
|
case 1:
|
|
1083
1089
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1084
|
-
errorCode = "UnknownError";
|
|
1085
1090
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
1091
|
_b = errorCode;
|
|
1087
1092
|
switch (_b) {
|
|
@@ -1097,10 +1102,12 @@ var deserializeAws_json1_1AssociateConnectionWithLagCommandError = function (out
|
|
|
1097
1102
|
case 5: throw _d.sent();
|
|
1098
1103
|
case 6:
|
|
1099
1104
|
parsedBody = parsedOutput.body;
|
|
1105
|
+
$metadata = deserializeMetadata(output);
|
|
1106
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1100
1107
|
response = new __BaseException({
|
|
1101
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1108
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1102
1109
|
$fault: "client",
|
|
1103
|
-
$metadata:
|
|
1110
|
+
$metadata: $metadata,
|
|
1104
1111
|
});
|
|
1105
1112
|
throw __decorateServiceException(response, parsedBody);
|
|
1106
1113
|
}
|
|
@@ -1125,7 +1132,7 @@ export var deserializeAws_json1_1AssociateHostedConnectionCommand = function (ou
|
|
|
1125
1132
|
});
|
|
1126
1133
|
}); };
|
|
1127
1134
|
var deserializeAws_json1_1AssociateHostedConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1128
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1135
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1129
1136
|
var _c;
|
|
1130
1137
|
return __generator(this, function (_d) {
|
|
1131
1138
|
switch (_d.label) {
|
|
@@ -1135,7 +1142,6 @@ var deserializeAws_json1_1AssociateHostedConnectionCommandError = function (outp
|
|
|
1135
1142
|
return [4, parseBody(output.body, context)];
|
|
1136
1143
|
case 1:
|
|
1137
1144
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1138
|
-
errorCode = "UnknownError";
|
|
1139
1145
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
1146
|
_b = errorCode;
|
|
1141
1147
|
switch (_b) {
|
|
@@ -1151,10 +1157,12 @@ var deserializeAws_json1_1AssociateHostedConnectionCommandError = function (outp
|
|
|
1151
1157
|
case 5: throw _d.sent();
|
|
1152
1158
|
case 6:
|
|
1153
1159
|
parsedBody = parsedOutput.body;
|
|
1160
|
+
$metadata = deserializeMetadata(output);
|
|
1161
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1154
1162
|
response = new __BaseException({
|
|
1155
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1163
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1156
1164
|
$fault: "client",
|
|
1157
|
-
$metadata:
|
|
1165
|
+
$metadata: $metadata,
|
|
1158
1166
|
});
|
|
1159
1167
|
throw __decorateServiceException(response, parsedBody);
|
|
1160
1168
|
}
|
|
@@ -1179,7 +1187,7 @@ export var deserializeAws_json1_1AssociateMacSecKeyCommand = function (output, c
|
|
|
1179
1187
|
});
|
|
1180
1188
|
}); };
|
|
1181
1189
|
var deserializeAws_json1_1AssociateMacSecKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1182
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1190
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1183
1191
|
var _c;
|
|
1184
1192
|
return __generator(this, function (_d) {
|
|
1185
1193
|
switch (_d.label) {
|
|
@@ -1189,7 +1197,6 @@ var deserializeAws_json1_1AssociateMacSecKeyCommandError = function (output, con
|
|
|
1189
1197
|
return [4, parseBody(output.body, context)];
|
|
1190
1198
|
case 1:
|
|
1191
1199
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1192
|
-
errorCode = "UnknownError";
|
|
1193
1200
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1201
|
_b = errorCode;
|
|
1195
1202
|
switch (_b) {
|
|
@@ -1205,10 +1212,12 @@ var deserializeAws_json1_1AssociateMacSecKeyCommandError = function (output, con
|
|
|
1205
1212
|
case 5: throw _d.sent();
|
|
1206
1213
|
case 6:
|
|
1207
1214
|
parsedBody = parsedOutput.body;
|
|
1215
|
+
$metadata = deserializeMetadata(output);
|
|
1216
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1208
1217
|
response = new __BaseException({
|
|
1209
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1218
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1210
1219
|
$fault: "client",
|
|
1211
|
-
$metadata:
|
|
1220
|
+
$metadata: $metadata,
|
|
1212
1221
|
});
|
|
1213
1222
|
throw __decorateServiceException(response, parsedBody);
|
|
1214
1223
|
}
|
|
@@ -1233,7 +1242,7 @@ export var deserializeAws_json1_1AssociateVirtualInterfaceCommand = function (ou
|
|
|
1233
1242
|
});
|
|
1234
1243
|
}); };
|
|
1235
1244
|
var deserializeAws_json1_1AssociateVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1236
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1245
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1237
1246
|
var _c;
|
|
1238
1247
|
return __generator(this, function (_d) {
|
|
1239
1248
|
switch (_d.label) {
|
|
@@ -1243,7 +1252,6 @@ var deserializeAws_json1_1AssociateVirtualInterfaceCommandError = function (outp
|
|
|
1243
1252
|
return [4, parseBody(output.body, context)];
|
|
1244
1253
|
case 1:
|
|
1245
1254
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1246
|
-
errorCode = "UnknownError";
|
|
1247
1255
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
1256
|
_b = errorCode;
|
|
1249
1257
|
switch (_b) {
|
|
@@ -1259,10 +1267,12 @@ var deserializeAws_json1_1AssociateVirtualInterfaceCommandError = function (outp
|
|
|
1259
1267
|
case 5: throw _d.sent();
|
|
1260
1268
|
case 6:
|
|
1261
1269
|
parsedBody = parsedOutput.body;
|
|
1270
|
+
$metadata = deserializeMetadata(output);
|
|
1271
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1262
1272
|
response = new __BaseException({
|
|
1263
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1273
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1264
1274
|
$fault: "client",
|
|
1265
|
-
$metadata:
|
|
1275
|
+
$metadata: $metadata,
|
|
1266
1276
|
});
|
|
1267
1277
|
throw __decorateServiceException(response, parsedBody);
|
|
1268
1278
|
}
|
|
@@ -1287,7 +1297,7 @@ export var deserializeAws_json1_1ConfirmConnectionCommand = function (output, co
|
|
|
1287
1297
|
});
|
|
1288
1298
|
}); };
|
|
1289
1299
|
var deserializeAws_json1_1ConfirmConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1290
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1300
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1291
1301
|
var _c;
|
|
1292
1302
|
return __generator(this, function (_d) {
|
|
1293
1303
|
switch (_d.label) {
|
|
@@ -1297,7 +1307,6 @@ var deserializeAws_json1_1ConfirmConnectionCommandError = function (output, cont
|
|
|
1297
1307
|
return [4, parseBody(output.body, context)];
|
|
1298
1308
|
case 1:
|
|
1299
1309
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1300
|
-
errorCode = "UnknownError";
|
|
1301
1310
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
1311
|
_b = errorCode;
|
|
1303
1312
|
switch (_b) {
|
|
@@ -1313,10 +1322,12 @@ var deserializeAws_json1_1ConfirmConnectionCommandError = function (output, cont
|
|
|
1313
1322
|
case 5: throw _d.sent();
|
|
1314
1323
|
case 6:
|
|
1315
1324
|
parsedBody = parsedOutput.body;
|
|
1325
|
+
$metadata = deserializeMetadata(output);
|
|
1326
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1316
1327
|
response = new __BaseException({
|
|
1317
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1328
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1318
1329
|
$fault: "client",
|
|
1319
|
-
$metadata:
|
|
1330
|
+
$metadata: $metadata,
|
|
1320
1331
|
});
|
|
1321
1332
|
throw __decorateServiceException(response, parsedBody);
|
|
1322
1333
|
}
|
|
@@ -1341,7 +1352,7 @@ export var deserializeAws_json1_1ConfirmCustomerAgreementCommand = function (out
|
|
|
1341
1352
|
});
|
|
1342
1353
|
}); };
|
|
1343
1354
|
var deserializeAws_json1_1ConfirmCustomerAgreementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1344
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1355
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1345
1356
|
var _c;
|
|
1346
1357
|
return __generator(this, function (_d) {
|
|
1347
1358
|
switch (_d.label) {
|
|
@@ -1351,7 +1362,6 @@ var deserializeAws_json1_1ConfirmCustomerAgreementCommandError = function (outpu
|
|
|
1351
1362
|
return [4, parseBody(output.body, context)];
|
|
1352
1363
|
case 1:
|
|
1353
1364
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1354
|
-
errorCode = "UnknownError";
|
|
1355
1365
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
1366
|
_b = errorCode;
|
|
1357
1367
|
switch (_b) {
|
|
@@ -1367,10 +1377,12 @@ var deserializeAws_json1_1ConfirmCustomerAgreementCommandError = function (outpu
|
|
|
1367
1377
|
case 5: throw _d.sent();
|
|
1368
1378
|
case 6:
|
|
1369
1379
|
parsedBody = parsedOutput.body;
|
|
1380
|
+
$metadata = deserializeMetadata(output);
|
|
1381
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1370
1382
|
response = new __BaseException({
|
|
1371
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1383
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1372
1384
|
$fault: "client",
|
|
1373
|
-
$metadata:
|
|
1385
|
+
$metadata: $metadata,
|
|
1374
1386
|
});
|
|
1375
1387
|
throw __decorateServiceException(response, parsedBody);
|
|
1376
1388
|
}
|
|
@@ -1395,7 +1407,7 @@ export var deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommand = functio
|
|
|
1395
1407
|
});
|
|
1396
1408
|
}); };
|
|
1397
1409
|
var deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1398
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1410
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1399
1411
|
var _c;
|
|
1400
1412
|
return __generator(this, function (_d) {
|
|
1401
1413
|
switch (_d.label) {
|
|
@@ -1405,7 +1417,6 @@ var deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommandError = function
|
|
|
1405
1417
|
return [4, parseBody(output.body, context)];
|
|
1406
1418
|
case 1:
|
|
1407
1419
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1408
|
-
errorCode = "UnknownError";
|
|
1409
1420
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
1421
|
_b = errorCode;
|
|
1411
1422
|
switch (_b) {
|
|
@@ -1421,10 +1432,12 @@ var deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommandError = function
|
|
|
1421
1432
|
case 5: throw _d.sent();
|
|
1422
1433
|
case 6:
|
|
1423
1434
|
parsedBody = parsedOutput.body;
|
|
1435
|
+
$metadata = deserializeMetadata(output);
|
|
1436
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1424
1437
|
response = new __BaseException({
|
|
1425
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1438
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1426
1439
|
$fault: "client",
|
|
1427
|
-
$metadata:
|
|
1440
|
+
$metadata: $metadata,
|
|
1428
1441
|
});
|
|
1429
1442
|
throw __decorateServiceException(response, parsedBody);
|
|
1430
1443
|
}
|
|
@@ -1449,7 +1462,7 @@ export var deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommand = function
|
|
|
1449
1462
|
});
|
|
1450
1463
|
}); };
|
|
1451
1464
|
var deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1452
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1465
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1453
1466
|
var _c;
|
|
1454
1467
|
return __generator(this, function (_d) {
|
|
1455
1468
|
switch (_d.label) {
|
|
@@ -1459,7 +1472,6 @@ var deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommandError = function (
|
|
|
1459
1472
|
return [4, parseBody(output.body, context)];
|
|
1460
1473
|
case 1:
|
|
1461
1474
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1462
|
-
errorCode = "UnknownError";
|
|
1463
1475
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
1476
|
_b = errorCode;
|
|
1465
1477
|
switch (_b) {
|
|
@@ -1475,10 +1487,12 @@ var deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommandError = function (
|
|
|
1475
1487
|
case 5: throw _d.sent();
|
|
1476
1488
|
case 6:
|
|
1477
1489
|
parsedBody = parsedOutput.body;
|
|
1490
|
+
$metadata = deserializeMetadata(output);
|
|
1491
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1478
1492
|
response = new __BaseException({
|
|
1479
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1493
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1480
1494
|
$fault: "client",
|
|
1481
|
-
$metadata:
|
|
1495
|
+
$metadata: $metadata,
|
|
1482
1496
|
});
|
|
1483
1497
|
throw __decorateServiceException(response, parsedBody);
|
|
1484
1498
|
}
|
|
@@ -1503,7 +1517,7 @@ export var deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommand = functio
|
|
|
1503
1517
|
});
|
|
1504
1518
|
}); };
|
|
1505
1519
|
var deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1506
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1520
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1507
1521
|
var _c;
|
|
1508
1522
|
return __generator(this, function (_d) {
|
|
1509
1523
|
switch (_d.label) {
|
|
@@ -1513,7 +1527,6 @@ var deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommandError = function
|
|
|
1513
1527
|
return [4, parseBody(output.body, context)];
|
|
1514
1528
|
case 1:
|
|
1515
1529
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1516
|
-
errorCode = "UnknownError";
|
|
1517
1530
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
1531
|
_b = errorCode;
|
|
1519
1532
|
switch (_b) {
|
|
@@ -1529,10 +1542,12 @@ var deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommandError = function
|
|
|
1529
1542
|
case 5: throw _d.sent();
|
|
1530
1543
|
case 6:
|
|
1531
1544
|
parsedBody = parsedOutput.body;
|
|
1545
|
+
$metadata = deserializeMetadata(output);
|
|
1546
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1532
1547
|
response = new __BaseException({
|
|
1533
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1548
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1534
1549
|
$fault: "client",
|
|
1535
|
-
$metadata:
|
|
1550
|
+
$metadata: $metadata,
|
|
1536
1551
|
});
|
|
1537
1552
|
throw __decorateServiceException(response, parsedBody);
|
|
1538
1553
|
}
|
|
@@ -1557,7 +1572,7 @@ export var deserializeAws_json1_1CreateBGPPeerCommand = function (output, contex
|
|
|
1557
1572
|
});
|
|
1558
1573
|
}); };
|
|
1559
1574
|
var deserializeAws_json1_1CreateBGPPeerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1560
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1575
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1561
1576
|
var _c;
|
|
1562
1577
|
return __generator(this, function (_d) {
|
|
1563
1578
|
switch (_d.label) {
|
|
@@ -1567,7 +1582,6 @@ var deserializeAws_json1_1CreateBGPPeerCommandError = function (output, context)
|
|
|
1567
1582
|
return [4, parseBody(output.body, context)];
|
|
1568
1583
|
case 1:
|
|
1569
1584
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1570
|
-
errorCode = "UnknownError";
|
|
1571
1585
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1572
1586
|
_b = errorCode;
|
|
1573
1587
|
switch (_b) {
|
|
@@ -1583,10 +1597,12 @@ var deserializeAws_json1_1CreateBGPPeerCommandError = function (output, context)
|
|
|
1583
1597
|
case 5: throw _d.sent();
|
|
1584
1598
|
case 6:
|
|
1585
1599
|
parsedBody = parsedOutput.body;
|
|
1600
|
+
$metadata = deserializeMetadata(output);
|
|
1601
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1586
1602
|
response = new __BaseException({
|
|
1587
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1603
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1588
1604
|
$fault: "client",
|
|
1589
|
-
$metadata:
|
|
1605
|
+
$metadata: $metadata,
|
|
1590
1606
|
});
|
|
1591
1607
|
throw __decorateServiceException(response, parsedBody);
|
|
1592
1608
|
}
|
|
@@ -1611,7 +1627,7 @@ export var deserializeAws_json1_1CreateConnectionCommand = function (output, con
|
|
|
1611
1627
|
});
|
|
1612
1628
|
}); };
|
|
1613
1629
|
var deserializeAws_json1_1CreateConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1614
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1630
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1615
1631
|
var _c;
|
|
1616
1632
|
return __generator(this, function (_d) {
|
|
1617
1633
|
switch (_d.label) {
|
|
@@ -1621,7 +1637,6 @@ var deserializeAws_json1_1CreateConnectionCommandError = function (output, conte
|
|
|
1621
1637
|
return [4, parseBody(output.body, context)];
|
|
1622
1638
|
case 1:
|
|
1623
1639
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1624
|
-
errorCode = "UnknownError";
|
|
1625
1640
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
1641
|
_b = errorCode;
|
|
1627
1642
|
switch (_b) {
|
|
@@ -1645,10 +1660,12 @@ var deserializeAws_json1_1CreateConnectionCommandError = function (output, conte
|
|
|
1645
1660
|
case 9: throw _d.sent();
|
|
1646
1661
|
case 10:
|
|
1647
1662
|
parsedBody = parsedOutput.body;
|
|
1663
|
+
$metadata = deserializeMetadata(output);
|
|
1664
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1648
1665
|
response = new __BaseException({
|
|
1649
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1666
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1650
1667
|
$fault: "client",
|
|
1651
|
-
$metadata:
|
|
1668
|
+
$metadata: $metadata,
|
|
1652
1669
|
});
|
|
1653
1670
|
throw __decorateServiceException(response, parsedBody);
|
|
1654
1671
|
}
|
|
@@ -1673,7 +1690,7 @@ export var deserializeAws_json1_1CreateDirectConnectGatewayCommand = function (o
|
|
|
1673
1690
|
});
|
|
1674
1691
|
}); };
|
|
1675
1692
|
var deserializeAws_json1_1CreateDirectConnectGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1676
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1693
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1677
1694
|
var _c;
|
|
1678
1695
|
return __generator(this, function (_d) {
|
|
1679
1696
|
switch (_d.label) {
|
|
@@ -1683,7 +1700,6 @@ var deserializeAws_json1_1CreateDirectConnectGatewayCommandError = function (out
|
|
|
1683
1700
|
return [4, parseBody(output.body, context)];
|
|
1684
1701
|
case 1:
|
|
1685
1702
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1686
|
-
errorCode = "UnknownError";
|
|
1687
1703
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
1704
|
_b = errorCode;
|
|
1689
1705
|
switch (_b) {
|
|
@@ -1699,10 +1715,12 @@ var deserializeAws_json1_1CreateDirectConnectGatewayCommandError = function (out
|
|
|
1699
1715
|
case 5: throw _d.sent();
|
|
1700
1716
|
case 6:
|
|
1701
1717
|
parsedBody = parsedOutput.body;
|
|
1718
|
+
$metadata = deserializeMetadata(output);
|
|
1719
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1702
1720
|
response = new __BaseException({
|
|
1703
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1721
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1704
1722
|
$fault: "client",
|
|
1705
|
-
$metadata:
|
|
1723
|
+
$metadata: $metadata,
|
|
1706
1724
|
});
|
|
1707
1725
|
throw __decorateServiceException(response, parsedBody);
|
|
1708
1726
|
}
|
|
@@ -1727,7 +1745,7 @@ export var deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommand =
|
|
|
1727
1745
|
});
|
|
1728
1746
|
}); };
|
|
1729
1747
|
var deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1730
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1748
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1731
1749
|
var _c;
|
|
1732
1750
|
return __generator(this, function (_d) {
|
|
1733
1751
|
switch (_d.label) {
|
|
@@ -1737,7 +1755,6 @@ var deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommandError = fu
|
|
|
1737
1755
|
return [4, parseBody(output.body, context)];
|
|
1738
1756
|
case 1:
|
|
1739
1757
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1740
|
-
errorCode = "UnknownError";
|
|
1741
1758
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
1759
|
_b = errorCode;
|
|
1743
1760
|
switch (_b) {
|
|
@@ -1753,10 +1770,12 @@ var deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommandError = fu
|
|
|
1753
1770
|
case 5: throw _d.sent();
|
|
1754
1771
|
case 6:
|
|
1755
1772
|
parsedBody = parsedOutput.body;
|
|
1773
|
+
$metadata = deserializeMetadata(output);
|
|
1774
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1756
1775
|
response = new __BaseException({
|
|
1757
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1776
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1758
1777
|
$fault: "client",
|
|
1759
|
-
$metadata:
|
|
1778
|
+
$metadata: $metadata,
|
|
1760
1779
|
});
|
|
1761
1780
|
throw __decorateServiceException(response, parsedBody);
|
|
1762
1781
|
}
|
|
@@ -1781,7 +1800,7 @@ export var deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCo
|
|
|
1781
1800
|
});
|
|
1782
1801
|
}); };
|
|
1783
1802
|
var deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1784
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1803
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1785
1804
|
var _c;
|
|
1786
1805
|
return __generator(this, function (_d) {
|
|
1787
1806
|
switch (_d.label) {
|
|
@@ -1791,7 +1810,6 @@ var deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommandEr
|
|
|
1791
1810
|
return [4, parseBody(output.body, context)];
|
|
1792
1811
|
case 1:
|
|
1793
1812
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1794
|
-
errorCode = "UnknownError";
|
|
1795
1813
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1796
1814
|
_b = errorCode;
|
|
1797
1815
|
switch (_b) {
|
|
@@ -1807,10 +1825,12 @@ var deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommandEr
|
|
|
1807
1825
|
case 5: throw _d.sent();
|
|
1808
1826
|
case 6:
|
|
1809
1827
|
parsedBody = parsedOutput.body;
|
|
1828
|
+
$metadata = deserializeMetadata(output);
|
|
1829
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1810
1830
|
response = new __BaseException({
|
|
1811
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1831
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1812
1832
|
$fault: "client",
|
|
1813
|
-
$metadata:
|
|
1833
|
+
$metadata: $metadata,
|
|
1814
1834
|
});
|
|
1815
1835
|
throw __decorateServiceException(response, parsedBody);
|
|
1816
1836
|
}
|
|
@@ -1835,7 +1855,7 @@ export var deserializeAws_json1_1CreateInterconnectCommand = function (output, c
|
|
|
1835
1855
|
});
|
|
1836
1856
|
}); };
|
|
1837
1857
|
var deserializeAws_json1_1CreateInterconnectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1838
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1858
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1839
1859
|
var _c;
|
|
1840
1860
|
return __generator(this, function (_d) {
|
|
1841
1861
|
switch (_d.label) {
|
|
@@ -1845,7 +1865,6 @@ var deserializeAws_json1_1CreateInterconnectCommandError = function (output, con
|
|
|
1845
1865
|
return [4, parseBody(output.body, context)];
|
|
1846
1866
|
case 1:
|
|
1847
1867
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1848
|
-
errorCode = "UnknownError";
|
|
1849
1868
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1850
1869
|
_b = errorCode;
|
|
1851
1870
|
switch (_b) {
|
|
@@ -1869,10 +1888,12 @@ var deserializeAws_json1_1CreateInterconnectCommandError = function (output, con
|
|
|
1869
1888
|
case 9: throw _d.sent();
|
|
1870
1889
|
case 10:
|
|
1871
1890
|
parsedBody = parsedOutput.body;
|
|
1891
|
+
$metadata = deserializeMetadata(output);
|
|
1892
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1872
1893
|
response = new __BaseException({
|
|
1873
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1894
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1874
1895
|
$fault: "client",
|
|
1875
|
-
$metadata:
|
|
1896
|
+
$metadata: $metadata,
|
|
1876
1897
|
});
|
|
1877
1898
|
throw __decorateServiceException(response, parsedBody);
|
|
1878
1899
|
}
|
|
@@ -1897,7 +1918,7 @@ export var deserializeAws_json1_1CreateLagCommand = function (output, context) {
|
|
|
1897
1918
|
});
|
|
1898
1919
|
}); };
|
|
1899
1920
|
var deserializeAws_json1_1CreateLagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1900
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1921
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1901
1922
|
var _c;
|
|
1902
1923
|
return __generator(this, function (_d) {
|
|
1903
1924
|
switch (_d.label) {
|
|
@@ -1907,7 +1928,6 @@ var deserializeAws_json1_1CreateLagCommandError = function (output, context) { r
|
|
|
1907
1928
|
return [4, parseBody(output.body, context)];
|
|
1908
1929
|
case 1:
|
|
1909
1930
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1910
|
-
errorCode = "UnknownError";
|
|
1911
1931
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
1932
|
_b = errorCode;
|
|
1913
1933
|
switch (_b) {
|
|
@@ -1931,10 +1951,12 @@ var deserializeAws_json1_1CreateLagCommandError = function (output, context) { r
|
|
|
1931
1951
|
case 9: throw _d.sent();
|
|
1932
1952
|
case 10:
|
|
1933
1953
|
parsedBody = parsedOutput.body;
|
|
1954
|
+
$metadata = deserializeMetadata(output);
|
|
1955
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1934
1956
|
response = new __BaseException({
|
|
1935
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1957
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1936
1958
|
$fault: "client",
|
|
1937
|
-
$metadata:
|
|
1959
|
+
$metadata: $metadata,
|
|
1938
1960
|
});
|
|
1939
1961
|
throw __decorateServiceException(response, parsedBody);
|
|
1940
1962
|
}
|
|
@@ -1959,7 +1981,7 @@ export var deserializeAws_json1_1CreatePrivateVirtualInterfaceCommand = function
|
|
|
1959
1981
|
});
|
|
1960
1982
|
}); };
|
|
1961
1983
|
var deserializeAws_json1_1CreatePrivateVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1962
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1984
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1963
1985
|
var _c;
|
|
1964
1986
|
return __generator(this, function (_d) {
|
|
1965
1987
|
switch (_d.label) {
|
|
@@ -1969,7 +1991,6 @@ var deserializeAws_json1_1CreatePrivateVirtualInterfaceCommandError = function (
|
|
|
1969
1991
|
return [4, parseBody(output.body, context)];
|
|
1970
1992
|
case 1:
|
|
1971
1993
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1972
|
-
errorCode = "UnknownError";
|
|
1973
1994
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1974
1995
|
_b = errorCode;
|
|
1975
1996
|
switch (_b) {
|
|
@@ -1993,10 +2014,12 @@ var deserializeAws_json1_1CreatePrivateVirtualInterfaceCommandError = function (
|
|
|
1993
2014
|
case 9: throw _d.sent();
|
|
1994
2015
|
case 10:
|
|
1995
2016
|
parsedBody = parsedOutput.body;
|
|
2017
|
+
$metadata = deserializeMetadata(output);
|
|
2018
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1996
2019
|
response = new __BaseException({
|
|
1997
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2020
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1998
2021
|
$fault: "client",
|
|
1999
|
-
$metadata:
|
|
2022
|
+
$metadata: $metadata,
|
|
2000
2023
|
});
|
|
2001
2024
|
throw __decorateServiceException(response, parsedBody);
|
|
2002
2025
|
}
|
|
@@ -2021,7 +2044,7 @@ export var deserializeAws_json1_1CreatePublicVirtualInterfaceCommand = function
|
|
|
2021
2044
|
});
|
|
2022
2045
|
}); };
|
|
2023
2046
|
var deserializeAws_json1_1CreatePublicVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2024
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2047
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2025
2048
|
var _c;
|
|
2026
2049
|
return __generator(this, function (_d) {
|
|
2027
2050
|
switch (_d.label) {
|
|
@@ -2031,7 +2054,6 @@ var deserializeAws_json1_1CreatePublicVirtualInterfaceCommandError = function (o
|
|
|
2031
2054
|
return [4, parseBody(output.body, context)];
|
|
2032
2055
|
case 1:
|
|
2033
2056
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2034
|
-
errorCode = "UnknownError";
|
|
2035
2057
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
2058
|
_b = errorCode;
|
|
2037
2059
|
switch (_b) {
|
|
@@ -2055,10 +2077,12 @@ var deserializeAws_json1_1CreatePublicVirtualInterfaceCommandError = function (o
|
|
|
2055
2077
|
case 9: throw _d.sent();
|
|
2056
2078
|
case 10:
|
|
2057
2079
|
parsedBody = parsedOutput.body;
|
|
2080
|
+
$metadata = deserializeMetadata(output);
|
|
2081
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2058
2082
|
response = new __BaseException({
|
|
2059
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2060
2084
|
$fault: "client",
|
|
2061
|
-
$metadata:
|
|
2085
|
+
$metadata: $metadata,
|
|
2062
2086
|
});
|
|
2063
2087
|
throw __decorateServiceException(response, parsedBody);
|
|
2064
2088
|
}
|
|
@@ -2083,7 +2107,7 @@ export var deserializeAws_json1_1CreateTransitVirtualInterfaceCommand = function
|
|
|
2083
2107
|
});
|
|
2084
2108
|
}); };
|
|
2085
2109
|
var deserializeAws_json1_1CreateTransitVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2086
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2110
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2087
2111
|
var _c;
|
|
2088
2112
|
return __generator(this, function (_d) {
|
|
2089
2113
|
switch (_d.label) {
|
|
@@ -2093,7 +2117,6 @@ var deserializeAws_json1_1CreateTransitVirtualInterfaceCommandError = function (
|
|
|
2093
2117
|
return [4, parseBody(output.body, context)];
|
|
2094
2118
|
case 1:
|
|
2095
2119
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2096
|
-
errorCode = "UnknownError";
|
|
2097
2120
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2098
2121
|
_b = errorCode;
|
|
2099
2122
|
switch (_b) {
|
|
@@ -2117,10 +2140,12 @@ var deserializeAws_json1_1CreateTransitVirtualInterfaceCommandError = function (
|
|
|
2117
2140
|
case 9: throw _d.sent();
|
|
2118
2141
|
case 10:
|
|
2119
2142
|
parsedBody = parsedOutput.body;
|
|
2143
|
+
$metadata = deserializeMetadata(output);
|
|
2144
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2120
2145
|
response = new __BaseException({
|
|
2121
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2146
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2122
2147
|
$fault: "client",
|
|
2123
|
-
$metadata:
|
|
2148
|
+
$metadata: $metadata,
|
|
2124
2149
|
});
|
|
2125
2150
|
throw __decorateServiceException(response, parsedBody);
|
|
2126
2151
|
}
|
|
@@ -2145,7 +2170,7 @@ export var deserializeAws_json1_1DeleteBGPPeerCommand = function (output, contex
|
|
|
2145
2170
|
});
|
|
2146
2171
|
}); };
|
|
2147
2172
|
var deserializeAws_json1_1DeleteBGPPeerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2148
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2173
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2149
2174
|
var _c;
|
|
2150
2175
|
return __generator(this, function (_d) {
|
|
2151
2176
|
switch (_d.label) {
|
|
@@ -2155,7 +2180,6 @@ var deserializeAws_json1_1DeleteBGPPeerCommandError = function (output, context)
|
|
|
2155
2180
|
return [4, parseBody(output.body, context)];
|
|
2156
2181
|
case 1:
|
|
2157
2182
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2158
|
-
errorCode = "UnknownError";
|
|
2159
2183
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
2184
|
_b = errorCode;
|
|
2161
2185
|
switch (_b) {
|
|
@@ -2171,10 +2195,12 @@ var deserializeAws_json1_1DeleteBGPPeerCommandError = function (output, context)
|
|
|
2171
2195
|
case 5: throw _d.sent();
|
|
2172
2196
|
case 6:
|
|
2173
2197
|
parsedBody = parsedOutput.body;
|
|
2198
|
+
$metadata = deserializeMetadata(output);
|
|
2199
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2174
2200
|
response = new __BaseException({
|
|
2175
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2201
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2176
2202
|
$fault: "client",
|
|
2177
|
-
$metadata:
|
|
2203
|
+
$metadata: $metadata,
|
|
2178
2204
|
});
|
|
2179
2205
|
throw __decorateServiceException(response, parsedBody);
|
|
2180
2206
|
}
|
|
@@ -2199,7 +2225,7 @@ export var deserializeAws_json1_1DeleteConnectionCommand = function (output, con
|
|
|
2199
2225
|
});
|
|
2200
2226
|
}); };
|
|
2201
2227
|
var deserializeAws_json1_1DeleteConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2202
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2228
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2203
2229
|
var _c;
|
|
2204
2230
|
return __generator(this, function (_d) {
|
|
2205
2231
|
switch (_d.label) {
|
|
@@ -2209,7 +2235,6 @@ var deserializeAws_json1_1DeleteConnectionCommandError = function (output, conte
|
|
|
2209
2235
|
return [4, parseBody(output.body, context)];
|
|
2210
2236
|
case 1:
|
|
2211
2237
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2212
|
-
errorCode = "UnknownError";
|
|
2213
2238
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
2239
|
_b = errorCode;
|
|
2215
2240
|
switch (_b) {
|
|
@@ -2225,10 +2250,12 @@ var deserializeAws_json1_1DeleteConnectionCommandError = function (output, conte
|
|
|
2225
2250
|
case 5: throw _d.sent();
|
|
2226
2251
|
case 6:
|
|
2227
2252
|
parsedBody = parsedOutput.body;
|
|
2253
|
+
$metadata = deserializeMetadata(output);
|
|
2254
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2228
2255
|
response = new __BaseException({
|
|
2229
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2256
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2230
2257
|
$fault: "client",
|
|
2231
|
-
$metadata:
|
|
2258
|
+
$metadata: $metadata,
|
|
2232
2259
|
});
|
|
2233
2260
|
throw __decorateServiceException(response, parsedBody);
|
|
2234
2261
|
}
|
|
@@ -2253,7 +2280,7 @@ export var deserializeAws_json1_1DeleteDirectConnectGatewayCommand = function (o
|
|
|
2253
2280
|
});
|
|
2254
2281
|
}); };
|
|
2255
2282
|
var deserializeAws_json1_1DeleteDirectConnectGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2256
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2283
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2257
2284
|
var _c;
|
|
2258
2285
|
return __generator(this, function (_d) {
|
|
2259
2286
|
switch (_d.label) {
|
|
@@ -2263,7 +2290,6 @@ var deserializeAws_json1_1DeleteDirectConnectGatewayCommandError = function (out
|
|
|
2263
2290
|
return [4, parseBody(output.body, context)];
|
|
2264
2291
|
case 1:
|
|
2265
2292
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2266
|
-
errorCode = "UnknownError";
|
|
2267
2293
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2268
2294
|
_b = errorCode;
|
|
2269
2295
|
switch (_b) {
|
|
@@ -2279,10 +2305,12 @@ var deserializeAws_json1_1DeleteDirectConnectGatewayCommandError = function (out
|
|
|
2279
2305
|
case 5: throw _d.sent();
|
|
2280
2306
|
case 6:
|
|
2281
2307
|
parsedBody = parsedOutput.body;
|
|
2308
|
+
$metadata = deserializeMetadata(output);
|
|
2309
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2282
2310
|
response = new __BaseException({
|
|
2283
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2311
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2284
2312
|
$fault: "client",
|
|
2285
|
-
$metadata:
|
|
2313
|
+
$metadata: $metadata,
|
|
2286
2314
|
});
|
|
2287
2315
|
throw __decorateServiceException(response, parsedBody);
|
|
2288
2316
|
}
|
|
@@ -2307,7 +2335,7 @@ export var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommand =
|
|
|
2307
2335
|
});
|
|
2308
2336
|
}); };
|
|
2309
2337
|
var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2310
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2338
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2311
2339
|
var _c;
|
|
2312
2340
|
return __generator(this, function (_d) {
|
|
2313
2341
|
switch (_d.label) {
|
|
@@ -2317,7 +2345,6 @@ var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommandError = fu
|
|
|
2317
2345
|
return [4, parseBody(output.body, context)];
|
|
2318
2346
|
case 1:
|
|
2319
2347
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2320
|
-
errorCode = "UnknownError";
|
|
2321
2348
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2322
2349
|
_b = errorCode;
|
|
2323
2350
|
switch (_b) {
|
|
@@ -2333,10 +2360,12 @@ var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommandError = fu
|
|
|
2333
2360
|
case 5: throw _d.sent();
|
|
2334
2361
|
case 6:
|
|
2335
2362
|
parsedBody = parsedOutput.body;
|
|
2363
|
+
$metadata = deserializeMetadata(output);
|
|
2364
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2336
2365
|
response = new __BaseException({
|
|
2337
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2366
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2338
2367
|
$fault: "client",
|
|
2339
|
-
$metadata:
|
|
2368
|
+
$metadata: $metadata,
|
|
2340
2369
|
});
|
|
2341
2370
|
throw __decorateServiceException(response, parsedBody);
|
|
2342
2371
|
}
|
|
@@ -2361,7 +2390,7 @@ export var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCo
|
|
|
2361
2390
|
});
|
|
2362
2391
|
}); };
|
|
2363
2392
|
var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2364
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2393
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2365
2394
|
var _c;
|
|
2366
2395
|
return __generator(this, function (_d) {
|
|
2367
2396
|
switch (_d.label) {
|
|
@@ -2371,7 +2400,6 @@ var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommandEr
|
|
|
2371
2400
|
return [4, parseBody(output.body, context)];
|
|
2372
2401
|
case 1:
|
|
2373
2402
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2374
|
-
errorCode = "UnknownError";
|
|
2375
2403
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2376
2404
|
_b = errorCode;
|
|
2377
2405
|
switch (_b) {
|
|
@@ -2387,10 +2415,12 @@ var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommandEr
|
|
|
2387
2415
|
case 5: throw _d.sent();
|
|
2388
2416
|
case 6:
|
|
2389
2417
|
parsedBody = parsedOutput.body;
|
|
2418
|
+
$metadata = deserializeMetadata(output);
|
|
2419
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2390
2420
|
response = new __BaseException({
|
|
2391
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2421
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2392
2422
|
$fault: "client",
|
|
2393
|
-
$metadata:
|
|
2423
|
+
$metadata: $metadata,
|
|
2394
2424
|
});
|
|
2395
2425
|
throw __decorateServiceException(response, parsedBody);
|
|
2396
2426
|
}
|
|
@@ -2415,7 +2445,7 @@ export var deserializeAws_json1_1DeleteInterconnectCommand = function (output, c
|
|
|
2415
2445
|
});
|
|
2416
2446
|
}); };
|
|
2417
2447
|
var deserializeAws_json1_1DeleteInterconnectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2418
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2448
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2419
2449
|
var _c;
|
|
2420
2450
|
return __generator(this, function (_d) {
|
|
2421
2451
|
switch (_d.label) {
|
|
@@ -2425,7 +2455,6 @@ var deserializeAws_json1_1DeleteInterconnectCommandError = function (output, con
|
|
|
2425
2455
|
return [4, parseBody(output.body, context)];
|
|
2426
2456
|
case 1:
|
|
2427
2457
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2428
|
-
errorCode = "UnknownError";
|
|
2429
2458
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2430
2459
|
_b = errorCode;
|
|
2431
2460
|
switch (_b) {
|
|
@@ -2441,10 +2470,12 @@ var deserializeAws_json1_1DeleteInterconnectCommandError = function (output, con
|
|
|
2441
2470
|
case 5: throw _d.sent();
|
|
2442
2471
|
case 6:
|
|
2443
2472
|
parsedBody = parsedOutput.body;
|
|
2473
|
+
$metadata = deserializeMetadata(output);
|
|
2474
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2444
2475
|
response = new __BaseException({
|
|
2445
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2476
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2446
2477
|
$fault: "client",
|
|
2447
|
-
$metadata:
|
|
2478
|
+
$metadata: $metadata,
|
|
2448
2479
|
});
|
|
2449
2480
|
throw __decorateServiceException(response, parsedBody);
|
|
2450
2481
|
}
|
|
@@ -2469,7 +2500,7 @@ export var deserializeAws_json1_1DeleteLagCommand = function (output, context) {
|
|
|
2469
2500
|
});
|
|
2470
2501
|
}); };
|
|
2471
2502
|
var deserializeAws_json1_1DeleteLagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2472
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2503
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2473
2504
|
var _c;
|
|
2474
2505
|
return __generator(this, function (_d) {
|
|
2475
2506
|
switch (_d.label) {
|
|
@@ -2479,7 +2510,6 @@ var deserializeAws_json1_1DeleteLagCommandError = function (output, context) { r
|
|
|
2479
2510
|
return [4, parseBody(output.body, context)];
|
|
2480
2511
|
case 1:
|
|
2481
2512
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2482
|
-
errorCode = "UnknownError";
|
|
2483
2513
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2484
2514
|
_b = errorCode;
|
|
2485
2515
|
switch (_b) {
|
|
@@ -2495,10 +2525,12 @@ var deserializeAws_json1_1DeleteLagCommandError = function (output, context) { r
|
|
|
2495
2525
|
case 5: throw _d.sent();
|
|
2496
2526
|
case 6:
|
|
2497
2527
|
parsedBody = parsedOutput.body;
|
|
2528
|
+
$metadata = deserializeMetadata(output);
|
|
2529
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2498
2530
|
response = new __BaseException({
|
|
2499
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2531
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2500
2532
|
$fault: "client",
|
|
2501
|
-
$metadata:
|
|
2533
|
+
$metadata: $metadata,
|
|
2502
2534
|
});
|
|
2503
2535
|
throw __decorateServiceException(response, parsedBody);
|
|
2504
2536
|
}
|
|
@@ -2523,7 +2555,7 @@ export var deserializeAws_json1_1DeleteVirtualInterfaceCommand = function (outpu
|
|
|
2523
2555
|
});
|
|
2524
2556
|
}); };
|
|
2525
2557
|
var deserializeAws_json1_1DeleteVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2526
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2558
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2527
2559
|
var _c;
|
|
2528
2560
|
return __generator(this, function (_d) {
|
|
2529
2561
|
switch (_d.label) {
|
|
@@ -2533,7 +2565,6 @@ var deserializeAws_json1_1DeleteVirtualInterfaceCommandError = function (output,
|
|
|
2533
2565
|
return [4, parseBody(output.body, context)];
|
|
2534
2566
|
case 1:
|
|
2535
2567
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2536
|
-
errorCode = "UnknownError";
|
|
2537
2568
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2538
2569
|
_b = errorCode;
|
|
2539
2570
|
switch (_b) {
|
|
@@ -2549,10 +2580,12 @@ var deserializeAws_json1_1DeleteVirtualInterfaceCommandError = function (output,
|
|
|
2549
2580
|
case 5: throw _d.sent();
|
|
2550
2581
|
case 6:
|
|
2551
2582
|
parsedBody = parsedOutput.body;
|
|
2583
|
+
$metadata = deserializeMetadata(output);
|
|
2584
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2552
2585
|
response = new __BaseException({
|
|
2553
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2586
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2554
2587
|
$fault: "client",
|
|
2555
|
-
$metadata:
|
|
2588
|
+
$metadata: $metadata,
|
|
2556
2589
|
});
|
|
2557
2590
|
throw __decorateServiceException(response, parsedBody);
|
|
2558
2591
|
}
|
|
@@ -2577,7 +2610,7 @@ export var deserializeAws_json1_1DescribeConnectionLoaCommand = function (output
|
|
|
2577
2610
|
});
|
|
2578
2611
|
}); };
|
|
2579
2612
|
var deserializeAws_json1_1DescribeConnectionLoaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2580
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2613
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2581
2614
|
var _c;
|
|
2582
2615
|
return __generator(this, function (_d) {
|
|
2583
2616
|
switch (_d.label) {
|
|
@@ -2587,7 +2620,6 @@ var deserializeAws_json1_1DescribeConnectionLoaCommandError = function (output,
|
|
|
2587
2620
|
return [4, parseBody(output.body, context)];
|
|
2588
2621
|
case 1:
|
|
2589
2622
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2590
|
-
errorCode = "UnknownError";
|
|
2591
2623
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2592
2624
|
_b = errorCode;
|
|
2593
2625
|
switch (_b) {
|
|
@@ -2603,10 +2635,12 @@ var deserializeAws_json1_1DescribeConnectionLoaCommandError = function (output,
|
|
|
2603
2635
|
case 5: throw _d.sent();
|
|
2604
2636
|
case 6:
|
|
2605
2637
|
parsedBody = parsedOutput.body;
|
|
2638
|
+
$metadata = deserializeMetadata(output);
|
|
2639
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2606
2640
|
response = new __BaseException({
|
|
2607
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2641
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2608
2642
|
$fault: "client",
|
|
2609
|
-
$metadata:
|
|
2643
|
+
$metadata: $metadata,
|
|
2610
2644
|
});
|
|
2611
2645
|
throw __decorateServiceException(response, parsedBody);
|
|
2612
2646
|
}
|
|
@@ -2631,7 +2665,7 @@ export var deserializeAws_json1_1DescribeConnectionsCommand = function (output,
|
|
|
2631
2665
|
});
|
|
2632
2666
|
}); };
|
|
2633
2667
|
var deserializeAws_json1_1DescribeConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2634
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2668
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2635
2669
|
var _c;
|
|
2636
2670
|
return __generator(this, function (_d) {
|
|
2637
2671
|
switch (_d.label) {
|
|
@@ -2641,7 +2675,6 @@ var deserializeAws_json1_1DescribeConnectionsCommandError = function (output, co
|
|
|
2641
2675
|
return [4, parseBody(output.body, context)];
|
|
2642
2676
|
case 1:
|
|
2643
2677
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2644
|
-
errorCode = "UnknownError";
|
|
2645
2678
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2646
2679
|
_b = errorCode;
|
|
2647
2680
|
switch (_b) {
|
|
@@ -2657,10 +2690,12 @@ var deserializeAws_json1_1DescribeConnectionsCommandError = function (output, co
|
|
|
2657
2690
|
case 5: throw _d.sent();
|
|
2658
2691
|
case 6:
|
|
2659
2692
|
parsedBody = parsedOutput.body;
|
|
2693
|
+
$metadata = deserializeMetadata(output);
|
|
2694
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2660
2695
|
response = new __BaseException({
|
|
2661
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2696
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2662
2697
|
$fault: "client",
|
|
2663
|
-
$metadata:
|
|
2698
|
+
$metadata: $metadata,
|
|
2664
2699
|
});
|
|
2665
2700
|
throw __decorateServiceException(response, parsedBody);
|
|
2666
2701
|
}
|
|
@@ -2685,7 +2720,7 @@ export var deserializeAws_json1_1DescribeConnectionsOnInterconnectCommand = func
|
|
|
2685
2720
|
});
|
|
2686
2721
|
}); };
|
|
2687
2722
|
var deserializeAws_json1_1DescribeConnectionsOnInterconnectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2688
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2723
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2689
2724
|
var _c;
|
|
2690
2725
|
return __generator(this, function (_d) {
|
|
2691
2726
|
switch (_d.label) {
|
|
@@ -2695,7 +2730,6 @@ var deserializeAws_json1_1DescribeConnectionsOnInterconnectCommandError = functi
|
|
|
2695
2730
|
return [4, parseBody(output.body, context)];
|
|
2696
2731
|
case 1:
|
|
2697
2732
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2698
|
-
errorCode = "UnknownError";
|
|
2699
2733
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2700
2734
|
_b = errorCode;
|
|
2701
2735
|
switch (_b) {
|
|
@@ -2711,10 +2745,12 @@ var deserializeAws_json1_1DescribeConnectionsOnInterconnectCommandError = functi
|
|
|
2711
2745
|
case 5: throw _d.sent();
|
|
2712
2746
|
case 6:
|
|
2713
2747
|
parsedBody = parsedOutput.body;
|
|
2748
|
+
$metadata = deserializeMetadata(output);
|
|
2749
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2714
2750
|
response = new __BaseException({
|
|
2715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2751
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2716
2752
|
$fault: "client",
|
|
2717
|
-
$metadata:
|
|
2753
|
+
$metadata: $metadata,
|
|
2718
2754
|
});
|
|
2719
2755
|
throw __decorateServiceException(response, parsedBody);
|
|
2720
2756
|
}
|
|
@@ -2739,7 +2775,7 @@ export var deserializeAws_json1_1DescribeCustomerMetadataCommand = function (out
|
|
|
2739
2775
|
});
|
|
2740
2776
|
}); };
|
|
2741
2777
|
var deserializeAws_json1_1DescribeCustomerMetadataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2742
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2778
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2743
2779
|
var _c;
|
|
2744
2780
|
return __generator(this, function (_d) {
|
|
2745
2781
|
switch (_d.label) {
|
|
@@ -2749,7 +2785,6 @@ var deserializeAws_json1_1DescribeCustomerMetadataCommandError = function (outpu
|
|
|
2749
2785
|
return [4, parseBody(output.body, context)];
|
|
2750
2786
|
case 1:
|
|
2751
2787
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2752
|
-
errorCode = "UnknownError";
|
|
2753
2788
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2754
2789
|
_b = errorCode;
|
|
2755
2790
|
switch (_b) {
|
|
@@ -2765,10 +2800,12 @@ var deserializeAws_json1_1DescribeCustomerMetadataCommandError = function (outpu
|
|
|
2765
2800
|
case 5: throw _d.sent();
|
|
2766
2801
|
case 6:
|
|
2767
2802
|
parsedBody = parsedOutput.body;
|
|
2803
|
+
$metadata = deserializeMetadata(output);
|
|
2804
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2768
2805
|
response = new __BaseException({
|
|
2769
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2806
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2770
2807
|
$fault: "client",
|
|
2771
|
-
$metadata:
|
|
2808
|
+
$metadata: $metadata,
|
|
2772
2809
|
});
|
|
2773
2810
|
throw __decorateServiceException(response, parsedBody);
|
|
2774
2811
|
}
|
|
@@ -2793,7 +2830,7 @@ export var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposal
|
|
|
2793
2830
|
});
|
|
2794
2831
|
}); };
|
|
2795
2832
|
var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2796
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2833
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2797
2834
|
var _c;
|
|
2798
2835
|
return __generator(this, function (_d) {
|
|
2799
2836
|
switch (_d.label) {
|
|
@@ -2803,7 +2840,6 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsComman
|
|
|
2803
2840
|
return [4, parseBody(output.body, context)];
|
|
2804
2841
|
case 1:
|
|
2805
2842
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2806
|
-
errorCode = "UnknownError";
|
|
2807
2843
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2808
2844
|
_b = errorCode;
|
|
2809
2845
|
switch (_b) {
|
|
@@ -2819,10 +2855,12 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsComman
|
|
|
2819
2855
|
case 5: throw _d.sent();
|
|
2820
2856
|
case 6:
|
|
2821
2857
|
parsedBody = parsedOutput.body;
|
|
2858
|
+
$metadata = deserializeMetadata(output);
|
|
2859
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2822
2860
|
response = new __BaseException({
|
|
2823
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2861
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2824
2862
|
$fault: "client",
|
|
2825
|
-
$metadata:
|
|
2863
|
+
$metadata: $metadata,
|
|
2826
2864
|
});
|
|
2827
2865
|
throw __decorateServiceException(response, parsedBody);
|
|
2828
2866
|
}
|
|
@@ -2847,7 +2885,7 @@ export var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommand
|
|
|
2847
2885
|
});
|
|
2848
2886
|
}); };
|
|
2849
2887
|
var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2850
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2888
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2851
2889
|
var _c;
|
|
2852
2890
|
return __generator(this, function (_d) {
|
|
2853
2891
|
switch (_d.label) {
|
|
@@ -2857,7 +2895,6 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommandError =
|
|
|
2857
2895
|
return [4, parseBody(output.body, context)];
|
|
2858
2896
|
case 1:
|
|
2859
2897
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2860
|
-
errorCode = "UnknownError";
|
|
2861
2898
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2862
2899
|
_b = errorCode;
|
|
2863
2900
|
switch (_b) {
|
|
@@ -2873,10 +2910,12 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommandError =
|
|
|
2873
2910
|
case 5: throw _d.sent();
|
|
2874
2911
|
case 6:
|
|
2875
2912
|
parsedBody = parsedOutput.body;
|
|
2913
|
+
$metadata = deserializeMetadata(output);
|
|
2914
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2876
2915
|
response = new __BaseException({
|
|
2877
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2916
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2878
2917
|
$fault: "client",
|
|
2879
|
-
$metadata:
|
|
2918
|
+
$metadata: $metadata,
|
|
2880
2919
|
});
|
|
2881
2920
|
throw __decorateServiceException(response, parsedBody);
|
|
2882
2921
|
}
|
|
@@ -2901,7 +2940,7 @@ export var deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommand
|
|
|
2901
2940
|
});
|
|
2902
2941
|
}); };
|
|
2903
2942
|
var deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2904
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2943
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2905
2944
|
var _c;
|
|
2906
2945
|
return __generator(this, function (_d) {
|
|
2907
2946
|
switch (_d.label) {
|
|
@@ -2911,7 +2950,6 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommandError =
|
|
|
2911
2950
|
return [4, parseBody(output.body, context)];
|
|
2912
2951
|
case 1:
|
|
2913
2952
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2914
|
-
errorCode = "UnknownError";
|
|
2915
2953
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2916
2954
|
_b = errorCode;
|
|
2917
2955
|
switch (_b) {
|
|
@@ -2927,10 +2965,12 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommandError =
|
|
|
2927
2965
|
case 5: throw _d.sent();
|
|
2928
2966
|
case 6:
|
|
2929
2967
|
parsedBody = parsedOutput.body;
|
|
2968
|
+
$metadata = deserializeMetadata(output);
|
|
2969
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2930
2970
|
response = new __BaseException({
|
|
2931
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2971
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2932
2972
|
$fault: "client",
|
|
2933
|
-
$metadata:
|
|
2973
|
+
$metadata: $metadata,
|
|
2934
2974
|
});
|
|
2935
2975
|
throw __decorateServiceException(response, parsedBody);
|
|
2936
2976
|
}
|
|
@@ -2955,7 +2995,7 @@ export var deserializeAws_json1_1DescribeDirectConnectGatewaysCommand = function
|
|
|
2955
2995
|
});
|
|
2956
2996
|
}); };
|
|
2957
2997
|
var deserializeAws_json1_1DescribeDirectConnectGatewaysCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2958
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2998
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2959
2999
|
var _c;
|
|
2960
3000
|
return __generator(this, function (_d) {
|
|
2961
3001
|
switch (_d.label) {
|
|
@@ -2965,7 +3005,6 @@ var deserializeAws_json1_1DescribeDirectConnectGatewaysCommandError = function (
|
|
|
2965
3005
|
return [4, parseBody(output.body, context)];
|
|
2966
3006
|
case 1:
|
|
2967
3007
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2968
|
-
errorCode = "UnknownError";
|
|
2969
3008
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2970
3009
|
_b = errorCode;
|
|
2971
3010
|
switch (_b) {
|
|
@@ -2981,10 +3020,12 @@ var deserializeAws_json1_1DescribeDirectConnectGatewaysCommandError = function (
|
|
|
2981
3020
|
case 5: throw _d.sent();
|
|
2982
3021
|
case 6:
|
|
2983
3022
|
parsedBody = parsedOutput.body;
|
|
3023
|
+
$metadata = deserializeMetadata(output);
|
|
3024
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2984
3025
|
response = new __BaseException({
|
|
2985
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3026
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2986
3027
|
$fault: "client",
|
|
2987
|
-
$metadata:
|
|
3028
|
+
$metadata: $metadata,
|
|
2988
3029
|
});
|
|
2989
3030
|
throw __decorateServiceException(response, parsedBody);
|
|
2990
3031
|
}
|
|
@@ -3009,7 +3050,7 @@ export var deserializeAws_json1_1DescribeHostedConnectionsCommand = function (ou
|
|
|
3009
3050
|
});
|
|
3010
3051
|
}); };
|
|
3011
3052
|
var deserializeAws_json1_1DescribeHostedConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3012
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3053
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3013
3054
|
var _c;
|
|
3014
3055
|
return __generator(this, function (_d) {
|
|
3015
3056
|
switch (_d.label) {
|
|
@@ -3019,7 +3060,6 @@ var deserializeAws_json1_1DescribeHostedConnectionsCommandError = function (outp
|
|
|
3019
3060
|
return [4, parseBody(output.body, context)];
|
|
3020
3061
|
case 1:
|
|
3021
3062
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3022
|
-
errorCode = "UnknownError";
|
|
3023
3063
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3024
3064
|
_b = errorCode;
|
|
3025
3065
|
switch (_b) {
|
|
@@ -3035,10 +3075,12 @@ var deserializeAws_json1_1DescribeHostedConnectionsCommandError = function (outp
|
|
|
3035
3075
|
case 5: throw _d.sent();
|
|
3036
3076
|
case 6:
|
|
3037
3077
|
parsedBody = parsedOutput.body;
|
|
3078
|
+
$metadata = deserializeMetadata(output);
|
|
3079
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3038
3080
|
response = new __BaseException({
|
|
3039
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3081
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3040
3082
|
$fault: "client",
|
|
3041
|
-
$metadata:
|
|
3083
|
+
$metadata: $metadata,
|
|
3042
3084
|
});
|
|
3043
3085
|
throw __decorateServiceException(response, parsedBody);
|
|
3044
3086
|
}
|
|
@@ -3063,7 +3105,7 @@ export var deserializeAws_json1_1DescribeInterconnectLoaCommand = function (outp
|
|
|
3063
3105
|
});
|
|
3064
3106
|
}); };
|
|
3065
3107
|
var deserializeAws_json1_1DescribeInterconnectLoaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3066
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3108
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3067
3109
|
var _c;
|
|
3068
3110
|
return __generator(this, function (_d) {
|
|
3069
3111
|
switch (_d.label) {
|
|
@@ -3073,7 +3115,6 @@ var deserializeAws_json1_1DescribeInterconnectLoaCommandError = function (output
|
|
|
3073
3115
|
return [4, parseBody(output.body, context)];
|
|
3074
3116
|
case 1:
|
|
3075
3117
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3076
|
-
errorCode = "UnknownError";
|
|
3077
3118
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3078
3119
|
_b = errorCode;
|
|
3079
3120
|
switch (_b) {
|
|
@@ -3089,10 +3130,12 @@ var deserializeAws_json1_1DescribeInterconnectLoaCommandError = function (output
|
|
|
3089
3130
|
case 5: throw _d.sent();
|
|
3090
3131
|
case 6:
|
|
3091
3132
|
parsedBody = parsedOutput.body;
|
|
3133
|
+
$metadata = deserializeMetadata(output);
|
|
3134
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3092
3135
|
response = new __BaseException({
|
|
3093
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3136
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3094
3137
|
$fault: "client",
|
|
3095
|
-
$metadata:
|
|
3138
|
+
$metadata: $metadata,
|
|
3096
3139
|
});
|
|
3097
3140
|
throw __decorateServiceException(response, parsedBody);
|
|
3098
3141
|
}
|
|
@@ -3117,7 +3160,7 @@ export var deserializeAws_json1_1DescribeInterconnectsCommand = function (output
|
|
|
3117
3160
|
});
|
|
3118
3161
|
}); };
|
|
3119
3162
|
var deserializeAws_json1_1DescribeInterconnectsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3120
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3163
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3121
3164
|
var _c;
|
|
3122
3165
|
return __generator(this, function (_d) {
|
|
3123
3166
|
switch (_d.label) {
|
|
@@ -3127,7 +3170,6 @@ var deserializeAws_json1_1DescribeInterconnectsCommandError = function (output,
|
|
|
3127
3170
|
return [4, parseBody(output.body, context)];
|
|
3128
3171
|
case 1:
|
|
3129
3172
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3130
|
-
errorCode = "UnknownError";
|
|
3131
3173
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3132
3174
|
_b = errorCode;
|
|
3133
3175
|
switch (_b) {
|
|
@@ -3143,10 +3185,12 @@ var deserializeAws_json1_1DescribeInterconnectsCommandError = function (output,
|
|
|
3143
3185
|
case 5: throw _d.sent();
|
|
3144
3186
|
case 6:
|
|
3145
3187
|
parsedBody = parsedOutput.body;
|
|
3188
|
+
$metadata = deserializeMetadata(output);
|
|
3189
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3146
3190
|
response = new __BaseException({
|
|
3147
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3191
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3148
3192
|
$fault: "client",
|
|
3149
|
-
$metadata:
|
|
3193
|
+
$metadata: $metadata,
|
|
3150
3194
|
});
|
|
3151
3195
|
throw __decorateServiceException(response, parsedBody);
|
|
3152
3196
|
}
|
|
@@ -3171,7 +3215,7 @@ export var deserializeAws_json1_1DescribeLagsCommand = function (output, context
|
|
|
3171
3215
|
});
|
|
3172
3216
|
}); };
|
|
3173
3217
|
var deserializeAws_json1_1DescribeLagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3174
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3218
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3175
3219
|
var _c;
|
|
3176
3220
|
return __generator(this, function (_d) {
|
|
3177
3221
|
switch (_d.label) {
|
|
@@ -3181,7 +3225,6 @@ var deserializeAws_json1_1DescribeLagsCommandError = function (output, context)
|
|
|
3181
3225
|
return [4, parseBody(output.body, context)];
|
|
3182
3226
|
case 1:
|
|
3183
3227
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3184
|
-
errorCode = "UnknownError";
|
|
3185
3228
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3186
3229
|
_b = errorCode;
|
|
3187
3230
|
switch (_b) {
|
|
@@ -3197,10 +3240,12 @@ var deserializeAws_json1_1DescribeLagsCommandError = function (output, context)
|
|
|
3197
3240
|
case 5: throw _d.sent();
|
|
3198
3241
|
case 6:
|
|
3199
3242
|
parsedBody = parsedOutput.body;
|
|
3243
|
+
$metadata = deserializeMetadata(output);
|
|
3244
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3200
3245
|
response = new __BaseException({
|
|
3201
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3246
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3202
3247
|
$fault: "client",
|
|
3203
|
-
$metadata:
|
|
3248
|
+
$metadata: $metadata,
|
|
3204
3249
|
});
|
|
3205
3250
|
throw __decorateServiceException(response, parsedBody);
|
|
3206
3251
|
}
|
|
@@ -3225,7 +3270,7 @@ export var deserializeAws_json1_1DescribeLoaCommand = function (output, context)
|
|
|
3225
3270
|
});
|
|
3226
3271
|
}); };
|
|
3227
3272
|
var deserializeAws_json1_1DescribeLoaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3228
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3273
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3229
3274
|
var _c;
|
|
3230
3275
|
return __generator(this, function (_d) {
|
|
3231
3276
|
switch (_d.label) {
|
|
@@ -3235,7 +3280,6 @@ var deserializeAws_json1_1DescribeLoaCommandError = function (output, context) {
|
|
|
3235
3280
|
return [4, parseBody(output.body, context)];
|
|
3236
3281
|
case 1:
|
|
3237
3282
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3238
|
-
errorCode = "UnknownError";
|
|
3239
3283
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3240
3284
|
_b = errorCode;
|
|
3241
3285
|
switch (_b) {
|
|
@@ -3251,10 +3295,12 @@ var deserializeAws_json1_1DescribeLoaCommandError = function (output, context) {
|
|
|
3251
3295
|
case 5: throw _d.sent();
|
|
3252
3296
|
case 6:
|
|
3253
3297
|
parsedBody = parsedOutput.body;
|
|
3298
|
+
$metadata = deserializeMetadata(output);
|
|
3299
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3254
3300
|
response = new __BaseException({
|
|
3255
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3301
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3256
3302
|
$fault: "client",
|
|
3257
|
-
$metadata:
|
|
3303
|
+
$metadata: $metadata,
|
|
3258
3304
|
});
|
|
3259
3305
|
throw __decorateServiceException(response, parsedBody);
|
|
3260
3306
|
}
|
|
@@ -3279,7 +3325,7 @@ export var deserializeAws_json1_1DescribeLocationsCommand = function (output, co
|
|
|
3279
3325
|
});
|
|
3280
3326
|
}); };
|
|
3281
3327
|
var deserializeAws_json1_1DescribeLocationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3282
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3328
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3283
3329
|
var _c;
|
|
3284
3330
|
return __generator(this, function (_d) {
|
|
3285
3331
|
switch (_d.label) {
|
|
@@ -3289,7 +3335,6 @@ var deserializeAws_json1_1DescribeLocationsCommandError = function (output, cont
|
|
|
3289
3335
|
return [4, parseBody(output.body, context)];
|
|
3290
3336
|
case 1:
|
|
3291
3337
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3292
|
-
errorCode = "UnknownError";
|
|
3293
3338
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3294
3339
|
_b = errorCode;
|
|
3295
3340
|
switch (_b) {
|
|
@@ -3305,10 +3350,12 @@ var deserializeAws_json1_1DescribeLocationsCommandError = function (output, cont
|
|
|
3305
3350
|
case 5: throw _d.sent();
|
|
3306
3351
|
case 6:
|
|
3307
3352
|
parsedBody = parsedOutput.body;
|
|
3353
|
+
$metadata = deserializeMetadata(output);
|
|
3354
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3308
3355
|
response = new __BaseException({
|
|
3309
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3310
3357
|
$fault: "client",
|
|
3311
|
-
$metadata:
|
|
3358
|
+
$metadata: $metadata,
|
|
3312
3359
|
});
|
|
3313
3360
|
throw __decorateServiceException(response, parsedBody);
|
|
3314
3361
|
}
|
|
@@ -3333,7 +3380,7 @@ export var deserializeAws_json1_1DescribeRouterConfigurationCommand = function (
|
|
|
3333
3380
|
});
|
|
3334
3381
|
}); };
|
|
3335
3382
|
var deserializeAws_json1_1DescribeRouterConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3336
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3383
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3337
3384
|
var _c;
|
|
3338
3385
|
return __generator(this, function (_d) {
|
|
3339
3386
|
switch (_d.label) {
|
|
@@ -3343,7 +3390,6 @@ var deserializeAws_json1_1DescribeRouterConfigurationCommandError = function (ou
|
|
|
3343
3390
|
return [4, parseBody(output.body, context)];
|
|
3344
3391
|
case 1:
|
|
3345
3392
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3346
|
-
errorCode = "UnknownError";
|
|
3347
3393
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3348
3394
|
_b = errorCode;
|
|
3349
3395
|
switch (_b) {
|
|
@@ -3359,10 +3405,12 @@ var deserializeAws_json1_1DescribeRouterConfigurationCommandError = function (ou
|
|
|
3359
3405
|
case 5: throw _d.sent();
|
|
3360
3406
|
case 6:
|
|
3361
3407
|
parsedBody = parsedOutput.body;
|
|
3408
|
+
$metadata = deserializeMetadata(output);
|
|
3409
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3362
3410
|
response = new __BaseException({
|
|
3363
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3411
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3364
3412
|
$fault: "client",
|
|
3365
|
-
$metadata:
|
|
3413
|
+
$metadata: $metadata,
|
|
3366
3414
|
});
|
|
3367
3415
|
throw __decorateServiceException(response, parsedBody);
|
|
3368
3416
|
}
|
|
@@ -3387,7 +3435,7 @@ export var deserializeAws_json1_1DescribeTagsCommand = function (output, context
|
|
|
3387
3435
|
});
|
|
3388
3436
|
}); };
|
|
3389
3437
|
var deserializeAws_json1_1DescribeTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3390
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3438
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3391
3439
|
var _c;
|
|
3392
3440
|
return __generator(this, function (_d) {
|
|
3393
3441
|
switch (_d.label) {
|
|
@@ -3397,7 +3445,6 @@ var deserializeAws_json1_1DescribeTagsCommandError = function (output, context)
|
|
|
3397
3445
|
return [4, parseBody(output.body, context)];
|
|
3398
3446
|
case 1:
|
|
3399
3447
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3400
|
-
errorCode = "UnknownError";
|
|
3401
3448
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3402
3449
|
_b = errorCode;
|
|
3403
3450
|
switch (_b) {
|
|
@@ -3413,10 +3460,12 @@ var deserializeAws_json1_1DescribeTagsCommandError = function (output, context)
|
|
|
3413
3460
|
case 5: throw _d.sent();
|
|
3414
3461
|
case 6:
|
|
3415
3462
|
parsedBody = parsedOutput.body;
|
|
3463
|
+
$metadata = deserializeMetadata(output);
|
|
3464
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3416
3465
|
response = new __BaseException({
|
|
3417
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3466
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3418
3467
|
$fault: "client",
|
|
3419
|
-
$metadata:
|
|
3468
|
+
$metadata: $metadata,
|
|
3420
3469
|
});
|
|
3421
3470
|
throw __decorateServiceException(response, parsedBody);
|
|
3422
3471
|
}
|
|
@@ -3441,7 +3490,7 @@ export var deserializeAws_json1_1DescribeVirtualGatewaysCommand = function (outp
|
|
|
3441
3490
|
});
|
|
3442
3491
|
}); };
|
|
3443
3492
|
var deserializeAws_json1_1DescribeVirtualGatewaysCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3444
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3493
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3445
3494
|
var _c;
|
|
3446
3495
|
return __generator(this, function (_d) {
|
|
3447
3496
|
switch (_d.label) {
|
|
@@ -3451,7 +3500,6 @@ var deserializeAws_json1_1DescribeVirtualGatewaysCommandError = function (output
|
|
|
3451
3500
|
return [4, parseBody(output.body, context)];
|
|
3452
3501
|
case 1:
|
|
3453
3502
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3454
|
-
errorCode = "UnknownError";
|
|
3455
3503
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3456
3504
|
_b = errorCode;
|
|
3457
3505
|
switch (_b) {
|
|
@@ -3467,10 +3515,12 @@ var deserializeAws_json1_1DescribeVirtualGatewaysCommandError = function (output
|
|
|
3467
3515
|
case 5: throw _d.sent();
|
|
3468
3516
|
case 6:
|
|
3469
3517
|
parsedBody = parsedOutput.body;
|
|
3518
|
+
$metadata = deserializeMetadata(output);
|
|
3519
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3470
3520
|
response = new __BaseException({
|
|
3471
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3521
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3472
3522
|
$fault: "client",
|
|
3473
|
-
$metadata:
|
|
3523
|
+
$metadata: $metadata,
|
|
3474
3524
|
});
|
|
3475
3525
|
throw __decorateServiceException(response, parsedBody);
|
|
3476
3526
|
}
|
|
@@ -3495,7 +3545,7 @@ export var deserializeAws_json1_1DescribeVirtualInterfacesCommand = function (ou
|
|
|
3495
3545
|
});
|
|
3496
3546
|
}); };
|
|
3497
3547
|
var deserializeAws_json1_1DescribeVirtualInterfacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3498
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3548
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3499
3549
|
var _c;
|
|
3500
3550
|
return __generator(this, function (_d) {
|
|
3501
3551
|
switch (_d.label) {
|
|
@@ -3505,7 +3555,6 @@ var deserializeAws_json1_1DescribeVirtualInterfacesCommandError = function (outp
|
|
|
3505
3555
|
return [4, parseBody(output.body, context)];
|
|
3506
3556
|
case 1:
|
|
3507
3557
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3508
|
-
errorCode = "UnknownError";
|
|
3509
3558
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3510
3559
|
_b = errorCode;
|
|
3511
3560
|
switch (_b) {
|
|
@@ -3521,10 +3570,12 @@ var deserializeAws_json1_1DescribeVirtualInterfacesCommandError = function (outp
|
|
|
3521
3570
|
case 5: throw _d.sent();
|
|
3522
3571
|
case 6:
|
|
3523
3572
|
parsedBody = parsedOutput.body;
|
|
3573
|
+
$metadata = deserializeMetadata(output);
|
|
3574
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3524
3575
|
response = new __BaseException({
|
|
3525
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3576
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3526
3577
|
$fault: "client",
|
|
3527
|
-
$metadata:
|
|
3578
|
+
$metadata: $metadata,
|
|
3528
3579
|
});
|
|
3529
3580
|
throw __decorateServiceException(response, parsedBody);
|
|
3530
3581
|
}
|
|
@@ -3549,7 +3600,7 @@ export var deserializeAws_json1_1DisassociateConnectionFromLagCommand = function
|
|
|
3549
3600
|
});
|
|
3550
3601
|
}); };
|
|
3551
3602
|
var deserializeAws_json1_1DisassociateConnectionFromLagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3552
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3603
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3553
3604
|
var _c;
|
|
3554
3605
|
return __generator(this, function (_d) {
|
|
3555
3606
|
switch (_d.label) {
|
|
@@ -3559,7 +3610,6 @@ var deserializeAws_json1_1DisassociateConnectionFromLagCommandError = function (
|
|
|
3559
3610
|
return [4, parseBody(output.body, context)];
|
|
3560
3611
|
case 1:
|
|
3561
3612
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3562
|
-
errorCode = "UnknownError";
|
|
3563
3613
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3564
3614
|
_b = errorCode;
|
|
3565
3615
|
switch (_b) {
|
|
@@ -3575,10 +3625,12 @@ var deserializeAws_json1_1DisassociateConnectionFromLagCommandError = function (
|
|
|
3575
3625
|
case 5: throw _d.sent();
|
|
3576
3626
|
case 6:
|
|
3577
3627
|
parsedBody = parsedOutput.body;
|
|
3628
|
+
$metadata = deserializeMetadata(output);
|
|
3629
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3578
3630
|
response = new __BaseException({
|
|
3579
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3631
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3580
3632
|
$fault: "client",
|
|
3581
|
-
$metadata:
|
|
3633
|
+
$metadata: $metadata,
|
|
3582
3634
|
});
|
|
3583
3635
|
throw __decorateServiceException(response, parsedBody);
|
|
3584
3636
|
}
|
|
@@ -3603,7 +3655,7 @@ export var deserializeAws_json1_1DisassociateMacSecKeyCommand = function (output
|
|
|
3603
3655
|
});
|
|
3604
3656
|
}); };
|
|
3605
3657
|
var deserializeAws_json1_1DisassociateMacSecKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3606
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3658
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3607
3659
|
var _c;
|
|
3608
3660
|
return __generator(this, function (_d) {
|
|
3609
3661
|
switch (_d.label) {
|
|
@@ -3613,7 +3665,6 @@ var deserializeAws_json1_1DisassociateMacSecKeyCommandError = function (output,
|
|
|
3613
3665
|
return [4, parseBody(output.body, context)];
|
|
3614
3666
|
case 1:
|
|
3615
3667
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3616
|
-
errorCode = "UnknownError";
|
|
3617
3668
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3618
3669
|
_b = errorCode;
|
|
3619
3670
|
switch (_b) {
|
|
@@ -3629,10 +3680,12 @@ var deserializeAws_json1_1DisassociateMacSecKeyCommandError = function (output,
|
|
|
3629
3680
|
case 5: throw _d.sent();
|
|
3630
3681
|
case 6:
|
|
3631
3682
|
parsedBody = parsedOutput.body;
|
|
3683
|
+
$metadata = deserializeMetadata(output);
|
|
3684
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3632
3685
|
response = new __BaseException({
|
|
3633
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3686
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3634
3687
|
$fault: "client",
|
|
3635
|
-
$metadata:
|
|
3688
|
+
$metadata: $metadata,
|
|
3636
3689
|
});
|
|
3637
3690
|
throw __decorateServiceException(response, parsedBody);
|
|
3638
3691
|
}
|
|
@@ -3657,7 +3710,7 @@ export var deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommand = functi
|
|
|
3657
3710
|
});
|
|
3658
3711
|
}); };
|
|
3659
3712
|
var deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3660
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3713
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3661
3714
|
var _c;
|
|
3662
3715
|
return __generator(this, function (_d) {
|
|
3663
3716
|
switch (_d.label) {
|
|
@@ -3667,7 +3720,6 @@ var deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommandError = function
|
|
|
3667
3720
|
return [4, parseBody(output.body, context)];
|
|
3668
3721
|
case 1:
|
|
3669
3722
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3670
|
-
errorCode = "UnknownError";
|
|
3671
3723
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3672
3724
|
_b = errorCode;
|
|
3673
3725
|
switch (_b) {
|
|
@@ -3683,10 +3735,12 @@ var deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommandError = function
|
|
|
3683
3735
|
case 5: throw _d.sent();
|
|
3684
3736
|
case 6:
|
|
3685
3737
|
parsedBody = parsedOutput.body;
|
|
3738
|
+
$metadata = deserializeMetadata(output);
|
|
3739
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3686
3740
|
response = new __BaseException({
|
|
3687
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3741
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3688
3742
|
$fault: "client",
|
|
3689
|
-
$metadata:
|
|
3743
|
+
$metadata: $metadata,
|
|
3690
3744
|
});
|
|
3691
3745
|
throw __decorateServiceException(response, parsedBody);
|
|
3692
3746
|
}
|
|
@@ -3711,7 +3765,7 @@ export var deserializeAws_json1_1StartBgpFailoverTestCommand = function (output,
|
|
|
3711
3765
|
});
|
|
3712
3766
|
}); };
|
|
3713
3767
|
var deserializeAws_json1_1StartBgpFailoverTestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3714
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3768
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3715
3769
|
var _c;
|
|
3716
3770
|
return __generator(this, function (_d) {
|
|
3717
3771
|
switch (_d.label) {
|
|
@@ -3721,7 +3775,6 @@ var deserializeAws_json1_1StartBgpFailoverTestCommandError = function (output, c
|
|
|
3721
3775
|
return [4, parseBody(output.body, context)];
|
|
3722
3776
|
case 1:
|
|
3723
3777
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3724
|
-
errorCode = "UnknownError";
|
|
3725
3778
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3726
3779
|
_b = errorCode;
|
|
3727
3780
|
switch (_b) {
|
|
@@ -3737,10 +3790,12 @@ var deserializeAws_json1_1StartBgpFailoverTestCommandError = function (output, c
|
|
|
3737
3790
|
case 5: throw _d.sent();
|
|
3738
3791
|
case 6:
|
|
3739
3792
|
parsedBody = parsedOutput.body;
|
|
3793
|
+
$metadata = deserializeMetadata(output);
|
|
3794
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3740
3795
|
response = new __BaseException({
|
|
3741
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3796
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3742
3797
|
$fault: "client",
|
|
3743
|
-
$metadata:
|
|
3798
|
+
$metadata: $metadata,
|
|
3744
3799
|
});
|
|
3745
3800
|
throw __decorateServiceException(response, parsedBody);
|
|
3746
3801
|
}
|
|
@@ -3765,7 +3820,7 @@ export var deserializeAws_json1_1StopBgpFailoverTestCommand = function (output,
|
|
|
3765
3820
|
});
|
|
3766
3821
|
}); };
|
|
3767
3822
|
var deserializeAws_json1_1StopBgpFailoverTestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3768
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3823
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3769
3824
|
var _c;
|
|
3770
3825
|
return __generator(this, function (_d) {
|
|
3771
3826
|
switch (_d.label) {
|
|
@@ -3775,7 +3830,6 @@ var deserializeAws_json1_1StopBgpFailoverTestCommandError = function (output, co
|
|
|
3775
3830
|
return [4, parseBody(output.body, context)];
|
|
3776
3831
|
case 1:
|
|
3777
3832
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3778
|
-
errorCode = "UnknownError";
|
|
3779
3833
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3780
3834
|
_b = errorCode;
|
|
3781
3835
|
switch (_b) {
|
|
@@ -3791,10 +3845,12 @@ var deserializeAws_json1_1StopBgpFailoverTestCommandError = function (output, co
|
|
|
3791
3845
|
case 5: throw _d.sent();
|
|
3792
3846
|
case 6:
|
|
3793
3847
|
parsedBody = parsedOutput.body;
|
|
3848
|
+
$metadata = deserializeMetadata(output);
|
|
3849
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3794
3850
|
response = new __BaseException({
|
|
3795
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3851
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3796
3852
|
$fault: "client",
|
|
3797
|
-
$metadata:
|
|
3853
|
+
$metadata: $metadata,
|
|
3798
3854
|
});
|
|
3799
3855
|
throw __decorateServiceException(response, parsedBody);
|
|
3800
3856
|
}
|
|
@@ -3819,7 +3875,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
3819
3875
|
});
|
|
3820
3876
|
}); };
|
|
3821
3877
|
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3822
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3878
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3823
3879
|
var _c;
|
|
3824
3880
|
return __generator(this, function (_d) {
|
|
3825
3881
|
switch (_d.label) {
|
|
@@ -3829,7 +3885,6 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
3829
3885
|
return [4, parseBody(output.body, context)];
|
|
3830
3886
|
case 1:
|
|
3831
3887
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3832
|
-
errorCode = "UnknownError";
|
|
3833
3888
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3834
3889
|
_b = errorCode;
|
|
3835
3890
|
switch (_b) {
|
|
@@ -3853,10 +3908,12 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
3853
3908
|
case 9: throw _d.sent();
|
|
3854
3909
|
case 10:
|
|
3855
3910
|
parsedBody = parsedOutput.body;
|
|
3911
|
+
$metadata = deserializeMetadata(output);
|
|
3912
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3856
3913
|
response = new __BaseException({
|
|
3857
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3858
3915
|
$fault: "client",
|
|
3859
|
-
$metadata:
|
|
3916
|
+
$metadata: $metadata,
|
|
3860
3917
|
});
|
|
3861
3918
|
throw __decorateServiceException(response, parsedBody);
|
|
3862
3919
|
}
|
|
@@ -3881,7 +3938,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
3881
3938
|
});
|
|
3882
3939
|
}); };
|
|
3883
3940
|
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3884
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3941
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3885
3942
|
var _c;
|
|
3886
3943
|
return __generator(this, function (_d) {
|
|
3887
3944
|
switch (_d.label) {
|
|
@@ -3891,7 +3948,6 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
3891
3948
|
return [4, parseBody(output.body, context)];
|
|
3892
3949
|
case 1:
|
|
3893
3950
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3894
|
-
errorCode = "UnknownError";
|
|
3895
3951
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3896
3952
|
_b = errorCode;
|
|
3897
3953
|
switch (_b) {
|
|
@@ -3907,10 +3963,12 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
3907
3963
|
case 5: throw _d.sent();
|
|
3908
3964
|
case 6:
|
|
3909
3965
|
parsedBody = parsedOutput.body;
|
|
3966
|
+
$metadata = deserializeMetadata(output);
|
|
3967
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3910
3968
|
response = new __BaseException({
|
|
3911
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3969
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3912
3970
|
$fault: "client",
|
|
3913
|
-
$metadata:
|
|
3971
|
+
$metadata: $metadata,
|
|
3914
3972
|
});
|
|
3915
3973
|
throw __decorateServiceException(response, parsedBody);
|
|
3916
3974
|
}
|
|
@@ -3935,7 +3993,7 @@ export var deserializeAws_json1_1UpdateConnectionCommand = function (output, con
|
|
|
3935
3993
|
});
|
|
3936
3994
|
}); };
|
|
3937
3995
|
var deserializeAws_json1_1UpdateConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3938
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3996
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3939
3997
|
var _c;
|
|
3940
3998
|
return __generator(this, function (_d) {
|
|
3941
3999
|
switch (_d.label) {
|
|
@@ -3945,7 +4003,6 @@ var deserializeAws_json1_1UpdateConnectionCommandError = function (output, conte
|
|
|
3945
4003
|
return [4, parseBody(output.body, context)];
|
|
3946
4004
|
case 1:
|
|
3947
4005
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3948
|
-
errorCode = "UnknownError";
|
|
3949
4006
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3950
4007
|
_b = errorCode;
|
|
3951
4008
|
switch (_b) {
|
|
@@ -3961,10 +4018,12 @@ var deserializeAws_json1_1UpdateConnectionCommandError = function (output, conte
|
|
|
3961
4018
|
case 5: throw _d.sent();
|
|
3962
4019
|
case 6:
|
|
3963
4020
|
parsedBody = parsedOutput.body;
|
|
4021
|
+
$metadata = deserializeMetadata(output);
|
|
4022
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3964
4023
|
response = new __BaseException({
|
|
3965
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4024
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3966
4025
|
$fault: "client",
|
|
3967
|
-
$metadata:
|
|
4026
|
+
$metadata: $metadata,
|
|
3968
4027
|
});
|
|
3969
4028
|
throw __decorateServiceException(response, parsedBody);
|
|
3970
4029
|
}
|
|
@@ -3989,7 +4048,7 @@ export var deserializeAws_json1_1UpdateDirectConnectGatewayCommand = function (o
|
|
|
3989
4048
|
});
|
|
3990
4049
|
}); };
|
|
3991
4050
|
var deserializeAws_json1_1UpdateDirectConnectGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3992
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4051
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3993
4052
|
var _c;
|
|
3994
4053
|
return __generator(this, function (_d) {
|
|
3995
4054
|
switch (_d.label) {
|
|
@@ -3999,7 +4058,6 @@ var deserializeAws_json1_1UpdateDirectConnectGatewayCommandError = function (out
|
|
|
3999
4058
|
return [4, parseBody(output.body, context)];
|
|
4000
4059
|
case 1:
|
|
4001
4060
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4002
|
-
errorCode = "UnknownError";
|
|
4003
4061
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4004
4062
|
_b = errorCode;
|
|
4005
4063
|
switch (_b) {
|
|
@@ -4015,10 +4073,12 @@ var deserializeAws_json1_1UpdateDirectConnectGatewayCommandError = function (out
|
|
|
4015
4073
|
case 5: throw _d.sent();
|
|
4016
4074
|
case 6:
|
|
4017
4075
|
parsedBody = parsedOutput.body;
|
|
4076
|
+
$metadata = deserializeMetadata(output);
|
|
4077
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4018
4078
|
response = new __BaseException({
|
|
4019
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4079
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4020
4080
|
$fault: "client",
|
|
4021
|
-
$metadata:
|
|
4081
|
+
$metadata: $metadata,
|
|
4022
4082
|
});
|
|
4023
4083
|
throw __decorateServiceException(response, parsedBody);
|
|
4024
4084
|
}
|
|
@@ -4043,7 +4103,7 @@ export var deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommand =
|
|
|
4043
4103
|
});
|
|
4044
4104
|
}); };
|
|
4045
4105
|
var deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4046
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4106
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4047
4107
|
var _c;
|
|
4048
4108
|
return __generator(this, function (_d) {
|
|
4049
4109
|
switch (_d.label) {
|
|
@@ -4053,7 +4113,6 @@ var deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommandError = fu
|
|
|
4053
4113
|
return [4, parseBody(output.body, context)];
|
|
4054
4114
|
case 1:
|
|
4055
4115
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4056
|
-
errorCode = "UnknownError";
|
|
4057
4116
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4058
4117
|
_b = errorCode;
|
|
4059
4118
|
switch (_b) {
|
|
@@ -4069,10 +4128,12 @@ var deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommandError = fu
|
|
|
4069
4128
|
case 5: throw _d.sent();
|
|
4070
4129
|
case 6:
|
|
4071
4130
|
parsedBody = parsedOutput.body;
|
|
4131
|
+
$metadata = deserializeMetadata(output);
|
|
4132
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4072
4133
|
response = new __BaseException({
|
|
4073
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4134
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4074
4135
|
$fault: "client",
|
|
4075
|
-
$metadata:
|
|
4136
|
+
$metadata: $metadata,
|
|
4076
4137
|
});
|
|
4077
4138
|
throw __decorateServiceException(response, parsedBody);
|
|
4078
4139
|
}
|
|
@@ -4097,7 +4158,7 @@ export var deserializeAws_json1_1UpdateLagCommand = function (output, context) {
|
|
|
4097
4158
|
});
|
|
4098
4159
|
}); };
|
|
4099
4160
|
var deserializeAws_json1_1UpdateLagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4100
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4161
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4101
4162
|
var _c;
|
|
4102
4163
|
return __generator(this, function (_d) {
|
|
4103
4164
|
switch (_d.label) {
|
|
@@ -4107,7 +4168,6 @@ var deserializeAws_json1_1UpdateLagCommandError = function (output, context) { r
|
|
|
4107
4168
|
return [4, parseBody(output.body, context)];
|
|
4108
4169
|
case 1:
|
|
4109
4170
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4110
|
-
errorCode = "UnknownError";
|
|
4111
4171
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4112
4172
|
_b = errorCode;
|
|
4113
4173
|
switch (_b) {
|
|
@@ -4123,10 +4183,12 @@ var deserializeAws_json1_1UpdateLagCommandError = function (output, context) { r
|
|
|
4123
4183
|
case 5: throw _d.sent();
|
|
4124
4184
|
case 6:
|
|
4125
4185
|
parsedBody = parsedOutput.body;
|
|
4186
|
+
$metadata = deserializeMetadata(output);
|
|
4187
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4126
4188
|
response = new __BaseException({
|
|
4127
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4189
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4128
4190
|
$fault: "client",
|
|
4129
|
-
$metadata:
|
|
4191
|
+
$metadata: $metadata,
|
|
4130
4192
|
});
|
|
4131
4193
|
throw __decorateServiceException(response, parsedBody);
|
|
4132
4194
|
}
|
|
@@ -4151,7 +4213,7 @@ export var deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommand = funct
|
|
|
4151
4213
|
});
|
|
4152
4214
|
}); };
|
|
4153
4215
|
var deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4154
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4216
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4155
4217
|
var _c;
|
|
4156
4218
|
return __generator(this, function (_d) {
|
|
4157
4219
|
switch (_d.label) {
|
|
@@ -4161,7 +4223,6 @@ var deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommandError = functio
|
|
|
4161
4223
|
return [4, parseBody(output.body, context)];
|
|
4162
4224
|
case 1:
|
|
4163
4225
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4164
|
-
errorCode = "UnknownError";
|
|
4165
4226
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4166
4227
|
_b = errorCode;
|
|
4167
4228
|
switch (_b) {
|
|
@@ -4177,10 +4238,12 @@ var deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommandError = functio
|
|
|
4177
4238
|
case 5: throw _d.sent();
|
|
4178
4239
|
case 6:
|
|
4179
4240
|
parsedBody = parsedOutput.body;
|
|
4241
|
+
$metadata = deserializeMetadata(output);
|
|
4242
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4180
4243
|
response = new __BaseException({
|
|
4181
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4244
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4182
4245
|
$fault: "client",
|
|
4183
|
-
$metadata:
|
|
4246
|
+
$metadata: $metadata,
|
|
4184
4247
|
});
|
|
4185
4248
|
throw __decorateServiceException(response, parsedBody);
|
|
4186
4249
|
}
|
|
@@ -4223,55 +4286,44 @@ var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput,
|
|
|
4223
4286
|
});
|
|
4224
4287
|
}); };
|
|
4225
4288
|
var serializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalRequest = function (input, context) {
|
|
4226
|
-
return __assign(__assign(__assign(__assign({}, (input.associatedGatewayOwnerAccount
|
|
4227
|
-
input.associatedGatewayOwnerAccount !== null && {
|
|
4289
|
+
return __assign(__assign(__assign(__assign({}, (input.associatedGatewayOwnerAccount != null && {
|
|
4228
4290
|
associatedGatewayOwnerAccount: input.associatedGatewayOwnerAccount,
|
|
4229
|
-
})), (input.directConnectGatewayId
|
|
4230
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.overrideAllowedPrefixesToDirectConnectGateway !== undefined &&
|
|
4231
|
-
input.overrideAllowedPrefixesToDirectConnectGateway !== null && {
|
|
4291
|
+
})), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.overrideAllowedPrefixesToDirectConnectGateway != null && {
|
|
4232
4292
|
overrideAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.overrideAllowedPrefixesToDirectConnectGateway, context),
|
|
4233
|
-
})), (input.proposalId
|
|
4293
|
+
})), (input.proposalId != null && { proposalId: input.proposalId }));
|
|
4234
4294
|
};
|
|
4235
4295
|
var serializeAws_json1_1AllocateConnectionOnInterconnectRequest = function (input, context) {
|
|
4236
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.bandwidth
|
|
4237
|
-
input.connectionName !== null && { connectionName: input.connectionName })), (input.interconnectId !== undefined &&
|
|
4238
|
-
input.interconnectId !== null && { interconnectId: input.interconnectId })), (input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
|
|
4296
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.bandwidth != null && { bandwidth: input.bandwidth })), (input.connectionName != null && { connectionName: input.connectionName })), (input.interconnectId != null && { interconnectId: input.interconnectId })), (input.ownerAccount != null && { ownerAccount: input.ownerAccount })), (input.vlan != null && { vlan: input.vlan }));
|
|
4239
4297
|
};
|
|
4240
4298
|
var serializeAws_json1_1AllocateHostedConnectionRequest = function (input, context) {
|
|
4241
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bandwidth
|
|
4242
|
-
input.connectionName !== null && { connectionName: input.connectionName })), (input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
|
|
4299
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bandwidth != null && { bandwidth: input.bandwidth })), (input.connectionId != null && { connectionId: input.connectionId })), (input.connectionName != null && { connectionName: input.connectionName })), (input.ownerAccount != null && { ownerAccount: input.ownerAccount })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.vlan != null && { vlan: input.vlan }));
|
|
4243
4300
|
};
|
|
4244
4301
|
var serializeAws_json1_1AllocatePrivateVirtualInterfaceRequest = function (input, context) {
|
|
4245
|
-
return __assign(__assign(__assign({}, (input.connectionId
|
|
4246
|
-
input.newPrivateVirtualInterfaceAllocation !== null && {
|
|
4302
|
+
return __assign(__assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.newPrivateVirtualInterfaceAllocation != null && {
|
|
4247
4303
|
newPrivateVirtualInterfaceAllocation: serializeAws_json1_1NewPrivateVirtualInterfaceAllocation(input.newPrivateVirtualInterfaceAllocation, context),
|
|
4248
|
-
})), (input.ownerAccount
|
|
4304
|
+
})), (input.ownerAccount != null && { ownerAccount: input.ownerAccount }));
|
|
4249
4305
|
};
|
|
4250
4306
|
var serializeAws_json1_1AllocatePublicVirtualInterfaceRequest = function (input, context) {
|
|
4251
|
-
return __assign(__assign(__assign({}, (input.connectionId
|
|
4252
|
-
input.newPublicVirtualInterfaceAllocation !== null && {
|
|
4307
|
+
return __assign(__assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.newPublicVirtualInterfaceAllocation != null && {
|
|
4253
4308
|
newPublicVirtualInterfaceAllocation: serializeAws_json1_1NewPublicVirtualInterfaceAllocation(input.newPublicVirtualInterfaceAllocation, context),
|
|
4254
|
-
})), (input.ownerAccount
|
|
4309
|
+
})), (input.ownerAccount != null && { ownerAccount: input.ownerAccount }));
|
|
4255
4310
|
};
|
|
4256
4311
|
var serializeAws_json1_1AllocateTransitVirtualInterfaceRequest = function (input, context) {
|
|
4257
|
-
return __assign(__assign(__assign({}, (input.connectionId
|
|
4258
|
-
input.newTransitVirtualInterfaceAllocation !== null && {
|
|
4312
|
+
return __assign(__assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.newTransitVirtualInterfaceAllocation != null && {
|
|
4259
4313
|
newTransitVirtualInterfaceAllocation: serializeAws_json1_1NewTransitVirtualInterfaceAllocation(input.newTransitVirtualInterfaceAllocation, context),
|
|
4260
|
-
})), (input.ownerAccount
|
|
4314
|
+
})), (input.ownerAccount != null && { ownerAccount: input.ownerAccount }));
|
|
4261
4315
|
};
|
|
4262
4316
|
var serializeAws_json1_1AssociateConnectionWithLagRequest = function (input, context) {
|
|
4263
|
-
return __assign(__assign({}, (input.connectionId
|
|
4317
|
+
return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.lagId != null && { lagId: input.lagId }));
|
|
4264
4318
|
};
|
|
4265
4319
|
var serializeAws_json1_1AssociateHostedConnectionRequest = function (input, context) {
|
|
4266
|
-
return __assign(__assign({}, (input.connectionId
|
|
4267
|
-
input.parentConnectionId !== null && { parentConnectionId: input.parentConnectionId }));
|
|
4320
|
+
return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.parentConnectionId != null && { parentConnectionId: input.parentConnectionId }));
|
|
4268
4321
|
};
|
|
4269
4322
|
var serializeAws_json1_1AssociateMacSecKeyRequest = function (input, context) {
|
|
4270
|
-
return __assign(__assign(__assign(__assign({}, (input.cak
|
|
4323
|
+
return __assign(__assign(__assign(__assign({}, (input.cak != null && { cak: input.cak })), (input.ckn != null && { ckn: input.ckn })), (input.connectionId != null && { connectionId: input.connectionId })), (input.secretARN != null && { secretARN: input.secretARN }));
|
|
4271
4324
|
};
|
|
4272
4325
|
var serializeAws_json1_1AssociateVirtualInterfaceRequest = function (input, context) {
|
|
4273
|
-
return __assign(__assign({}, (input.connectionId
|
|
4274
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4326
|
+
return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4275
4327
|
};
|
|
4276
4328
|
var serializeAws_json1_1BGPPeerIdList = function (input, context) {
|
|
4277
4329
|
return input
|
|
@@ -4284,241 +4336,170 @@ var serializeAws_json1_1BGPPeerIdList = function (input, context) {
|
|
|
4284
4336
|
});
|
|
4285
4337
|
};
|
|
4286
4338
|
var serializeAws_json1_1ConfirmConnectionRequest = function (input, context) {
|
|
4287
|
-
return __assign({}, (input.connectionId
|
|
4339
|
+
return __assign({}, (input.connectionId != null && { connectionId: input.connectionId }));
|
|
4288
4340
|
};
|
|
4289
4341
|
var serializeAws_json1_1ConfirmCustomerAgreementRequest = function (input, context) {
|
|
4290
|
-
return __assign({}, (input.agreementName
|
|
4342
|
+
return __assign({}, (input.agreementName != null && { agreementName: input.agreementName }));
|
|
4291
4343
|
};
|
|
4292
4344
|
var serializeAws_json1_1ConfirmPrivateVirtualInterfaceRequest = function (input, context) {
|
|
4293
|
-
return __assign(__assign(__assign({}, (input.directConnectGatewayId
|
|
4294
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.virtualGatewayId !== undefined &&
|
|
4295
|
-
input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId })), (input.virtualInterfaceId !== undefined &&
|
|
4296
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4345
|
+
return __assign(__assign(__assign({}, (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4297
4346
|
};
|
|
4298
4347
|
var serializeAws_json1_1ConfirmPublicVirtualInterfaceRequest = function (input, context) {
|
|
4299
|
-
return __assign({}, (input.virtualInterfaceId
|
|
4300
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4348
|
+
return __assign({}, (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4301
4349
|
};
|
|
4302
4350
|
var serializeAws_json1_1ConfirmTransitVirtualInterfaceRequest = function (input, context) {
|
|
4303
|
-
return __assign(__assign({}, (input.directConnectGatewayId
|
|
4304
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.virtualInterfaceId !== undefined &&
|
|
4305
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4351
|
+
return __assign(__assign({}, (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4306
4352
|
};
|
|
4307
4353
|
var serializeAws_json1_1CreateBGPPeerRequest = function (input, context) {
|
|
4308
|
-
return __assign(__assign({}, (input.newBGPPeer
|
|
4309
|
-
input.newBGPPeer !== null && { newBGPPeer: serializeAws_json1_1NewBGPPeer(input.newBGPPeer, context) })), (input.virtualInterfaceId !== undefined &&
|
|
4310
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4354
|
+
return __assign(__assign({}, (input.newBGPPeer != null && { newBGPPeer: serializeAws_json1_1NewBGPPeer(input.newBGPPeer, context) })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4311
4355
|
};
|
|
4312
4356
|
var serializeAws_json1_1CreateConnectionRequest = function (input, context) {
|
|
4313
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bandwidth
|
|
4314
|
-
input.connectionName !== null && { connectionName: input.connectionName })), (input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId })), (input.location !== undefined && input.location !== null && { location: input.location })), (input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName })), (input.requestMACSec !== undefined && input.requestMACSec !== null && { requestMACSec: input.requestMACSec })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
4357
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bandwidth != null && { bandwidth: input.bandwidth })), (input.connectionName != null && { connectionName: input.connectionName })), (input.lagId != null && { lagId: input.lagId })), (input.location != null && { location: input.location })), (input.providerName != null && { providerName: input.providerName })), (input.requestMACSec != null && { requestMACSec: input.requestMACSec })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
4315
4358
|
};
|
|
4316
4359
|
var serializeAws_json1_1CreateDirectConnectGatewayAssociationProposalRequest = function (input, context) {
|
|
4317
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.addAllowedPrefixesToDirectConnectGateway
|
|
4318
|
-
input.addAllowedPrefixesToDirectConnectGateway !== null && {
|
|
4360
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.addAllowedPrefixesToDirectConnectGateway != null && {
|
|
4319
4361
|
addAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
|
|
4320
|
-
})), (input.directConnectGatewayId
|
|
4321
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.directConnectGatewayOwnerAccount !== undefined &&
|
|
4322
|
-
input.directConnectGatewayOwnerAccount !== null && {
|
|
4362
|
+
})), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.directConnectGatewayOwnerAccount != null && {
|
|
4323
4363
|
directConnectGatewayOwnerAccount: input.directConnectGatewayOwnerAccount,
|
|
4324
|
-
})), (input.gatewayId
|
|
4325
|
-
input.removeAllowedPrefixesToDirectConnectGateway !== null && {
|
|
4364
|
+
})), (input.gatewayId != null && { gatewayId: input.gatewayId })), (input.removeAllowedPrefixesToDirectConnectGateway != null && {
|
|
4326
4365
|
removeAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.removeAllowedPrefixesToDirectConnectGateway, context),
|
|
4327
4366
|
}));
|
|
4328
4367
|
};
|
|
4329
4368
|
var serializeAws_json1_1CreateDirectConnectGatewayAssociationRequest = function (input, context) {
|
|
4330
|
-
return __assign(__assign(__assign(__assign({}, (input.addAllowedPrefixesToDirectConnectGateway
|
|
4331
|
-
input.addAllowedPrefixesToDirectConnectGateway !== null && {
|
|
4369
|
+
return __assign(__assign(__assign(__assign({}, (input.addAllowedPrefixesToDirectConnectGateway != null && {
|
|
4332
4370
|
addAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
|
|
4333
|
-
})), (input.directConnectGatewayId
|
|
4334
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.gatewayId !== undefined && input.gatewayId !== null && { gatewayId: input.gatewayId })), (input.virtualGatewayId !== undefined &&
|
|
4335
|
-
input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }));
|
|
4371
|
+
})), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.gatewayId != null && { gatewayId: input.gatewayId })), (input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }));
|
|
4336
4372
|
};
|
|
4337
4373
|
var serializeAws_json1_1CreateDirectConnectGatewayRequest = function (input, context) {
|
|
4338
|
-
return __assign(__assign({}, (input.amazonSideAsn
|
|
4339
|
-
input.directConnectGatewayName !== null && { directConnectGatewayName: input.directConnectGatewayName }));
|
|
4374
|
+
return __assign(__assign({}, (input.amazonSideAsn != null && { amazonSideAsn: input.amazonSideAsn })), (input.directConnectGatewayName != null && { directConnectGatewayName: input.directConnectGatewayName }));
|
|
4340
4375
|
};
|
|
4341
4376
|
var serializeAws_json1_1CreateInterconnectRequest = function (input, context) {
|
|
4342
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bandwidth
|
|
4343
|
-
input.interconnectName !== null && { interconnectName: input.interconnectName })), (input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId })), (input.location !== undefined && input.location !== null && { location: input.location })), (input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
4377
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bandwidth != null && { bandwidth: input.bandwidth })), (input.interconnectName != null && { interconnectName: input.interconnectName })), (input.lagId != null && { lagId: input.lagId })), (input.location != null && { location: input.location })), (input.providerName != null && { providerName: input.providerName })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
4344
4378
|
};
|
|
4345
4379
|
var serializeAws_json1_1CreateLagRequest = function (input, context) {
|
|
4346
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.childConnectionTags
|
|
4347
|
-
input.childConnectionTags !== null && {
|
|
4380
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.childConnectionTags != null && {
|
|
4348
4381
|
childConnectionTags: serializeAws_json1_1TagList(input.childConnectionTags, context),
|
|
4349
|
-
})), (input.connectionId
|
|
4350
|
-
input.connectionsBandwidth !== null && { connectionsBandwidth: input.connectionsBandwidth })), (input.lagName !== undefined && input.lagName !== null && { lagName: input.lagName })), (input.location !== undefined && input.location !== null && { location: input.location })), (input.numberOfConnections !== undefined &&
|
|
4351
|
-
input.numberOfConnections !== null && { numberOfConnections: input.numberOfConnections })), (input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName })), (input.requestMACSec !== undefined && input.requestMACSec !== null && { requestMACSec: input.requestMACSec })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
4382
|
+
})), (input.connectionId != null && { connectionId: input.connectionId })), (input.connectionsBandwidth != null && { connectionsBandwidth: input.connectionsBandwidth })), (input.lagName != null && { lagName: input.lagName })), (input.location != null && { location: input.location })), (input.numberOfConnections != null && { numberOfConnections: input.numberOfConnections })), (input.providerName != null && { providerName: input.providerName })), (input.requestMACSec != null && { requestMACSec: input.requestMACSec })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
4352
4383
|
};
|
|
4353
4384
|
var serializeAws_json1_1CreatePrivateVirtualInterfaceRequest = function (input, context) {
|
|
4354
|
-
return __assign(__assign({}, (input.connectionId
|
|
4355
|
-
input.newPrivateVirtualInterface !== null && {
|
|
4385
|
+
return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.newPrivateVirtualInterface != null && {
|
|
4356
4386
|
newPrivateVirtualInterface: serializeAws_json1_1NewPrivateVirtualInterface(input.newPrivateVirtualInterface, context),
|
|
4357
4387
|
}));
|
|
4358
4388
|
};
|
|
4359
4389
|
var serializeAws_json1_1CreatePublicVirtualInterfaceRequest = function (input, context) {
|
|
4360
|
-
return __assign(__assign({}, (input.connectionId
|
|
4361
|
-
input.newPublicVirtualInterface !== null && {
|
|
4390
|
+
return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.newPublicVirtualInterface != null && {
|
|
4362
4391
|
newPublicVirtualInterface: serializeAws_json1_1NewPublicVirtualInterface(input.newPublicVirtualInterface, context),
|
|
4363
4392
|
}));
|
|
4364
4393
|
};
|
|
4365
4394
|
var serializeAws_json1_1CreateTransitVirtualInterfaceRequest = function (input, context) {
|
|
4366
|
-
return __assign(__assign({}, (input.connectionId
|
|
4367
|
-
input.newTransitVirtualInterface !== null && {
|
|
4395
|
+
return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.newTransitVirtualInterface != null && {
|
|
4368
4396
|
newTransitVirtualInterface: serializeAws_json1_1NewTransitVirtualInterface(input.newTransitVirtualInterface, context),
|
|
4369
4397
|
}));
|
|
4370
4398
|
};
|
|
4371
4399
|
var serializeAws_json1_1DeleteBGPPeerRequest = function (input, context) {
|
|
4372
|
-
return __assign(__assign(__assign(__assign({}, (input.asn
|
|
4373
|
-
input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.virtualInterfaceId !== undefined &&
|
|
4374
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4400
|
+
return __assign(__assign(__assign(__assign({}, (input.asn != null && { asn: input.asn })), (input.bgpPeerId != null && { bgpPeerId: input.bgpPeerId })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4375
4401
|
};
|
|
4376
4402
|
var serializeAws_json1_1DeleteConnectionRequest = function (input, context) {
|
|
4377
|
-
return __assign({}, (input.connectionId
|
|
4403
|
+
return __assign({}, (input.connectionId != null && { connectionId: input.connectionId }));
|
|
4378
4404
|
};
|
|
4379
4405
|
var serializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalRequest = function (input, context) {
|
|
4380
|
-
return __assign({}, (input.proposalId
|
|
4406
|
+
return __assign({}, (input.proposalId != null && { proposalId: input.proposalId }));
|
|
4381
4407
|
};
|
|
4382
4408
|
var serializeAws_json1_1DeleteDirectConnectGatewayAssociationRequest = function (input, context) {
|
|
4383
|
-
return __assign(__assign(__assign({}, (input.associationId
|
|
4384
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.virtualGatewayId !== undefined &&
|
|
4385
|
-
input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }));
|
|
4409
|
+
return __assign(__assign(__assign({}, (input.associationId != null && { associationId: input.associationId })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }));
|
|
4386
4410
|
};
|
|
4387
4411
|
var serializeAws_json1_1DeleteDirectConnectGatewayRequest = function (input, context) {
|
|
4388
|
-
return __assign({}, (input.directConnectGatewayId
|
|
4389
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }));
|
|
4412
|
+
return __assign({}, (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }));
|
|
4390
4413
|
};
|
|
4391
4414
|
var serializeAws_json1_1DeleteInterconnectRequest = function (input, context) {
|
|
4392
|
-
return __assign({}, (input.interconnectId
|
|
4393
|
-
input.interconnectId !== null && { interconnectId: input.interconnectId }));
|
|
4415
|
+
return __assign({}, (input.interconnectId != null && { interconnectId: input.interconnectId }));
|
|
4394
4416
|
};
|
|
4395
4417
|
var serializeAws_json1_1DeleteLagRequest = function (input, context) {
|
|
4396
|
-
return __assign({}, (input.lagId
|
|
4418
|
+
return __assign({}, (input.lagId != null && { lagId: input.lagId }));
|
|
4397
4419
|
};
|
|
4398
4420
|
var serializeAws_json1_1DeleteVirtualInterfaceRequest = function (input, context) {
|
|
4399
|
-
return __assign({}, (input.virtualInterfaceId
|
|
4400
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4421
|
+
return __assign({}, (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4401
4422
|
};
|
|
4402
4423
|
var serializeAws_json1_1DescribeConnectionLoaRequest = function (input, context) {
|
|
4403
|
-
return __assign(__assign(__assign({}, (input.connectionId
|
|
4404
|
-
input.loaContentType !== null && { loaContentType: input.loaContentType })), (input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }));
|
|
4424
|
+
return __assign(__assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.loaContentType != null && { loaContentType: input.loaContentType })), (input.providerName != null && { providerName: input.providerName }));
|
|
4405
4425
|
};
|
|
4406
4426
|
var serializeAws_json1_1DescribeConnectionsOnInterconnectRequest = function (input, context) {
|
|
4407
|
-
return __assign({}, (input.interconnectId
|
|
4408
|
-
input.interconnectId !== null && { interconnectId: input.interconnectId }));
|
|
4427
|
+
return __assign({}, (input.interconnectId != null && { interconnectId: input.interconnectId }));
|
|
4409
4428
|
};
|
|
4410
4429
|
var serializeAws_json1_1DescribeConnectionsRequest = function (input, context) {
|
|
4411
|
-
return __assign({}, (input.connectionId
|
|
4430
|
+
return __assign({}, (input.connectionId != null && { connectionId: input.connectionId }));
|
|
4412
4431
|
};
|
|
4413
4432
|
var serializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsRequest = function (input, context) {
|
|
4414
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.associatedGatewayId
|
|
4415
|
-
input.associatedGatewayId !== null && { associatedGatewayId: input.associatedGatewayId })), (input.directConnectGatewayId !== undefined &&
|
|
4416
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.proposalId !== undefined && input.proposalId !== null && { proposalId: input.proposalId }));
|
|
4433
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.associatedGatewayId != null && { associatedGatewayId: input.associatedGatewayId })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.proposalId != null && { proposalId: input.proposalId }));
|
|
4417
4434
|
};
|
|
4418
4435
|
var serializeAws_json1_1DescribeDirectConnectGatewayAssociationsRequest = function (input, context) {
|
|
4419
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.associatedGatewayId
|
|
4420
|
-
input.associatedGatewayId !== null && { associatedGatewayId: input.associatedGatewayId })), (input.associationId !== undefined && input.associationId !== null && { associationId: input.associationId })), (input.directConnectGatewayId !== undefined &&
|
|
4421
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.virtualGatewayId !== undefined &&
|
|
4422
|
-
input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }));
|
|
4436
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.associatedGatewayId != null && { associatedGatewayId: input.associatedGatewayId })), (input.associationId != null && { associationId: input.associationId })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }));
|
|
4423
4437
|
};
|
|
4424
4438
|
var serializeAws_json1_1DescribeDirectConnectGatewayAttachmentsRequest = function (input, context) {
|
|
4425
|
-
return __assign(__assign(__assign(__assign({}, (input.directConnectGatewayId
|
|
4426
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.virtualInterfaceId !== undefined &&
|
|
4427
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4439
|
+
return __assign(__assign(__assign(__assign({}, (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4428
4440
|
};
|
|
4429
4441
|
var serializeAws_json1_1DescribeDirectConnectGatewaysRequest = function (input, context) {
|
|
4430
|
-
return __assign(__assign(__assign({}, (input.directConnectGatewayId
|
|
4431
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
4442
|
+
return __assign(__assign(__assign({}, (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
4432
4443
|
};
|
|
4433
4444
|
var serializeAws_json1_1DescribeHostedConnectionsRequest = function (input, context) {
|
|
4434
|
-
return __assign({}, (input.connectionId
|
|
4445
|
+
return __assign({}, (input.connectionId != null && { connectionId: input.connectionId }));
|
|
4435
4446
|
};
|
|
4436
4447
|
var serializeAws_json1_1DescribeInterconnectLoaRequest = function (input, context) {
|
|
4437
|
-
return __assign(__assign(__assign({}, (input.interconnectId
|
|
4438
|
-
input.interconnectId !== null && { interconnectId: input.interconnectId })), (input.loaContentType !== undefined &&
|
|
4439
|
-
input.loaContentType !== null && { loaContentType: input.loaContentType })), (input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }));
|
|
4448
|
+
return __assign(__assign(__assign({}, (input.interconnectId != null && { interconnectId: input.interconnectId })), (input.loaContentType != null && { loaContentType: input.loaContentType })), (input.providerName != null && { providerName: input.providerName }));
|
|
4440
4449
|
};
|
|
4441
4450
|
var serializeAws_json1_1DescribeInterconnectsRequest = function (input, context) {
|
|
4442
|
-
return __assign({}, (input.interconnectId
|
|
4443
|
-
input.interconnectId !== null && { interconnectId: input.interconnectId }));
|
|
4451
|
+
return __assign({}, (input.interconnectId != null && { interconnectId: input.interconnectId }));
|
|
4444
4452
|
};
|
|
4445
4453
|
var serializeAws_json1_1DescribeLagsRequest = function (input, context) {
|
|
4446
|
-
return __assign({}, (input.lagId
|
|
4454
|
+
return __assign({}, (input.lagId != null && { lagId: input.lagId }));
|
|
4447
4455
|
};
|
|
4448
4456
|
var serializeAws_json1_1DescribeLoaRequest = function (input, context) {
|
|
4449
|
-
return __assign(__assign(__assign({}, (input.connectionId
|
|
4450
|
-
input.loaContentType !== null && { loaContentType: input.loaContentType })), (input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }));
|
|
4457
|
+
return __assign(__assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.loaContentType != null && { loaContentType: input.loaContentType })), (input.providerName != null && { providerName: input.providerName }));
|
|
4451
4458
|
};
|
|
4452
4459
|
var serializeAws_json1_1DescribeRouterConfigurationRequest = function (input, context) {
|
|
4453
|
-
return __assign(__assign({}, (input.routerTypeIdentifier
|
|
4454
|
-
input.routerTypeIdentifier !== null && { routerTypeIdentifier: input.routerTypeIdentifier })), (input.virtualInterfaceId !== undefined &&
|
|
4455
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4460
|
+
return __assign(__assign({}, (input.routerTypeIdentifier != null && { routerTypeIdentifier: input.routerTypeIdentifier })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4456
4461
|
};
|
|
4457
4462
|
var serializeAws_json1_1DescribeTagsRequest = function (input, context) {
|
|
4458
|
-
return __assign({}, (input.resourceArns
|
|
4459
|
-
input.resourceArns !== null && {
|
|
4463
|
+
return __assign({}, (input.resourceArns != null && {
|
|
4460
4464
|
resourceArns: serializeAws_json1_1ResourceArnList(input.resourceArns, context),
|
|
4461
4465
|
}));
|
|
4462
4466
|
};
|
|
4463
4467
|
var serializeAws_json1_1DescribeVirtualInterfacesRequest = function (input, context) {
|
|
4464
|
-
return __assign(__assign({}, (input.connectionId
|
|
4465
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4468
|
+
return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4466
4469
|
};
|
|
4467
4470
|
var serializeAws_json1_1DisassociateConnectionFromLagRequest = function (input, context) {
|
|
4468
|
-
return __assign(__assign({}, (input.connectionId
|
|
4471
|
+
return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.lagId != null && { lagId: input.lagId }));
|
|
4469
4472
|
};
|
|
4470
4473
|
var serializeAws_json1_1DisassociateMacSecKeyRequest = function (input, context) {
|
|
4471
|
-
return __assign(__assign({}, (input.connectionId
|
|
4474
|
+
return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.secretARN != null && { secretARN: input.secretARN }));
|
|
4472
4475
|
};
|
|
4473
4476
|
var serializeAws_json1_1ListVirtualInterfaceTestHistoryRequest = function (input, context) {
|
|
4474
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bgpPeers
|
|
4475
|
-
input.bgpPeers !== null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.testId !== undefined && input.testId !== null && { testId: input.testId })), (input.virtualInterfaceId !== undefined &&
|
|
4476
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4477
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bgpPeers != null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.status != null && { status: input.status })), (input.testId != null && { testId: input.testId })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4477
4478
|
};
|
|
4478
4479
|
var serializeAws_json1_1NewBGPPeer = function (input, context) {
|
|
4479
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.addressFamily
|
|
4480
|
-
input.customerAddress !== null && { customerAddress: input.customerAddress }));
|
|
4480
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress }));
|
|
4481
4481
|
};
|
|
4482
4482
|
var serializeAws_json1_1NewPrivateVirtualInterface = function (input, context) {
|
|
4483
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily
|
|
4484
|
-
input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.directConnectGatewayId !== undefined &&
|
|
4485
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.enableSiteLink !== undefined &&
|
|
4486
|
-
input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualGatewayId !== undefined &&
|
|
4487
|
-
input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId })), (input.virtualInterfaceName !== undefined &&
|
|
4488
|
-
input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
|
|
4483
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink })), (input.mtu != null && { mtu: input.mtu })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan != null && { vlan: input.vlan }));
|
|
4489
4484
|
};
|
|
4490
4485
|
var serializeAws_json1_1NewPrivateVirtualInterfaceAllocation = function (input, context) {
|
|
4491
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily
|
|
4492
|
-
input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName !== undefined &&
|
|
4493
|
-
input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
|
|
4486
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.mtu != null && { mtu: input.mtu })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan != null && { vlan: input.vlan }));
|
|
4494
4487
|
};
|
|
4495
4488
|
var serializeAws_json1_1NewPublicVirtualInterface = function (input, context) {
|
|
4496
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily
|
|
4497
|
-
input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.routeFilterPrefixes !== undefined &&
|
|
4498
|
-
input.routeFilterPrefixes !== null && {
|
|
4489
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.routeFilterPrefixes != null && {
|
|
4499
4490
|
routeFilterPrefixes: serializeAws_json1_1RouteFilterPrefixList(input.routeFilterPrefixes, context),
|
|
4500
|
-
})), (input.tags
|
|
4501
|
-
input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
|
|
4491
|
+
})), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan != null && { vlan: input.vlan }));
|
|
4502
4492
|
};
|
|
4503
4493
|
var serializeAws_json1_1NewPublicVirtualInterfaceAllocation = function (input, context) {
|
|
4504
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily
|
|
4505
|
-
input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.routeFilterPrefixes !== undefined &&
|
|
4506
|
-
input.routeFilterPrefixes !== null && {
|
|
4494
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.routeFilterPrefixes != null && {
|
|
4507
4495
|
routeFilterPrefixes: serializeAws_json1_1RouteFilterPrefixList(input.routeFilterPrefixes, context),
|
|
4508
|
-
})), (input.tags
|
|
4509
|
-
input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
|
|
4496
|
+
})), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan != null && { vlan: input.vlan }));
|
|
4510
4497
|
};
|
|
4511
4498
|
var serializeAws_json1_1NewTransitVirtualInterface = function (input, context) {
|
|
4512
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily
|
|
4513
|
-
input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.directConnectGatewayId !== undefined &&
|
|
4514
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.enableSiteLink !== undefined &&
|
|
4515
|
-
input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName !== undefined &&
|
|
4516
|
-
input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
|
|
4499
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink })), (input.mtu != null && { mtu: input.mtu })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan != null && { vlan: input.vlan }));
|
|
4517
4500
|
};
|
|
4518
4501
|
var serializeAws_json1_1NewTransitVirtualInterfaceAllocation = function (input, context) {
|
|
4519
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily
|
|
4520
|
-
input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName !== undefined &&
|
|
4521
|
-
input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
|
|
4502
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.mtu != null && { mtu: input.mtu })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan != null && { vlan: input.vlan }));
|
|
4522
4503
|
};
|
|
4523
4504
|
var serializeAws_json1_1ResourceArnList = function (input, context) {
|
|
4524
4505
|
return input
|
|
@@ -4531,7 +4512,7 @@ var serializeAws_json1_1ResourceArnList = function (input, context) {
|
|
|
4531
4512
|
});
|
|
4532
4513
|
};
|
|
4533
4514
|
var serializeAws_json1_1RouteFilterPrefix = function (input, context) {
|
|
4534
|
-
return __assign({}, (input.cidr
|
|
4515
|
+
return __assign({}, (input.cidr != null && { cidr: input.cidr }));
|
|
4535
4516
|
};
|
|
4536
4517
|
var serializeAws_json1_1RouteFilterPrefixList = function (input, context) {
|
|
4537
4518
|
return input
|
|
@@ -4544,17 +4525,13 @@ var serializeAws_json1_1RouteFilterPrefixList = function (input, context) {
|
|
|
4544
4525
|
});
|
|
4545
4526
|
};
|
|
4546
4527
|
var serializeAws_json1_1StartBgpFailoverTestRequest = function (input, context) {
|
|
4547
|
-
return __assign(__assign(__assign({}, (input.bgpPeers
|
|
4548
|
-
input.bgpPeers !== null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) })), (input.testDurationInMinutes !== undefined &&
|
|
4549
|
-
input.testDurationInMinutes !== null && { testDurationInMinutes: input.testDurationInMinutes })), (input.virtualInterfaceId !== undefined &&
|
|
4550
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4528
|
+
return __assign(__assign(__assign({}, (input.bgpPeers != null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) })), (input.testDurationInMinutes != null && { testDurationInMinutes: input.testDurationInMinutes })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4551
4529
|
};
|
|
4552
4530
|
var serializeAws_json1_1StopBgpFailoverTestRequest = function (input, context) {
|
|
4553
|
-
return __assign({}, (input.virtualInterfaceId
|
|
4554
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4531
|
+
return __assign({}, (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
|
|
4555
4532
|
};
|
|
4556
4533
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
4557
|
-
return __assign(__assign({}, (input.key
|
|
4534
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
4558
4535
|
};
|
|
4559
4536
|
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
4560
4537
|
return input
|
|
@@ -4577,44 +4554,35 @@ var serializeAws_json1_1TagList = function (input, context) {
|
|
|
4577
4554
|
});
|
|
4578
4555
|
};
|
|
4579
4556
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
4580
|
-
return __assign(__assign({}, (input.resourceArn
|
|
4557
|
+
return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
4581
4558
|
};
|
|
4582
4559
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
4583
|
-
return __assign(__assign({}, (input.resourceArn
|
|
4584
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
|
|
4560
|
+
return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
|
|
4585
4561
|
};
|
|
4586
4562
|
var serializeAws_json1_1UpdateConnectionRequest = function (input, context) {
|
|
4587
|
-
return __assign(__assign(__assign({}, (input.connectionId
|
|
4588
|
-
input.connectionName !== null && { connectionName: input.connectionName })), (input.encryptionMode !== undefined &&
|
|
4589
|
-
input.encryptionMode !== null && { encryptionMode: input.encryptionMode }));
|
|
4563
|
+
return __assign(__assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.connectionName != null && { connectionName: input.connectionName })), (input.encryptionMode != null && { encryptionMode: input.encryptionMode }));
|
|
4590
4564
|
};
|
|
4591
4565
|
var serializeAws_json1_1UpdateDirectConnectGatewayAssociationRequest = function (input, context) {
|
|
4592
|
-
return __assign(__assign(__assign({}, (input.addAllowedPrefixesToDirectConnectGateway
|
|
4593
|
-
input.addAllowedPrefixesToDirectConnectGateway !== null && {
|
|
4566
|
+
return __assign(__assign(__assign({}, (input.addAllowedPrefixesToDirectConnectGateway != null && {
|
|
4594
4567
|
addAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
|
|
4595
|
-
})), (input.associationId
|
|
4596
|
-
input.removeAllowedPrefixesToDirectConnectGateway !== null && {
|
|
4568
|
+
})), (input.associationId != null && { associationId: input.associationId })), (input.removeAllowedPrefixesToDirectConnectGateway != null && {
|
|
4597
4569
|
removeAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.removeAllowedPrefixesToDirectConnectGateway, context),
|
|
4598
4570
|
}));
|
|
4599
4571
|
};
|
|
4600
4572
|
var serializeAws_json1_1UpdateDirectConnectGatewayRequest = function (input, context) {
|
|
4601
|
-
return __assign(__assign({}, (input.directConnectGatewayId
|
|
4602
|
-
|
|
4603
|
-
|
|
4573
|
+
return __assign(__assign({}, (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.newDirectConnectGatewayName != null && {
|
|
4574
|
+
newDirectConnectGatewayName: input.newDirectConnectGatewayName,
|
|
4575
|
+
}));
|
|
4604
4576
|
};
|
|
4605
4577
|
var serializeAws_json1_1UpdateLagRequest = function (input, context) {
|
|
4606
|
-
return __assign(__assign(__assign(__assign({}, (input.encryptionMode
|
|
4607
|
-
input.encryptionMode !== null && { encryptionMode: input.encryptionMode })), (input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId })), (input.lagName !== undefined && input.lagName !== null && { lagName: input.lagName })), (input.minimumLinks !== undefined && input.minimumLinks !== null && { minimumLinks: input.minimumLinks }));
|
|
4578
|
+
return __assign(__assign(__assign(__assign({}, (input.encryptionMode != null && { encryptionMode: input.encryptionMode })), (input.lagId != null && { lagId: input.lagId })), (input.lagName != null && { lagName: input.lagName })), (input.minimumLinks != null && { minimumLinks: input.minimumLinks }));
|
|
4608
4579
|
};
|
|
4609
4580
|
var serializeAws_json1_1UpdateVirtualInterfaceAttributesRequest = function (input, context) {
|
|
4610
|
-
return __assign(__assign(__assign(__assign({}, (input.enableSiteLink
|
|
4611
|
-
input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.virtualInterfaceId !== undefined &&
|
|
4612
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId })), (input.virtualInterfaceName !== undefined &&
|
|
4613
|
-
input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }));
|
|
4581
|
+
return __assign(__assign(__assign(__assign({}, (input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink })), (input.mtu != null && { mtu: input.mtu })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }));
|
|
4614
4582
|
};
|
|
4615
4583
|
var deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalResult = function (output, context) {
|
|
4616
4584
|
return {
|
|
4617
|
-
directConnectGatewayAssociation: output.directConnectGatewayAssociation
|
|
4585
|
+
directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
|
|
4618
4586
|
? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
|
|
4619
4587
|
: undefined,
|
|
4620
4588
|
};
|
|
@@ -4632,7 +4600,7 @@ var deserializeAws_json1_1AgreementList = function (output, context) {
|
|
|
4632
4600
|
};
|
|
4633
4601
|
var deserializeAws_json1_1AllocateTransitVirtualInterfaceResult = function (output, context) {
|
|
4634
4602
|
return {
|
|
4635
|
-
virtualInterface: output.virtualInterface
|
|
4603
|
+
virtualInterface: output.virtualInterface != null
|
|
4636
4604
|
? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
|
|
4637
4605
|
: undefined,
|
|
4638
4606
|
};
|
|
@@ -4648,9 +4616,7 @@ var deserializeAws_json1_1AssociatedGateway = function (output, context) {
|
|
|
4648
4616
|
var deserializeAws_json1_1AssociateMacSecKeyResponse = function (output, context) {
|
|
4649
4617
|
return {
|
|
4650
4618
|
connectionId: __expectString(output.connectionId),
|
|
4651
|
-
macSecKeys: output.macSecKeys
|
|
4652
|
-
? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
|
|
4653
|
-
: undefined,
|
|
4619
|
+
macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
|
|
4654
4620
|
};
|
|
4655
4621
|
};
|
|
4656
4622
|
var deserializeAws_json1_1AvailableMacSecPortSpeeds = function (output, context) {
|
|
@@ -4749,22 +4715,18 @@ var deserializeAws_json1_1Connection = function (output, context) {
|
|
|
4749
4715
|
hasLogicalRedundancy: __expectString(output.hasLogicalRedundancy),
|
|
4750
4716
|
jumboFrameCapable: __expectBoolean(output.jumboFrameCapable),
|
|
4751
4717
|
lagId: __expectString(output.lagId),
|
|
4752
|
-
loaIssueTime: output.loaIssueTime
|
|
4718
|
+
loaIssueTime: output.loaIssueTime != null
|
|
4753
4719
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.loaIssueTime)))
|
|
4754
4720
|
: undefined,
|
|
4755
4721
|
location: __expectString(output.location),
|
|
4756
4722
|
macSecCapable: __expectBoolean(output.macSecCapable),
|
|
4757
|
-
macSecKeys: output.macSecKeys
|
|
4758
|
-
? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
|
|
4759
|
-
: undefined,
|
|
4723
|
+
macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
|
|
4760
4724
|
ownerAccount: __expectString(output.ownerAccount),
|
|
4761
4725
|
partnerName: __expectString(output.partnerName),
|
|
4762
4726
|
portEncryptionStatus: __expectString(output.portEncryptionStatus),
|
|
4763
4727
|
providerName: __expectString(output.providerName),
|
|
4764
4728
|
region: __expectString(output.region),
|
|
4765
|
-
tags: output.tags
|
|
4766
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
4767
|
-
: undefined,
|
|
4729
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
4768
4730
|
vlan: __expectInt32(output.vlan),
|
|
4769
4731
|
};
|
|
4770
4732
|
};
|
|
@@ -4781,43 +4743,40 @@ var deserializeAws_json1_1ConnectionList = function (output, context) {
|
|
|
4781
4743
|
};
|
|
4782
4744
|
var deserializeAws_json1_1Connections = function (output, context) {
|
|
4783
4745
|
return {
|
|
4784
|
-
connections: output.connections
|
|
4785
|
-
? deserializeAws_json1_1ConnectionList(output.connections, context)
|
|
4786
|
-
: undefined,
|
|
4746
|
+
connections: output.connections != null ? deserializeAws_json1_1ConnectionList(output.connections, context) : undefined,
|
|
4787
4747
|
};
|
|
4788
4748
|
};
|
|
4789
4749
|
var deserializeAws_json1_1CreateBGPPeerResponse = function (output, context) {
|
|
4790
4750
|
return {
|
|
4791
|
-
virtualInterface: output.virtualInterface
|
|
4751
|
+
virtualInterface: output.virtualInterface != null
|
|
4792
4752
|
? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
|
|
4793
4753
|
: undefined,
|
|
4794
4754
|
};
|
|
4795
4755
|
};
|
|
4796
4756
|
var deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalResult = function (output, context) {
|
|
4797
4757
|
return {
|
|
4798
|
-
directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal
|
|
4799
|
-
output.directConnectGatewayAssociationProposal !== null
|
|
4758
|
+
directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal != null
|
|
4800
4759
|
? deserializeAws_json1_1DirectConnectGatewayAssociationProposal(output.directConnectGatewayAssociationProposal, context)
|
|
4801
4760
|
: undefined,
|
|
4802
4761
|
};
|
|
4803
4762
|
};
|
|
4804
4763
|
var deserializeAws_json1_1CreateDirectConnectGatewayAssociationResult = function (output, context) {
|
|
4805
4764
|
return {
|
|
4806
|
-
directConnectGatewayAssociation: output.directConnectGatewayAssociation
|
|
4765
|
+
directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
|
|
4807
4766
|
? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
|
|
4808
4767
|
: undefined,
|
|
4809
4768
|
};
|
|
4810
4769
|
};
|
|
4811
4770
|
var deserializeAws_json1_1CreateDirectConnectGatewayResult = function (output, context) {
|
|
4812
4771
|
return {
|
|
4813
|
-
directConnectGateway: output.directConnectGateway
|
|
4772
|
+
directConnectGateway: output.directConnectGateway != null
|
|
4814
4773
|
? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
|
|
4815
4774
|
: undefined,
|
|
4816
4775
|
};
|
|
4817
4776
|
};
|
|
4818
4777
|
var deserializeAws_json1_1CreateTransitVirtualInterfaceResult = function (output, context) {
|
|
4819
4778
|
return {
|
|
4820
|
-
virtualInterface: output.virtualInterface
|
|
4779
|
+
virtualInterface: output.virtualInterface != null
|
|
4821
4780
|
? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
|
|
4822
4781
|
: undefined,
|
|
4823
4782
|
};
|
|
@@ -4830,29 +4789,28 @@ var deserializeAws_json1_1CustomerAgreement = function (output, context) {
|
|
|
4830
4789
|
};
|
|
4831
4790
|
var deserializeAws_json1_1DeleteBGPPeerResponse = function (output, context) {
|
|
4832
4791
|
return {
|
|
4833
|
-
virtualInterface: output.virtualInterface
|
|
4792
|
+
virtualInterface: output.virtualInterface != null
|
|
4834
4793
|
? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
|
|
4835
4794
|
: undefined,
|
|
4836
4795
|
};
|
|
4837
4796
|
};
|
|
4838
4797
|
var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalResult = function (output, context) {
|
|
4839
4798
|
return {
|
|
4840
|
-
directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal
|
|
4841
|
-
output.directConnectGatewayAssociationProposal !== null
|
|
4799
|
+
directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal != null
|
|
4842
4800
|
? deserializeAws_json1_1DirectConnectGatewayAssociationProposal(output.directConnectGatewayAssociationProposal, context)
|
|
4843
4801
|
: undefined,
|
|
4844
4802
|
};
|
|
4845
4803
|
};
|
|
4846
4804
|
var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationResult = function (output, context) {
|
|
4847
4805
|
return {
|
|
4848
|
-
directConnectGatewayAssociation: output.directConnectGatewayAssociation
|
|
4806
|
+
directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
|
|
4849
4807
|
? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
|
|
4850
4808
|
: undefined,
|
|
4851
4809
|
};
|
|
4852
4810
|
};
|
|
4853
4811
|
var deserializeAws_json1_1DeleteDirectConnectGatewayResult = function (output, context) {
|
|
4854
4812
|
return {
|
|
4855
|
-
directConnectGateway: output.directConnectGateway
|
|
4813
|
+
directConnectGateway: output.directConnectGateway != null
|
|
4856
4814
|
? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
|
|
4857
4815
|
: undefined,
|
|
4858
4816
|
};
|
|
@@ -4869,21 +4827,18 @@ var deserializeAws_json1_1DeleteVirtualInterfaceResponse = function (output, con
|
|
|
4869
4827
|
};
|
|
4870
4828
|
var deserializeAws_json1_1DescribeConnectionLoaResponse = function (output, context) {
|
|
4871
4829
|
return {
|
|
4872
|
-
loa: output.loa
|
|
4830
|
+
loa: output.loa != null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
|
|
4873
4831
|
};
|
|
4874
4832
|
};
|
|
4875
4833
|
var deserializeAws_json1_1DescribeCustomerMetadataResponse = function (output, context) {
|
|
4876
4834
|
return {
|
|
4877
|
-
agreements: output.agreements
|
|
4878
|
-
? deserializeAws_json1_1AgreementList(output.agreements, context)
|
|
4879
|
-
: undefined,
|
|
4835
|
+
agreements: output.agreements != null ? deserializeAws_json1_1AgreementList(output.agreements, context) : undefined,
|
|
4880
4836
|
nniPartnerType: __expectString(output.nniPartnerType),
|
|
4881
4837
|
};
|
|
4882
4838
|
};
|
|
4883
4839
|
var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsResult = function (output, context) {
|
|
4884
4840
|
return {
|
|
4885
|
-
directConnectGatewayAssociationProposals: output.directConnectGatewayAssociationProposals
|
|
4886
|
-
output.directConnectGatewayAssociationProposals !== null
|
|
4841
|
+
directConnectGatewayAssociationProposals: output.directConnectGatewayAssociationProposals != null
|
|
4887
4842
|
? deserializeAws_json1_1DirectConnectGatewayAssociationProposalList(output.directConnectGatewayAssociationProposals, context)
|
|
4888
4843
|
: undefined,
|
|
4889
4844
|
nextToken: __expectString(output.nextToken),
|
|
@@ -4891,7 +4846,7 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsResult
|
|
|
4891
4846
|
};
|
|
4892
4847
|
var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsResult = function (output, context) {
|
|
4893
4848
|
return {
|
|
4894
|
-
directConnectGatewayAssociations: output.directConnectGatewayAssociations
|
|
4849
|
+
directConnectGatewayAssociations: output.directConnectGatewayAssociations != null
|
|
4895
4850
|
? deserializeAws_json1_1DirectConnectGatewayAssociationList(output.directConnectGatewayAssociations, context)
|
|
4896
4851
|
: undefined,
|
|
4897
4852
|
nextToken: __expectString(output.nextToken),
|
|
@@ -4899,7 +4854,7 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsResult = funct
|
|
|
4899
4854
|
};
|
|
4900
4855
|
var deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsResult = function (output, context) {
|
|
4901
4856
|
return {
|
|
4902
|
-
directConnectGatewayAttachments: output.directConnectGatewayAttachments
|
|
4857
|
+
directConnectGatewayAttachments: output.directConnectGatewayAttachments != null
|
|
4903
4858
|
? deserializeAws_json1_1DirectConnectGatewayAttachmentList(output.directConnectGatewayAttachments, context)
|
|
4904
4859
|
: undefined,
|
|
4905
4860
|
nextToken: __expectString(output.nextToken),
|
|
@@ -4907,7 +4862,7 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsResult = functi
|
|
|
4907
4862
|
};
|
|
4908
4863
|
var deserializeAws_json1_1DescribeDirectConnectGatewaysResult = function (output, context) {
|
|
4909
4864
|
return {
|
|
4910
|
-
directConnectGateways: output.directConnectGateways
|
|
4865
|
+
directConnectGateways: output.directConnectGateways != null
|
|
4911
4866
|
? deserializeAws_json1_1DirectConnectGatewayList(output.directConnectGateways, context)
|
|
4912
4867
|
: undefined,
|
|
4913
4868
|
nextToken: __expectString(output.nextToken),
|
|
@@ -4915,24 +4870,20 @@ var deserializeAws_json1_1DescribeDirectConnectGatewaysResult = function (output
|
|
|
4915
4870
|
};
|
|
4916
4871
|
var deserializeAws_json1_1DescribeInterconnectLoaResponse = function (output, context) {
|
|
4917
4872
|
return {
|
|
4918
|
-
loa: output.loa
|
|
4873
|
+
loa: output.loa != null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
|
|
4919
4874
|
};
|
|
4920
4875
|
};
|
|
4921
4876
|
var deserializeAws_json1_1DescribeRouterConfigurationResponse = function (output, context) {
|
|
4922
4877
|
return {
|
|
4923
4878
|
customerRouterConfig: __expectString(output.customerRouterConfig),
|
|
4924
|
-
router: output.router
|
|
4925
|
-
? deserializeAws_json1_1RouterType(output.router, context)
|
|
4926
|
-
: undefined,
|
|
4879
|
+
router: output.router != null ? deserializeAws_json1_1RouterType(output.router, context) : undefined,
|
|
4927
4880
|
virtualInterfaceId: __expectString(output.virtualInterfaceId),
|
|
4928
4881
|
virtualInterfaceName: __expectString(output.virtualInterfaceName),
|
|
4929
4882
|
};
|
|
4930
4883
|
};
|
|
4931
4884
|
var deserializeAws_json1_1DescribeTagsResponse = function (output, context) {
|
|
4932
4885
|
return {
|
|
4933
|
-
resourceTags: output.resourceTags
|
|
4934
|
-
? deserializeAws_json1_1ResourceTagList(output.resourceTags, context)
|
|
4935
|
-
: undefined,
|
|
4886
|
+
resourceTags: output.resourceTags != null ? deserializeAws_json1_1ResourceTagList(output.resourceTags, context) : undefined,
|
|
4936
4887
|
};
|
|
4937
4888
|
};
|
|
4938
4889
|
var deserializeAws_json1_1DirectConnectClientException = function (output, context) {
|
|
@@ -4952,11 +4903,10 @@ var deserializeAws_json1_1DirectConnectGateway = function (output, context) {
|
|
|
4952
4903
|
};
|
|
4953
4904
|
var deserializeAws_json1_1DirectConnectGatewayAssociation = function (output, context) {
|
|
4954
4905
|
return {
|
|
4955
|
-
allowedPrefixesToDirectConnectGateway: output.allowedPrefixesToDirectConnectGateway
|
|
4956
|
-
output.allowedPrefixesToDirectConnectGateway !== null
|
|
4906
|
+
allowedPrefixesToDirectConnectGateway: output.allowedPrefixesToDirectConnectGateway != null
|
|
4957
4907
|
? deserializeAws_json1_1RouteFilterPrefixList(output.allowedPrefixesToDirectConnectGateway, context)
|
|
4958
4908
|
: undefined,
|
|
4959
|
-
associatedGateway: output.associatedGateway
|
|
4909
|
+
associatedGateway: output.associatedGateway != null
|
|
4960
4910
|
? deserializeAws_json1_1AssociatedGateway(output.associatedGateway, context)
|
|
4961
4911
|
: undefined,
|
|
4962
4912
|
associationId: __expectString(output.associationId),
|
|
@@ -4982,19 +4932,17 @@ var deserializeAws_json1_1DirectConnectGatewayAssociationList = function (output
|
|
|
4982
4932
|
};
|
|
4983
4933
|
var deserializeAws_json1_1DirectConnectGatewayAssociationProposal = function (output, context) {
|
|
4984
4934
|
return {
|
|
4985
|
-
associatedGateway: output.associatedGateway
|
|
4935
|
+
associatedGateway: output.associatedGateway != null
|
|
4986
4936
|
? deserializeAws_json1_1AssociatedGateway(output.associatedGateway, context)
|
|
4987
4937
|
: undefined,
|
|
4988
4938
|
directConnectGatewayId: __expectString(output.directConnectGatewayId),
|
|
4989
4939
|
directConnectGatewayOwnerAccount: __expectString(output.directConnectGatewayOwnerAccount),
|
|
4990
|
-
existingAllowedPrefixesToDirectConnectGateway: output.existingAllowedPrefixesToDirectConnectGateway
|
|
4991
|
-
output.existingAllowedPrefixesToDirectConnectGateway !== null
|
|
4940
|
+
existingAllowedPrefixesToDirectConnectGateway: output.existingAllowedPrefixesToDirectConnectGateway != null
|
|
4992
4941
|
? deserializeAws_json1_1RouteFilterPrefixList(output.existingAllowedPrefixesToDirectConnectGateway, context)
|
|
4993
4942
|
: undefined,
|
|
4994
4943
|
proposalId: __expectString(output.proposalId),
|
|
4995
4944
|
proposalState: __expectString(output.proposalState),
|
|
4996
|
-
requestedAllowedPrefixesToDirectConnectGateway: output.requestedAllowedPrefixesToDirectConnectGateway
|
|
4997
|
-
output.requestedAllowedPrefixesToDirectConnectGateway !== null
|
|
4945
|
+
requestedAllowedPrefixesToDirectConnectGateway: output.requestedAllowedPrefixesToDirectConnectGateway != null
|
|
4998
4946
|
? deserializeAws_json1_1RouteFilterPrefixList(output.requestedAllowedPrefixesToDirectConnectGateway, context)
|
|
4999
4947
|
: undefined,
|
|
5000
4948
|
};
|
|
@@ -5051,9 +4999,7 @@ var deserializeAws_json1_1DirectConnectServerException = function (output, conte
|
|
|
5051
4999
|
var deserializeAws_json1_1DisassociateMacSecKeyResponse = function (output, context) {
|
|
5052
5000
|
return {
|
|
5053
5001
|
connectionId: __expectString(output.connectionId),
|
|
5054
|
-
macSecKeys: output.macSecKeys
|
|
5055
|
-
? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
|
|
5056
|
-
: undefined,
|
|
5002
|
+
macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
|
|
5057
5003
|
};
|
|
5058
5004
|
};
|
|
5059
5005
|
var deserializeAws_json1_1DuplicateTagKeysException = function (output, context) {
|
|
@@ -5073,15 +5019,13 @@ var deserializeAws_json1_1Interconnect = function (output, context) {
|
|
|
5073
5019
|
interconnectState: __expectString(output.interconnectState),
|
|
5074
5020
|
jumboFrameCapable: __expectBoolean(output.jumboFrameCapable),
|
|
5075
5021
|
lagId: __expectString(output.lagId),
|
|
5076
|
-
loaIssueTime: output.loaIssueTime
|
|
5022
|
+
loaIssueTime: output.loaIssueTime != null
|
|
5077
5023
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.loaIssueTime)))
|
|
5078
5024
|
: undefined,
|
|
5079
5025
|
location: __expectString(output.location),
|
|
5080
5026
|
providerName: __expectString(output.providerName),
|
|
5081
5027
|
region: __expectString(output.region),
|
|
5082
|
-
tags: output.tags
|
|
5083
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
5084
|
-
: undefined,
|
|
5028
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
5085
5029
|
};
|
|
5086
5030
|
};
|
|
5087
5031
|
var deserializeAws_json1_1InterconnectList = function (output, context) {
|
|
@@ -5097,9 +5041,7 @@ var deserializeAws_json1_1InterconnectList = function (output, context) {
|
|
|
5097
5041
|
};
|
|
5098
5042
|
var deserializeAws_json1_1Interconnects = function (output, context) {
|
|
5099
5043
|
return {
|
|
5100
|
-
interconnects: output.interconnects
|
|
5101
|
-
? deserializeAws_json1_1InterconnectList(output.interconnects, context)
|
|
5102
|
-
: undefined,
|
|
5044
|
+
interconnects: output.interconnects != null ? deserializeAws_json1_1InterconnectList(output.interconnects, context) : undefined,
|
|
5103
5045
|
};
|
|
5104
5046
|
};
|
|
5105
5047
|
var deserializeAws_json1_1Lag = function (output, context) {
|
|
@@ -5108,9 +5050,7 @@ var deserializeAws_json1_1Lag = function (output, context) {
|
|
|
5108
5050
|
awsDevice: __expectString(output.awsDevice),
|
|
5109
5051
|
awsDeviceV2: __expectString(output.awsDeviceV2),
|
|
5110
5052
|
awsLogicalDeviceId: __expectString(output.awsLogicalDeviceId),
|
|
5111
|
-
connections: output.connections
|
|
5112
|
-
? deserializeAws_json1_1ConnectionList(output.connections, context)
|
|
5113
|
-
: undefined,
|
|
5053
|
+
connections: output.connections != null ? deserializeAws_json1_1ConnectionList(output.connections, context) : undefined,
|
|
5114
5054
|
connectionsBandwidth: __expectString(output.connectionsBandwidth),
|
|
5115
5055
|
encryptionMode: __expectString(output.encryptionMode),
|
|
5116
5056
|
hasLogicalRedundancy: __expectString(output.hasLogicalRedundancy),
|
|
@@ -5120,17 +5060,13 @@ var deserializeAws_json1_1Lag = function (output, context) {
|
|
|
5120
5060
|
lagState: __expectString(output.lagState),
|
|
5121
5061
|
location: __expectString(output.location),
|
|
5122
5062
|
macSecCapable: __expectBoolean(output.macSecCapable),
|
|
5123
|
-
macSecKeys: output.macSecKeys
|
|
5124
|
-
? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
|
|
5125
|
-
: undefined,
|
|
5063
|
+
macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
|
|
5126
5064
|
minimumLinks: __expectInt32(output.minimumLinks),
|
|
5127
5065
|
numberOfConnections: __expectInt32(output.numberOfConnections),
|
|
5128
5066
|
ownerAccount: __expectString(output.ownerAccount),
|
|
5129
5067
|
providerName: __expectString(output.providerName),
|
|
5130
5068
|
region: __expectString(output.region),
|
|
5131
|
-
tags: output.tags
|
|
5132
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
5133
|
-
: undefined,
|
|
5069
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
5134
5070
|
};
|
|
5135
5071
|
};
|
|
5136
5072
|
var deserializeAws_json1_1LagList = function (output, context) {
|
|
@@ -5146,36 +5082,32 @@ var deserializeAws_json1_1LagList = function (output, context) {
|
|
|
5146
5082
|
};
|
|
5147
5083
|
var deserializeAws_json1_1Lags = function (output, context) {
|
|
5148
5084
|
return {
|
|
5149
|
-
lags: output.lags
|
|
5150
|
-
? deserializeAws_json1_1LagList(output.lags, context)
|
|
5151
|
-
: undefined,
|
|
5085
|
+
lags: output.lags != null ? deserializeAws_json1_1LagList(output.lags, context) : undefined,
|
|
5152
5086
|
};
|
|
5153
5087
|
};
|
|
5154
5088
|
var deserializeAws_json1_1ListVirtualInterfaceTestHistoryResponse = function (output, context) {
|
|
5155
5089
|
return {
|
|
5156
5090
|
nextToken: __expectString(output.nextToken),
|
|
5157
|
-
virtualInterfaceTestHistory: output.virtualInterfaceTestHistory
|
|
5091
|
+
virtualInterfaceTestHistory: output.virtualInterfaceTestHistory != null
|
|
5158
5092
|
? deserializeAws_json1_1VirtualInterfaceTestHistoryList(output.virtualInterfaceTestHistory, context)
|
|
5159
5093
|
: undefined,
|
|
5160
5094
|
};
|
|
5161
5095
|
};
|
|
5162
5096
|
var deserializeAws_json1_1Loa = function (output, context) {
|
|
5163
5097
|
return {
|
|
5164
|
-
loaContent: output.loaContent
|
|
5165
|
-
? context.base64Decoder(output.loaContent)
|
|
5166
|
-
: undefined,
|
|
5098
|
+
loaContent: output.loaContent != null ? context.base64Decoder(output.loaContent) : undefined,
|
|
5167
5099
|
loaContentType: __expectString(output.loaContentType),
|
|
5168
5100
|
};
|
|
5169
5101
|
};
|
|
5170
5102
|
var deserializeAws_json1_1Location = function (output, context) {
|
|
5171
5103
|
return {
|
|
5172
|
-
availableMacSecPortSpeeds: output.availableMacSecPortSpeeds
|
|
5104
|
+
availableMacSecPortSpeeds: output.availableMacSecPortSpeeds != null
|
|
5173
5105
|
? deserializeAws_json1_1AvailableMacSecPortSpeeds(output.availableMacSecPortSpeeds, context)
|
|
5174
5106
|
: undefined,
|
|
5175
|
-
availablePortSpeeds: output.availablePortSpeeds
|
|
5107
|
+
availablePortSpeeds: output.availablePortSpeeds != null
|
|
5176
5108
|
? deserializeAws_json1_1AvailablePortSpeeds(output.availablePortSpeeds, context)
|
|
5177
5109
|
: undefined,
|
|
5178
|
-
availableProviders: output.availableProviders
|
|
5110
|
+
availableProviders: output.availableProviders != null
|
|
5179
5111
|
? deserializeAws_json1_1ProviderList(output.availableProviders, context)
|
|
5180
5112
|
: undefined,
|
|
5181
5113
|
locationCode: __expectString(output.locationCode),
|
|
@@ -5196,9 +5128,7 @@ var deserializeAws_json1_1LocationList = function (output, context) {
|
|
|
5196
5128
|
};
|
|
5197
5129
|
var deserializeAws_json1_1Locations = function (output, context) {
|
|
5198
5130
|
return {
|
|
5199
|
-
locations: output.locations
|
|
5200
|
-
? deserializeAws_json1_1LocationList(output.locations, context)
|
|
5201
|
-
: undefined,
|
|
5131
|
+
locations: output.locations != null ? deserializeAws_json1_1LocationList(output.locations, context) : undefined,
|
|
5202
5132
|
};
|
|
5203
5133
|
};
|
|
5204
5134
|
var deserializeAws_json1_1MacSecKey = function (output, context) {
|
|
@@ -5234,9 +5164,7 @@ var deserializeAws_json1_1ProviderList = function (output, context) {
|
|
|
5234
5164
|
var deserializeAws_json1_1ResourceTag = function (output, context) {
|
|
5235
5165
|
return {
|
|
5236
5166
|
resourceArn: __expectString(output.resourceArn),
|
|
5237
|
-
tags: output.tags
|
|
5238
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
5239
|
-
: undefined,
|
|
5167
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
5240
5168
|
};
|
|
5241
5169
|
};
|
|
5242
5170
|
var deserializeAws_json1_1ResourceTagList = function (output, context) {
|
|
@@ -5278,14 +5206,14 @@ var deserializeAws_json1_1RouterType = function (output, context) {
|
|
|
5278
5206
|
};
|
|
5279
5207
|
var deserializeAws_json1_1StartBgpFailoverTestResponse = function (output, context) {
|
|
5280
5208
|
return {
|
|
5281
|
-
virtualInterfaceTest: output.virtualInterfaceTest
|
|
5209
|
+
virtualInterfaceTest: output.virtualInterfaceTest != null
|
|
5282
5210
|
? deserializeAws_json1_1VirtualInterfaceTestHistory(output.virtualInterfaceTest, context)
|
|
5283
5211
|
: undefined,
|
|
5284
5212
|
};
|
|
5285
5213
|
};
|
|
5286
5214
|
var deserializeAws_json1_1StopBgpFailoverTestResponse = function (output, context) {
|
|
5287
5215
|
return {
|
|
5288
|
-
virtualInterfaceTest: output.virtualInterfaceTest
|
|
5216
|
+
virtualInterfaceTest: output.virtualInterfaceTest != null
|
|
5289
5217
|
? deserializeAws_json1_1VirtualInterfaceTestHistory(output.virtualInterfaceTest, context)
|
|
5290
5218
|
: undefined,
|
|
5291
5219
|
};
|
|
@@ -5320,14 +5248,14 @@ var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
|
5320
5248
|
};
|
|
5321
5249
|
var deserializeAws_json1_1UpdateDirectConnectGatewayAssociationResult = function (output, context) {
|
|
5322
5250
|
return {
|
|
5323
|
-
directConnectGatewayAssociation: output.directConnectGatewayAssociation
|
|
5251
|
+
directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
|
|
5324
5252
|
? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
|
|
5325
5253
|
: undefined,
|
|
5326
5254
|
};
|
|
5327
5255
|
};
|
|
5328
5256
|
var deserializeAws_json1_1UpdateDirectConnectGatewayResponse = function (output, context) {
|
|
5329
5257
|
return {
|
|
5330
|
-
directConnectGateway: output.directConnectGateway
|
|
5258
|
+
directConnectGateway: output.directConnectGateway != null
|
|
5331
5259
|
? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
|
|
5332
5260
|
: undefined,
|
|
5333
5261
|
};
|
|
@@ -5351,7 +5279,7 @@ var deserializeAws_json1_1VirtualGatewayList = function (output, context) {
|
|
|
5351
5279
|
};
|
|
5352
5280
|
var deserializeAws_json1_1VirtualGateways = function (output, context) {
|
|
5353
5281
|
return {
|
|
5354
|
-
virtualGateways: output.virtualGateways
|
|
5282
|
+
virtualGateways: output.virtualGateways != null
|
|
5355
5283
|
? deserializeAws_json1_1VirtualGatewayList(output.virtualGateways, context)
|
|
5356
5284
|
: undefined,
|
|
5357
5285
|
};
|
|
@@ -5365,9 +5293,7 @@ var deserializeAws_json1_1VirtualInterface = function (output, context) {
|
|
|
5365
5293
|
authKey: __expectString(output.authKey),
|
|
5366
5294
|
awsDeviceV2: __expectString(output.awsDeviceV2),
|
|
5367
5295
|
awsLogicalDeviceId: __expectString(output.awsLogicalDeviceId),
|
|
5368
|
-
bgpPeers: output.bgpPeers
|
|
5369
|
-
? deserializeAws_json1_1BGPPeerList(output.bgpPeers, context)
|
|
5370
|
-
: undefined,
|
|
5296
|
+
bgpPeers: output.bgpPeers != null ? deserializeAws_json1_1BGPPeerList(output.bgpPeers, context) : undefined,
|
|
5371
5297
|
connectionId: __expectString(output.connectionId),
|
|
5372
5298
|
customerAddress: __expectString(output.customerAddress),
|
|
5373
5299
|
customerRouterConfig: __expectString(output.customerRouterConfig),
|
|
@@ -5377,13 +5303,11 @@ var deserializeAws_json1_1VirtualInterface = function (output, context) {
|
|
|
5377
5303
|
mtu: __expectInt32(output.mtu),
|
|
5378
5304
|
ownerAccount: __expectString(output.ownerAccount),
|
|
5379
5305
|
region: __expectString(output.region),
|
|
5380
|
-
routeFilterPrefixes: output.routeFilterPrefixes
|
|
5306
|
+
routeFilterPrefixes: output.routeFilterPrefixes != null
|
|
5381
5307
|
? deserializeAws_json1_1RouteFilterPrefixList(output.routeFilterPrefixes, context)
|
|
5382
5308
|
: undefined,
|
|
5383
5309
|
siteLinkEnabled: __expectBoolean(output.siteLinkEnabled),
|
|
5384
|
-
tags: output.tags
|
|
5385
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
5386
|
-
: undefined,
|
|
5310
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
5387
5311
|
virtualGatewayId: __expectString(output.virtualGatewayId),
|
|
5388
5312
|
virtualInterfaceId: __expectString(output.virtualInterfaceId),
|
|
5389
5313
|
virtualInterfaceName: __expectString(output.virtualInterfaceName),
|
|
@@ -5405,23 +5329,17 @@ var deserializeAws_json1_1VirtualInterfaceList = function (output, context) {
|
|
|
5405
5329
|
};
|
|
5406
5330
|
var deserializeAws_json1_1VirtualInterfaces = function (output, context) {
|
|
5407
5331
|
return {
|
|
5408
|
-
virtualInterfaces: output.virtualInterfaces
|
|
5332
|
+
virtualInterfaces: output.virtualInterfaces != null
|
|
5409
5333
|
? deserializeAws_json1_1VirtualInterfaceList(output.virtualInterfaces, context)
|
|
5410
5334
|
: undefined,
|
|
5411
5335
|
};
|
|
5412
5336
|
};
|
|
5413
5337
|
var deserializeAws_json1_1VirtualInterfaceTestHistory = function (output, context) {
|
|
5414
5338
|
return {
|
|
5415
|
-
bgpPeers: output.bgpPeers
|
|
5416
|
-
|
|
5417
|
-
: undefined,
|
|
5418
|
-
endTime: output.endTime !== undefined && output.endTime !== null
|
|
5419
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
|
|
5420
|
-
: undefined,
|
|
5339
|
+
bgpPeers: output.bgpPeers != null ? deserializeAws_json1_1BGPPeerIdList(output.bgpPeers, context) : undefined,
|
|
5340
|
+
endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
|
|
5421
5341
|
ownerAccount: __expectString(output.ownerAccount),
|
|
5422
|
-
startTime: output.startTime
|
|
5423
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
5424
|
-
: undefined,
|
|
5342
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
5425
5343
|
status: __expectString(output.status),
|
|
5426
5344
|
testDurationInMinutes: __expectInt32(output.testDurationInMinutes),
|
|
5427
5345
|
testId: __expectString(output.testId),
|
|
@@ -5513,5 +5431,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
5513
5431
|
if (data["__type"] !== undefined) {
|
|
5514
5432
|
return sanitizeErrorCode(data["__type"]);
|
|
5515
5433
|
}
|
|
5516
|
-
return "";
|
|
5517
5434
|
};
|