@aws-sdk/client-neptune 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Neptune.js +73 -966
- package/dist-cjs/protocols/Aws_query.js +139 -207
- package/dist-es/Neptune.js +73 -966
- package/dist-es/protocols/Aws_query.js +140 -208
- package/dist-types/Neptune.d.ts +92 -431
- package/dist-types/ts3.4/Neptune.d.ts +2 -1
- package/package.json +6 -6
|
@@ -775,7 +775,7 @@ const de_AddRoleToDBClusterCommand = async (output, context) => {
|
|
|
775
775
|
const response = {
|
|
776
776
|
$metadata: deserializeMetadata(output),
|
|
777
777
|
};
|
|
778
|
-
return
|
|
778
|
+
return response;
|
|
779
779
|
};
|
|
780
780
|
exports.de_AddRoleToDBClusterCommand = de_AddRoleToDBClusterCommand;
|
|
781
781
|
const de_AddRoleToDBClusterCommandError = async (output, context) => {
|
|
@@ -799,10 +799,9 @@ const de_AddRoleToDBClusterCommandError = async (output, context) => {
|
|
|
799
799
|
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
800
800
|
default:
|
|
801
801
|
const parsedBody = parsedOutput.body;
|
|
802
|
-
|
|
802
|
+
return throwDefaultError({
|
|
803
803
|
output,
|
|
804
804
|
parsedBody: parsedBody.Error,
|
|
805
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
806
805
|
errorCode,
|
|
807
806
|
});
|
|
808
807
|
}
|
|
@@ -818,7 +817,7 @@ const de_AddSourceIdentifierToSubscriptionCommand = async (output, context) => {
|
|
|
818
817
|
$metadata: deserializeMetadata(output),
|
|
819
818
|
...contents,
|
|
820
819
|
};
|
|
821
|
-
return
|
|
820
|
+
return response;
|
|
822
821
|
};
|
|
823
822
|
exports.de_AddSourceIdentifierToSubscriptionCommand = de_AddSourceIdentifierToSubscriptionCommand;
|
|
824
823
|
const de_AddSourceIdentifierToSubscriptionCommandError = async (output, context) => {
|
|
@@ -836,10 +835,9 @@ const de_AddSourceIdentifierToSubscriptionCommandError = async (output, context)
|
|
|
836
835
|
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
837
836
|
default:
|
|
838
837
|
const parsedBody = parsedOutput.body;
|
|
839
|
-
|
|
838
|
+
return throwDefaultError({
|
|
840
839
|
output,
|
|
841
840
|
parsedBody: parsedBody.Error,
|
|
842
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
843
841
|
errorCode,
|
|
844
842
|
});
|
|
845
843
|
}
|
|
@@ -852,7 +850,7 @@ const de_AddTagsToResourceCommand = async (output, context) => {
|
|
|
852
850
|
const response = {
|
|
853
851
|
$metadata: deserializeMetadata(output),
|
|
854
852
|
};
|
|
855
|
-
return
|
|
853
|
+
return response;
|
|
856
854
|
};
|
|
857
855
|
exports.de_AddTagsToResourceCommand = de_AddTagsToResourceCommand;
|
|
858
856
|
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
@@ -873,10 +871,9 @@ const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
|
873
871
|
throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
874
872
|
default:
|
|
875
873
|
const parsedBody = parsedOutput.body;
|
|
876
|
-
|
|
874
|
+
return throwDefaultError({
|
|
877
875
|
output,
|
|
878
876
|
parsedBody: parsedBody.Error,
|
|
879
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
880
877
|
errorCode,
|
|
881
878
|
});
|
|
882
879
|
}
|
|
@@ -892,7 +889,7 @@ const de_ApplyPendingMaintenanceActionCommand = async (output, context) => {
|
|
|
892
889
|
$metadata: deserializeMetadata(output),
|
|
893
890
|
...contents,
|
|
894
891
|
};
|
|
895
|
-
return
|
|
892
|
+
return response;
|
|
896
893
|
};
|
|
897
894
|
exports.de_ApplyPendingMaintenanceActionCommand = de_ApplyPendingMaintenanceActionCommand;
|
|
898
895
|
const de_ApplyPendingMaintenanceActionCommandError = async (output, context) => {
|
|
@@ -907,10 +904,9 @@ const de_ApplyPendingMaintenanceActionCommandError = async (output, context) =>
|
|
|
907
904
|
throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
|
|
908
905
|
default:
|
|
909
906
|
const parsedBody = parsedOutput.body;
|
|
910
|
-
|
|
907
|
+
return throwDefaultError({
|
|
911
908
|
output,
|
|
912
909
|
parsedBody: parsedBody.Error,
|
|
913
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
914
910
|
errorCode,
|
|
915
911
|
});
|
|
916
912
|
}
|
|
@@ -926,7 +922,7 @@ const de_CopyDBClusterParameterGroupCommand = async (output, context) => {
|
|
|
926
922
|
$metadata: deserializeMetadata(output),
|
|
927
923
|
...contents,
|
|
928
924
|
};
|
|
929
|
-
return
|
|
925
|
+
return response;
|
|
930
926
|
};
|
|
931
927
|
exports.de_CopyDBClusterParameterGroupCommand = de_CopyDBClusterParameterGroupCommand;
|
|
932
928
|
const de_CopyDBClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -947,10 +943,9 @@ const de_CopyDBClusterParameterGroupCommandError = async (output, context) => {
|
|
|
947
943
|
throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
948
944
|
default:
|
|
949
945
|
const parsedBody = parsedOutput.body;
|
|
950
|
-
|
|
946
|
+
return throwDefaultError({
|
|
951
947
|
output,
|
|
952
948
|
parsedBody: parsedBody.Error,
|
|
953
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
954
949
|
errorCode,
|
|
955
950
|
});
|
|
956
951
|
}
|
|
@@ -966,7 +961,7 @@ const de_CopyDBClusterSnapshotCommand = async (output, context) => {
|
|
|
966
961
|
$metadata: deserializeMetadata(output),
|
|
967
962
|
...contents,
|
|
968
963
|
};
|
|
969
|
-
return
|
|
964
|
+
return response;
|
|
970
965
|
};
|
|
971
966
|
exports.de_CopyDBClusterSnapshotCommand = de_CopyDBClusterSnapshotCommand;
|
|
972
967
|
const de_CopyDBClusterSnapshotCommandError = async (output, context) => {
|
|
@@ -996,10 +991,9 @@ const de_CopyDBClusterSnapshotCommandError = async (output, context) => {
|
|
|
996
991
|
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
997
992
|
default:
|
|
998
993
|
const parsedBody = parsedOutput.body;
|
|
999
|
-
|
|
994
|
+
return throwDefaultError({
|
|
1000
995
|
output,
|
|
1001
996
|
parsedBody: parsedBody.Error,
|
|
1002
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1003
997
|
errorCode,
|
|
1004
998
|
});
|
|
1005
999
|
}
|
|
@@ -1015,7 +1009,7 @@ const de_CopyDBParameterGroupCommand = async (output, context) => {
|
|
|
1015
1009
|
$metadata: deserializeMetadata(output),
|
|
1016
1010
|
...contents,
|
|
1017
1011
|
};
|
|
1018
|
-
return
|
|
1012
|
+
return response;
|
|
1019
1013
|
};
|
|
1020
1014
|
exports.de_CopyDBParameterGroupCommand = de_CopyDBParameterGroupCommand;
|
|
1021
1015
|
const de_CopyDBParameterGroupCommandError = async (output, context) => {
|
|
@@ -1036,10 +1030,9 @@ const de_CopyDBParameterGroupCommandError = async (output, context) => {
|
|
|
1036
1030
|
throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1037
1031
|
default:
|
|
1038
1032
|
const parsedBody = parsedOutput.body;
|
|
1039
|
-
|
|
1033
|
+
return throwDefaultError({
|
|
1040
1034
|
output,
|
|
1041
1035
|
parsedBody: parsedBody.Error,
|
|
1042
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1043
1036
|
errorCode,
|
|
1044
1037
|
});
|
|
1045
1038
|
}
|
|
@@ -1055,7 +1048,7 @@ const de_CreateDBClusterCommand = async (output, context) => {
|
|
|
1055
1048
|
$metadata: deserializeMetadata(output),
|
|
1056
1049
|
...contents,
|
|
1057
1050
|
};
|
|
1058
|
-
return
|
|
1051
|
+
return response;
|
|
1059
1052
|
};
|
|
1060
1053
|
exports.de_CreateDBClusterCommand = de_CreateDBClusterCommand;
|
|
1061
1054
|
const de_CreateDBClusterCommandError = async (output, context) => {
|
|
@@ -1118,10 +1111,9 @@ const de_CreateDBClusterCommandError = async (output, context) => {
|
|
|
1118
1111
|
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
1119
1112
|
default:
|
|
1120
1113
|
const parsedBody = parsedOutput.body;
|
|
1121
|
-
|
|
1114
|
+
return throwDefaultError({
|
|
1122
1115
|
output,
|
|
1123
1116
|
parsedBody: parsedBody.Error,
|
|
1124
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1125
1117
|
errorCode,
|
|
1126
1118
|
});
|
|
1127
1119
|
}
|
|
@@ -1137,7 +1129,7 @@ const de_CreateDBClusterEndpointCommand = async (output, context) => {
|
|
|
1137
1129
|
$metadata: deserializeMetadata(output),
|
|
1138
1130
|
...contents,
|
|
1139
1131
|
};
|
|
1140
|
-
return
|
|
1132
|
+
return response;
|
|
1141
1133
|
};
|
|
1142
1134
|
exports.de_CreateDBClusterEndpointCommand = de_CreateDBClusterEndpointCommand;
|
|
1143
1135
|
const de_CreateDBClusterEndpointCommandError = async (output, context) => {
|
|
@@ -1167,10 +1159,9 @@ const de_CreateDBClusterEndpointCommandError = async (output, context) => {
|
|
|
1167
1159
|
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
1168
1160
|
default:
|
|
1169
1161
|
const parsedBody = parsedOutput.body;
|
|
1170
|
-
|
|
1162
|
+
return throwDefaultError({
|
|
1171
1163
|
output,
|
|
1172
1164
|
parsedBody: parsedBody.Error,
|
|
1173
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1174
1165
|
errorCode,
|
|
1175
1166
|
});
|
|
1176
1167
|
}
|
|
@@ -1186,7 +1177,7 @@ const de_CreateDBClusterParameterGroupCommand = async (output, context) => {
|
|
|
1186
1177
|
$metadata: deserializeMetadata(output),
|
|
1187
1178
|
...contents,
|
|
1188
1179
|
};
|
|
1189
|
-
return
|
|
1180
|
+
return response;
|
|
1190
1181
|
};
|
|
1191
1182
|
exports.de_CreateDBClusterParameterGroupCommand = de_CreateDBClusterParameterGroupCommand;
|
|
1192
1183
|
const de_CreateDBClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -1204,10 +1195,9 @@ const de_CreateDBClusterParameterGroupCommandError = async (output, context) =>
|
|
|
1204
1195
|
throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1205
1196
|
default:
|
|
1206
1197
|
const parsedBody = parsedOutput.body;
|
|
1207
|
-
|
|
1198
|
+
return throwDefaultError({
|
|
1208
1199
|
output,
|
|
1209
1200
|
parsedBody: parsedBody.Error,
|
|
1210
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1211
1201
|
errorCode,
|
|
1212
1202
|
});
|
|
1213
1203
|
}
|
|
@@ -1223,7 +1213,7 @@ const de_CreateDBClusterSnapshotCommand = async (output, context) => {
|
|
|
1223
1213
|
$metadata: deserializeMetadata(output),
|
|
1224
1214
|
...contents,
|
|
1225
1215
|
};
|
|
1226
|
-
return
|
|
1216
|
+
return response;
|
|
1227
1217
|
};
|
|
1228
1218
|
exports.de_CreateDBClusterSnapshotCommand = de_CreateDBClusterSnapshotCommand;
|
|
1229
1219
|
const de_CreateDBClusterSnapshotCommandError = async (output, context) => {
|
|
@@ -1250,10 +1240,9 @@ const de_CreateDBClusterSnapshotCommandError = async (output, context) => {
|
|
|
1250
1240
|
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1251
1241
|
default:
|
|
1252
1242
|
const parsedBody = parsedOutput.body;
|
|
1253
|
-
|
|
1243
|
+
return throwDefaultError({
|
|
1254
1244
|
output,
|
|
1255
1245
|
parsedBody: parsedBody.Error,
|
|
1256
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1257
1246
|
errorCode,
|
|
1258
1247
|
});
|
|
1259
1248
|
}
|
|
@@ -1269,7 +1258,7 @@ const de_CreateDBInstanceCommand = async (output, context) => {
|
|
|
1269
1258
|
$metadata: deserializeMetadata(output),
|
|
1270
1259
|
...contents,
|
|
1271
1260
|
};
|
|
1272
|
-
return
|
|
1261
|
+
return response;
|
|
1273
1262
|
};
|
|
1274
1263
|
exports.de_CreateDBInstanceCommand = de_CreateDBInstanceCommand;
|
|
1275
1264
|
const de_CreateDBInstanceCommandError = async (output, context) => {
|
|
@@ -1335,10 +1324,9 @@ const de_CreateDBInstanceCommandError = async (output, context) => {
|
|
|
1335
1324
|
throw await de_StorageTypeNotSupportedFaultRes(parsedOutput, context);
|
|
1336
1325
|
default:
|
|
1337
1326
|
const parsedBody = parsedOutput.body;
|
|
1338
|
-
|
|
1327
|
+
return throwDefaultError({
|
|
1339
1328
|
output,
|
|
1340
1329
|
parsedBody: parsedBody.Error,
|
|
1341
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1342
1330
|
errorCode,
|
|
1343
1331
|
});
|
|
1344
1332
|
}
|
|
@@ -1354,7 +1342,7 @@ const de_CreateDBParameterGroupCommand = async (output, context) => {
|
|
|
1354
1342
|
$metadata: deserializeMetadata(output),
|
|
1355
1343
|
...contents,
|
|
1356
1344
|
};
|
|
1357
|
-
return
|
|
1345
|
+
return response;
|
|
1358
1346
|
};
|
|
1359
1347
|
exports.de_CreateDBParameterGroupCommand = de_CreateDBParameterGroupCommand;
|
|
1360
1348
|
const de_CreateDBParameterGroupCommandError = async (output, context) => {
|
|
@@ -1372,10 +1360,9 @@ const de_CreateDBParameterGroupCommandError = async (output, context) => {
|
|
|
1372
1360
|
throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1373
1361
|
default:
|
|
1374
1362
|
const parsedBody = parsedOutput.body;
|
|
1375
|
-
|
|
1363
|
+
return throwDefaultError({
|
|
1376
1364
|
output,
|
|
1377
1365
|
parsedBody: parsedBody.Error,
|
|
1378
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1379
1366
|
errorCode,
|
|
1380
1367
|
});
|
|
1381
1368
|
}
|
|
@@ -1391,7 +1378,7 @@ const de_CreateDBSubnetGroupCommand = async (output, context) => {
|
|
|
1391
1378
|
$metadata: deserializeMetadata(output),
|
|
1392
1379
|
...contents,
|
|
1393
1380
|
};
|
|
1394
|
-
return
|
|
1381
|
+
return response;
|
|
1395
1382
|
};
|
|
1396
1383
|
exports.de_CreateDBSubnetGroupCommand = de_CreateDBSubnetGroupCommand;
|
|
1397
1384
|
const de_CreateDBSubnetGroupCommandError = async (output, context) => {
|
|
@@ -1418,10 +1405,9 @@ const de_CreateDBSubnetGroupCommandError = async (output, context) => {
|
|
|
1418
1405
|
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
1419
1406
|
default:
|
|
1420
1407
|
const parsedBody = parsedOutput.body;
|
|
1421
|
-
|
|
1408
|
+
return throwDefaultError({
|
|
1422
1409
|
output,
|
|
1423
1410
|
parsedBody: parsedBody.Error,
|
|
1424
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1425
1411
|
errorCode,
|
|
1426
1412
|
});
|
|
1427
1413
|
}
|
|
@@ -1437,7 +1423,7 @@ const de_CreateEventSubscriptionCommand = async (output, context) => {
|
|
|
1437
1423
|
$metadata: deserializeMetadata(output),
|
|
1438
1424
|
...contents,
|
|
1439
1425
|
};
|
|
1440
|
-
return
|
|
1426
|
+
return response;
|
|
1441
1427
|
};
|
|
1442
1428
|
exports.de_CreateEventSubscriptionCommand = de_CreateEventSubscriptionCommand;
|
|
1443
1429
|
const de_CreateEventSubscriptionCommandError = async (output, context) => {
|
|
@@ -1470,10 +1456,9 @@ const de_CreateEventSubscriptionCommandError = async (output, context) => {
|
|
|
1470
1456
|
throw await de_SubscriptionCategoryNotFoundFaultRes(parsedOutput, context);
|
|
1471
1457
|
default:
|
|
1472
1458
|
const parsedBody = parsedOutput.body;
|
|
1473
|
-
|
|
1459
|
+
return throwDefaultError({
|
|
1474
1460
|
output,
|
|
1475
1461
|
parsedBody: parsedBody.Error,
|
|
1476
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1477
1462
|
errorCode,
|
|
1478
1463
|
});
|
|
1479
1464
|
}
|
|
@@ -1489,7 +1474,7 @@ const de_CreateGlobalClusterCommand = async (output, context) => {
|
|
|
1489
1474
|
$metadata: deserializeMetadata(output),
|
|
1490
1475
|
...contents,
|
|
1491
1476
|
};
|
|
1492
|
-
return
|
|
1477
|
+
return response;
|
|
1493
1478
|
};
|
|
1494
1479
|
exports.de_CreateGlobalClusterCommand = de_CreateGlobalClusterCommand;
|
|
1495
1480
|
const de_CreateGlobalClusterCommandError = async (output, context) => {
|
|
@@ -1513,10 +1498,9 @@ const de_CreateGlobalClusterCommandError = async (output, context) => {
|
|
|
1513
1498
|
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
1514
1499
|
default:
|
|
1515
1500
|
const parsedBody = parsedOutput.body;
|
|
1516
|
-
|
|
1501
|
+
return throwDefaultError({
|
|
1517
1502
|
output,
|
|
1518
1503
|
parsedBody: parsedBody.Error,
|
|
1519
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1520
1504
|
errorCode,
|
|
1521
1505
|
});
|
|
1522
1506
|
}
|
|
@@ -1532,7 +1516,7 @@ const de_DeleteDBClusterCommand = async (output, context) => {
|
|
|
1532
1516
|
$metadata: deserializeMetadata(output),
|
|
1533
1517
|
...contents,
|
|
1534
1518
|
};
|
|
1535
|
-
return
|
|
1519
|
+
return response;
|
|
1536
1520
|
};
|
|
1537
1521
|
exports.de_DeleteDBClusterCommand = de_DeleteDBClusterCommand;
|
|
1538
1522
|
const de_DeleteDBClusterCommandError = async (output, context) => {
|
|
@@ -1559,10 +1543,9 @@ const de_DeleteDBClusterCommandError = async (output, context) => {
|
|
|
1559
1543
|
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1560
1544
|
default:
|
|
1561
1545
|
const parsedBody = parsedOutput.body;
|
|
1562
|
-
|
|
1546
|
+
return throwDefaultError({
|
|
1563
1547
|
output,
|
|
1564
1548
|
parsedBody: parsedBody.Error,
|
|
1565
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1566
1549
|
errorCode,
|
|
1567
1550
|
});
|
|
1568
1551
|
}
|
|
@@ -1578,7 +1561,7 @@ const de_DeleteDBClusterEndpointCommand = async (output, context) => {
|
|
|
1578
1561
|
$metadata: deserializeMetadata(output),
|
|
1579
1562
|
...contents,
|
|
1580
1563
|
};
|
|
1581
|
-
return
|
|
1564
|
+
return response;
|
|
1582
1565
|
};
|
|
1583
1566
|
exports.de_DeleteDBClusterEndpointCommand = de_DeleteDBClusterEndpointCommand;
|
|
1584
1567
|
const de_DeleteDBClusterEndpointCommandError = async (output, context) => {
|
|
@@ -1599,10 +1582,9 @@ const de_DeleteDBClusterEndpointCommandError = async (output, context) => {
|
|
|
1599
1582
|
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
1600
1583
|
default:
|
|
1601
1584
|
const parsedBody = parsedOutput.body;
|
|
1602
|
-
|
|
1585
|
+
return throwDefaultError({
|
|
1603
1586
|
output,
|
|
1604
1587
|
parsedBody: parsedBody.Error,
|
|
1605
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1606
1588
|
errorCode,
|
|
1607
1589
|
});
|
|
1608
1590
|
}
|
|
@@ -1615,7 +1597,7 @@ const de_DeleteDBClusterParameterGroupCommand = async (output, context) => {
|
|
|
1615
1597
|
const response = {
|
|
1616
1598
|
$metadata: deserializeMetadata(output),
|
|
1617
1599
|
};
|
|
1618
|
-
return
|
|
1600
|
+
return response;
|
|
1619
1601
|
};
|
|
1620
1602
|
exports.de_DeleteDBClusterParameterGroupCommand = de_DeleteDBClusterParameterGroupCommand;
|
|
1621
1603
|
const de_DeleteDBClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -1633,10 +1615,9 @@ const de_DeleteDBClusterParameterGroupCommandError = async (output, context) =>
|
|
|
1633
1615
|
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
1634
1616
|
default:
|
|
1635
1617
|
const parsedBody = parsedOutput.body;
|
|
1636
|
-
|
|
1618
|
+
return throwDefaultError({
|
|
1637
1619
|
output,
|
|
1638
1620
|
parsedBody: parsedBody.Error,
|
|
1639
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1640
1621
|
errorCode,
|
|
1641
1622
|
});
|
|
1642
1623
|
}
|
|
@@ -1652,7 +1633,7 @@ const de_DeleteDBClusterSnapshotCommand = async (output, context) => {
|
|
|
1652
1633
|
$metadata: deserializeMetadata(output),
|
|
1653
1634
|
...contents,
|
|
1654
1635
|
};
|
|
1655
|
-
return
|
|
1636
|
+
return response;
|
|
1656
1637
|
};
|
|
1657
1638
|
exports.de_DeleteDBClusterSnapshotCommand = de_DeleteDBClusterSnapshotCommand;
|
|
1658
1639
|
const de_DeleteDBClusterSnapshotCommandError = async (output, context) => {
|
|
@@ -1670,10 +1651,9 @@ const de_DeleteDBClusterSnapshotCommandError = async (output, context) => {
|
|
|
1670
1651
|
throw await de_InvalidDBClusterSnapshotStateFaultRes(parsedOutput, context);
|
|
1671
1652
|
default:
|
|
1672
1653
|
const parsedBody = parsedOutput.body;
|
|
1673
|
-
|
|
1654
|
+
return throwDefaultError({
|
|
1674
1655
|
output,
|
|
1675
1656
|
parsedBody: parsedBody.Error,
|
|
1676
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1677
1657
|
errorCode,
|
|
1678
1658
|
});
|
|
1679
1659
|
}
|
|
@@ -1689,7 +1669,7 @@ const de_DeleteDBInstanceCommand = async (output, context) => {
|
|
|
1689
1669
|
$metadata: deserializeMetadata(output),
|
|
1690
1670
|
...contents,
|
|
1691
1671
|
};
|
|
1692
|
-
return
|
|
1672
|
+
return response;
|
|
1693
1673
|
};
|
|
1694
1674
|
exports.de_DeleteDBInstanceCommand = de_DeleteDBInstanceCommand;
|
|
1695
1675
|
const de_DeleteDBInstanceCommandError = async (output, context) => {
|
|
@@ -1716,10 +1696,9 @@ const de_DeleteDBInstanceCommandError = async (output, context) => {
|
|
|
1716
1696
|
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1717
1697
|
default:
|
|
1718
1698
|
const parsedBody = parsedOutput.body;
|
|
1719
|
-
|
|
1699
|
+
return throwDefaultError({
|
|
1720
1700
|
output,
|
|
1721
1701
|
parsedBody: parsedBody.Error,
|
|
1722
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1723
1702
|
errorCode,
|
|
1724
1703
|
});
|
|
1725
1704
|
}
|
|
@@ -1732,7 +1711,7 @@ const de_DeleteDBParameterGroupCommand = async (output, context) => {
|
|
|
1732
1711
|
const response = {
|
|
1733
1712
|
$metadata: deserializeMetadata(output),
|
|
1734
1713
|
};
|
|
1735
|
-
return
|
|
1714
|
+
return response;
|
|
1736
1715
|
};
|
|
1737
1716
|
exports.de_DeleteDBParameterGroupCommand = de_DeleteDBParameterGroupCommand;
|
|
1738
1717
|
const de_DeleteDBParameterGroupCommandError = async (output, context) => {
|
|
@@ -1750,10 +1729,9 @@ const de_DeleteDBParameterGroupCommandError = async (output, context) => {
|
|
|
1750
1729
|
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
1751
1730
|
default:
|
|
1752
1731
|
const parsedBody = parsedOutput.body;
|
|
1753
|
-
|
|
1732
|
+
return throwDefaultError({
|
|
1754
1733
|
output,
|
|
1755
1734
|
parsedBody: parsedBody.Error,
|
|
1756
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1757
1735
|
errorCode,
|
|
1758
1736
|
});
|
|
1759
1737
|
}
|
|
@@ -1766,7 +1744,7 @@ const de_DeleteDBSubnetGroupCommand = async (output, context) => {
|
|
|
1766
1744
|
const response = {
|
|
1767
1745
|
$metadata: deserializeMetadata(output),
|
|
1768
1746
|
};
|
|
1769
|
-
return
|
|
1747
|
+
return response;
|
|
1770
1748
|
};
|
|
1771
1749
|
exports.de_DeleteDBSubnetGroupCommand = de_DeleteDBSubnetGroupCommand;
|
|
1772
1750
|
const de_DeleteDBSubnetGroupCommandError = async (output, context) => {
|
|
@@ -1787,10 +1765,9 @@ const de_DeleteDBSubnetGroupCommandError = async (output, context) => {
|
|
|
1787
1765
|
throw await de_InvalidDBSubnetStateFaultRes(parsedOutput, context);
|
|
1788
1766
|
default:
|
|
1789
1767
|
const parsedBody = parsedOutput.body;
|
|
1790
|
-
|
|
1768
|
+
return throwDefaultError({
|
|
1791
1769
|
output,
|
|
1792
1770
|
parsedBody: parsedBody.Error,
|
|
1793
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1794
1771
|
errorCode,
|
|
1795
1772
|
});
|
|
1796
1773
|
}
|
|
@@ -1806,7 +1783,7 @@ const de_DeleteEventSubscriptionCommand = async (output, context) => {
|
|
|
1806
1783
|
$metadata: deserializeMetadata(output),
|
|
1807
1784
|
...contents,
|
|
1808
1785
|
};
|
|
1809
|
-
return
|
|
1786
|
+
return response;
|
|
1810
1787
|
};
|
|
1811
1788
|
exports.de_DeleteEventSubscriptionCommand = de_DeleteEventSubscriptionCommand;
|
|
1812
1789
|
const de_DeleteEventSubscriptionCommandError = async (output, context) => {
|
|
@@ -1824,10 +1801,9 @@ const de_DeleteEventSubscriptionCommandError = async (output, context) => {
|
|
|
1824
1801
|
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
1825
1802
|
default:
|
|
1826
1803
|
const parsedBody = parsedOutput.body;
|
|
1827
|
-
|
|
1804
|
+
return throwDefaultError({
|
|
1828
1805
|
output,
|
|
1829
1806
|
parsedBody: parsedBody.Error,
|
|
1830
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1831
1807
|
errorCode,
|
|
1832
1808
|
});
|
|
1833
1809
|
}
|
|
@@ -1843,7 +1819,7 @@ const de_DeleteGlobalClusterCommand = async (output, context) => {
|
|
|
1843
1819
|
$metadata: deserializeMetadata(output),
|
|
1844
1820
|
...contents,
|
|
1845
1821
|
};
|
|
1846
|
-
return
|
|
1822
|
+
return response;
|
|
1847
1823
|
};
|
|
1848
1824
|
exports.de_DeleteGlobalClusterCommand = de_DeleteGlobalClusterCommand;
|
|
1849
1825
|
const de_DeleteGlobalClusterCommandError = async (output, context) => {
|
|
@@ -1861,10 +1837,9 @@ const de_DeleteGlobalClusterCommandError = async (output, context) => {
|
|
|
1861
1837
|
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
1862
1838
|
default:
|
|
1863
1839
|
const parsedBody = parsedOutput.body;
|
|
1864
|
-
|
|
1840
|
+
return throwDefaultError({
|
|
1865
1841
|
output,
|
|
1866
1842
|
parsedBody: parsedBody.Error,
|
|
1867
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1868
1843
|
errorCode,
|
|
1869
1844
|
});
|
|
1870
1845
|
}
|
|
@@ -1880,7 +1855,7 @@ const de_DescribeDBClusterEndpointsCommand = async (output, context) => {
|
|
|
1880
1855
|
$metadata: deserializeMetadata(output),
|
|
1881
1856
|
...contents,
|
|
1882
1857
|
};
|
|
1883
|
-
return
|
|
1858
|
+
return response;
|
|
1884
1859
|
};
|
|
1885
1860
|
exports.de_DescribeDBClusterEndpointsCommand = de_DescribeDBClusterEndpointsCommand;
|
|
1886
1861
|
const de_DescribeDBClusterEndpointsCommandError = async (output, context) => {
|
|
@@ -1895,10 +1870,9 @@ const de_DescribeDBClusterEndpointsCommandError = async (output, context) => {
|
|
|
1895
1870
|
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
1896
1871
|
default:
|
|
1897
1872
|
const parsedBody = parsedOutput.body;
|
|
1898
|
-
|
|
1873
|
+
return throwDefaultError({
|
|
1899
1874
|
output,
|
|
1900
1875
|
parsedBody: parsedBody.Error,
|
|
1901
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1902
1876
|
errorCode,
|
|
1903
1877
|
});
|
|
1904
1878
|
}
|
|
@@ -1914,7 +1888,7 @@ const de_DescribeDBClusterParameterGroupsCommand = async (output, context) => {
|
|
|
1914
1888
|
$metadata: deserializeMetadata(output),
|
|
1915
1889
|
...contents,
|
|
1916
1890
|
};
|
|
1917
|
-
return
|
|
1891
|
+
return response;
|
|
1918
1892
|
};
|
|
1919
1893
|
exports.de_DescribeDBClusterParameterGroupsCommand = de_DescribeDBClusterParameterGroupsCommand;
|
|
1920
1894
|
const de_DescribeDBClusterParameterGroupsCommandError = async (output, context) => {
|
|
@@ -1929,10 +1903,9 @@ const de_DescribeDBClusterParameterGroupsCommandError = async (output, context)
|
|
|
1929
1903
|
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1930
1904
|
default:
|
|
1931
1905
|
const parsedBody = parsedOutput.body;
|
|
1932
|
-
|
|
1906
|
+
return throwDefaultError({
|
|
1933
1907
|
output,
|
|
1934
1908
|
parsedBody: parsedBody.Error,
|
|
1935
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1936
1909
|
errorCode,
|
|
1937
1910
|
});
|
|
1938
1911
|
}
|
|
@@ -1948,7 +1921,7 @@ const de_DescribeDBClusterParametersCommand = async (output, context) => {
|
|
|
1948
1921
|
$metadata: deserializeMetadata(output),
|
|
1949
1922
|
...contents,
|
|
1950
1923
|
};
|
|
1951
|
-
return
|
|
1924
|
+
return response;
|
|
1952
1925
|
};
|
|
1953
1926
|
exports.de_DescribeDBClusterParametersCommand = de_DescribeDBClusterParametersCommand;
|
|
1954
1927
|
const de_DescribeDBClusterParametersCommandError = async (output, context) => {
|
|
@@ -1963,10 +1936,9 @@ const de_DescribeDBClusterParametersCommandError = async (output, context) => {
|
|
|
1963
1936
|
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1964
1937
|
default:
|
|
1965
1938
|
const parsedBody = parsedOutput.body;
|
|
1966
|
-
|
|
1939
|
+
return throwDefaultError({
|
|
1967
1940
|
output,
|
|
1968
1941
|
parsedBody: parsedBody.Error,
|
|
1969
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
1970
1942
|
errorCode,
|
|
1971
1943
|
});
|
|
1972
1944
|
}
|
|
@@ -1982,7 +1954,7 @@ const de_DescribeDBClustersCommand = async (output, context) => {
|
|
|
1982
1954
|
$metadata: deserializeMetadata(output),
|
|
1983
1955
|
...contents,
|
|
1984
1956
|
};
|
|
1985
|
-
return
|
|
1957
|
+
return response;
|
|
1986
1958
|
};
|
|
1987
1959
|
exports.de_DescribeDBClustersCommand = de_DescribeDBClustersCommand;
|
|
1988
1960
|
const de_DescribeDBClustersCommandError = async (output, context) => {
|
|
@@ -1997,10 +1969,9 @@ const de_DescribeDBClustersCommandError = async (output, context) => {
|
|
|
1997
1969
|
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
1998
1970
|
default:
|
|
1999
1971
|
const parsedBody = parsedOutput.body;
|
|
2000
|
-
|
|
1972
|
+
return throwDefaultError({
|
|
2001
1973
|
output,
|
|
2002
1974
|
parsedBody: parsedBody.Error,
|
|
2003
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2004
1975
|
errorCode,
|
|
2005
1976
|
});
|
|
2006
1977
|
}
|
|
@@ -2016,7 +1987,7 @@ const de_DescribeDBClusterSnapshotAttributesCommand = async (output, context) =>
|
|
|
2016
1987
|
$metadata: deserializeMetadata(output),
|
|
2017
1988
|
...contents,
|
|
2018
1989
|
};
|
|
2019
|
-
return
|
|
1990
|
+
return response;
|
|
2020
1991
|
};
|
|
2021
1992
|
exports.de_DescribeDBClusterSnapshotAttributesCommand = de_DescribeDBClusterSnapshotAttributesCommand;
|
|
2022
1993
|
const de_DescribeDBClusterSnapshotAttributesCommandError = async (output, context) => {
|
|
@@ -2031,10 +2002,9 @@ const de_DescribeDBClusterSnapshotAttributesCommandError = async (output, contex
|
|
|
2031
2002
|
throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2032
2003
|
default:
|
|
2033
2004
|
const parsedBody = parsedOutput.body;
|
|
2034
|
-
|
|
2005
|
+
return throwDefaultError({
|
|
2035
2006
|
output,
|
|
2036
2007
|
parsedBody: parsedBody.Error,
|
|
2037
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2038
2008
|
errorCode,
|
|
2039
2009
|
});
|
|
2040
2010
|
}
|
|
@@ -2050,7 +2020,7 @@ const de_DescribeDBClusterSnapshotsCommand = async (output, context) => {
|
|
|
2050
2020
|
$metadata: deserializeMetadata(output),
|
|
2051
2021
|
...contents,
|
|
2052
2022
|
};
|
|
2053
|
-
return
|
|
2023
|
+
return response;
|
|
2054
2024
|
};
|
|
2055
2025
|
exports.de_DescribeDBClusterSnapshotsCommand = de_DescribeDBClusterSnapshotsCommand;
|
|
2056
2026
|
const de_DescribeDBClusterSnapshotsCommandError = async (output, context) => {
|
|
@@ -2065,10 +2035,9 @@ const de_DescribeDBClusterSnapshotsCommandError = async (output, context) => {
|
|
|
2065
2035
|
throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2066
2036
|
default:
|
|
2067
2037
|
const parsedBody = parsedOutput.body;
|
|
2068
|
-
|
|
2038
|
+
return throwDefaultError({
|
|
2069
2039
|
output,
|
|
2070
2040
|
parsedBody: parsedBody.Error,
|
|
2071
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2072
2041
|
errorCode,
|
|
2073
2042
|
});
|
|
2074
2043
|
}
|
|
@@ -2084,7 +2053,7 @@ const de_DescribeDBEngineVersionsCommand = async (output, context) => {
|
|
|
2084
2053
|
$metadata: deserializeMetadata(output),
|
|
2085
2054
|
...contents,
|
|
2086
2055
|
};
|
|
2087
|
-
return
|
|
2056
|
+
return response;
|
|
2088
2057
|
};
|
|
2089
2058
|
exports.de_DescribeDBEngineVersionsCommand = de_DescribeDBEngineVersionsCommand;
|
|
2090
2059
|
const de_DescribeDBEngineVersionsCommandError = async (output, context) => {
|
|
@@ -2094,10 +2063,9 @@ const de_DescribeDBEngineVersionsCommandError = async (output, context) => {
|
|
|
2094
2063
|
};
|
|
2095
2064
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2096
2065
|
const parsedBody = parsedOutput.body;
|
|
2097
|
-
|
|
2066
|
+
return throwDefaultError({
|
|
2098
2067
|
output,
|
|
2099
2068
|
parsedBody: parsedBody.Error,
|
|
2100
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2101
2069
|
errorCode,
|
|
2102
2070
|
});
|
|
2103
2071
|
};
|
|
@@ -2112,7 +2080,7 @@ const de_DescribeDBInstancesCommand = async (output, context) => {
|
|
|
2112
2080
|
$metadata: deserializeMetadata(output),
|
|
2113
2081
|
...contents,
|
|
2114
2082
|
};
|
|
2115
|
-
return
|
|
2083
|
+
return response;
|
|
2116
2084
|
};
|
|
2117
2085
|
exports.de_DescribeDBInstancesCommand = de_DescribeDBInstancesCommand;
|
|
2118
2086
|
const de_DescribeDBInstancesCommandError = async (output, context) => {
|
|
@@ -2127,10 +2095,9 @@ const de_DescribeDBInstancesCommandError = async (output, context) => {
|
|
|
2127
2095
|
throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
|
|
2128
2096
|
default:
|
|
2129
2097
|
const parsedBody = parsedOutput.body;
|
|
2130
|
-
|
|
2098
|
+
return throwDefaultError({
|
|
2131
2099
|
output,
|
|
2132
2100
|
parsedBody: parsedBody.Error,
|
|
2133
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2134
2101
|
errorCode,
|
|
2135
2102
|
});
|
|
2136
2103
|
}
|
|
@@ -2146,7 +2113,7 @@ const de_DescribeDBParameterGroupsCommand = async (output, context) => {
|
|
|
2146
2113
|
$metadata: deserializeMetadata(output),
|
|
2147
2114
|
...contents,
|
|
2148
2115
|
};
|
|
2149
|
-
return
|
|
2116
|
+
return response;
|
|
2150
2117
|
};
|
|
2151
2118
|
exports.de_DescribeDBParameterGroupsCommand = de_DescribeDBParameterGroupsCommand;
|
|
2152
2119
|
const de_DescribeDBParameterGroupsCommandError = async (output, context) => {
|
|
@@ -2161,10 +2128,9 @@ const de_DescribeDBParameterGroupsCommandError = async (output, context) => {
|
|
|
2161
2128
|
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
2162
2129
|
default:
|
|
2163
2130
|
const parsedBody = parsedOutput.body;
|
|
2164
|
-
|
|
2131
|
+
return throwDefaultError({
|
|
2165
2132
|
output,
|
|
2166
2133
|
parsedBody: parsedBody.Error,
|
|
2167
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2168
2134
|
errorCode,
|
|
2169
2135
|
});
|
|
2170
2136
|
}
|
|
@@ -2180,7 +2146,7 @@ const de_DescribeDBParametersCommand = async (output, context) => {
|
|
|
2180
2146
|
$metadata: deserializeMetadata(output),
|
|
2181
2147
|
...contents,
|
|
2182
2148
|
};
|
|
2183
|
-
return
|
|
2149
|
+
return response;
|
|
2184
2150
|
};
|
|
2185
2151
|
exports.de_DescribeDBParametersCommand = de_DescribeDBParametersCommand;
|
|
2186
2152
|
const de_DescribeDBParametersCommandError = async (output, context) => {
|
|
@@ -2195,10 +2161,9 @@ const de_DescribeDBParametersCommandError = async (output, context) => {
|
|
|
2195
2161
|
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
2196
2162
|
default:
|
|
2197
2163
|
const parsedBody = parsedOutput.body;
|
|
2198
|
-
|
|
2164
|
+
return throwDefaultError({
|
|
2199
2165
|
output,
|
|
2200
2166
|
parsedBody: parsedBody.Error,
|
|
2201
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2202
2167
|
errorCode,
|
|
2203
2168
|
});
|
|
2204
2169
|
}
|
|
@@ -2214,7 +2179,7 @@ const de_DescribeDBSubnetGroupsCommand = async (output, context) => {
|
|
|
2214
2179
|
$metadata: deserializeMetadata(output),
|
|
2215
2180
|
...contents,
|
|
2216
2181
|
};
|
|
2217
|
-
return
|
|
2182
|
+
return response;
|
|
2218
2183
|
};
|
|
2219
2184
|
exports.de_DescribeDBSubnetGroupsCommand = de_DescribeDBSubnetGroupsCommand;
|
|
2220
2185
|
const de_DescribeDBSubnetGroupsCommandError = async (output, context) => {
|
|
@@ -2229,10 +2194,9 @@ const de_DescribeDBSubnetGroupsCommandError = async (output, context) => {
|
|
|
2229
2194
|
throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
2230
2195
|
default:
|
|
2231
2196
|
const parsedBody = parsedOutput.body;
|
|
2232
|
-
|
|
2197
|
+
return throwDefaultError({
|
|
2233
2198
|
output,
|
|
2234
2199
|
parsedBody: parsedBody.Error,
|
|
2235
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2236
2200
|
errorCode,
|
|
2237
2201
|
});
|
|
2238
2202
|
}
|
|
@@ -2248,7 +2212,7 @@ const de_DescribeEngineDefaultClusterParametersCommand = async (output, context)
|
|
|
2248
2212
|
$metadata: deserializeMetadata(output),
|
|
2249
2213
|
...contents,
|
|
2250
2214
|
};
|
|
2251
|
-
return
|
|
2215
|
+
return response;
|
|
2252
2216
|
};
|
|
2253
2217
|
exports.de_DescribeEngineDefaultClusterParametersCommand = de_DescribeEngineDefaultClusterParametersCommand;
|
|
2254
2218
|
const de_DescribeEngineDefaultClusterParametersCommandError = async (output, context) => {
|
|
@@ -2258,10 +2222,9 @@ const de_DescribeEngineDefaultClusterParametersCommandError = async (output, con
|
|
|
2258
2222
|
};
|
|
2259
2223
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2260
2224
|
const parsedBody = parsedOutput.body;
|
|
2261
|
-
|
|
2225
|
+
return throwDefaultError({
|
|
2262
2226
|
output,
|
|
2263
2227
|
parsedBody: parsedBody.Error,
|
|
2264
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2265
2228
|
errorCode,
|
|
2266
2229
|
});
|
|
2267
2230
|
};
|
|
@@ -2276,7 +2239,7 @@ const de_DescribeEngineDefaultParametersCommand = async (output, context) => {
|
|
|
2276
2239
|
$metadata: deserializeMetadata(output),
|
|
2277
2240
|
...contents,
|
|
2278
2241
|
};
|
|
2279
|
-
return
|
|
2242
|
+
return response;
|
|
2280
2243
|
};
|
|
2281
2244
|
exports.de_DescribeEngineDefaultParametersCommand = de_DescribeEngineDefaultParametersCommand;
|
|
2282
2245
|
const de_DescribeEngineDefaultParametersCommandError = async (output, context) => {
|
|
@@ -2286,10 +2249,9 @@ const de_DescribeEngineDefaultParametersCommandError = async (output, context) =
|
|
|
2286
2249
|
};
|
|
2287
2250
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2288
2251
|
const parsedBody = parsedOutput.body;
|
|
2289
|
-
|
|
2252
|
+
return throwDefaultError({
|
|
2290
2253
|
output,
|
|
2291
2254
|
parsedBody: parsedBody.Error,
|
|
2292
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2293
2255
|
errorCode,
|
|
2294
2256
|
});
|
|
2295
2257
|
};
|
|
@@ -2304,7 +2266,7 @@ const de_DescribeEventCategoriesCommand = async (output, context) => {
|
|
|
2304
2266
|
$metadata: deserializeMetadata(output),
|
|
2305
2267
|
...contents,
|
|
2306
2268
|
};
|
|
2307
|
-
return
|
|
2269
|
+
return response;
|
|
2308
2270
|
};
|
|
2309
2271
|
exports.de_DescribeEventCategoriesCommand = de_DescribeEventCategoriesCommand;
|
|
2310
2272
|
const de_DescribeEventCategoriesCommandError = async (output, context) => {
|
|
@@ -2314,10 +2276,9 @@ const de_DescribeEventCategoriesCommandError = async (output, context) => {
|
|
|
2314
2276
|
};
|
|
2315
2277
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2316
2278
|
const parsedBody = parsedOutput.body;
|
|
2317
|
-
|
|
2279
|
+
return throwDefaultError({
|
|
2318
2280
|
output,
|
|
2319
2281
|
parsedBody: parsedBody.Error,
|
|
2320
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2321
2282
|
errorCode,
|
|
2322
2283
|
});
|
|
2323
2284
|
};
|
|
@@ -2332,7 +2293,7 @@ const de_DescribeEventsCommand = async (output, context) => {
|
|
|
2332
2293
|
$metadata: deserializeMetadata(output),
|
|
2333
2294
|
...contents,
|
|
2334
2295
|
};
|
|
2335
|
-
return
|
|
2296
|
+
return response;
|
|
2336
2297
|
};
|
|
2337
2298
|
exports.de_DescribeEventsCommand = de_DescribeEventsCommand;
|
|
2338
2299
|
const de_DescribeEventsCommandError = async (output, context) => {
|
|
@@ -2342,10 +2303,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
|
|
|
2342
2303
|
};
|
|
2343
2304
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2344
2305
|
const parsedBody = parsedOutput.body;
|
|
2345
|
-
|
|
2306
|
+
return throwDefaultError({
|
|
2346
2307
|
output,
|
|
2347
2308
|
parsedBody: parsedBody.Error,
|
|
2348
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2349
2309
|
errorCode,
|
|
2350
2310
|
});
|
|
2351
2311
|
};
|
|
@@ -2360,7 +2320,7 @@ const de_DescribeEventSubscriptionsCommand = async (output, context) => {
|
|
|
2360
2320
|
$metadata: deserializeMetadata(output),
|
|
2361
2321
|
...contents,
|
|
2362
2322
|
};
|
|
2363
|
-
return
|
|
2323
|
+
return response;
|
|
2364
2324
|
};
|
|
2365
2325
|
exports.de_DescribeEventSubscriptionsCommand = de_DescribeEventSubscriptionsCommand;
|
|
2366
2326
|
const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
|
|
@@ -2375,10 +2335,9 @@ const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
|
|
|
2375
2335
|
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
2376
2336
|
default:
|
|
2377
2337
|
const parsedBody = parsedOutput.body;
|
|
2378
|
-
|
|
2338
|
+
return throwDefaultError({
|
|
2379
2339
|
output,
|
|
2380
2340
|
parsedBody: parsedBody.Error,
|
|
2381
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2382
2341
|
errorCode,
|
|
2383
2342
|
});
|
|
2384
2343
|
}
|
|
@@ -2394,7 +2353,7 @@ const de_DescribeGlobalClustersCommand = async (output, context) => {
|
|
|
2394
2353
|
$metadata: deserializeMetadata(output),
|
|
2395
2354
|
...contents,
|
|
2396
2355
|
};
|
|
2397
|
-
return
|
|
2356
|
+
return response;
|
|
2398
2357
|
};
|
|
2399
2358
|
exports.de_DescribeGlobalClustersCommand = de_DescribeGlobalClustersCommand;
|
|
2400
2359
|
const de_DescribeGlobalClustersCommandError = async (output, context) => {
|
|
@@ -2409,10 +2368,9 @@ const de_DescribeGlobalClustersCommandError = async (output, context) => {
|
|
|
2409
2368
|
throw await de_GlobalClusterNotFoundFaultRes(parsedOutput, context);
|
|
2410
2369
|
default:
|
|
2411
2370
|
const parsedBody = parsedOutput.body;
|
|
2412
|
-
|
|
2371
|
+
return throwDefaultError({
|
|
2413
2372
|
output,
|
|
2414
2373
|
parsedBody: parsedBody.Error,
|
|
2415
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2416
2374
|
errorCode,
|
|
2417
2375
|
});
|
|
2418
2376
|
}
|
|
@@ -2428,7 +2386,7 @@ const de_DescribeOrderableDBInstanceOptionsCommand = async (output, context) =>
|
|
|
2428
2386
|
$metadata: deserializeMetadata(output),
|
|
2429
2387
|
...contents,
|
|
2430
2388
|
};
|
|
2431
|
-
return
|
|
2389
|
+
return response;
|
|
2432
2390
|
};
|
|
2433
2391
|
exports.de_DescribeOrderableDBInstanceOptionsCommand = de_DescribeOrderableDBInstanceOptionsCommand;
|
|
2434
2392
|
const de_DescribeOrderableDBInstanceOptionsCommandError = async (output, context) => {
|
|
@@ -2438,10 +2396,9 @@ const de_DescribeOrderableDBInstanceOptionsCommandError = async (output, context
|
|
|
2438
2396
|
};
|
|
2439
2397
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2440
2398
|
const parsedBody = parsedOutput.body;
|
|
2441
|
-
|
|
2399
|
+
return throwDefaultError({
|
|
2442
2400
|
output,
|
|
2443
2401
|
parsedBody: parsedBody.Error,
|
|
2444
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2445
2402
|
errorCode,
|
|
2446
2403
|
});
|
|
2447
2404
|
};
|
|
@@ -2456,7 +2413,7 @@ const de_DescribePendingMaintenanceActionsCommand = async (output, context) => {
|
|
|
2456
2413
|
$metadata: deserializeMetadata(output),
|
|
2457
2414
|
...contents,
|
|
2458
2415
|
};
|
|
2459
|
-
return
|
|
2416
|
+
return response;
|
|
2460
2417
|
};
|
|
2461
2418
|
exports.de_DescribePendingMaintenanceActionsCommand = de_DescribePendingMaintenanceActionsCommand;
|
|
2462
2419
|
const de_DescribePendingMaintenanceActionsCommandError = async (output, context) => {
|
|
@@ -2471,10 +2428,9 @@ const de_DescribePendingMaintenanceActionsCommandError = async (output, context)
|
|
|
2471
2428
|
throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
|
|
2472
2429
|
default:
|
|
2473
2430
|
const parsedBody = parsedOutput.body;
|
|
2474
|
-
|
|
2431
|
+
return throwDefaultError({
|
|
2475
2432
|
output,
|
|
2476
2433
|
parsedBody: parsedBody.Error,
|
|
2477
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2478
2434
|
errorCode,
|
|
2479
2435
|
});
|
|
2480
2436
|
}
|
|
@@ -2490,7 +2446,7 @@ const de_DescribeValidDBInstanceModificationsCommand = async (output, context) =
|
|
|
2490
2446
|
$metadata: deserializeMetadata(output),
|
|
2491
2447
|
...contents,
|
|
2492
2448
|
};
|
|
2493
|
-
return
|
|
2449
|
+
return response;
|
|
2494
2450
|
};
|
|
2495
2451
|
exports.de_DescribeValidDBInstanceModificationsCommand = de_DescribeValidDBInstanceModificationsCommand;
|
|
2496
2452
|
const de_DescribeValidDBInstanceModificationsCommandError = async (output, context) => {
|
|
@@ -2508,10 +2464,9 @@ const de_DescribeValidDBInstanceModificationsCommandError = async (output, conte
|
|
|
2508
2464
|
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
2509
2465
|
default:
|
|
2510
2466
|
const parsedBody = parsedOutput.body;
|
|
2511
|
-
|
|
2467
|
+
return throwDefaultError({
|
|
2512
2468
|
output,
|
|
2513
2469
|
parsedBody: parsedBody.Error,
|
|
2514
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2515
2470
|
errorCode,
|
|
2516
2471
|
});
|
|
2517
2472
|
}
|
|
@@ -2527,7 +2482,7 @@ const de_FailoverDBClusterCommand = async (output, context) => {
|
|
|
2527
2482
|
$metadata: deserializeMetadata(output),
|
|
2528
2483
|
...contents,
|
|
2529
2484
|
};
|
|
2530
|
-
return
|
|
2485
|
+
return response;
|
|
2531
2486
|
};
|
|
2532
2487
|
exports.de_FailoverDBClusterCommand = de_FailoverDBClusterCommand;
|
|
2533
2488
|
const de_FailoverDBClusterCommandError = async (output, context) => {
|
|
@@ -2548,10 +2503,9 @@ const de_FailoverDBClusterCommandError = async (output, context) => {
|
|
|
2548
2503
|
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
2549
2504
|
default:
|
|
2550
2505
|
const parsedBody = parsedOutput.body;
|
|
2551
|
-
|
|
2506
|
+
return throwDefaultError({
|
|
2552
2507
|
output,
|
|
2553
2508
|
parsedBody: parsedBody.Error,
|
|
2554
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2555
2509
|
errorCode,
|
|
2556
2510
|
});
|
|
2557
2511
|
}
|
|
@@ -2567,7 +2521,7 @@ const de_FailoverGlobalClusterCommand = async (output, context) => {
|
|
|
2567
2521
|
$metadata: deserializeMetadata(output),
|
|
2568
2522
|
...contents,
|
|
2569
2523
|
};
|
|
2570
|
-
return
|
|
2524
|
+
return response;
|
|
2571
2525
|
};
|
|
2572
2526
|
exports.de_FailoverGlobalClusterCommand = de_FailoverGlobalClusterCommand;
|
|
2573
2527
|
const de_FailoverGlobalClusterCommandError = async (output, context) => {
|
|
@@ -2591,10 +2545,9 @@ const de_FailoverGlobalClusterCommandError = async (output, context) => {
|
|
|
2591
2545
|
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
2592
2546
|
default:
|
|
2593
2547
|
const parsedBody = parsedOutput.body;
|
|
2594
|
-
|
|
2548
|
+
return throwDefaultError({
|
|
2595
2549
|
output,
|
|
2596
2550
|
parsedBody: parsedBody.Error,
|
|
2597
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2598
2551
|
errorCode,
|
|
2599
2552
|
});
|
|
2600
2553
|
}
|
|
@@ -2610,7 +2563,7 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2610
2563
|
$metadata: deserializeMetadata(output),
|
|
2611
2564
|
...contents,
|
|
2612
2565
|
};
|
|
2613
|
-
return
|
|
2566
|
+
return response;
|
|
2614
2567
|
};
|
|
2615
2568
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2616
2569
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2631,10 +2584,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2631
2584
|
throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2632
2585
|
default:
|
|
2633
2586
|
const parsedBody = parsedOutput.body;
|
|
2634
|
-
|
|
2587
|
+
return throwDefaultError({
|
|
2635
2588
|
output,
|
|
2636
2589
|
parsedBody: parsedBody.Error,
|
|
2637
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2638
2590
|
errorCode,
|
|
2639
2591
|
});
|
|
2640
2592
|
}
|
|
@@ -2650,7 +2602,7 @@ const de_ModifyDBClusterCommand = async (output, context) => {
|
|
|
2650
2602
|
$metadata: deserializeMetadata(output),
|
|
2651
2603
|
...contents,
|
|
2652
2604
|
};
|
|
2653
|
-
return
|
|
2605
|
+
return response;
|
|
2654
2606
|
};
|
|
2655
2607
|
exports.de_ModifyDBClusterCommand = de_ModifyDBClusterCommand;
|
|
2656
2608
|
const de_ModifyDBClusterCommandError = async (output, context) => {
|
|
@@ -2695,10 +2647,9 @@ const de_ModifyDBClusterCommandError = async (output, context) => {
|
|
|
2695
2647
|
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
2696
2648
|
default:
|
|
2697
2649
|
const parsedBody = parsedOutput.body;
|
|
2698
|
-
|
|
2650
|
+
return throwDefaultError({
|
|
2699
2651
|
output,
|
|
2700
2652
|
parsedBody: parsedBody.Error,
|
|
2701
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2702
2653
|
errorCode,
|
|
2703
2654
|
});
|
|
2704
2655
|
}
|
|
@@ -2714,7 +2665,7 @@ const de_ModifyDBClusterEndpointCommand = async (output, context) => {
|
|
|
2714
2665
|
$metadata: deserializeMetadata(output),
|
|
2715
2666
|
...contents,
|
|
2716
2667
|
};
|
|
2717
|
-
return
|
|
2668
|
+
return response;
|
|
2718
2669
|
};
|
|
2719
2670
|
exports.de_ModifyDBClusterEndpointCommand = de_ModifyDBClusterEndpointCommand;
|
|
2720
2671
|
const de_ModifyDBClusterEndpointCommandError = async (output, context) => {
|
|
@@ -2741,10 +2692,9 @@ const de_ModifyDBClusterEndpointCommandError = async (output, context) => {
|
|
|
2741
2692
|
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
2742
2693
|
default:
|
|
2743
2694
|
const parsedBody = parsedOutput.body;
|
|
2744
|
-
|
|
2695
|
+
return throwDefaultError({
|
|
2745
2696
|
output,
|
|
2746
2697
|
parsedBody: parsedBody.Error,
|
|
2747
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2748
2698
|
errorCode,
|
|
2749
2699
|
});
|
|
2750
2700
|
}
|
|
@@ -2760,7 +2710,7 @@ const de_ModifyDBClusterParameterGroupCommand = async (output, context) => {
|
|
|
2760
2710
|
$metadata: deserializeMetadata(output),
|
|
2761
2711
|
...contents,
|
|
2762
2712
|
};
|
|
2763
|
-
return
|
|
2713
|
+
return response;
|
|
2764
2714
|
};
|
|
2765
2715
|
exports.de_ModifyDBClusterParameterGroupCommand = de_ModifyDBClusterParameterGroupCommand;
|
|
2766
2716
|
const de_ModifyDBClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -2778,10 +2728,9 @@ const de_ModifyDBClusterParameterGroupCommandError = async (output, context) =>
|
|
|
2778
2728
|
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
2779
2729
|
default:
|
|
2780
2730
|
const parsedBody = parsedOutput.body;
|
|
2781
|
-
|
|
2731
|
+
return throwDefaultError({
|
|
2782
2732
|
output,
|
|
2783
2733
|
parsedBody: parsedBody.Error,
|
|
2784
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2785
2734
|
errorCode,
|
|
2786
2735
|
});
|
|
2787
2736
|
}
|
|
@@ -2797,7 +2746,7 @@ const de_ModifyDBClusterSnapshotAttributeCommand = async (output, context) => {
|
|
|
2797
2746
|
$metadata: deserializeMetadata(output),
|
|
2798
2747
|
...contents,
|
|
2799
2748
|
};
|
|
2800
|
-
return
|
|
2749
|
+
return response;
|
|
2801
2750
|
};
|
|
2802
2751
|
exports.de_ModifyDBClusterSnapshotAttributeCommand = de_ModifyDBClusterSnapshotAttributeCommand;
|
|
2803
2752
|
const de_ModifyDBClusterSnapshotAttributeCommandError = async (output, context) => {
|
|
@@ -2818,10 +2767,9 @@ const de_ModifyDBClusterSnapshotAttributeCommandError = async (output, context)
|
|
|
2818
2767
|
throw await de_SharedSnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
2819
2768
|
default:
|
|
2820
2769
|
const parsedBody = parsedOutput.body;
|
|
2821
|
-
|
|
2770
|
+
return throwDefaultError({
|
|
2822
2771
|
output,
|
|
2823
2772
|
parsedBody: parsedBody.Error,
|
|
2824
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2825
2773
|
errorCode,
|
|
2826
2774
|
});
|
|
2827
2775
|
}
|
|
@@ -2837,7 +2785,7 @@ const de_ModifyDBInstanceCommand = async (output, context) => {
|
|
|
2837
2785
|
$metadata: deserializeMetadata(output),
|
|
2838
2786
|
...contents,
|
|
2839
2787
|
};
|
|
2840
|
-
return
|
|
2788
|
+
return response;
|
|
2841
2789
|
};
|
|
2842
2790
|
exports.de_ModifyDBInstanceCommand = de_ModifyDBInstanceCommand;
|
|
2843
2791
|
const de_ModifyDBInstanceCommandError = async (output, context) => {
|
|
@@ -2897,10 +2845,9 @@ const de_ModifyDBInstanceCommandError = async (output, context) => {
|
|
|
2897
2845
|
throw await de_StorageTypeNotSupportedFaultRes(parsedOutput, context);
|
|
2898
2846
|
default:
|
|
2899
2847
|
const parsedBody = parsedOutput.body;
|
|
2900
|
-
|
|
2848
|
+
return throwDefaultError({
|
|
2901
2849
|
output,
|
|
2902
2850
|
parsedBody: parsedBody.Error,
|
|
2903
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2904
2851
|
errorCode,
|
|
2905
2852
|
});
|
|
2906
2853
|
}
|
|
@@ -2916,7 +2863,7 @@ const de_ModifyDBParameterGroupCommand = async (output, context) => {
|
|
|
2916
2863
|
$metadata: deserializeMetadata(output),
|
|
2917
2864
|
...contents,
|
|
2918
2865
|
};
|
|
2919
|
-
return
|
|
2866
|
+
return response;
|
|
2920
2867
|
};
|
|
2921
2868
|
exports.de_ModifyDBParameterGroupCommand = de_ModifyDBParameterGroupCommand;
|
|
2922
2869
|
const de_ModifyDBParameterGroupCommandError = async (output, context) => {
|
|
@@ -2934,10 +2881,9 @@ const de_ModifyDBParameterGroupCommandError = async (output, context) => {
|
|
|
2934
2881
|
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
2935
2882
|
default:
|
|
2936
2883
|
const parsedBody = parsedOutput.body;
|
|
2937
|
-
|
|
2884
|
+
return throwDefaultError({
|
|
2938
2885
|
output,
|
|
2939
2886
|
parsedBody: parsedBody.Error,
|
|
2940
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2941
2887
|
errorCode,
|
|
2942
2888
|
});
|
|
2943
2889
|
}
|
|
@@ -2953,7 +2899,7 @@ const de_ModifyDBSubnetGroupCommand = async (output, context) => {
|
|
|
2953
2899
|
$metadata: deserializeMetadata(output),
|
|
2954
2900
|
...contents,
|
|
2955
2901
|
};
|
|
2956
|
-
return
|
|
2902
|
+
return response;
|
|
2957
2903
|
};
|
|
2958
2904
|
exports.de_ModifyDBSubnetGroupCommand = de_ModifyDBSubnetGroupCommand;
|
|
2959
2905
|
const de_ModifyDBSubnetGroupCommandError = async (output, context) => {
|
|
@@ -2980,10 +2926,9 @@ const de_ModifyDBSubnetGroupCommandError = async (output, context) => {
|
|
|
2980
2926
|
throw await de_SubnetAlreadyInUseRes(parsedOutput, context);
|
|
2981
2927
|
default:
|
|
2982
2928
|
const parsedBody = parsedOutput.body;
|
|
2983
|
-
|
|
2929
|
+
return throwDefaultError({
|
|
2984
2930
|
output,
|
|
2985
2931
|
parsedBody: parsedBody.Error,
|
|
2986
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
2987
2932
|
errorCode,
|
|
2988
2933
|
});
|
|
2989
2934
|
}
|
|
@@ -2999,7 +2944,7 @@ const de_ModifyEventSubscriptionCommand = async (output, context) => {
|
|
|
2999
2944
|
$metadata: deserializeMetadata(output),
|
|
3000
2945
|
...contents,
|
|
3001
2946
|
};
|
|
3002
|
-
return
|
|
2947
|
+
return response;
|
|
3003
2948
|
};
|
|
3004
2949
|
exports.de_ModifyEventSubscriptionCommand = de_ModifyEventSubscriptionCommand;
|
|
3005
2950
|
const de_ModifyEventSubscriptionCommandError = async (output, context) => {
|
|
@@ -3029,10 +2974,9 @@ const de_ModifyEventSubscriptionCommandError = async (output, context) => {
|
|
|
3029
2974
|
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
3030
2975
|
default:
|
|
3031
2976
|
const parsedBody = parsedOutput.body;
|
|
3032
|
-
|
|
2977
|
+
return throwDefaultError({
|
|
3033
2978
|
output,
|
|
3034
2979
|
parsedBody: parsedBody.Error,
|
|
3035
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3036
2980
|
errorCode,
|
|
3037
2981
|
});
|
|
3038
2982
|
}
|
|
@@ -3048,7 +2992,7 @@ const de_ModifyGlobalClusterCommand = async (output, context) => {
|
|
|
3048
2992
|
$metadata: deserializeMetadata(output),
|
|
3049
2993
|
...contents,
|
|
3050
2994
|
};
|
|
3051
|
-
return
|
|
2995
|
+
return response;
|
|
3052
2996
|
};
|
|
3053
2997
|
exports.de_ModifyGlobalClusterCommand = de_ModifyGlobalClusterCommand;
|
|
3054
2998
|
const de_ModifyGlobalClusterCommandError = async (output, context) => {
|
|
@@ -3066,10 +3010,9 @@ const de_ModifyGlobalClusterCommandError = async (output, context) => {
|
|
|
3066
3010
|
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
3067
3011
|
default:
|
|
3068
3012
|
const parsedBody = parsedOutput.body;
|
|
3069
|
-
|
|
3013
|
+
return throwDefaultError({
|
|
3070
3014
|
output,
|
|
3071
3015
|
parsedBody: parsedBody.Error,
|
|
3072
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3073
3016
|
errorCode,
|
|
3074
3017
|
});
|
|
3075
3018
|
}
|
|
@@ -3085,7 +3028,7 @@ const de_PromoteReadReplicaDBClusterCommand = async (output, context) => {
|
|
|
3085
3028
|
$metadata: deserializeMetadata(output),
|
|
3086
3029
|
...contents,
|
|
3087
3030
|
};
|
|
3088
|
-
return
|
|
3031
|
+
return response;
|
|
3089
3032
|
};
|
|
3090
3033
|
exports.de_PromoteReadReplicaDBClusterCommand = de_PromoteReadReplicaDBClusterCommand;
|
|
3091
3034
|
const de_PromoteReadReplicaDBClusterCommandError = async (output, context) => {
|
|
@@ -3103,10 +3046,9 @@ const de_PromoteReadReplicaDBClusterCommandError = async (output, context) => {
|
|
|
3103
3046
|
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
3104
3047
|
default:
|
|
3105
3048
|
const parsedBody = parsedOutput.body;
|
|
3106
|
-
|
|
3049
|
+
return throwDefaultError({
|
|
3107
3050
|
output,
|
|
3108
3051
|
parsedBody: parsedBody.Error,
|
|
3109
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3110
3052
|
errorCode,
|
|
3111
3053
|
});
|
|
3112
3054
|
}
|
|
@@ -3122,7 +3064,7 @@ const de_RebootDBInstanceCommand = async (output, context) => {
|
|
|
3122
3064
|
$metadata: deserializeMetadata(output),
|
|
3123
3065
|
...contents,
|
|
3124
3066
|
};
|
|
3125
|
-
return
|
|
3067
|
+
return response;
|
|
3126
3068
|
};
|
|
3127
3069
|
exports.de_RebootDBInstanceCommand = de_RebootDBInstanceCommand;
|
|
3128
3070
|
const de_RebootDBInstanceCommandError = async (output, context) => {
|
|
@@ -3140,10 +3082,9 @@ const de_RebootDBInstanceCommandError = async (output, context) => {
|
|
|
3140
3082
|
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
3141
3083
|
default:
|
|
3142
3084
|
const parsedBody = parsedOutput.body;
|
|
3143
|
-
|
|
3085
|
+
return throwDefaultError({
|
|
3144
3086
|
output,
|
|
3145
3087
|
parsedBody: parsedBody.Error,
|
|
3146
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3147
3088
|
errorCode,
|
|
3148
3089
|
});
|
|
3149
3090
|
}
|
|
@@ -3159,7 +3100,7 @@ const de_RemoveFromGlobalClusterCommand = async (output, context) => {
|
|
|
3159
3100
|
$metadata: deserializeMetadata(output),
|
|
3160
3101
|
...contents,
|
|
3161
3102
|
};
|
|
3162
|
-
return
|
|
3103
|
+
return response;
|
|
3163
3104
|
};
|
|
3164
3105
|
exports.de_RemoveFromGlobalClusterCommand = de_RemoveFromGlobalClusterCommand;
|
|
3165
3106
|
const de_RemoveFromGlobalClusterCommandError = async (output, context) => {
|
|
@@ -3180,10 +3121,9 @@ const de_RemoveFromGlobalClusterCommandError = async (output, context) => {
|
|
|
3180
3121
|
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
3181
3122
|
default:
|
|
3182
3123
|
const parsedBody = parsedOutput.body;
|
|
3183
|
-
|
|
3124
|
+
return throwDefaultError({
|
|
3184
3125
|
output,
|
|
3185
3126
|
parsedBody: parsedBody.Error,
|
|
3186
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3187
3127
|
errorCode,
|
|
3188
3128
|
});
|
|
3189
3129
|
}
|
|
@@ -3196,7 +3136,7 @@ const de_RemoveRoleFromDBClusterCommand = async (output, context) => {
|
|
|
3196
3136
|
const response = {
|
|
3197
3137
|
$metadata: deserializeMetadata(output),
|
|
3198
3138
|
};
|
|
3199
|
-
return
|
|
3139
|
+
return response;
|
|
3200
3140
|
};
|
|
3201
3141
|
exports.de_RemoveRoleFromDBClusterCommand = de_RemoveRoleFromDBClusterCommand;
|
|
3202
3142
|
const de_RemoveRoleFromDBClusterCommandError = async (output, context) => {
|
|
@@ -3217,10 +3157,9 @@ const de_RemoveRoleFromDBClusterCommandError = async (output, context) => {
|
|
|
3217
3157
|
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
3218
3158
|
default:
|
|
3219
3159
|
const parsedBody = parsedOutput.body;
|
|
3220
|
-
|
|
3160
|
+
return throwDefaultError({
|
|
3221
3161
|
output,
|
|
3222
3162
|
parsedBody: parsedBody.Error,
|
|
3223
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3224
3163
|
errorCode,
|
|
3225
3164
|
});
|
|
3226
3165
|
}
|
|
@@ -3236,7 +3175,7 @@ const de_RemoveSourceIdentifierFromSubscriptionCommand = async (output, context)
|
|
|
3236
3175
|
$metadata: deserializeMetadata(output),
|
|
3237
3176
|
...contents,
|
|
3238
3177
|
};
|
|
3239
|
-
return
|
|
3178
|
+
return response;
|
|
3240
3179
|
};
|
|
3241
3180
|
exports.de_RemoveSourceIdentifierFromSubscriptionCommand = de_RemoveSourceIdentifierFromSubscriptionCommand;
|
|
3242
3181
|
const de_RemoveSourceIdentifierFromSubscriptionCommandError = async (output, context) => {
|
|
@@ -3254,10 +3193,9 @@ const de_RemoveSourceIdentifierFromSubscriptionCommandError = async (output, con
|
|
|
3254
3193
|
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
3255
3194
|
default:
|
|
3256
3195
|
const parsedBody = parsedOutput.body;
|
|
3257
|
-
|
|
3196
|
+
return throwDefaultError({
|
|
3258
3197
|
output,
|
|
3259
3198
|
parsedBody: parsedBody.Error,
|
|
3260
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3261
3199
|
errorCode,
|
|
3262
3200
|
});
|
|
3263
3201
|
}
|
|
@@ -3270,7 +3208,7 @@ const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
|
3270
3208
|
const response = {
|
|
3271
3209
|
$metadata: deserializeMetadata(output),
|
|
3272
3210
|
};
|
|
3273
|
-
return
|
|
3211
|
+
return response;
|
|
3274
3212
|
};
|
|
3275
3213
|
exports.de_RemoveTagsFromResourceCommand = de_RemoveTagsFromResourceCommand;
|
|
3276
3214
|
const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
@@ -3291,10 +3229,9 @@ const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
|
3291
3229
|
throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
3292
3230
|
default:
|
|
3293
3231
|
const parsedBody = parsedOutput.body;
|
|
3294
|
-
|
|
3232
|
+
return throwDefaultError({
|
|
3295
3233
|
output,
|
|
3296
3234
|
parsedBody: parsedBody.Error,
|
|
3297
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3298
3235
|
errorCode,
|
|
3299
3236
|
});
|
|
3300
3237
|
}
|
|
@@ -3310,7 +3247,7 @@ const de_ResetDBClusterParameterGroupCommand = async (output, context) => {
|
|
|
3310
3247
|
$metadata: deserializeMetadata(output),
|
|
3311
3248
|
...contents,
|
|
3312
3249
|
};
|
|
3313
|
-
return
|
|
3250
|
+
return response;
|
|
3314
3251
|
};
|
|
3315
3252
|
exports.de_ResetDBClusterParameterGroupCommand = de_ResetDBClusterParameterGroupCommand;
|
|
3316
3253
|
const de_ResetDBClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -3328,10 +3265,9 @@ const de_ResetDBClusterParameterGroupCommandError = async (output, context) => {
|
|
|
3328
3265
|
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
3329
3266
|
default:
|
|
3330
3267
|
const parsedBody = parsedOutput.body;
|
|
3331
|
-
|
|
3268
|
+
return throwDefaultError({
|
|
3332
3269
|
output,
|
|
3333
3270
|
parsedBody: parsedBody.Error,
|
|
3334
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3335
3271
|
errorCode,
|
|
3336
3272
|
});
|
|
3337
3273
|
}
|
|
@@ -3347,7 +3283,7 @@ const de_ResetDBParameterGroupCommand = async (output, context) => {
|
|
|
3347
3283
|
$metadata: deserializeMetadata(output),
|
|
3348
3284
|
...contents,
|
|
3349
3285
|
};
|
|
3350
|
-
return
|
|
3286
|
+
return response;
|
|
3351
3287
|
};
|
|
3352
3288
|
exports.de_ResetDBParameterGroupCommand = de_ResetDBParameterGroupCommand;
|
|
3353
3289
|
const de_ResetDBParameterGroupCommandError = async (output, context) => {
|
|
@@ -3365,10 +3301,9 @@ const de_ResetDBParameterGroupCommandError = async (output, context) => {
|
|
|
3365
3301
|
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
3366
3302
|
default:
|
|
3367
3303
|
const parsedBody = parsedOutput.body;
|
|
3368
|
-
|
|
3304
|
+
return throwDefaultError({
|
|
3369
3305
|
output,
|
|
3370
3306
|
parsedBody: parsedBody.Error,
|
|
3371
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3372
3307
|
errorCode,
|
|
3373
3308
|
});
|
|
3374
3309
|
}
|
|
@@ -3384,7 +3319,7 @@ const de_RestoreDBClusterFromSnapshotCommand = async (output, context) => {
|
|
|
3384
3319
|
$metadata: deserializeMetadata(output),
|
|
3385
3320
|
...contents,
|
|
3386
3321
|
};
|
|
3387
|
-
return
|
|
3322
|
+
return response;
|
|
3388
3323
|
};
|
|
3389
3324
|
exports.de_RestoreDBClusterFromSnapshotCommand = de_RestoreDBClusterFromSnapshotCommand;
|
|
3390
3325
|
const de_RestoreDBClusterFromSnapshotCommandError = async (output, context) => {
|
|
@@ -3444,10 +3379,9 @@ const de_RestoreDBClusterFromSnapshotCommandError = async (output, context) => {
|
|
|
3444
3379
|
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
3445
3380
|
default:
|
|
3446
3381
|
const parsedBody = parsedOutput.body;
|
|
3447
|
-
|
|
3382
|
+
return throwDefaultError({
|
|
3448
3383
|
output,
|
|
3449
3384
|
parsedBody: parsedBody.Error,
|
|
3450
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3451
3385
|
errorCode,
|
|
3452
3386
|
});
|
|
3453
3387
|
}
|
|
@@ -3463,7 +3397,7 @@ const de_RestoreDBClusterToPointInTimeCommand = async (output, context) => {
|
|
|
3463
3397
|
$metadata: deserializeMetadata(output),
|
|
3464
3398
|
...contents,
|
|
3465
3399
|
};
|
|
3466
|
-
return
|
|
3400
|
+
return response;
|
|
3467
3401
|
};
|
|
3468
3402
|
exports.de_RestoreDBClusterToPointInTimeCommand = de_RestoreDBClusterToPointInTimeCommand;
|
|
3469
3403
|
const de_RestoreDBClusterToPointInTimeCommandError = async (output, context) => {
|
|
@@ -3526,10 +3460,9 @@ const de_RestoreDBClusterToPointInTimeCommandError = async (output, context) =>
|
|
|
3526
3460
|
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
3527
3461
|
default:
|
|
3528
3462
|
const parsedBody = parsedOutput.body;
|
|
3529
|
-
|
|
3463
|
+
return throwDefaultError({
|
|
3530
3464
|
output,
|
|
3531
3465
|
parsedBody: parsedBody.Error,
|
|
3532
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3533
3466
|
errorCode,
|
|
3534
3467
|
});
|
|
3535
3468
|
}
|
|
@@ -3545,7 +3478,7 @@ const de_StartDBClusterCommand = async (output, context) => {
|
|
|
3545
3478
|
$metadata: deserializeMetadata(output),
|
|
3546
3479
|
...contents,
|
|
3547
3480
|
};
|
|
3548
|
-
return
|
|
3481
|
+
return response;
|
|
3549
3482
|
};
|
|
3550
3483
|
exports.de_StartDBClusterCommand = de_StartDBClusterCommand;
|
|
3551
3484
|
const de_StartDBClusterCommandError = async (output, context) => {
|
|
@@ -3566,10 +3499,9 @@ const de_StartDBClusterCommandError = async (output, context) => {
|
|
|
3566
3499
|
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
3567
3500
|
default:
|
|
3568
3501
|
const parsedBody = parsedOutput.body;
|
|
3569
|
-
|
|
3502
|
+
return throwDefaultError({
|
|
3570
3503
|
output,
|
|
3571
3504
|
parsedBody: parsedBody.Error,
|
|
3572
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3573
3505
|
errorCode,
|
|
3574
3506
|
});
|
|
3575
3507
|
}
|
|
@@ -3585,7 +3517,7 @@ const de_StopDBClusterCommand = async (output, context) => {
|
|
|
3585
3517
|
$metadata: deserializeMetadata(output),
|
|
3586
3518
|
...contents,
|
|
3587
3519
|
};
|
|
3588
|
-
return
|
|
3520
|
+
return response;
|
|
3589
3521
|
};
|
|
3590
3522
|
exports.de_StopDBClusterCommand = de_StopDBClusterCommand;
|
|
3591
3523
|
const de_StopDBClusterCommandError = async (output, context) => {
|
|
@@ -3606,10 +3538,9 @@ const de_StopDBClusterCommandError = async (output, context) => {
|
|
|
3606
3538
|
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
3607
3539
|
default:
|
|
3608
3540
|
const parsedBody = parsedOutput.body;
|
|
3609
|
-
|
|
3541
|
+
return throwDefaultError({
|
|
3610
3542
|
output,
|
|
3611
3543
|
parsedBody: parsedBody.Error,
|
|
3612
|
-
exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
|
|
3613
3544
|
errorCode,
|
|
3614
3545
|
});
|
|
3615
3546
|
}
|
|
@@ -9019,6 +8950,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
9019
8950
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
9020
8951
|
};
|
|
9021
8952
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
8953
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(NeptuneServiceException_1.NeptuneServiceException);
|
|
9022
8954
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
9023
8955
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
9024
8956
|
const contents = {
|