@aws-sdk/client-neptune 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_query.js +345 -277
- package/dist-es/protocols/Aws_query.js +345 -277
- package/package.json +28 -28
|
@@ -923,8 +923,7 @@ const deserializeAws_queryAddRoleToDBClusterCommandError = async (output, contex
|
|
|
923
923
|
body: await parseBody(output.body, context),
|
|
924
924
|
};
|
|
925
925
|
let response;
|
|
926
|
-
|
|
927
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
926
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
928
927
|
switch (errorCode) {
|
|
929
928
|
case "DBClusterNotFoundFault":
|
|
930
929
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -940,10 +939,12 @@ const deserializeAws_queryAddRoleToDBClusterCommandError = async (output, contex
|
|
|
940
939
|
throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
|
|
941
940
|
default:
|
|
942
941
|
const parsedBody = parsedOutput.body;
|
|
942
|
+
const $metadata = deserializeMetadata(output);
|
|
943
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
943
944
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
944
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
945
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
945
946
|
$fault: "client",
|
|
946
|
-
$metadata
|
|
947
|
+
$metadata,
|
|
947
948
|
});
|
|
948
949
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
949
950
|
}
|
|
@@ -968,8 +969,7 @@ const deserializeAws_queryAddSourceIdentifierToSubscriptionCommandError = async
|
|
|
968
969
|
body: await parseBody(output.body, context),
|
|
969
970
|
};
|
|
970
971
|
let response;
|
|
971
|
-
|
|
972
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
972
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
973
973
|
switch (errorCode) {
|
|
974
974
|
case "SourceNotFoundFault":
|
|
975
975
|
case "com.amazonaws.neptune#SourceNotFoundFault":
|
|
@@ -979,10 +979,12 @@ const deserializeAws_queryAddSourceIdentifierToSubscriptionCommandError = async
|
|
|
979
979
|
throw await deserializeAws_querySubscriptionNotFoundFaultResponse(parsedOutput, context);
|
|
980
980
|
default:
|
|
981
981
|
const parsedBody = parsedOutput.body;
|
|
982
|
+
const $metadata = deserializeMetadata(output);
|
|
983
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
982
984
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
983
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
985
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
984
986
|
$fault: "client",
|
|
985
|
-
$metadata
|
|
987
|
+
$metadata,
|
|
986
988
|
});
|
|
987
989
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
988
990
|
}
|
|
@@ -1004,8 +1006,7 @@ const deserializeAws_queryAddTagsToResourceCommandError = async (output, context
|
|
|
1004
1006
|
body: await parseBody(output.body, context),
|
|
1005
1007
|
};
|
|
1006
1008
|
let response;
|
|
1007
|
-
|
|
1008
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1009
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1009
1010
|
switch (errorCode) {
|
|
1010
1011
|
case "DBClusterNotFoundFault":
|
|
1011
1012
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -1018,10 +1019,12 @@ const deserializeAws_queryAddTagsToResourceCommandError = async (output, context
|
|
|
1018
1019
|
throw await deserializeAws_queryDBSnapshotNotFoundFaultResponse(parsedOutput, context);
|
|
1019
1020
|
default:
|
|
1020
1021
|
const parsedBody = parsedOutput.body;
|
|
1022
|
+
const $metadata = deserializeMetadata(output);
|
|
1023
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1021
1024
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1022
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1025
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1023
1026
|
$fault: "client",
|
|
1024
|
-
$metadata
|
|
1027
|
+
$metadata,
|
|
1025
1028
|
});
|
|
1026
1029
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1027
1030
|
}
|
|
@@ -1046,18 +1049,19 @@ const deserializeAws_queryApplyPendingMaintenanceActionCommandError = async (out
|
|
|
1046
1049
|
body: await parseBody(output.body, context),
|
|
1047
1050
|
};
|
|
1048
1051
|
let response;
|
|
1049
|
-
|
|
1050
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1052
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1051
1053
|
switch (errorCode) {
|
|
1052
1054
|
case "ResourceNotFoundFault":
|
|
1053
1055
|
case "com.amazonaws.neptune#ResourceNotFoundFault":
|
|
1054
1056
|
throw await deserializeAws_queryResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1055
1057
|
default:
|
|
1056
1058
|
const parsedBody = parsedOutput.body;
|
|
1059
|
+
const $metadata = deserializeMetadata(output);
|
|
1060
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1057
1061
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1058
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1062
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1059
1063
|
$fault: "client",
|
|
1060
|
-
$metadata
|
|
1064
|
+
$metadata,
|
|
1061
1065
|
});
|
|
1062
1066
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1063
1067
|
}
|
|
@@ -1082,8 +1086,7 @@ const deserializeAws_queryCopyDBClusterParameterGroupCommandError = async (outpu
|
|
|
1082
1086
|
body: await parseBody(output.body, context),
|
|
1083
1087
|
};
|
|
1084
1088
|
let response;
|
|
1085
|
-
|
|
1086
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1089
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1087
1090
|
switch (errorCode) {
|
|
1088
1091
|
case "DBParameterGroupAlreadyExistsFault":
|
|
1089
1092
|
case "com.amazonaws.neptune#DBParameterGroupAlreadyExistsFault":
|
|
@@ -1096,10 +1099,12 @@ const deserializeAws_queryCopyDBClusterParameterGroupCommandError = async (outpu
|
|
|
1096
1099
|
throw await deserializeAws_queryDBParameterGroupQuotaExceededFaultResponse(parsedOutput, context);
|
|
1097
1100
|
default:
|
|
1098
1101
|
const parsedBody = parsedOutput.body;
|
|
1102
|
+
const $metadata = deserializeMetadata(output);
|
|
1103
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1099
1104
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1100
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1105
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1101
1106
|
$fault: "client",
|
|
1102
|
-
$metadata
|
|
1107
|
+
$metadata,
|
|
1103
1108
|
});
|
|
1104
1109
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1105
1110
|
}
|
|
@@ -1124,8 +1129,7 @@ const deserializeAws_queryCopyDBClusterSnapshotCommandError = async (output, con
|
|
|
1124
1129
|
body: await parseBody(output.body, context),
|
|
1125
1130
|
};
|
|
1126
1131
|
let response;
|
|
1127
|
-
|
|
1128
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1132
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1129
1133
|
switch (errorCode) {
|
|
1130
1134
|
case "DBClusterSnapshotAlreadyExistsFault":
|
|
1131
1135
|
case "com.amazonaws.neptune#DBClusterSnapshotAlreadyExistsFault":
|
|
@@ -1147,10 +1151,12 @@ const deserializeAws_queryCopyDBClusterSnapshotCommandError = async (output, con
|
|
|
1147
1151
|
throw await deserializeAws_querySnapshotQuotaExceededFaultResponse(parsedOutput, context);
|
|
1148
1152
|
default:
|
|
1149
1153
|
const parsedBody = parsedOutput.body;
|
|
1154
|
+
const $metadata = deserializeMetadata(output);
|
|
1155
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1150
1156
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1151
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1157
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1152
1158
|
$fault: "client",
|
|
1153
|
-
$metadata
|
|
1159
|
+
$metadata,
|
|
1154
1160
|
});
|
|
1155
1161
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1156
1162
|
}
|
|
@@ -1175,8 +1181,7 @@ const deserializeAws_queryCopyDBParameterGroupCommandError = async (output, cont
|
|
|
1175
1181
|
body: await parseBody(output.body, context),
|
|
1176
1182
|
};
|
|
1177
1183
|
let response;
|
|
1178
|
-
|
|
1179
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1184
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1180
1185
|
switch (errorCode) {
|
|
1181
1186
|
case "DBParameterGroupAlreadyExistsFault":
|
|
1182
1187
|
case "com.amazonaws.neptune#DBParameterGroupAlreadyExistsFault":
|
|
@@ -1189,10 +1194,12 @@ const deserializeAws_queryCopyDBParameterGroupCommandError = async (output, cont
|
|
|
1189
1194
|
throw await deserializeAws_queryDBParameterGroupQuotaExceededFaultResponse(parsedOutput, context);
|
|
1190
1195
|
default:
|
|
1191
1196
|
const parsedBody = parsedOutput.body;
|
|
1197
|
+
const $metadata = deserializeMetadata(output);
|
|
1198
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1192
1199
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1193
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1200
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1194
1201
|
$fault: "client",
|
|
1195
|
-
$metadata
|
|
1202
|
+
$metadata,
|
|
1196
1203
|
});
|
|
1197
1204
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1198
1205
|
}
|
|
@@ -1217,8 +1224,7 @@ const deserializeAws_queryCreateDBClusterCommandError = async (output, context)
|
|
|
1217
1224
|
body: await parseBody(output.body, context),
|
|
1218
1225
|
};
|
|
1219
1226
|
let response;
|
|
1220
|
-
|
|
1221
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1227
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1222
1228
|
switch (errorCode) {
|
|
1223
1229
|
case "DBClusterAlreadyExistsFault":
|
|
1224
1230
|
case "com.amazonaws.neptune#DBClusterAlreadyExistsFault":
|
|
@@ -1273,10 +1279,12 @@ const deserializeAws_queryCreateDBClusterCommandError = async (output, context)
|
|
|
1273
1279
|
throw await deserializeAws_queryStorageQuotaExceededFaultResponse(parsedOutput, context);
|
|
1274
1280
|
default:
|
|
1275
1281
|
const parsedBody = parsedOutput.body;
|
|
1282
|
+
const $metadata = deserializeMetadata(output);
|
|
1283
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1276
1284
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1277
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1285
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1278
1286
|
$fault: "client",
|
|
1279
|
-
$metadata
|
|
1287
|
+
$metadata,
|
|
1280
1288
|
});
|
|
1281
1289
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1282
1290
|
}
|
|
@@ -1301,8 +1309,7 @@ const deserializeAws_queryCreateDBClusterEndpointCommandError = async (output, c
|
|
|
1301
1309
|
body: await parseBody(output.body, context),
|
|
1302
1310
|
};
|
|
1303
1311
|
let response;
|
|
1304
|
-
|
|
1305
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1312
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1306
1313
|
switch (errorCode) {
|
|
1307
1314
|
case "DBClusterEndpointAlreadyExistsFault":
|
|
1308
1315
|
case "com.amazonaws.neptune#DBClusterEndpointAlreadyExistsFault":
|
|
@@ -1324,10 +1331,12 @@ const deserializeAws_queryCreateDBClusterEndpointCommandError = async (output, c
|
|
|
1324
1331
|
throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
|
|
1325
1332
|
default:
|
|
1326
1333
|
const parsedBody = parsedOutput.body;
|
|
1334
|
+
const $metadata = deserializeMetadata(output);
|
|
1335
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1327
1336
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1328
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1337
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1329
1338
|
$fault: "client",
|
|
1330
|
-
$metadata
|
|
1339
|
+
$metadata,
|
|
1331
1340
|
});
|
|
1332
1341
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1333
1342
|
}
|
|
@@ -1352,8 +1361,7 @@ const deserializeAws_queryCreateDBClusterParameterGroupCommandError = async (out
|
|
|
1352
1361
|
body: await parseBody(output.body, context),
|
|
1353
1362
|
};
|
|
1354
1363
|
let response;
|
|
1355
|
-
|
|
1356
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1364
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1357
1365
|
switch (errorCode) {
|
|
1358
1366
|
case "DBParameterGroupAlreadyExistsFault":
|
|
1359
1367
|
case "com.amazonaws.neptune#DBParameterGroupAlreadyExistsFault":
|
|
@@ -1363,10 +1371,12 @@ const deserializeAws_queryCreateDBClusterParameterGroupCommandError = async (out
|
|
|
1363
1371
|
throw await deserializeAws_queryDBParameterGroupQuotaExceededFaultResponse(parsedOutput, context);
|
|
1364
1372
|
default:
|
|
1365
1373
|
const parsedBody = parsedOutput.body;
|
|
1374
|
+
const $metadata = deserializeMetadata(output);
|
|
1375
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1366
1376
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1367
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1377
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1368
1378
|
$fault: "client",
|
|
1369
|
-
$metadata
|
|
1379
|
+
$metadata,
|
|
1370
1380
|
});
|
|
1371
1381
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1372
1382
|
}
|
|
@@ -1391,8 +1401,7 @@ const deserializeAws_queryCreateDBClusterSnapshotCommandError = async (output, c
|
|
|
1391
1401
|
body: await parseBody(output.body, context),
|
|
1392
1402
|
};
|
|
1393
1403
|
let response;
|
|
1394
|
-
|
|
1395
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1404
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1396
1405
|
switch (errorCode) {
|
|
1397
1406
|
case "DBClusterNotFoundFault":
|
|
1398
1407
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -1411,10 +1420,12 @@ const deserializeAws_queryCreateDBClusterSnapshotCommandError = async (output, c
|
|
|
1411
1420
|
throw await deserializeAws_querySnapshotQuotaExceededFaultResponse(parsedOutput, context);
|
|
1412
1421
|
default:
|
|
1413
1422
|
const parsedBody = parsedOutput.body;
|
|
1423
|
+
const $metadata = deserializeMetadata(output);
|
|
1424
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1414
1425
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1415
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1426
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1416
1427
|
$fault: "client",
|
|
1417
|
-
$metadata
|
|
1428
|
+
$metadata,
|
|
1418
1429
|
});
|
|
1419
1430
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1420
1431
|
}
|
|
@@ -1439,8 +1450,7 @@ const deserializeAws_queryCreateDBInstanceCommandError = async (output, context)
|
|
|
1439
1450
|
body: await parseBody(output.body, context),
|
|
1440
1451
|
};
|
|
1441
1452
|
let response;
|
|
1442
|
-
|
|
1443
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1453
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1444
1454
|
switch (errorCode) {
|
|
1445
1455
|
case "AuthorizationNotFoundFault":
|
|
1446
1456
|
case "com.amazonaws.neptune#AuthorizationNotFoundFault":
|
|
@@ -1498,10 +1508,12 @@ const deserializeAws_queryCreateDBInstanceCommandError = async (output, context)
|
|
|
1498
1508
|
throw await deserializeAws_queryStorageTypeNotSupportedFaultResponse(parsedOutput, context);
|
|
1499
1509
|
default:
|
|
1500
1510
|
const parsedBody = parsedOutput.body;
|
|
1511
|
+
const $metadata = deserializeMetadata(output);
|
|
1512
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1501
1513
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1502
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1514
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1503
1515
|
$fault: "client",
|
|
1504
|
-
$metadata
|
|
1516
|
+
$metadata,
|
|
1505
1517
|
});
|
|
1506
1518
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1507
1519
|
}
|
|
@@ -1526,8 +1538,7 @@ const deserializeAws_queryCreateDBParameterGroupCommandError = async (output, co
|
|
|
1526
1538
|
body: await parseBody(output.body, context),
|
|
1527
1539
|
};
|
|
1528
1540
|
let response;
|
|
1529
|
-
|
|
1530
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1541
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1531
1542
|
switch (errorCode) {
|
|
1532
1543
|
case "DBParameterGroupAlreadyExistsFault":
|
|
1533
1544
|
case "com.amazonaws.neptune#DBParameterGroupAlreadyExistsFault":
|
|
@@ -1537,10 +1548,12 @@ const deserializeAws_queryCreateDBParameterGroupCommandError = async (output, co
|
|
|
1537
1548
|
throw await deserializeAws_queryDBParameterGroupQuotaExceededFaultResponse(parsedOutput, context);
|
|
1538
1549
|
default:
|
|
1539
1550
|
const parsedBody = parsedOutput.body;
|
|
1551
|
+
const $metadata = deserializeMetadata(output);
|
|
1552
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1540
1553
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1541
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1554
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1542
1555
|
$fault: "client",
|
|
1543
|
-
$metadata
|
|
1556
|
+
$metadata,
|
|
1544
1557
|
});
|
|
1545
1558
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1546
1559
|
}
|
|
@@ -1565,8 +1578,7 @@ const deserializeAws_queryCreateDBSubnetGroupCommandError = async (output, conte
|
|
|
1565
1578
|
body: await parseBody(output.body, context),
|
|
1566
1579
|
};
|
|
1567
1580
|
let response;
|
|
1568
|
-
|
|
1569
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1581
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1570
1582
|
switch (errorCode) {
|
|
1571
1583
|
case "DBSubnetGroupAlreadyExistsFault":
|
|
1572
1584
|
case "com.amazonaws.neptune#DBSubnetGroupAlreadyExistsFault":
|
|
@@ -1585,10 +1597,12 @@ const deserializeAws_queryCreateDBSubnetGroupCommandError = async (output, conte
|
|
|
1585
1597
|
throw await deserializeAws_queryInvalidSubnetResponse(parsedOutput, context);
|
|
1586
1598
|
default:
|
|
1587
1599
|
const parsedBody = parsedOutput.body;
|
|
1600
|
+
const $metadata = deserializeMetadata(output);
|
|
1601
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1588
1602
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1589
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1603
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1590
1604
|
$fault: "client",
|
|
1591
|
-
$metadata
|
|
1605
|
+
$metadata,
|
|
1592
1606
|
});
|
|
1593
1607
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1594
1608
|
}
|
|
@@ -1613,8 +1627,7 @@ const deserializeAws_queryCreateEventSubscriptionCommandError = async (output, c
|
|
|
1613
1627
|
body: await parseBody(output.body, context),
|
|
1614
1628
|
};
|
|
1615
1629
|
let response;
|
|
1616
|
-
|
|
1617
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1630
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1618
1631
|
switch (errorCode) {
|
|
1619
1632
|
case "EventSubscriptionQuotaExceededFault":
|
|
1620
1633
|
case "com.amazonaws.neptune#EventSubscriptionQuotaExceededFault":
|
|
@@ -1639,10 +1652,12 @@ const deserializeAws_queryCreateEventSubscriptionCommandError = async (output, c
|
|
|
1639
1652
|
throw await deserializeAws_querySubscriptionCategoryNotFoundFaultResponse(parsedOutput, context);
|
|
1640
1653
|
default:
|
|
1641
1654
|
const parsedBody = parsedOutput.body;
|
|
1655
|
+
const $metadata = deserializeMetadata(output);
|
|
1656
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1642
1657
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1643
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1658
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1644
1659
|
$fault: "client",
|
|
1645
|
-
$metadata
|
|
1660
|
+
$metadata,
|
|
1646
1661
|
});
|
|
1647
1662
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1648
1663
|
}
|
|
@@ -1667,8 +1682,7 @@ const deserializeAws_queryCreateGlobalClusterCommandError = async (output, conte
|
|
|
1667
1682
|
body: await parseBody(output.body, context),
|
|
1668
1683
|
};
|
|
1669
1684
|
let response;
|
|
1670
|
-
|
|
1671
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1685
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1672
1686
|
switch (errorCode) {
|
|
1673
1687
|
case "DBClusterNotFoundFault":
|
|
1674
1688
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -1684,10 +1698,12 @@ const deserializeAws_queryCreateGlobalClusterCommandError = async (output, conte
|
|
|
1684
1698
|
throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
|
|
1685
1699
|
default:
|
|
1686
1700
|
const parsedBody = parsedOutput.body;
|
|
1701
|
+
const $metadata = deserializeMetadata(output);
|
|
1702
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1687
1703
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1688
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1704
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1689
1705
|
$fault: "client",
|
|
1690
|
-
$metadata
|
|
1706
|
+
$metadata,
|
|
1691
1707
|
});
|
|
1692
1708
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1693
1709
|
}
|
|
@@ -1712,8 +1728,7 @@ const deserializeAws_queryDeleteDBClusterCommandError = async (output, context)
|
|
|
1712
1728
|
body: await parseBody(output.body, context),
|
|
1713
1729
|
};
|
|
1714
1730
|
let response;
|
|
1715
|
-
|
|
1716
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1731
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1717
1732
|
switch (errorCode) {
|
|
1718
1733
|
case "DBClusterNotFoundFault":
|
|
1719
1734
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -1732,10 +1747,12 @@ const deserializeAws_queryDeleteDBClusterCommandError = async (output, context)
|
|
|
1732
1747
|
throw await deserializeAws_querySnapshotQuotaExceededFaultResponse(parsedOutput, context);
|
|
1733
1748
|
default:
|
|
1734
1749
|
const parsedBody = parsedOutput.body;
|
|
1750
|
+
const $metadata = deserializeMetadata(output);
|
|
1751
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1735
1752
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1736
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1753
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1737
1754
|
$fault: "client",
|
|
1738
|
-
$metadata
|
|
1755
|
+
$metadata,
|
|
1739
1756
|
});
|
|
1740
1757
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1741
1758
|
}
|
|
@@ -1760,8 +1777,7 @@ const deserializeAws_queryDeleteDBClusterEndpointCommandError = async (output, c
|
|
|
1760
1777
|
body: await parseBody(output.body, context),
|
|
1761
1778
|
};
|
|
1762
1779
|
let response;
|
|
1763
|
-
|
|
1764
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1780
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1765
1781
|
switch (errorCode) {
|
|
1766
1782
|
case "DBClusterEndpointNotFoundFault":
|
|
1767
1783
|
case "com.amazonaws.neptune#DBClusterEndpointNotFoundFault":
|
|
@@ -1774,10 +1790,12 @@ const deserializeAws_queryDeleteDBClusterEndpointCommandError = async (output, c
|
|
|
1774
1790
|
throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
|
|
1775
1791
|
default:
|
|
1776
1792
|
const parsedBody = parsedOutput.body;
|
|
1793
|
+
const $metadata = deserializeMetadata(output);
|
|
1794
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1777
1795
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1778
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1796
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1779
1797
|
$fault: "client",
|
|
1780
|
-
$metadata
|
|
1798
|
+
$metadata,
|
|
1781
1799
|
});
|
|
1782
1800
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1783
1801
|
}
|
|
@@ -1799,8 +1817,7 @@ const deserializeAws_queryDeleteDBClusterParameterGroupCommandError = async (out
|
|
|
1799
1817
|
body: await parseBody(output.body, context),
|
|
1800
1818
|
};
|
|
1801
1819
|
let response;
|
|
1802
|
-
|
|
1803
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1820
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1804
1821
|
switch (errorCode) {
|
|
1805
1822
|
case "DBParameterGroupNotFoundFault":
|
|
1806
1823
|
case "com.amazonaws.neptune#DBParameterGroupNotFoundFault":
|
|
@@ -1810,10 +1827,12 @@ const deserializeAws_queryDeleteDBClusterParameterGroupCommandError = async (out
|
|
|
1810
1827
|
throw await deserializeAws_queryInvalidDBParameterGroupStateFaultResponse(parsedOutput, context);
|
|
1811
1828
|
default:
|
|
1812
1829
|
const parsedBody = parsedOutput.body;
|
|
1830
|
+
const $metadata = deserializeMetadata(output);
|
|
1831
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1813
1832
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1814
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1833
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1815
1834
|
$fault: "client",
|
|
1816
|
-
$metadata
|
|
1835
|
+
$metadata,
|
|
1817
1836
|
});
|
|
1818
1837
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1819
1838
|
}
|
|
@@ -1838,8 +1857,7 @@ const deserializeAws_queryDeleteDBClusterSnapshotCommandError = async (output, c
|
|
|
1838
1857
|
body: await parseBody(output.body, context),
|
|
1839
1858
|
};
|
|
1840
1859
|
let response;
|
|
1841
|
-
|
|
1842
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1860
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1843
1861
|
switch (errorCode) {
|
|
1844
1862
|
case "DBClusterSnapshotNotFoundFault":
|
|
1845
1863
|
case "com.amazonaws.neptune#DBClusterSnapshotNotFoundFault":
|
|
@@ -1849,10 +1867,12 @@ const deserializeAws_queryDeleteDBClusterSnapshotCommandError = async (output, c
|
|
|
1849
1867
|
throw await deserializeAws_queryInvalidDBClusterSnapshotStateFaultResponse(parsedOutput, context);
|
|
1850
1868
|
default:
|
|
1851
1869
|
const parsedBody = parsedOutput.body;
|
|
1870
|
+
const $metadata = deserializeMetadata(output);
|
|
1871
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1852
1872
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1853
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1873
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1854
1874
|
$fault: "client",
|
|
1855
|
-
$metadata
|
|
1875
|
+
$metadata,
|
|
1856
1876
|
});
|
|
1857
1877
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1858
1878
|
}
|
|
@@ -1877,8 +1897,7 @@ const deserializeAws_queryDeleteDBInstanceCommandError = async (output, context)
|
|
|
1877
1897
|
body: await parseBody(output.body, context),
|
|
1878
1898
|
};
|
|
1879
1899
|
let response;
|
|
1880
|
-
|
|
1881
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1900
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1882
1901
|
switch (errorCode) {
|
|
1883
1902
|
case "DBInstanceNotFoundFault":
|
|
1884
1903
|
case "com.amazonaws.neptune#DBInstanceNotFoundFault":
|
|
@@ -1897,10 +1916,12 @@ const deserializeAws_queryDeleteDBInstanceCommandError = async (output, context)
|
|
|
1897
1916
|
throw await deserializeAws_querySnapshotQuotaExceededFaultResponse(parsedOutput, context);
|
|
1898
1917
|
default:
|
|
1899
1918
|
const parsedBody = parsedOutput.body;
|
|
1919
|
+
const $metadata = deserializeMetadata(output);
|
|
1920
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1900
1921
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1901
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1922
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1902
1923
|
$fault: "client",
|
|
1903
|
-
$metadata
|
|
1924
|
+
$metadata,
|
|
1904
1925
|
});
|
|
1905
1926
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1906
1927
|
}
|
|
@@ -1922,8 +1943,7 @@ const deserializeAws_queryDeleteDBParameterGroupCommandError = async (output, co
|
|
|
1922
1943
|
body: await parseBody(output.body, context),
|
|
1923
1944
|
};
|
|
1924
1945
|
let response;
|
|
1925
|
-
|
|
1926
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1946
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1927
1947
|
switch (errorCode) {
|
|
1928
1948
|
case "DBParameterGroupNotFoundFault":
|
|
1929
1949
|
case "com.amazonaws.neptune#DBParameterGroupNotFoundFault":
|
|
@@ -1933,10 +1953,12 @@ const deserializeAws_queryDeleteDBParameterGroupCommandError = async (output, co
|
|
|
1933
1953
|
throw await deserializeAws_queryInvalidDBParameterGroupStateFaultResponse(parsedOutput, context);
|
|
1934
1954
|
default:
|
|
1935
1955
|
const parsedBody = parsedOutput.body;
|
|
1956
|
+
const $metadata = deserializeMetadata(output);
|
|
1957
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1936
1958
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1937
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1959
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1938
1960
|
$fault: "client",
|
|
1939
|
-
$metadata
|
|
1961
|
+
$metadata,
|
|
1940
1962
|
});
|
|
1941
1963
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1942
1964
|
}
|
|
@@ -1958,8 +1980,7 @@ const deserializeAws_queryDeleteDBSubnetGroupCommandError = async (output, conte
|
|
|
1958
1980
|
body: await parseBody(output.body, context),
|
|
1959
1981
|
};
|
|
1960
1982
|
let response;
|
|
1961
|
-
|
|
1962
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1983
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1963
1984
|
switch (errorCode) {
|
|
1964
1985
|
case "DBSubnetGroupNotFoundFault":
|
|
1965
1986
|
case "com.amazonaws.neptune#DBSubnetGroupNotFoundFault":
|
|
@@ -1972,10 +1993,12 @@ const deserializeAws_queryDeleteDBSubnetGroupCommandError = async (output, conte
|
|
|
1972
1993
|
throw await deserializeAws_queryInvalidDBSubnetStateFaultResponse(parsedOutput, context);
|
|
1973
1994
|
default:
|
|
1974
1995
|
const parsedBody = parsedOutput.body;
|
|
1996
|
+
const $metadata = deserializeMetadata(output);
|
|
1997
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1975
1998
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1976
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1999
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1977
2000
|
$fault: "client",
|
|
1978
|
-
$metadata
|
|
2001
|
+
$metadata,
|
|
1979
2002
|
});
|
|
1980
2003
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1981
2004
|
}
|
|
@@ -2000,8 +2023,7 @@ const deserializeAws_queryDeleteEventSubscriptionCommandError = async (output, c
|
|
|
2000
2023
|
body: await parseBody(output.body, context),
|
|
2001
2024
|
};
|
|
2002
2025
|
let response;
|
|
2003
|
-
|
|
2004
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2026
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2005
2027
|
switch (errorCode) {
|
|
2006
2028
|
case "InvalidEventSubscriptionStateFault":
|
|
2007
2029
|
case "com.amazonaws.neptune#InvalidEventSubscriptionStateFault":
|
|
@@ -2011,10 +2033,12 @@ const deserializeAws_queryDeleteEventSubscriptionCommandError = async (output, c
|
|
|
2011
2033
|
throw await deserializeAws_querySubscriptionNotFoundFaultResponse(parsedOutput, context);
|
|
2012
2034
|
default:
|
|
2013
2035
|
const parsedBody = parsedOutput.body;
|
|
2036
|
+
const $metadata = deserializeMetadata(output);
|
|
2037
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2014
2038
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2015
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2039
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2016
2040
|
$fault: "client",
|
|
2017
|
-
$metadata
|
|
2041
|
+
$metadata,
|
|
2018
2042
|
});
|
|
2019
2043
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2020
2044
|
}
|
|
@@ -2039,8 +2063,7 @@ const deserializeAws_queryDeleteGlobalClusterCommandError = async (output, conte
|
|
|
2039
2063
|
body: await parseBody(output.body, context),
|
|
2040
2064
|
};
|
|
2041
2065
|
let response;
|
|
2042
|
-
|
|
2043
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2066
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2044
2067
|
switch (errorCode) {
|
|
2045
2068
|
case "GlobalClusterNotFoundFault":
|
|
2046
2069
|
case "com.amazonaws.neptune#GlobalClusterNotFoundFault":
|
|
@@ -2050,10 +2073,12 @@ const deserializeAws_queryDeleteGlobalClusterCommandError = async (output, conte
|
|
|
2050
2073
|
throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
|
|
2051
2074
|
default:
|
|
2052
2075
|
const parsedBody = parsedOutput.body;
|
|
2076
|
+
const $metadata = deserializeMetadata(output);
|
|
2077
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2053
2078
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2054
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2079
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2055
2080
|
$fault: "client",
|
|
2056
|
-
$metadata
|
|
2081
|
+
$metadata,
|
|
2057
2082
|
});
|
|
2058
2083
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2059
2084
|
}
|
|
@@ -2078,18 +2103,19 @@ const deserializeAws_queryDescribeDBClusterEndpointsCommandError = async (output
|
|
|
2078
2103
|
body: await parseBody(output.body, context),
|
|
2079
2104
|
};
|
|
2080
2105
|
let response;
|
|
2081
|
-
|
|
2082
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2106
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2083
2107
|
switch (errorCode) {
|
|
2084
2108
|
case "DBClusterNotFoundFault":
|
|
2085
2109
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
2086
2110
|
throw await deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context);
|
|
2087
2111
|
default:
|
|
2088
2112
|
const parsedBody = parsedOutput.body;
|
|
2113
|
+
const $metadata = deserializeMetadata(output);
|
|
2114
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2089
2115
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2090
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2116
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2091
2117
|
$fault: "client",
|
|
2092
|
-
$metadata
|
|
2118
|
+
$metadata,
|
|
2093
2119
|
});
|
|
2094
2120
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2095
2121
|
}
|
|
@@ -2114,18 +2140,19 @@ const deserializeAws_queryDescribeDBClusterParameterGroupsCommandError = async (
|
|
|
2114
2140
|
body: await parseBody(output.body, context),
|
|
2115
2141
|
};
|
|
2116
2142
|
let response;
|
|
2117
|
-
|
|
2118
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2143
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2119
2144
|
switch (errorCode) {
|
|
2120
2145
|
case "DBParameterGroupNotFoundFault":
|
|
2121
2146
|
case "com.amazonaws.neptune#DBParameterGroupNotFoundFault":
|
|
2122
2147
|
throw await deserializeAws_queryDBParameterGroupNotFoundFaultResponse(parsedOutput, context);
|
|
2123
2148
|
default:
|
|
2124
2149
|
const parsedBody = parsedOutput.body;
|
|
2150
|
+
const $metadata = deserializeMetadata(output);
|
|
2151
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2125
2152
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2126
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2153
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2127
2154
|
$fault: "client",
|
|
2128
|
-
$metadata
|
|
2155
|
+
$metadata,
|
|
2129
2156
|
});
|
|
2130
2157
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2131
2158
|
}
|
|
@@ -2150,18 +2177,19 @@ const deserializeAws_queryDescribeDBClusterParametersCommandError = async (outpu
|
|
|
2150
2177
|
body: await parseBody(output.body, context),
|
|
2151
2178
|
};
|
|
2152
2179
|
let response;
|
|
2153
|
-
|
|
2154
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2180
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2155
2181
|
switch (errorCode) {
|
|
2156
2182
|
case "DBParameterGroupNotFoundFault":
|
|
2157
2183
|
case "com.amazonaws.neptune#DBParameterGroupNotFoundFault":
|
|
2158
2184
|
throw await deserializeAws_queryDBParameterGroupNotFoundFaultResponse(parsedOutput, context);
|
|
2159
2185
|
default:
|
|
2160
2186
|
const parsedBody = parsedOutput.body;
|
|
2187
|
+
const $metadata = deserializeMetadata(output);
|
|
2188
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2161
2189
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2162
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2190
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2163
2191
|
$fault: "client",
|
|
2164
|
-
$metadata
|
|
2192
|
+
$metadata,
|
|
2165
2193
|
});
|
|
2166
2194
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2167
2195
|
}
|
|
@@ -2186,18 +2214,19 @@ const deserializeAws_queryDescribeDBClustersCommandError = async (output, contex
|
|
|
2186
2214
|
body: await parseBody(output.body, context),
|
|
2187
2215
|
};
|
|
2188
2216
|
let response;
|
|
2189
|
-
|
|
2190
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2217
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2191
2218
|
switch (errorCode) {
|
|
2192
2219
|
case "DBClusterNotFoundFault":
|
|
2193
2220
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
2194
2221
|
throw await deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context);
|
|
2195
2222
|
default:
|
|
2196
2223
|
const parsedBody = parsedOutput.body;
|
|
2224
|
+
const $metadata = deserializeMetadata(output);
|
|
2225
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2197
2226
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2198
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2227
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2199
2228
|
$fault: "client",
|
|
2200
|
-
$metadata
|
|
2229
|
+
$metadata,
|
|
2201
2230
|
});
|
|
2202
2231
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2203
2232
|
}
|
|
@@ -2222,18 +2251,19 @@ const deserializeAws_queryDescribeDBClusterSnapshotAttributesCommandError = asyn
|
|
|
2222
2251
|
body: await parseBody(output.body, context),
|
|
2223
2252
|
};
|
|
2224
2253
|
let response;
|
|
2225
|
-
|
|
2226
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2254
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2227
2255
|
switch (errorCode) {
|
|
2228
2256
|
case "DBClusterSnapshotNotFoundFault":
|
|
2229
2257
|
case "com.amazonaws.neptune#DBClusterSnapshotNotFoundFault":
|
|
2230
2258
|
throw await deserializeAws_queryDBClusterSnapshotNotFoundFaultResponse(parsedOutput, context);
|
|
2231
2259
|
default:
|
|
2232
2260
|
const parsedBody = parsedOutput.body;
|
|
2261
|
+
const $metadata = deserializeMetadata(output);
|
|
2262
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2233
2263
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2234
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2264
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2235
2265
|
$fault: "client",
|
|
2236
|
-
$metadata
|
|
2266
|
+
$metadata,
|
|
2237
2267
|
});
|
|
2238
2268
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2239
2269
|
}
|
|
@@ -2258,18 +2288,19 @@ const deserializeAws_queryDescribeDBClusterSnapshotsCommandError = async (output
|
|
|
2258
2288
|
body: await parseBody(output.body, context),
|
|
2259
2289
|
};
|
|
2260
2290
|
let response;
|
|
2261
|
-
|
|
2262
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2291
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2263
2292
|
switch (errorCode) {
|
|
2264
2293
|
case "DBClusterSnapshotNotFoundFault":
|
|
2265
2294
|
case "com.amazonaws.neptune#DBClusterSnapshotNotFoundFault":
|
|
2266
2295
|
throw await deserializeAws_queryDBClusterSnapshotNotFoundFaultResponse(parsedOutput, context);
|
|
2267
2296
|
default:
|
|
2268
2297
|
const parsedBody = parsedOutput.body;
|
|
2298
|
+
const $metadata = deserializeMetadata(output);
|
|
2299
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2269
2300
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2270
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2301
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2271
2302
|
$fault: "client",
|
|
2272
|
-
$metadata
|
|
2303
|
+
$metadata,
|
|
2273
2304
|
});
|
|
2274
2305
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2275
2306
|
}
|
|
@@ -2294,15 +2325,16 @@ const deserializeAws_queryDescribeDBEngineVersionsCommandError = async (output,
|
|
|
2294
2325
|
body: await parseBody(output.body, context),
|
|
2295
2326
|
};
|
|
2296
2327
|
let response;
|
|
2297
|
-
|
|
2298
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2328
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2299
2329
|
switch (errorCode) {
|
|
2300
2330
|
default:
|
|
2301
2331
|
const parsedBody = parsedOutput.body;
|
|
2332
|
+
const $metadata = deserializeMetadata(output);
|
|
2333
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2302
2334
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2303
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2335
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2304
2336
|
$fault: "client",
|
|
2305
|
-
$metadata
|
|
2337
|
+
$metadata,
|
|
2306
2338
|
});
|
|
2307
2339
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2308
2340
|
}
|
|
@@ -2327,18 +2359,19 @@ const deserializeAws_queryDescribeDBInstancesCommandError = async (output, conte
|
|
|
2327
2359
|
body: await parseBody(output.body, context),
|
|
2328
2360
|
};
|
|
2329
2361
|
let response;
|
|
2330
|
-
|
|
2331
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2362
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2332
2363
|
switch (errorCode) {
|
|
2333
2364
|
case "DBInstanceNotFoundFault":
|
|
2334
2365
|
case "com.amazonaws.neptune#DBInstanceNotFoundFault":
|
|
2335
2366
|
throw await deserializeAws_queryDBInstanceNotFoundFaultResponse(parsedOutput, context);
|
|
2336
2367
|
default:
|
|
2337
2368
|
const parsedBody = parsedOutput.body;
|
|
2369
|
+
const $metadata = deserializeMetadata(output);
|
|
2370
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2338
2371
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2339
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2372
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2340
2373
|
$fault: "client",
|
|
2341
|
-
$metadata
|
|
2374
|
+
$metadata,
|
|
2342
2375
|
});
|
|
2343
2376
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2344
2377
|
}
|
|
@@ -2363,18 +2396,19 @@ const deserializeAws_queryDescribeDBParameterGroupsCommandError = async (output,
|
|
|
2363
2396
|
body: await parseBody(output.body, context),
|
|
2364
2397
|
};
|
|
2365
2398
|
let response;
|
|
2366
|
-
|
|
2367
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2399
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2368
2400
|
switch (errorCode) {
|
|
2369
2401
|
case "DBParameterGroupNotFoundFault":
|
|
2370
2402
|
case "com.amazonaws.neptune#DBParameterGroupNotFoundFault":
|
|
2371
2403
|
throw await deserializeAws_queryDBParameterGroupNotFoundFaultResponse(parsedOutput, context);
|
|
2372
2404
|
default:
|
|
2373
2405
|
const parsedBody = parsedOutput.body;
|
|
2406
|
+
const $metadata = deserializeMetadata(output);
|
|
2407
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2374
2408
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2375
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2409
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2376
2410
|
$fault: "client",
|
|
2377
|
-
$metadata
|
|
2411
|
+
$metadata,
|
|
2378
2412
|
});
|
|
2379
2413
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2380
2414
|
}
|
|
@@ -2399,18 +2433,19 @@ const deserializeAws_queryDescribeDBParametersCommandError = async (output, cont
|
|
|
2399
2433
|
body: await parseBody(output.body, context),
|
|
2400
2434
|
};
|
|
2401
2435
|
let response;
|
|
2402
|
-
|
|
2403
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2436
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2404
2437
|
switch (errorCode) {
|
|
2405
2438
|
case "DBParameterGroupNotFoundFault":
|
|
2406
2439
|
case "com.amazonaws.neptune#DBParameterGroupNotFoundFault":
|
|
2407
2440
|
throw await deserializeAws_queryDBParameterGroupNotFoundFaultResponse(parsedOutput, context);
|
|
2408
2441
|
default:
|
|
2409
2442
|
const parsedBody = parsedOutput.body;
|
|
2443
|
+
const $metadata = deserializeMetadata(output);
|
|
2444
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2410
2445
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2411
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2446
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2412
2447
|
$fault: "client",
|
|
2413
|
-
$metadata
|
|
2448
|
+
$metadata,
|
|
2414
2449
|
});
|
|
2415
2450
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2416
2451
|
}
|
|
@@ -2435,18 +2470,19 @@ const deserializeAws_queryDescribeDBSubnetGroupsCommandError = async (output, co
|
|
|
2435
2470
|
body: await parseBody(output.body, context),
|
|
2436
2471
|
};
|
|
2437
2472
|
let response;
|
|
2438
|
-
|
|
2439
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2473
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2440
2474
|
switch (errorCode) {
|
|
2441
2475
|
case "DBSubnetGroupNotFoundFault":
|
|
2442
2476
|
case "com.amazonaws.neptune#DBSubnetGroupNotFoundFault":
|
|
2443
2477
|
throw await deserializeAws_queryDBSubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
2444
2478
|
default:
|
|
2445
2479
|
const parsedBody = parsedOutput.body;
|
|
2480
|
+
const $metadata = deserializeMetadata(output);
|
|
2481
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2446
2482
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2447
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2483
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2448
2484
|
$fault: "client",
|
|
2449
|
-
$metadata
|
|
2485
|
+
$metadata,
|
|
2450
2486
|
});
|
|
2451
2487
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2452
2488
|
}
|
|
@@ -2471,15 +2507,16 @@ const deserializeAws_queryDescribeEngineDefaultClusterParametersCommandError = a
|
|
|
2471
2507
|
body: await parseBody(output.body, context),
|
|
2472
2508
|
};
|
|
2473
2509
|
let response;
|
|
2474
|
-
|
|
2475
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2510
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2476
2511
|
switch (errorCode) {
|
|
2477
2512
|
default:
|
|
2478
2513
|
const parsedBody = parsedOutput.body;
|
|
2514
|
+
const $metadata = deserializeMetadata(output);
|
|
2515
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2479
2516
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2480
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2517
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2481
2518
|
$fault: "client",
|
|
2482
|
-
$metadata
|
|
2519
|
+
$metadata,
|
|
2483
2520
|
});
|
|
2484
2521
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2485
2522
|
}
|
|
@@ -2504,15 +2541,16 @@ const deserializeAws_queryDescribeEngineDefaultParametersCommandError = async (o
|
|
|
2504
2541
|
body: await parseBody(output.body, context),
|
|
2505
2542
|
};
|
|
2506
2543
|
let response;
|
|
2507
|
-
|
|
2508
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2544
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2509
2545
|
switch (errorCode) {
|
|
2510
2546
|
default:
|
|
2511
2547
|
const parsedBody = parsedOutput.body;
|
|
2548
|
+
const $metadata = deserializeMetadata(output);
|
|
2549
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2512
2550
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2513
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2551
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2514
2552
|
$fault: "client",
|
|
2515
|
-
$metadata
|
|
2553
|
+
$metadata,
|
|
2516
2554
|
});
|
|
2517
2555
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2518
2556
|
}
|
|
@@ -2537,15 +2575,16 @@ const deserializeAws_queryDescribeEventCategoriesCommandError = async (output, c
|
|
|
2537
2575
|
body: await parseBody(output.body, context),
|
|
2538
2576
|
};
|
|
2539
2577
|
let response;
|
|
2540
|
-
|
|
2541
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2578
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2542
2579
|
switch (errorCode) {
|
|
2543
2580
|
default:
|
|
2544
2581
|
const parsedBody = parsedOutput.body;
|
|
2582
|
+
const $metadata = deserializeMetadata(output);
|
|
2583
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2545
2584
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2546
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2585
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2547
2586
|
$fault: "client",
|
|
2548
|
-
$metadata
|
|
2587
|
+
$metadata,
|
|
2549
2588
|
});
|
|
2550
2589
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2551
2590
|
}
|
|
@@ -2570,15 +2609,16 @@ const deserializeAws_queryDescribeEventsCommandError = async (output, context) =
|
|
|
2570
2609
|
body: await parseBody(output.body, context),
|
|
2571
2610
|
};
|
|
2572
2611
|
let response;
|
|
2573
|
-
|
|
2574
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2612
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2575
2613
|
switch (errorCode) {
|
|
2576
2614
|
default:
|
|
2577
2615
|
const parsedBody = parsedOutput.body;
|
|
2616
|
+
const $metadata = deserializeMetadata(output);
|
|
2617
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2578
2618
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2579
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2619
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2580
2620
|
$fault: "client",
|
|
2581
|
-
$metadata
|
|
2621
|
+
$metadata,
|
|
2582
2622
|
});
|
|
2583
2623
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2584
2624
|
}
|
|
@@ -2603,18 +2643,19 @@ const deserializeAws_queryDescribeEventSubscriptionsCommandError = async (output
|
|
|
2603
2643
|
body: await parseBody(output.body, context),
|
|
2604
2644
|
};
|
|
2605
2645
|
let response;
|
|
2606
|
-
|
|
2607
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2646
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2608
2647
|
switch (errorCode) {
|
|
2609
2648
|
case "SubscriptionNotFoundFault":
|
|
2610
2649
|
case "com.amazonaws.neptune#SubscriptionNotFoundFault":
|
|
2611
2650
|
throw await deserializeAws_querySubscriptionNotFoundFaultResponse(parsedOutput, context);
|
|
2612
2651
|
default:
|
|
2613
2652
|
const parsedBody = parsedOutput.body;
|
|
2653
|
+
const $metadata = deserializeMetadata(output);
|
|
2654
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2614
2655
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2615
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2656
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2616
2657
|
$fault: "client",
|
|
2617
|
-
$metadata
|
|
2658
|
+
$metadata,
|
|
2618
2659
|
});
|
|
2619
2660
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2620
2661
|
}
|
|
@@ -2639,18 +2680,19 @@ const deserializeAws_queryDescribeGlobalClustersCommandError = async (output, co
|
|
|
2639
2680
|
body: await parseBody(output.body, context),
|
|
2640
2681
|
};
|
|
2641
2682
|
let response;
|
|
2642
|
-
|
|
2643
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2683
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2644
2684
|
switch (errorCode) {
|
|
2645
2685
|
case "GlobalClusterNotFoundFault":
|
|
2646
2686
|
case "com.amazonaws.neptune#GlobalClusterNotFoundFault":
|
|
2647
2687
|
throw await deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context);
|
|
2648
2688
|
default:
|
|
2649
2689
|
const parsedBody = parsedOutput.body;
|
|
2690
|
+
const $metadata = deserializeMetadata(output);
|
|
2691
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2650
2692
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2651
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2693
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2652
2694
|
$fault: "client",
|
|
2653
|
-
$metadata
|
|
2695
|
+
$metadata,
|
|
2654
2696
|
});
|
|
2655
2697
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2656
2698
|
}
|
|
@@ -2675,15 +2717,16 @@ const deserializeAws_queryDescribeOrderableDBInstanceOptionsCommandError = async
|
|
|
2675
2717
|
body: await parseBody(output.body, context),
|
|
2676
2718
|
};
|
|
2677
2719
|
let response;
|
|
2678
|
-
|
|
2679
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2720
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2680
2721
|
switch (errorCode) {
|
|
2681
2722
|
default:
|
|
2682
2723
|
const parsedBody = parsedOutput.body;
|
|
2724
|
+
const $metadata = deserializeMetadata(output);
|
|
2725
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2683
2726
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2684
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2727
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2685
2728
|
$fault: "client",
|
|
2686
|
-
$metadata
|
|
2729
|
+
$metadata,
|
|
2687
2730
|
});
|
|
2688
2731
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2689
2732
|
}
|
|
@@ -2708,18 +2751,19 @@ const deserializeAws_queryDescribePendingMaintenanceActionsCommandError = async
|
|
|
2708
2751
|
body: await parseBody(output.body, context),
|
|
2709
2752
|
};
|
|
2710
2753
|
let response;
|
|
2711
|
-
|
|
2712
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2754
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2713
2755
|
switch (errorCode) {
|
|
2714
2756
|
case "ResourceNotFoundFault":
|
|
2715
2757
|
case "com.amazonaws.neptune#ResourceNotFoundFault":
|
|
2716
2758
|
throw await deserializeAws_queryResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2717
2759
|
default:
|
|
2718
2760
|
const parsedBody = parsedOutput.body;
|
|
2761
|
+
const $metadata = deserializeMetadata(output);
|
|
2762
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2719
2763
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2720
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2764
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2721
2765
|
$fault: "client",
|
|
2722
|
-
$metadata
|
|
2766
|
+
$metadata,
|
|
2723
2767
|
});
|
|
2724
2768
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2725
2769
|
}
|
|
@@ -2744,8 +2788,7 @@ const deserializeAws_queryDescribeValidDBInstanceModificationsCommandError = asy
|
|
|
2744
2788
|
body: await parseBody(output.body, context),
|
|
2745
2789
|
};
|
|
2746
2790
|
let response;
|
|
2747
|
-
|
|
2748
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2791
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2749
2792
|
switch (errorCode) {
|
|
2750
2793
|
case "DBInstanceNotFoundFault":
|
|
2751
2794
|
case "com.amazonaws.neptune#DBInstanceNotFoundFault":
|
|
@@ -2755,10 +2798,12 @@ const deserializeAws_queryDescribeValidDBInstanceModificationsCommandError = asy
|
|
|
2755
2798
|
throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
|
|
2756
2799
|
default:
|
|
2757
2800
|
const parsedBody = parsedOutput.body;
|
|
2801
|
+
const $metadata = deserializeMetadata(output);
|
|
2802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2758
2803
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2759
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2804
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2760
2805
|
$fault: "client",
|
|
2761
|
-
$metadata
|
|
2806
|
+
$metadata,
|
|
2762
2807
|
});
|
|
2763
2808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2764
2809
|
}
|
|
@@ -2783,8 +2828,7 @@ const deserializeAws_queryFailoverDBClusterCommandError = async (output, context
|
|
|
2783
2828
|
body: await parseBody(output.body, context),
|
|
2784
2829
|
};
|
|
2785
2830
|
let response;
|
|
2786
|
-
|
|
2787
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2831
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2788
2832
|
switch (errorCode) {
|
|
2789
2833
|
case "DBClusterNotFoundFault":
|
|
2790
2834
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -2797,10 +2841,12 @@ const deserializeAws_queryFailoverDBClusterCommandError = async (output, context
|
|
|
2797
2841
|
throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
|
|
2798
2842
|
default:
|
|
2799
2843
|
const parsedBody = parsedOutput.body;
|
|
2844
|
+
const $metadata = deserializeMetadata(output);
|
|
2845
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2800
2846
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2801
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2847
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2802
2848
|
$fault: "client",
|
|
2803
|
-
$metadata
|
|
2849
|
+
$metadata,
|
|
2804
2850
|
});
|
|
2805
2851
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2806
2852
|
}
|
|
@@ -2825,8 +2871,7 @@ const deserializeAws_queryFailoverGlobalClusterCommandError = async (output, con
|
|
|
2825
2871
|
body: await parseBody(output.body, context),
|
|
2826
2872
|
};
|
|
2827
2873
|
let response;
|
|
2828
|
-
|
|
2829
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2874
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2830
2875
|
switch (errorCode) {
|
|
2831
2876
|
case "DBClusterNotFoundFault":
|
|
2832
2877
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -2842,10 +2887,12 @@ const deserializeAws_queryFailoverGlobalClusterCommandError = async (output, con
|
|
|
2842
2887
|
throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
|
|
2843
2888
|
default:
|
|
2844
2889
|
const parsedBody = parsedOutput.body;
|
|
2890
|
+
const $metadata = deserializeMetadata(output);
|
|
2891
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2845
2892
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2846
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2893
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2847
2894
|
$fault: "client",
|
|
2848
|
-
$metadata
|
|
2895
|
+
$metadata,
|
|
2849
2896
|
});
|
|
2850
2897
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2851
2898
|
}
|
|
@@ -2870,8 +2917,7 @@ const deserializeAws_queryListTagsForResourceCommandError = async (output, conte
|
|
|
2870
2917
|
body: await parseBody(output.body, context),
|
|
2871
2918
|
};
|
|
2872
2919
|
let response;
|
|
2873
|
-
|
|
2874
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2920
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2875
2921
|
switch (errorCode) {
|
|
2876
2922
|
case "DBClusterNotFoundFault":
|
|
2877
2923
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -2884,10 +2930,12 @@ const deserializeAws_queryListTagsForResourceCommandError = async (output, conte
|
|
|
2884
2930
|
throw await deserializeAws_queryDBSnapshotNotFoundFaultResponse(parsedOutput, context);
|
|
2885
2931
|
default:
|
|
2886
2932
|
const parsedBody = parsedOutput.body;
|
|
2933
|
+
const $metadata = deserializeMetadata(output);
|
|
2934
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2887
2935
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2888
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2936
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2889
2937
|
$fault: "client",
|
|
2890
|
-
$metadata
|
|
2938
|
+
$metadata,
|
|
2891
2939
|
});
|
|
2892
2940
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2893
2941
|
}
|
|
@@ -2912,8 +2960,7 @@ const deserializeAws_queryModifyDBClusterCommandError = async (output, context)
|
|
|
2912
2960
|
body: await parseBody(output.body, context),
|
|
2913
2961
|
};
|
|
2914
2962
|
let response;
|
|
2915
|
-
|
|
2916
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2963
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2917
2964
|
switch (errorCode) {
|
|
2918
2965
|
case "DBClusterAlreadyExistsFault":
|
|
2919
2966
|
case "com.amazonaws.neptune#DBClusterAlreadyExistsFault":
|
|
@@ -2950,10 +2997,12 @@ const deserializeAws_queryModifyDBClusterCommandError = async (output, context)
|
|
|
2950
2997
|
throw await deserializeAws_queryStorageQuotaExceededFaultResponse(parsedOutput, context);
|
|
2951
2998
|
default:
|
|
2952
2999
|
const parsedBody = parsedOutput.body;
|
|
3000
|
+
const $metadata = deserializeMetadata(output);
|
|
3001
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2953
3002
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2954
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3003
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2955
3004
|
$fault: "client",
|
|
2956
|
-
$metadata
|
|
3005
|
+
$metadata,
|
|
2957
3006
|
});
|
|
2958
3007
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2959
3008
|
}
|
|
@@ -2978,8 +3027,7 @@ const deserializeAws_queryModifyDBClusterEndpointCommandError = async (output, c
|
|
|
2978
3027
|
body: await parseBody(output.body, context),
|
|
2979
3028
|
};
|
|
2980
3029
|
let response;
|
|
2981
|
-
|
|
2982
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3030
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2983
3031
|
switch (errorCode) {
|
|
2984
3032
|
case "DBClusterEndpointNotFoundFault":
|
|
2985
3033
|
case "com.amazonaws.neptune#DBClusterEndpointNotFoundFault":
|
|
@@ -2998,10 +3046,12 @@ const deserializeAws_queryModifyDBClusterEndpointCommandError = async (output, c
|
|
|
2998
3046
|
throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
|
|
2999
3047
|
default:
|
|
3000
3048
|
const parsedBody = parsedOutput.body;
|
|
3049
|
+
const $metadata = deserializeMetadata(output);
|
|
3050
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3001
3051
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3002
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3052
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3003
3053
|
$fault: "client",
|
|
3004
|
-
$metadata
|
|
3054
|
+
$metadata,
|
|
3005
3055
|
});
|
|
3006
3056
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3007
3057
|
}
|
|
@@ -3026,8 +3076,7 @@ const deserializeAws_queryModifyDBClusterParameterGroupCommandError = async (out
|
|
|
3026
3076
|
body: await parseBody(output.body, context),
|
|
3027
3077
|
};
|
|
3028
3078
|
let response;
|
|
3029
|
-
|
|
3030
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3079
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3031
3080
|
switch (errorCode) {
|
|
3032
3081
|
case "DBParameterGroupNotFoundFault":
|
|
3033
3082
|
case "com.amazonaws.neptune#DBParameterGroupNotFoundFault":
|
|
@@ -3037,10 +3086,12 @@ const deserializeAws_queryModifyDBClusterParameterGroupCommandError = async (out
|
|
|
3037
3086
|
throw await deserializeAws_queryInvalidDBParameterGroupStateFaultResponse(parsedOutput, context);
|
|
3038
3087
|
default:
|
|
3039
3088
|
const parsedBody = parsedOutput.body;
|
|
3089
|
+
const $metadata = deserializeMetadata(output);
|
|
3090
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3040
3091
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3041
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3092
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3042
3093
|
$fault: "client",
|
|
3043
|
-
$metadata
|
|
3094
|
+
$metadata,
|
|
3044
3095
|
});
|
|
3045
3096
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3046
3097
|
}
|
|
@@ -3065,8 +3116,7 @@ const deserializeAws_queryModifyDBClusterSnapshotAttributeCommandError = async (
|
|
|
3065
3116
|
body: await parseBody(output.body, context),
|
|
3066
3117
|
};
|
|
3067
3118
|
let response;
|
|
3068
|
-
|
|
3069
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3119
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3070
3120
|
switch (errorCode) {
|
|
3071
3121
|
case "DBClusterSnapshotNotFoundFault":
|
|
3072
3122
|
case "com.amazonaws.neptune#DBClusterSnapshotNotFoundFault":
|
|
@@ -3079,10 +3129,12 @@ const deserializeAws_queryModifyDBClusterSnapshotAttributeCommandError = async (
|
|
|
3079
3129
|
throw await deserializeAws_querySharedSnapshotQuotaExceededFaultResponse(parsedOutput, context);
|
|
3080
3130
|
default:
|
|
3081
3131
|
const parsedBody = parsedOutput.body;
|
|
3132
|
+
const $metadata = deserializeMetadata(output);
|
|
3133
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3082
3134
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3083
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3135
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3084
3136
|
$fault: "client",
|
|
3085
|
-
$metadata
|
|
3137
|
+
$metadata,
|
|
3086
3138
|
});
|
|
3087
3139
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3088
3140
|
}
|
|
@@ -3107,8 +3159,7 @@ const deserializeAws_queryModifyDBInstanceCommandError = async (output, context)
|
|
|
3107
3159
|
body: await parseBody(output.body, context),
|
|
3108
3160
|
};
|
|
3109
3161
|
let response;
|
|
3110
|
-
|
|
3111
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3162
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3112
3163
|
switch (errorCode) {
|
|
3113
3164
|
case "AuthorizationNotFoundFault":
|
|
3114
3165
|
case "com.amazonaws.neptune#AuthorizationNotFoundFault":
|
|
@@ -3160,10 +3211,12 @@ const deserializeAws_queryModifyDBInstanceCommandError = async (output, context)
|
|
|
3160
3211
|
throw await deserializeAws_queryStorageTypeNotSupportedFaultResponse(parsedOutput, context);
|
|
3161
3212
|
default:
|
|
3162
3213
|
const parsedBody = parsedOutput.body;
|
|
3214
|
+
const $metadata = deserializeMetadata(output);
|
|
3215
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3163
3216
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3164
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3217
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3165
3218
|
$fault: "client",
|
|
3166
|
-
$metadata
|
|
3219
|
+
$metadata,
|
|
3167
3220
|
});
|
|
3168
3221
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3169
3222
|
}
|
|
@@ -3188,8 +3241,7 @@ const deserializeAws_queryModifyDBParameterGroupCommandError = async (output, co
|
|
|
3188
3241
|
body: await parseBody(output.body, context),
|
|
3189
3242
|
};
|
|
3190
3243
|
let response;
|
|
3191
|
-
|
|
3192
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3244
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3193
3245
|
switch (errorCode) {
|
|
3194
3246
|
case "DBParameterGroupNotFoundFault":
|
|
3195
3247
|
case "com.amazonaws.neptune#DBParameterGroupNotFoundFault":
|
|
@@ -3199,10 +3251,12 @@ const deserializeAws_queryModifyDBParameterGroupCommandError = async (output, co
|
|
|
3199
3251
|
throw await deserializeAws_queryInvalidDBParameterGroupStateFaultResponse(parsedOutput, context);
|
|
3200
3252
|
default:
|
|
3201
3253
|
const parsedBody = parsedOutput.body;
|
|
3254
|
+
const $metadata = deserializeMetadata(output);
|
|
3255
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3202
3256
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3203
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3257
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3204
3258
|
$fault: "client",
|
|
3205
|
-
$metadata
|
|
3259
|
+
$metadata,
|
|
3206
3260
|
});
|
|
3207
3261
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3208
3262
|
}
|
|
@@ -3227,8 +3281,7 @@ const deserializeAws_queryModifyDBSubnetGroupCommandError = async (output, conte
|
|
|
3227
3281
|
body: await parseBody(output.body, context),
|
|
3228
3282
|
};
|
|
3229
3283
|
let response;
|
|
3230
|
-
|
|
3231
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3284
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3232
3285
|
switch (errorCode) {
|
|
3233
3286
|
case "DBSubnetGroupDoesNotCoverEnoughAZs":
|
|
3234
3287
|
case "com.amazonaws.neptune#DBSubnetGroupDoesNotCoverEnoughAZs":
|
|
@@ -3247,10 +3300,12 @@ const deserializeAws_queryModifyDBSubnetGroupCommandError = async (output, conte
|
|
|
3247
3300
|
throw await deserializeAws_querySubnetAlreadyInUseResponse(parsedOutput, context);
|
|
3248
3301
|
default:
|
|
3249
3302
|
const parsedBody = parsedOutput.body;
|
|
3303
|
+
const $metadata = deserializeMetadata(output);
|
|
3304
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3250
3305
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3251
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3306
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3252
3307
|
$fault: "client",
|
|
3253
|
-
$metadata
|
|
3308
|
+
$metadata,
|
|
3254
3309
|
});
|
|
3255
3310
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3256
3311
|
}
|
|
@@ -3275,8 +3330,7 @@ const deserializeAws_queryModifyEventSubscriptionCommandError = async (output, c
|
|
|
3275
3330
|
body: await parseBody(output.body, context),
|
|
3276
3331
|
};
|
|
3277
3332
|
let response;
|
|
3278
|
-
|
|
3279
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3333
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3280
3334
|
switch (errorCode) {
|
|
3281
3335
|
case "EventSubscriptionQuotaExceededFault":
|
|
3282
3336
|
case "com.amazonaws.neptune#EventSubscriptionQuotaExceededFault":
|
|
@@ -3298,10 +3352,12 @@ const deserializeAws_queryModifyEventSubscriptionCommandError = async (output, c
|
|
|
3298
3352
|
throw await deserializeAws_querySubscriptionNotFoundFaultResponse(parsedOutput, context);
|
|
3299
3353
|
default:
|
|
3300
3354
|
const parsedBody = parsedOutput.body;
|
|
3355
|
+
const $metadata = deserializeMetadata(output);
|
|
3356
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3301
3357
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3302
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3358
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3303
3359
|
$fault: "client",
|
|
3304
|
-
$metadata
|
|
3360
|
+
$metadata,
|
|
3305
3361
|
});
|
|
3306
3362
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3307
3363
|
}
|
|
@@ -3326,8 +3382,7 @@ const deserializeAws_queryModifyGlobalClusterCommandError = async (output, conte
|
|
|
3326
3382
|
body: await parseBody(output.body, context),
|
|
3327
3383
|
};
|
|
3328
3384
|
let response;
|
|
3329
|
-
|
|
3330
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3385
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3331
3386
|
switch (errorCode) {
|
|
3332
3387
|
case "GlobalClusterNotFoundFault":
|
|
3333
3388
|
case "com.amazonaws.neptune#GlobalClusterNotFoundFault":
|
|
@@ -3337,10 +3392,12 @@ const deserializeAws_queryModifyGlobalClusterCommandError = async (output, conte
|
|
|
3337
3392
|
throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
|
|
3338
3393
|
default:
|
|
3339
3394
|
const parsedBody = parsedOutput.body;
|
|
3395
|
+
const $metadata = deserializeMetadata(output);
|
|
3396
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3340
3397
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3341
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3398
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3342
3399
|
$fault: "client",
|
|
3343
|
-
$metadata
|
|
3400
|
+
$metadata,
|
|
3344
3401
|
});
|
|
3345
3402
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3346
3403
|
}
|
|
@@ -3365,8 +3422,7 @@ const deserializeAws_queryPromoteReadReplicaDBClusterCommandError = async (outpu
|
|
|
3365
3422
|
body: await parseBody(output.body, context),
|
|
3366
3423
|
};
|
|
3367
3424
|
let response;
|
|
3368
|
-
|
|
3369
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3425
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3370
3426
|
switch (errorCode) {
|
|
3371
3427
|
case "DBClusterNotFoundFault":
|
|
3372
3428
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -3376,10 +3432,12 @@ const deserializeAws_queryPromoteReadReplicaDBClusterCommandError = async (outpu
|
|
|
3376
3432
|
throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
|
|
3377
3433
|
default:
|
|
3378
3434
|
const parsedBody = parsedOutput.body;
|
|
3435
|
+
const $metadata = deserializeMetadata(output);
|
|
3436
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3379
3437
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3380
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3438
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3381
3439
|
$fault: "client",
|
|
3382
|
-
$metadata
|
|
3440
|
+
$metadata,
|
|
3383
3441
|
});
|
|
3384
3442
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3385
3443
|
}
|
|
@@ -3404,8 +3462,7 @@ const deserializeAws_queryRebootDBInstanceCommandError = async (output, context)
|
|
|
3404
3462
|
body: await parseBody(output.body, context),
|
|
3405
3463
|
};
|
|
3406
3464
|
let response;
|
|
3407
|
-
|
|
3408
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3465
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3409
3466
|
switch (errorCode) {
|
|
3410
3467
|
case "DBInstanceNotFoundFault":
|
|
3411
3468
|
case "com.amazonaws.neptune#DBInstanceNotFoundFault":
|
|
@@ -3415,10 +3472,12 @@ const deserializeAws_queryRebootDBInstanceCommandError = async (output, context)
|
|
|
3415
3472
|
throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
|
|
3416
3473
|
default:
|
|
3417
3474
|
const parsedBody = parsedOutput.body;
|
|
3475
|
+
const $metadata = deserializeMetadata(output);
|
|
3476
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3418
3477
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3419
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3478
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3420
3479
|
$fault: "client",
|
|
3421
|
-
$metadata
|
|
3480
|
+
$metadata,
|
|
3422
3481
|
});
|
|
3423
3482
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3424
3483
|
}
|
|
@@ -3443,8 +3502,7 @@ const deserializeAws_queryRemoveFromGlobalClusterCommandError = async (output, c
|
|
|
3443
3502
|
body: await parseBody(output.body, context),
|
|
3444
3503
|
};
|
|
3445
3504
|
let response;
|
|
3446
|
-
|
|
3447
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3505
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3448
3506
|
switch (errorCode) {
|
|
3449
3507
|
case "DBClusterNotFoundFault":
|
|
3450
3508
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -3457,10 +3515,12 @@ const deserializeAws_queryRemoveFromGlobalClusterCommandError = async (output, c
|
|
|
3457
3515
|
throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
|
|
3458
3516
|
default:
|
|
3459
3517
|
const parsedBody = parsedOutput.body;
|
|
3518
|
+
const $metadata = deserializeMetadata(output);
|
|
3519
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3460
3520
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3461
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3521
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3462
3522
|
$fault: "client",
|
|
3463
|
-
$metadata
|
|
3523
|
+
$metadata,
|
|
3464
3524
|
});
|
|
3465
3525
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3466
3526
|
}
|
|
@@ -3482,8 +3542,7 @@ const deserializeAws_queryRemoveRoleFromDBClusterCommandError = async (output, c
|
|
|
3482
3542
|
body: await parseBody(output.body, context),
|
|
3483
3543
|
};
|
|
3484
3544
|
let response;
|
|
3485
|
-
|
|
3486
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3545
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3487
3546
|
switch (errorCode) {
|
|
3488
3547
|
case "DBClusterNotFoundFault":
|
|
3489
3548
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -3496,10 +3555,12 @@ const deserializeAws_queryRemoveRoleFromDBClusterCommandError = async (output, c
|
|
|
3496
3555
|
throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
|
|
3497
3556
|
default:
|
|
3498
3557
|
const parsedBody = parsedOutput.body;
|
|
3558
|
+
const $metadata = deserializeMetadata(output);
|
|
3559
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3499
3560
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3500
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3561
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3501
3562
|
$fault: "client",
|
|
3502
|
-
$metadata
|
|
3563
|
+
$metadata,
|
|
3503
3564
|
});
|
|
3504
3565
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3505
3566
|
}
|
|
@@ -3524,8 +3585,7 @@ const deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommandError = a
|
|
|
3524
3585
|
body: await parseBody(output.body, context),
|
|
3525
3586
|
};
|
|
3526
3587
|
let response;
|
|
3527
|
-
|
|
3528
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3588
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3529
3589
|
switch (errorCode) {
|
|
3530
3590
|
case "SourceNotFoundFault":
|
|
3531
3591
|
case "com.amazonaws.neptune#SourceNotFoundFault":
|
|
@@ -3535,10 +3595,12 @@ const deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommandError = a
|
|
|
3535
3595
|
throw await deserializeAws_querySubscriptionNotFoundFaultResponse(parsedOutput, context);
|
|
3536
3596
|
default:
|
|
3537
3597
|
const parsedBody = parsedOutput.body;
|
|
3598
|
+
const $metadata = deserializeMetadata(output);
|
|
3599
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3538
3600
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3539
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3601
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3540
3602
|
$fault: "client",
|
|
3541
|
-
$metadata
|
|
3603
|
+
$metadata,
|
|
3542
3604
|
});
|
|
3543
3605
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3544
3606
|
}
|
|
@@ -3560,8 +3622,7 @@ const deserializeAws_queryRemoveTagsFromResourceCommandError = async (output, co
|
|
|
3560
3622
|
body: await parseBody(output.body, context),
|
|
3561
3623
|
};
|
|
3562
3624
|
let response;
|
|
3563
|
-
|
|
3564
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3625
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3565
3626
|
switch (errorCode) {
|
|
3566
3627
|
case "DBClusterNotFoundFault":
|
|
3567
3628
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -3574,10 +3635,12 @@ const deserializeAws_queryRemoveTagsFromResourceCommandError = async (output, co
|
|
|
3574
3635
|
throw await deserializeAws_queryDBSnapshotNotFoundFaultResponse(parsedOutput, context);
|
|
3575
3636
|
default:
|
|
3576
3637
|
const parsedBody = parsedOutput.body;
|
|
3638
|
+
const $metadata = deserializeMetadata(output);
|
|
3639
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3577
3640
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3578
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3641
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3579
3642
|
$fault: "client",
|
|
3580
|
-
$metadata
|
|
3643
|
+
$metadata,
|
|
3581
3644
|
});
|
|
3582
3645
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3583
3646
|
}
|
|
@@ -3602,8 +3665,7 @@ const deserializeAws_queryResetDBClusterParameterGroupCommandError = async (outp
|
|
|
3602
3665
|
body: await parseBody(output.body, context),
|
|
3603
3666
|
};
|
|
3604
3667
|
let response;
|
|
3605
|
-
|
|
3606
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3668
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3607
3669
|
switch (errorCode) {
|
|
3608
3670
|
case "DBParameterGroupNotFoundFault":
|
|
3609
3671
|
case "com.amazonaws.neptune#DBParameterGroupNotFoundFault":
|
|
@@ -3613,10 +3675,12 @@ const deserializeAws_queryResetDBClusterParameterGroupCommandError = async (outp
|
|
|
3613
3675
|
throw await deserializeAws_queryInvalidDBParameterGroupStateFaultResponse(parsedOutput, context);
|
|
3614
3676
|
default:
|
|
3615
3677
|
const parsedBody = parsedOutput.body;
|
|
3678
|
+
const $metadata = deserializeMetadata(output);
|
|
3679
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3616
3680
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3617
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3681
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3618
3682
|
$fault: "client",
|
|
3619
|
-
$metadata
|
|
3683
|
+
$metadata,
|
|
3620
3684
|
});
|
|
3621
3685
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3622
3686
|
}
|
|
@@ -3641,8 +3705,7 @@ const deserializeAws_queryResetDBParameterGroupCommandError = async (output, con
|
|
|
3641
3705
|
body: await parseBody(output.body, context),
|
|
3642
3706
|
};
|
|
3643
3707
|
let response;
|
|
3644
|
-
|
|
3645
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3708
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3646
3709
|
switch (errorCode) {
|
|
3647
3710
|
case "DBParameterGroupNotFoundFault":
|
|
3648
3711
|
case "com.amazonaws.neptune#DBParameterGroupNotFoundFault":
|
|
@@ -3652,10 +3715,12 @@ const deserializeAws_queryResetDBParameterGroupCommandError = async (output, con
|
|
|
3652
3715
|
throw await deserializeAws_queryInvalidDBParameterGroupStateFaultResponse(parsedOutput, context);
|
|
3653
3716
|
default:
|
|
3654
3717
|
const parsedBody = parsedOutput.body;
|
|
3718
|
+
const $metadata = deserializeMetadata(output);
|
|
3719
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3655
3720
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3656
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3721
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3657
3722
|
$fault: "client",
|
|
3658
|
-
$metadata
|
|
3723
|
+
$metadata,
|
|
3659
3724
|
});
|
|
3660
3725
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3661
3726
|
}
|
|
@@ -3680,8 +3745,7 @@ const deserializeAws_queryRestoreDBClusterFromSnapshotCommandError = async (outp
|
|
|
3680
3745
|
body: await parseBody(output.body, context),
|
|
3681
3746
|
};
|
|
3682
3747
|
let response;
|
|
3683
|
-
|
|
3684
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3748
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3685
3749
|
switch (errorCode) {
|
|
3686
3750
|
case "DBClusterAlreadyExistsFault":
|
|
3687
3751
|
case "com.amazonaws.neptune#DBClusterAlreadyExistsFault":
|
|
@@ -3733,10 +3797,12 @@ const deserializeAws_queryRestoreDBClusterFromSnapshotCommandError = async (outp
|
|
|
3733
3797
|
throw await deserializeAws_queryStorageQuotaExceededFaultResponse(parsedOutput, context);
|
|
3734
3798
|
default:
|
|
3735
3799
|
const parsedBody = parsedOutput.body;
|
|
3800
|
+
const $metadata = deserializeMetadata(output);
|
|
3801
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3736
3802
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3737
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3803
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3738
3804
|
$fault: "client",
|
|
3739
|
-
$metadata
|
|
3805
|
+
$metadata,
|
|
3740
3806
|
});
|
|
3741
3807
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3742
3808
|
}
|
|
@@ -3761,8 +3827,7 @@ const deserializeAws_queryRestoreDBClusterToPointInTimeCommandError = async (out
|
|
|
3761
3827
|
body: await parseBody(output.body, context),
|
|
3762
3828
|
};
|
|
3763
3829
|
let response;
|
|
3764
|
-
|
|
3765
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3830
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3766
3831
|
switch (errorCode) {
|
|
3767
3832
|
case "DBClusterAlreadyExistsFault":
|
|
3768
3833
|
case "com.amazonaws.neptune#DBClusterAlreadyExistsFault":
|
|
@@ -3817,10 +3882,12 @@ const deserializeAws_queryRestoreDBClusterToPointInTimeCommandError = async (out
|
|
|
3817
3882
|
throw await deserializeAws_queryStorageQuotaExceededFaultResponse(parsedOutput, context);
|
|
3818
3883
|
default:
|
|
3819
3884
|
const parsedBody = parsedOutput.body;
|
|
3885
|
+
const $metadata = deserializeMetadata(output);
|
|
3886
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3820
3887
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3821
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3888
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3822
3889
|
$fault: "client",
|
|
3823
|
-
$metadata
|
|
3890
|
+
$metadata,
|
|
3824
3891
|
});
|
|
3825
3892
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3826
3893
|
}
|
|
@@ -3845,8 +3912,7 @@ const deserializeAws_queryStartDBClusterCommandError = async (output, context) =
|
|
|
3845
3912
|
body: await parseBody(output.body, context),
|
|
3846
3913
|
};
|
|
3847
3914
|
let response;
|
|
3848
|
-
|
|
3849
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3915
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3850
3916
|
switch (errorCode) {
|
|
3851
3917
|
case "DBClusterNotFoundFault":
|
|
3852
3918
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -3859,10 +3925,12 @@ const deserializeAws_queryStartDBClusterCommandError = async (output, context) =
|
|
|
3859
3925
|
throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
|
|
3860
3926
|
default:
|
|
3861
3927
|
const parsedBody = parsedOutput.body;
|
|
3928
|
+
const $metadata = deserializeMetadata(output);
|
|
3929
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3862
3930
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3863
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3931
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3864
3932
|
$fault: "client",
|
|
3865
|
-
$metadata
|
|
3933
|
+
$metadata,
|
|
3866
3934
|
});
|
|
3867
3935
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3868
3936
|
}
|
|
@@ -3887,8 +3955,7 @@ const deserializeAws_queryStopDBClusterCommandError = async (output, context) =>
|
|
|
3887
3955
|
body: await parseBody(output.body, context),
|
|
3888
3956
|
};
|
|
3889
3957
|
let response;
|
|
3890
|
-
|
|
3891
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3958
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3892
3959
|
switch (errorCode) {
|
|
3893
3960
|
case "DBClusterNotFoundFault":
|
|
3894
3961
|
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
@@ -3901,10 +3968,12 @@ const deserializeAws_queryStopDBClusterCommandError = async (output, context) =>
|
|
|
3901
3968
|
throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
|
|
3902
3969
|
default:
|
|
3903
3970
|
const parsedBody = parsedOutput.body;
|
|
3971
|
+
const $metadata = deserializeMetadata(output);
|
|
3972
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3904
3973
|
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3905
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3974
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3906
3975
|
$fault: "client",
|
|
3907
|
-
$metadata
|
|
3976
|
+
$metadata,
|
|
3908
3977
|
});
|
|
3909
3978
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3910
3979
|
}
|
|
@@ -9859,5 +9928,4 @@ const loadQueryErrorCode = (output, data) => {
|
|
|
9859
9928
|
if (output.statusCode == 404) {
|
|
9860
9929
|
return "NotFound";
|
|
9861
9930
|
}
|
|
9862
|
-
return "";
|
|
9863
9931
|
};
|