@aws-sdk/client-neptune-graph 3.505.0 → 3.507.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/index.js CHANGED
@@ -895,7 +895,7 @@ var se_UpdateGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
895
895
  }, "se_UpdateGraphCommand");
896
896
  var de_CancelImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
897
897
  if (output.statusCode !== 200 && output.statusCode >= 300) {
898
- return de_CancelImportTaskCommandError(output, context);
898
+ return de_CommandError(output, context);
899
899
  }
900
900
  const contents = (0, import_smithy_client.map)({
901
901
  $metadata: deserializeMetadata(output)
@@ -912,40 +912,9 @@ var de_CancelImportTaskCommand = /* @__PURE__ */ __name(async (output, context)
912
912
  Object.assign(contents, doc);
913
913
  return contents;
914
914
  }, "de_CancelImportTaskCommand");
915
- var de_CancelImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
916
- const parsedOutput = {
917
- ...output,
918
- body: await parseErrorBody(output.body, context)
919
- };
920
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
921
- switch (errorCode) {
922
- case "ConflictException":
923
- case "com.amazonaws.neptunegraph#ConflictException":
924
- throw await de_ConflictExceptionRes(parsedOutput, context);
925
- case "InternalServerException":
926
- case "com.amazonaws.neptunegraph#InternalServerException":
927
- throw await de_InternalServerExceptionRes(parsedOutput, context);
928
- case "ResourceNotFoundException":
929
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
930
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
931
- case "ThrottlingException":
932
- case "com.amazonaws.neptunegraph#ThrottlingException":
933
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
934
- case "ValidationException":
935
- case "com.amazonaws.neptunegraph#ValidationException":
936
- throw await de_ValidationExceptionRes(parsedOutput, context);
937
- default:
938
- const parsedBody = parsedOutput.body;
939
- return throwDefaultError({
940
- output,
941
- parsedBody,
942
- errorCode
943
- });
944
- }
945
- }, "de_CancelImportTaskCommandError");
946
915
  var de_CancelQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
947
916
  if (output.statusCode !== 200 && output.statusCode >= 300) {
948
- return de_CancelQueryCommandError(output, context);
917
+ return de_CommandError(output, context);
949
918
  }
950
919
  const contents = (0, import_smithy_client.map)({
951
920
  $metadata: deserializeMetadata(output)
@@ -953,40 +922,9 @@ var de_CancelQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
953
922
  await (0, import_smithy_client.collectBody)(output.body, context);
954
923
  return contents;
955
924
  }, "de_CancelQueryCommand");
956
- var de_CancelQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
957
- const parsedOutput = {
958
- ...output,
959
- body: await parseErrorBody(output.body, context)
960
- };
961
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
962
- switch (errorCode) {
963
- case "AccessDeniedException":
964
- case "com.amazonaws.neptunegraph#AccessDeniedException":
965
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
966
- case "InternalServerException":
967
- case "com.amazonaws.neptunegraph#InternalServerException":
968
- throw await de_InternalServerExceptionRes(parsedOutput, context);
969
- case "ResourceNotFoundException":
970
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
971
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
972
- case "ThrottlingException":
973
- case "com.amazonaws.neptunegraph#ThrottlingException":
974
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
975
- case "ValidationException":
976
- case "com.amazonaws.neptunegraph#ValidationException":
977
- throw await de_ValidationExceptionRes(parsedOutput, context);
978
- default:
979
- const parsedBody = parsedOutput.body;
980
- return throwDefaultError({
981
- output,
982
- parsedBody,
983
- errorCode
984
- });
985
- }
986
- }, "de_CancelQueryCommandError");
987
925
  var de_CreateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
988
926
  if (output.statusCode !== 201 && output.statusCode >= 300) {
989
- return de_CreateGraphCommandError(output, context);
927
+ return de_CommandError(output, context);
990
928
  }
991
929
  const contents = (0, import_smithy_client.map)({
992
930
  $metadata: deserializeMetadata(output)
@@ -1012,40 +950,9 @@ var de_CreateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1012
950
  Object.assign(contents, doc);
1013
951
  return contents;
1014
952
  }, "de_CreateGraphCommand");
1015
- var de_CreateGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1016
- const parsedOutput = {
1017
- ...output,
1018
- body: await parseErrorBody(output.body, context)
1019
- };
1020
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1021
- switch (errorCode) {
1022
- case "ConflictException":
1023
- case "com.amazonaws.neptunegraph#ConflictException":
1024
- throw await de_ConflictExceptionRes(parsedOutput, context);
1025
- case "InternalServerException":
1026
- case "com.amazonaws.neptunegraph#InternalServerException":
1027
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1028
- case "ServiceQuotaExceededException":
1029
- case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
1030
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1031
- case "ThrottlingException":
1032
- case "com.amazonaws.neptunegraph#ThrottlingException":
1033
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1034
- case "ValidationException":
1035
- case "com.amazonaws.neptunegraph#ValidationException":
1036
- throw await de_ValidationExceptionRes(parsedOutput, context);
1037
- default:
1038
- const parsedBody = parsedOutput.body;
1039
- return throwDefaultError({
1040
- output,
1041
- parsedBody,
1042
- errorCode
1043
- });
1044
- }
1045
- }, "de_CreateGraphCommandError");
1046
953
  var de_CreateGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
1047
954
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1048
- return de_CreateGraphSnapshotCommandError(output, context);
955
+ return de_CommandError(output, context);
1049
956
  }
1050
957
  const contents = (0, import_smithy_client.map)({
1051
958
  $metadata: deserializeMetadata(output)
@@ -1063,43 +970,9 @@ var de_CreateGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, contex
1063
970
  Object.assign(contents, doc);
1064
971
  return contents;
1065
972
  }, "de_CreateGraphSnapshotCommand");
1066
- var de_CreateGraphSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
1067
- const parsedOutput = {
1068
- ...output,
1069
- body: await parseErrorBody(output.body, context)
1070
- };
1071
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1072
- switch (errorCode) {
1073
- case "ConflictException":
1074
- case "com.amazonaws.neptunegraph#ConflictException":
1075
- throw await de_ConflictExceptionRes(parsedOutput, context);
1076
- case "InternalServerException":
1077
- case "com.amazonaws.neptunegraph#InternalServerException":
1078
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1079
- case "ResourceNotFoundException":
1080
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1081
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1082
- case "ServiceQuotaExceededException":
1083
- case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
1084
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1085
- case "ThrottlingException":
1086
- case "com.amazonaws.neptunegraph#ThrottlingException":
1087
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1088
- case "ValidationException":
1089
- case "com.amazonaws.neptunegraph#ValidationException":
1090
- throw await de_ValidationExceptionRes(parsedOutput, context);
1091
- default:
1092
- const parsedBody = parsedOutput.body;
1093
- return throwDefaultError({
1094
- output,
1095
- parsedBody,
1096
- errorCode
1097
- });
1098
- }
1099
- }, "de_CreateGraphSnapshotCommandError");
1100
973
  var de_CreateGraphUsingImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1101
974
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1102
- return de_CreateGraphUsingImportTaskCommandError(output, context);
975
+ return de_CommandError(output, context);
1103
976
  }
1104
977
  const contents = (0, import_smithy_client.map)({
1105
978
  $metadata: deserializeMetadata(output)
@@ -1117,40 +990,9 @@ var de_CreateGraphUsingImportTaskCommand = /* @__PURE__ */ __name(async (output,
1117
990
  Object.assign(contents, doc);
1118
991
  return contents;
1119
992
  }, "de_CreateGraphUsingImportTaskCommand");
1120
- var de_CreateGraphUsingImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
1121
- const parsedOutput = {
1122
- ...output,
1123
- body: await parseErrorBody(output.body, context)
1124
- };
1125
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1126
- switch (errorCode) {
1127
- case "ConflictException":
1128
- case "com.amazonaws.neptunegraph#ConflictException":
1129
- throw await de_ConflictExceptionRes(parsedOutput, context);
1130
- case "InternalServerException":
1131
- case "com.amazonaws.neptunegraph#InternalServerException":
1132
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1133
- case "ServiceQuotaExceededException":
1134
- case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
1135
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1136
- case "ThrottlingException":
1137
- case "com.amazonaws.neptunegraph#ThrottlingException":
1138
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1139
- case "ValidationException":
1140
- case "com.amazonaws.neptunegraph#ValidationException":
1141
- throw await de_ValidationExceptionRes(parsedOutput, context);
1142
- default:
1143
- const parsedBody = parsedOutput.body;
1144
- return throwDefaultError({
1145
- output,
1146
- parsedBody,
1147
- errorCode
1148
- });
1149
- }
1150
- }, "de_CreateGraphUsingImportTaskCommandError");
1151
993
  var de_CreatePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
1152
994
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1153
- return de_CreatePrivateGraphEndpointCommandError(output, context);
995
+ return de_CommandError(output, context);
1154
996
  }
1155
997
  const contents = (0, import_smithy_client.map)({
1156
998
  $metadata: deserializeMetadata(output)
@@ -1165,43 +1007,9 @@ var de_CreatePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output,
1165
1007
  Object.assign(contents, doc);
1166
1008
  return contents;
1167
1009
  }, "de_CreatePrivateGraphEndpointCommand");
1168
- var de_CreatePrivateGraphEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
1169
- const parsedOutput = {
1170
- ...output,
1171
- body: await parseErrorBody(output.body, context)
1172
- };
1173
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1174
- switch (errorCode) {
1175
- case "ConflictException":
1176
- case "com.amazonaws.neptunegraph#ConflictException":
1177
- throw await de_ConflictExceptionRes(parsedOutput, context);
1178
- case "InternalServerException":
1179
- case "com.amazonaws.neptunegraph#InternalServerException":
1180
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1181
- case "ResourceNotFoundException":
1182
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1183
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1184
- case "ServiceQuotaExceededException":
1185
- case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
1186
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1187
- case "ThrottlingException":
1188
- case "com.amazonaws.neptunegraph#ThrottlingException":
1189
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1190
- case "ValidationException":
1191
- case "com.amazonaws.neptunegraph#ValidationException":
1192
- throw await de_ValidationExceptionRes(parsedOutput, context);
1193
- default:
1194
- const parsedBody = parsedOutput.body;
1195
- return throwDefaultError({
1196
- output,
1197
- parsedBody,
1198
- errorCode
1199
- });
1200
- }
1201
- }, "de_CreatePrivateGraphEndpointCommandError");
1202
1010
  var de_DeleteGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1203
1011
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1204
- return de_DeleteGraphCommandError(output, context);
1012
+ return de_CommandError(output, context);
1205
1013
  }
1206
1014
  const contents = (0, import_smithy_client.map)({
1207
1015
  $metadata: deserializeMetadata(output)
@@ -1227,40 +1035,9 @@ var de_DeleteGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1227
1035
  Object.assign(contents, doc);
1228
1036
  return contents;
1229
1037
  }, "de_DeleteGraphCommand");
1230
- var de_DeleteGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1231
- const parsedOutput = {
1232
- ...output,
1233
- body: await parseErrorBody(output.body, context)
1234
- };
1235
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1236
- switch (errorCode) {
1237
- case "ConflictException":
1238
- case "com.amazonaws.neptunegraph#ConflictException":
1239
- throw await de_ConflictExceptionRes(parsedOutput, context);
1240
- case "InternalServerException":
1241
- case "com.amazonaws.neptunegraph#InternalServerException":
1242
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1243
- case "ResourceNotFoundException":
1244
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1245
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1246
- case "ThrottlingException":
1247
- case "com.amazonaws.neptunegraph#ThrottlingException":
1248
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1249
- case "ValidationException":
1250
- case "com.amazonaws.neptunegraph#ValidationException":
1251
- throw await de_ValidationExceptionRes(parsedOutput, context);
1252
- default:
1253
- const parsedBody = parsedOutput.body;
1254
- return throwDefaultError({
1255
- output,
1256
- parsedBody,
1257
- errorCode
1258
- });
1259
- }
1260
- }, "de_DeleteGraphCommandError");
1261
1038
  var de_DeleteGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
1262
1039
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1263
- return de_DeleteGraphSnapshotCommandError(output, context);
1040
+ return de_CommandError(output, context);
1264
1041
  }
1265
1042
  const contents = (0, import_smithy_client.map)({
1266
1043
  $metadata: deserializeMetadata(output)
@@ -1278,40 +1055,9 @@ var de_DeleteGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, contex
1278
1055
  Object.assign(contents, doc);
1279
1056
  return contents;
1280
1057
  }, "de_DeleteGraphSnapshotCommand");
1281
- var de_DeleteGraphSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
1282
- const parsedOutput = {
1283
- ...output,
1284
- body: await parseErrorBody(output.body, context)
1285
- };
1286
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1287
- switch (errorCode) {
1288
- case "ConflictException":
1289
- case "com.amazonaws.neptunegraph#ConflictException":
1290
- throw await de_ConflictExceptionRes(parsedOutput, context);
1291
- case "InternalServerException":
1292
- case "com.amazonaws.neptunegraph#InternalServerException":
1293
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1294
- case "ResourceNotFoundException":
1295
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1296
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1297
- case "ThrottlingException":
1298
- case "com.amazonaws.neptunegraph#ThrottlingException":
1299
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1300
- case "ValidationException":
1301
- case "com.amazonaws.neptunegraph#ValidationException":
1302
- throw await de_ValidationExceptionRes(parsedOutput, context);
1303
- default:
1304
- const parsedBody = parsedOutput.body;
1305
- return throwDefaultError({
1306
- output,
1307
- parsedBody,
1308
- errorCode
1309
- });
1310
- }
1311
- }, "de_DeleteGraphSnapshotCommandError");
1312
1058
  var de_DeletePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
1313
1059
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1314
- return de_DeletePrivateGraphEndpointCommandError(output, context);
1060
+ return de_CommandError(output, context);
1315
1061
  }
1316
1062
  const contents = (0, import_smithy_client.map)({
1317
1063
  $metadata: deserializeMetadata(output)
@@ -1326,40 +1072,9 @@ var de_DeletePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output,
1326
1072
  Object.assign(contents, doc);
1327
1073
  return contents;
1328
1074
  }, "de_DeletePrivateGraphEndpointCommand");
1329
- var de_DeletePrivateGraphEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
1330
- const parsedOutput = {
1331
- ...output,
1332
- body: await parseErrorBody(output.body, context)
1333
- };
1334
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1335
- switch (errorCode) {
1336
- case "ConflictException":
1337
- case "com.amazonaws.neptunegraph#ConflictException":
1338
- throw await de_ConflictExceptionRes(parsedOutput, context);
1339
- case "InternalServerException":
1340
- case "com.amazonaws.neptunegraph#InternalServerException":
1341
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1342
- case "ResourceNotFoundException":
1343
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1344
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1345
- case "ThrottlingException":
1346
- case "com.amazonaws.neptunegraph#ThrottlingException":
1347
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1348
- case "ValidationException":
1349
- case "com.amazonaws.neptunegraph#ValidationException":
1350
- throw await de_ValidationExceptionRes(parsedOutput, context);
1351
- default:
1352
- const parsedBody = parsedOutput.body;
1353
- return throwDefaultError({
1354
- output,
1355
- parsedBody,
1356
- errorCode
1357
- });
1358
- }
1359
- }, "de_DeletePrivateGraphEndpointCommandError");
1360
1075
  var de_ExecuteQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
1361
1076
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1362
- return de_ExecuteQueryCommandError(output, context);
1077
+ return de_CommandError(output, context);
1363
1078
  }
1364
1079
  const contents = (0, import_smithy_client.map)({
1365
1080
  $metadata: deserializeMetadata(output)
@@ -1369,43 +1084,9 @@ var de_ExecuteQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
1369
1084
  contents.payload = data;
1370
1085
  return contents;
1371
1086
  }, "de_ExecuteQueryCommand");
1372
- var de_ExecuteQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1373
- const parsedOutput = {
1374
- ...output,
1375
- body: await parseErrorBody(output.body, context)
1376
- };
1377
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1378
- switch (errorCode) {
1379
- case "AccessDeniedException":
1380
- case "com.amazonaws.neptunegraph#AccessDeniedException":
1381
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1382
- case "ConflictException":
1383
- case "com.amazonaws.neptunegraph#ConflictException":
1384
- throw await de_ConflictExceptionRes(parsedOutput, context);
1385
- case "InternalServerException":
1386
- case "com.amazonaws.neptunegraph#InternalServerException":
1387
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1388
- case "ThrottlingException":
1389
- case "com.amazonaws.neptunegraph#ThrottlingException":
1390
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1391
- case "UnprocessableException":
1392
- case "com.amazonaws.neptunegraph#UnprocessableException":
1393
- throw await de_UnprocessableExceptionRes(parsedOutput, context);
1394
- case "ValidationException":
1395
- case "com.amazonaws.neptunegraph#ValidationException":
1396
- throw await de_ValidationExceptionRes(parsedOutput, context);
1397
- default:
1398
- const parsedBody = parsedOutput.body;
1399
- return throwDefaultError({
1400
- output,
1401
- parsedBody,
1402
- errorCode
1403
- });
1404
- }
1405
- }, "de_ExecuteQueryCommandError");
1406
1087
  var de_GetGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1407
1088
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1408
- return de_GetGraphCommandError(output, context);
1089
+ return de_CommandError(output, context);
1409
1090
  }
1410
1091
  const contents = (0, import_smithy_client.map)({
1411
1092
  $metadata: deserializeMetadata(output)
@@ -1431,37 +1112,9 @@ var de_GetGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1431
1112
  Object.assign(contents, doc);
1432
1113
  return contents;
1433
1114
  }, "de_GetGraphCommand");
1434
- var de_GetGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1435
- const parsedOutput = {
1436
- ...output,
1437
- body: await parseErrorBody(output.body, context)
1438
- };
1439
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1440
- switch (errorCode) {
1441
- case "InternalServerException":
1442
- case "com.amazonaws.neptunegraph#InternalServerException":
1443
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1444
- case "ResourceNotFoundException":
1445
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1446
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1447
- case "ThrottlingException":
1448
- case "com.amazonaws.neptunegraph#ThrottlingException":
1449
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1450
- case "ValidationException":
1451
- case "com.amazonaws.neptunegraph#ValidationException":
1452
- throw await de_ValidationExceptionRes(parsedOutput, context);
1453
- default:
1454
- const parsedBody = parsedOutput.body;
1455
- return throwDefaultError({
1456
- output,
1457
- parsedBody,
1458
- errorCode
1459
- });
1460
- }
1461
- }, "de_GetGraphCommandError");
1462
1115
  var de_GetGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
1463
1116
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1464
- return de_GetGraphSnapshotCommandError(output, context);
1117
+ return de_CommandError(output, context);
1465
1118
  }
1466
1119
  const contents = (0, import_smithy_client.map)({
1467
1120
  $metadata: deserializeMetadata(output)
@@ -1479,37 +1132,9 @@ var de_GetGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, context)
1479
1132
  Object.assign(contents, doc);
1480
1133
  return contents;
1481
1134
  }, "de_GetGraphSnapshotCommand");
1482
- var de_GetGraphSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
1483
- const parsedOutput = {
1484
- ...output,
1485
- body: await parseErrorBody(output.body, context)
1486
- };
1487
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1488
- switch (errorCode) {
1489
- case "InternalServerException":
1490
- case "com.amazonaws.neptunegraph#InternalServerException":
1491
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1492
- case "ResourceNotFoundException":
1493
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1494
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1495
- case "ThrottlingException":
1496
- case "com.amazonaws.neptunegraph#ThrottlingException":
1497
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1498
- case "ValidationException":
1499
- case "com.amazonaws.neptunegraph#ValidationException":
1500
- throw await de_ValidationExceptionRes(parsedOutput, context);
1501
- default:
1502
- const parsedBody = parsedOutput.body;
1503
- return throwDefaultError({
1504
- output,
1505
- parsedBody,
1506
- errorCode
1507
- });
1508
- }
1509
- }, "de_GetGraphSnapshotCommandError");
1510
1135
  var de_GetGraphSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
1511
1136
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1512
- return de_GetGraphSummaryCommandError(output, context);
1137
+ return de_CommandError(output, context);
1513
1138
  }
1514
1139
  const contents = (0, import_smithy_client.map)({
1515
1140
  $metadata: deserializeMetadata(output)
@@ -1523,40 +1148,9 @@ var de_GetGraphSummaryCommand = /* @__PURE__ */ __name(async (output, context) =
1523
1148
  Object.assign(contents, doc);
1524
1149
  return contents;
1525
1150
  }, "de_GetGraphSummaryCommand");
1526
- var de_GetGraphSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1527
- const parsedOutput = {
1528
- ...output,
1529
- body: await parseErrorBody(output.body, context)
1530
- };
1531
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1532
- switch (errorCode) {
1533
- case "AccessDeniedException":
1534
- case "com.amazonaws.neptunegraph#AccessDeniedException":
1535
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1536
- case "InternalServerException":
1537
- case "com.amazonaws.neptunegraph#InternalServerException":
1538
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1539
- case "ResourceNotFoundException":
1540
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1541
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1542
- case "ThrottlingException":
1543
- case "com.amazonaws.neptunegraph#ThrottlingException":
1544
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1545
- case "ValidationException":
1546
- case "com.amazonaws.neptunegraph#ValidationException":
1547
- throw await de_ValidationExceptionRes(parsedOutput, context);
1548
- default:
1549
- const parsedBody = parsedOutput.body;
1550
- return throwDefaultError({
1551
- output,
1552
- parsedBody,
1553
- errorCode
1554
- });
1555
- }
1556
- }, "de_GetGraphSummaryCommandError");
1557
1151
  var de_GetImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1558
1152
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1559
- return de_GetImportTaskCommandError(output, context);
1153
+ return de_CommandError(output, context);
1560
1154
  }
1561
1155
  const contents = (0, import_smithy_client.map)({
1562
1156
  $metadata: deserializeMetadata(output)
@@ -1577,37 +1171,9 @@ var de_GetImportTaskCommand = /* @__PURE__ */ __name(async (output, context) =>
1577
1171
  Object.assign(contents, doc);
1578
1172
  return contents;
1579
1173
  }, "de_GetImportTaskCommand");
1580
- var de_GetImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
1581
- const parsedOutput = {
1582
- ...output,
1583
- body: await parseErrorBody(output.body, context)
1584
- };
1585
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1586
- switch (errorCode) {
1587
- case "InternalServerException":
1588
- case "com.amazonaws.neptunegraph#InternalServerException":
1589
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1590
- case "ResourceNotFoundException":
1591
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1592
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1593
- case "ThrottlingException":
1594
- case "com.amazonaws.neptunegraph#ThrottlingException":
1595
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1596
- case "ValidationException":
1597
- case "com.amazonaws.neptunegraph#ValidationException":
1598
- throw await de_ValidationExceptionRes(parsedOutput, context);
1599
- default:
1600
- const parsedBody = parsedOutput.body;
1601
- return throwDefaultError({
1602
- output,
1603
- parsedBody,
1604
- errorCode
1605
- });
1606
- }
1607
- }, "de_GetImportTaskCommandError");
1608
1174
  var de_GetPrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
1609
1175
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1610
- return de_GetPrivateGraphEndpointCommandError(output, context);
1176
+ return de_CommandError(output, context);
1611
1177
  }
1612
1178
  const contents = (0, import_smithy_client.map)({
1613
1179
  $metadata: deserializeMetadata(output)
@@ -1622,37 +1188,9 @@ var de_GetPrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output, co
1622
1188
  Object.assign(contents, doc);
1623
1189
  return contents;
1624
1190
  }, "de_GetPrivateGraphEndpointCommand");
1625
- var de_GetPrivateGraphEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
1626
- const parsedOutput = {
1627
- ...output,
1628
- body: await parseErrorBody(output.body, context)
1629
- };
1630
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1631
- switch (errorCode) {
1632
- case "InternalServerException":
1633
- case "com.amazonaws.neptunegraph#InternalServerException":
1634
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1635
- case "ResourceNotFoundException":
1636
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1637
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1638
- case "ThrottlingException":
1639
- case "com.amazonaws.neptunegraph#ThrottlingException":
1640
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1641
- case "ValidationException":
1642
- case "com.amazonaws.neptunegraph#ValidationException":
1643
- throw await de_ValidationExceptionRes(parsedOutput, context);
1644
- default:
1645
- const parsedBody = parsedOutput.body;
1646
- return throwDefaultError({
1647
- output,
1648
- parsedBody,
1649
- errorCode
1650
- });
1651
- }
1652
- }, "de_GetPrivateGraphEndpointCommandError");
1653
1191
  var de_GetQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
1654
1192
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1655
- return de_GetQueryCommandError(output, context);
1193
+ return de_CommandError(output, context);
1656
1194
  }
1657
1195
  const contents = (0, import_smithy_client.map)({
1658
1196
  $metadata: deserializeMetadata(output)
@@ -1668,40 +1206,9 @@ var de_GetQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
1668
1206
  Object.assign(contents, doc);
1669
1207
  return contents;
1670
1208
  }, "de_GetQueryCommand");
1671
- var de_GetQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1672
- const parsedOutput = {
1673
- ...output,
1674
- body: await parseErrorBody(output.body, context)
1675
- };
1676
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1677
- switch (errorCode) {
1678
- case "AccessDeniedException":
1679
- case "com.amazonaws.neptunegraph#AccessDeniedException":
1680
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1681
- case "InternalServerException":
1682
- case "com.amazonaws.neptunegraph#InternalServerException":
1683
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1684
- case "ResourceNotFoundException":
1685
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1686
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1687
- case "ThrottlingException":
1688
- case "com.amazonaws.neptunegraph#ThrottlingException":
1689
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1690
- case "ValidationException":
1691
- case "com.amazonaws.neptunegraph#ValidationException":
1692
- throw await de_ValidationExceptionRes(parsedOutput, context);
1693
- default:
1694
- const parsedBody = parsedOutput.body;
1695
- return throwDefaultError({
1696
- output,
1697
- parsedBody,
1698
- errorCode
1699
- });
1700
- }
1701
- }, "de_GetQueryCommandError");
1702
1209
  var de_ListGraphsCommand = /* @__PURE__ */ __name(async (output, context) => {
1703
1210
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1704
- return de_ListGraphsCommandError(output, context);
1211
+ return de_CommandError(output, context);
1705
1212
  }
1706
1213
  const contents = (0, import_smithy_client.map)({
1707
1214
  $metadata: deserializeMetadata(output)
@@ -1710,38 +1217,13 @@ var de_ListGraphsCommand = /* @__PURE__ */ __name(async (output, context) => {
1710
1217
  const doc = (0, import_smithy_client.take)(data, {
1711
1218
  graphs: import_smithy_client._json,
1712
1219
  nextToken: import_smithy_client.expectString
1713
- });
1714
- Object.assign(contents, doc);
1715
- return contents;
1716
- }, "de_ListGraphsCommand");
1717
- var de_ListGraphsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1718
- const parsedOutput = {
1719
- ...output,
1720
- body: await parseErrorBody(output.body, context)
1721
- };
1722
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1723
- switch (errorCode) {
1724
- case "InternalServerException":
1725
- case "com.amazonaws.neptunegraph#InternalServerException":
1726
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1727
- case "ResourceNotFoundException":
1728
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1729
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1730
- case "ThrottlingException":
1731
- case "com.amazonaws.neptunegraph#ThrottlingException":
1732
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1733
- default:
1734
- const parsedBody = parsedOutput.body;
1735
- return throwDefaultError({
1736
- output,
1737
- parsedBody,
1738
- errorCode
1739
- });
1740
- }
1741
- }, "de_ListGraphsCommandError");
1220
+ });
1221
+ Object.assign(contents, doc);
1222
+ return contents;
1223
+ }, "de_ListGraphsCommand");
1742
1224
  var de_ListGraphSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
1743
1225
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1744
- return de_ListGraphSnapshotsCommandError(output, context);
1226
+ return de_CommandError(output, context);
1745
1227
  }
1746
1228
  const contents = (0, import_smithy_client.map)({
1747
1229
  $metadata: deserializeMetadata(output)
@@ -1754,37 +1236,9 @@ var de_ListGraphSnapshotsCommand = /* @__PURE__ */ __name(async (output, context
1754
1236
  Object.assign(contents, doc);
1755
1237
  return contents;
1756
1238
  }, "de_ListGraphSnapshotsCommand");
1757
- var de_ListGraphSnapshotsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1758
- const parsedOutput = {
1759
- ...output,
1760
- body: await parseErrorBody(output.body, context)
1761
- };
1762
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1763
- switch (errorCode) {
1764
- case "InternalServerException":
1765
- case "com.amazonaws.neptunegraph#InternalServerException":
1766
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1767
- case "ResourceNotFoundException":
1768
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1769
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1770
- case "ThrottlingException":
1771
- case "com.amazonaws.neptunegraph#ThrottlingException":
1772
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1773
- case "ValidationException":
1774
- case "com.amazonaws.neptunegraph#ValidationException":
1775
- throw await de_ValidationExceptionRes(parsedOutput, context);
1776
- default:
1777
- const parsedBody = parsedOutput.body;
1778
- return throwDefaultError({
1779
- output,
1780
- parsedBody,
1781
- errorCode
1782
- });
1783
- }
1784
- }, "de_ListGraphSnapshotsCommandError");
1785
1239
  var de_ListImportTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
1786
1240
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1787
- return de_ListImportTasksCommandError(output, context);
1241
+ return de_CommandError(output, context);
1788
1242
  }
1789
1243
  const contents = (0, import_smithy_client.map)({
1790
1244
  $metadata: deserializeMetadata(output)
@@ -1797,37 +1251,9 @@ var de_ListImportTasksCommand = /* @__PURE__ */ __name(async (output, context) =
1797
1251
  Object.assign(contents, doc);
1798
1252
  return contents;
1799
1253
  }, "de_ListImportTasksCommand");
1800
- var de_ListImportTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
1801
- const parsedOutput = {
1802
- ...output,
1803
- body: await parseErrorBody(output.body, context)
1804
- };
1805
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1806
- switch (errorCode) {
1807
- case "InternalServerException":
1808
- case "com.amazonaws.neptunegraph#InternalServerException":
1809
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1810
- case "ResourceNotFoundException":
1811
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1812
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1813
- case "ThrottlingException":
1814
- case "com.amazonaws.neptunegraph#ThrottlingException":
1815
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1816
- case "ValidationException":
1817
- case "com.amazonaws.neptunegraph#ValidationException":
1818
- throw await de_ValidationExceptionRes(parsedOutput, context);
1819
- default:
1820
- const parsedBody = parsedOutput.body;
1821
- return throwDefaultError({
1822
- output,
1823
- parsedBody,
1824
- errorCode
1825
- });
1826
- }
1827
- }, "de_ListImportTasksCommandError");
1828
1254
  var de_ListPrivateGraphEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
1829
1255
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1830
- return de_ListPrivateGraphEndpointsCommandError(output, context);
1256
+ return de_CommandError(output, context);
1831
1257
  }
1832
1258
  const contents = (0, import_smithy_client.map)({
1833
1259
  $metadata: deserializeMetadata(output)
@@ -1840,37 +1266,9 @@ var de_ListPrivateGraphEndpointsCommand = /* @__PURE__ */ __name(async (output,
1840
1266
  Object.assign(contents, doc);
1841
1267
  return contents;
1842
1268
  }, "de_ListPrivateGraphEndpointsCommand");
1843
- var de_ListPrivateGraphEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1844
- const parsedOutput = {
1845
- ...output,
1846
- body: await parseErrorBody(output.body, context)
1847
- };
1848
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1849
- switch (errorCode) {
1850
- case "InternalServerException":
1851
- case "com.amazonaws.neptunegraph#InternalServerException":
1852
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1853
- case "ResourceNotFoundException":
1854
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1855
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1856
- case "ThrottlingException":
1857
- case "com.amazonaws.neptunegraph#ThrottlingException":
1858
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1859
- case "ValidationException":
1860
- case "com.amazonaws.neptunegraph#ValidationException":
1861
- throw await de_ValidationExceptionRes(parsedOutput, context);
1862
- default:
1863
- const parsedBody = parsedOutput.body;
1864
- return throwDefaultError({
1865
- output,
1866
- parsedBody,
1867
- errorCode
1868
- });
1869
- }
1870
- }, "de_ListPrivateGraphEndpointsCommandError");
1871
1269
  var de_ListQueriesCommand = /* @__PURE__ */ __name(async (output, context) => {
1872
1270
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1873
- return de_ListQueriesCommandError(output, context);
1271
+ return de_CommandError(output, context);
1874
1272
  }
1875
1273
  const contents = (0, import_smithy_client.map)({
1876
1274
  $metadata: deserializeMetadata(output)
@@ -1882,37 +1280,9 @@ var de_ListQueriesCommand = /* @__PURE__ */ __name(async (output, context) => {
1882
1280
  Object.assign(contents, doc);
1883
1281
  return contents;
1884
1282
  }, "de_ListQueriesCommand");
1885
- var de_ListQueriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1886
- const parsedOutput = {
1887
- ...output,
1888
- body: await parseErrorBody(output.body, context)
1889
- };
1890
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1891
- switch (errorCode) {
1892
- case "AccessDeniedException":
1893
- case "com.amazonaws.neptunegraph#AccessDeniedException":
1894
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1895
- case "InternalServerException":
1896
- case "com.amazonaws.neptunegraph#InternalServerException":
1897
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1898
- case "ThrottlingException":
1899
- case "com.amazonaws.neptunegraph#ThrottlingException":
1900
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1901
- case "ValidationException":
1902
- case "com.amazonaws.neptunegraph#ValidationException":
1903
- throw await de_ValidationExceptionRes(parsedOutput, context);
1904
- default:
1905
- const parsedBody = parsedOutput.body;
1906
- return throwDefaultError({
1907
- output,
1908
- parsedBody,
1909
- errorCode
1910
- });
1911
- }
1912
- }, "de_ListQueriesCommandError");
1913
1283
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1914
1284
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1915
- return de_ListTagsForResourceCommandError(output, context);
1285
+ return de_CommandError(output, context);
1916
1286
  }
1917
1287
  const contents = (0, import_smithy_client.map)({
1918
1288
  $metadata: deserializeMetadata(output)
@@ -1924,37 +1294,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1924
1294
  Object.assign(contents, doc);
1925
1295
  return contents;
1926
1296
  }, "de_ListTagsForResourceCommand");
1927
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1928
- const parsedOutput = {
1929
- ...output,
1930
- body: await parseErrorBody(output.body, context)
1931
- };
1932
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1933
- switch (errorCode) {
1934
- case "InternalServerException":
1935
- case "com.amazonaws.neptunegraph#InternalServerException":
1936
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1937
- case "ResourceNotFoundException":
1938
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1939
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1940
- case "ThrottlingException":
1941
- case "com.amazonaws.neptunegraph#ThrottlingException":
1942
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1943
- case "ValidationException":
1944
- case "com.amazonaws.neptunegraph#ValidationException":
1945
- throw await de_ValidationExceptionRes(parsedOutput, context);
1946
- default:
1947
- const parsedBody = parsedOutput.body;
1948
- return throwDefaultError({
1949
- output,
1950
- parsedBody,
1951
- errorCode
1952
- });
1953
- }
1954
- }, "de_ListTagsForResourceCommandError");
1955
1297
  var de_ResetGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1956
1298
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1957
- return de_ResetGraphCommandError(output, context);
1299
+ return de_CommandError(output, context);
1958
1300
  }
1959
1301
  const contents = (0, import_smithy_client.map)({
1960
1302
  $metadata: deserializeMetadata(output)
@@ -1980,40 +1322,9 @@ var de_ResetGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1980
1322
  Object.assign(contents, doc);
1981
1323
  return contents;
1982
1324
  }, "de_ResetGraphCommand");
1983
- var de_ResetGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1984
- const parsedOutput = {
1985
- ...output,
1986
- body: await parseErrorBody(output.body, context)
1987
- };
1988
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1989
- switch (errorCode) {
1990
- case "ConflictException":
1991
- case "com.amazonaws.neptunegraph#ConflictException":
1992
- throw await de_ConflictExceptionRes(parsedOutput, context);
1993
- case "InternalServerException":
1994
- case "com.amazonaws.neptunegraph#InternalServerException":
1995
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1996
- case "ResourceNotFoundException":
1997
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1998
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1999
- case "ThrottlingException":
2000
- case "com.amazonaws.neptunegraph#ThrottlingException":
2001
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2002
- case "ValidationException":
2003
- case "com.amazonaws.neptunegraph#ValidationException":
2004
- throw await de_ValidationExceptionRes(parsedOutput, context);
2005
- default:
2006
- const parsedBody = parsedOutput.body;
2007
- return throwDefaultError({
2008
- output,
2009
- parsedBody,
2010
- errorCode
2011
- });
2012
- }
2013
- }, "de_ResetGraphCommandError");
2014
1325
  var de_RestoreGraphFromSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
2015
1326
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2016
- return de_RestoreGraphFromSnapshotCommandError(output, context);
1327
+ return de_CommandError(output, context);
2017
1328
  }
2018
1329
  const contents = (0, import_smithy_client.map)({
2019
1330
  $metadata: deserializeMetadata(output)
@@ -2039,43 +1350,9 @@ var de_RestoreGraphFromSnapshotCommand = /* @__PURE__ */ __name(async (output, c
2039
1350
  Object.assign(contents, doc);
2040
1351
  return contents;
2041
1352
  }, "de_RestoreGraphFromSnapshotCommand");
2042
- var de_RestoreGraphFromSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
2043
- const parsedOutput = {
2044
- ...output,
2045
- body: await parseErrorBody(output.body, context)
2046
- };
2047
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2048
- switch (errorCode) {
2049
- case "ConflictException":
2050
- case "com.amazonaws.neptunegraph#ConflictException":
2051
- throw await de_ConflictExceptionRes(parsedOutput, context);
2052
- case "InternalServerException":
2053
- case "com.amazonaws.neptunegraph#InternalServerException":
2054
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2055
- case "ResourceNotFoundException":
2056
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
2057
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2058
- case "ServiceQuotaExceededException":
2059
- case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
2060
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2061
- case "ThrottlingException":
2062
- case "com.amazonaws.neptunegraph#ThrottlingException":
2063
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2064
- case "ValidationException":
2065
- case "com.amazonaws.neptunegraph#ValidationException":
2066
- throw await de_ValidationExceptionRes(parsedOutput, context);
2067
- default:
2068
- const parsedBody = parsedOutput.body;
2069
- return throwDefaultError({
2070
- output,
2071
- parsedBody,
2072
- errorCode
2073
- });
2074
- }
2075
- }, "de_RestoreGraphFromSnapshotCommandError");
2076
1353
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2077
1354
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2078
- return de_TagResourceCommandError(output, context);
1355
+ return de_CommandError(output, context);
2079
1356
  }
2080
1357
  const contents = (0, import_smithy_client.map)({
2081
1358
  $metadata: deserializeMetadata(output)
@@ -2083,37 +1360,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2083
1360
  await (0, import_smithy_client.collectBody)(output.body, context);
2084
1361
  return contents;
2085
1362
  }, "de_TagResourceCommand");
2086
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2087
- const parsedOutput = {
2088
- ...output,
2089
- body: await parseErrorBody(output.body, context)
2090
- };
2091
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2092
- switch (errorCode) {
2093
- case "InternalServerException":
2094
- case "com.amazonaws.neptunegraph#InternalServerException":
2095
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2096
- case "ResourceNotFoundException":
2097
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
2098
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2099
- case "ThrottlingException":
2100
- case "com.amazonaws.neptunegraph#ThrottlingException":
2101
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2102
- case "ValidationException":
2103
- case "com.amazonaws.neptunegraph#ValidationException":
2104
- throw await de_ValidationExceptionRes(parsedOutput, context);
2105
- default:
2106
- const parsedBody = parsedOutput.body;
2107
- return throwDefaultError({
2108
- output,
2109
- parsedBody,
2110
- errorCode
2111
- });
2112
- }
2113
- }, "de_TagResourceCommandError");
2114
1363
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2115
1364
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2116
- return de_UntagResourceCommandError(output, context);
1365
+ return de_CommandError(output, context);
2117
1366
  }
2118
1367
  const contents = (0, import_smithy_client.map)({
2119
1368
  $metadata: deserializeMetadata(output)
@@ -2121,37 +1370,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
2121
1370
  await (0, import_smithy_client.collectBody)(output.body, context);
2122
1371
  return contents;
2123
1372
  }, "de_UntagResourceCommand");
2124
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2125
- const parsedOutput = {
2126
- ...output,
2127
- body: await parseErrorBody(output.body, context)
2128
- };
2129
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2130
- switch (errorCode) {
2131
- case "InternalServerException":
2132
- case "com.amazonaws.neptunegraph#InternalServerException":
2133
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2134
- case "ResourceNotFoundException":
2135
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
2136
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2137
- case "ThrottlingException":
2138
- case "com.amazonaws.neptunegraph#ThrottlingException":
2139
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2140
- case "ValidationException":
2141
- case "com.amazonaws.neptunegraph#ValidationException":
2142
- throw await de_ValidationExceptionRes(parsedOutput, context);
2143
- default:
2144
- const parsedBody = parsedOutput.body;
2145
- return throwDefaultError({
2146
- output,
2147
- parsedBody,
2148
- errorCode
2149
- });
2150
- }
2151
- }, "de_UntagResourceCommandError");
2152
1373
  var de_UpdateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
2153
1374
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2154
- return de_UpdateGraphCommandError(output, context);
1375
+ return de_CommandError(output, context);
2155
1376
  }
2156
1377
  const contents = (0, import_smithy_client.map)({
2157
1378
  $metadata: deserializeMetadata(output)
@@ -2177,7 +1398,7 @@ var de_UpdateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
2177
1398
  Object.assign(contents, doc);
2178
1399
  return contents;
2179
1400
  }, "de_UpdateGraphCommand");
2180
- var de_UpdateGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1401
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2181
1402
  const parsedOutput = {
2182
1403
  ...output,
2183
1404
  body: await parseErrorBody(output.body, context)
@@ -2199,6 +1420,15 @@ var de_UpdateGraphCommandError = /* @__PURE__ */ __name(async (output, context)
2199
1420
  case "ValidationException":
2200
1421
  case "com.amazonaws.neptunegraph#ValidationException":
2201
1422
  throw await de_ValidationExceptionRes(parsedOutput, context);
1423
+ case "AccessDeniedException":
1424
+ case "com.amazonaws.neptunegraph#AccessDeniedException":
1425
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1426
+ case "ServiceQuotaExceededException":
1427
+ case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
1428
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1429
+ case "UnprocessableException":
1430
+ case "com.amazonaws.neptunegraph#UnprocessableException":
1431
+ throw await de_UnprocessableExceptionRes(parsedOutput, context);
2202
1432
  default:
2203
1433
  const parsedBody = parsedOutput.body;
2204
1434
  return throwDefaultError({
@@ -2207,7 +1437,7 @@ var de_UpdateGraphCommandError = /* @__PURE__ */ __name(async (output, context)
2207
1437
  errorCode
2208
1438
  });
2209
1439
  }
2210
- }, "de_UpdateGraphCommandError");
1440
+ }, "de_CommandError");
2211
1441
  var throwDefaultError = (0, import_smithy_client.withBaseException)(NeptuneGraphServiceException);
2212
1442
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2213
1443
  const contents = (0, import_smithy_client.map)({});