@aws-sdk/client-detective 3.504.0 → 3.509.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
@@ -898,7 +898,7 @@ var se_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (in
898
898
  }, "se_UpdateOrganizationConfigurationCommand");
899
899
  var de_AcceptInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
900
900
  if (output.statusCode !== 200 && output.statusCode >= 300) {
901
- return de_AcceptInvitationCommandError(output, context);
901
+ return de_CommandError(output, context);
902
902
  }
903
903
  const contents = (0, import_smithy_client.map)({
904
904
  $metadata: deserializeMetadata(output)
@@ -906,40 +906,9 @@ var de_AcceptInvitationCommand = /* @__PURE__ */ __name(async (output, context)
906
906
  await (0, import_smithy_client.collectBody)(output.body, context);
907
907
  return contents;
908
908
  }, "de_AcceptInvitationCommand");
909
- var de_AcceptInvitationCommandError = /* @__PURE__ */ __name(async (output, context) => {
910
- const parsedOutput = {
911
- ...output,
912
- body: await parseErrorBody(output.body, context)
913
- };
914
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
915
- switch (errorCode) {
916
- case "AccessDeniedException":
917
- case "com.amazonaws.detective#AccessDeniedException":
918
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
919
- case "ConflictException":
920
- case "com.amazonaws.detective#ConflictException":
921
- throw await de_ConflictExceptionRes(parsedOutput, context);
922
- case "InternalServerException":
923
- case "com.amazonaws.detective#InternalServerException":
924
- throw await de_InternalServerExceptionRes(parsedOutput, context);
925
- case "ResourceNotFoundException":
926
- case "com.amazonaws.detective#ResourceNotFoundException":
927
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
928
- case "ValidationException":
929
- case "com.amazonaws.detective#ValidationException":
930
- throw await de_ValidationExceptionRes(parsedOutput, context);
931
- default:
932
- const parsedBody = parsedOutput.body;
933
- return throwDefaultError({
934
- output,
935
- parsedBody,
936
- errorCode
937
- });
938
- }
939
- }, "de_AcceptInvitationCommandError");
940
909
  var de_BatchGetGraphMemberDatasourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
941
910
  if (output.statusCode !== 200 && output.statusCode >= 300) {
942
- return de_BatchGetGraphMemberDatasourcesCommandError(output, context);
911
+ return de_CommandError(output, context);
943
912
  }
944
913
  const contents = (0, import_smithy_client.map)({
945
914
  $metadata: deserializeMetadata(output)
@@ -952,37 +921,9 @@ var de_BatchGetGraphMemberDatasourcesCommand = /* @__PURE__ */ __name(async (out
952
921
  Object.assign(contents, doc);
953
922
  return contents;
954
923
  }, "de_BatchGetGraphMemberDatasourcesCommand");
955
- var de_BatchGetGraphMemberDatasourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
956
- const parsedOutput = {
957
- ...output,
958
- body: await parseErrorBody(output.body, context)
959
- };
960
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
961
- switch (errorCode) {
962
- case "AccessDeniedException":
963
- case "com.amazonaws.detective#AccessDeniedException":
964
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
965
- case "InternalServerException":
966
- case "com.amazonaws.detective#InternalServerException":
967
- throw await de_InternalServerExceptionRes(parsedOutput, context);
968
- case "ResourceNotFoundException":
969
- case "com.amazonaws.detective#ResourceNotFoundException":
970
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
971
- case "ValidationException":
972
- case "com.amazonaws.detective#ValidationException":
973
- throw await de_ValidationExceptionRes(parsedOutput, context);
974
- default:
975
- const parsedBody = parsedOutput.body;
976
- return throwDefaultError({
977
- output,
978
- parsedBody,
979
- errorCode
980
- });
981
- }
982
- }, "de_BatchGetGraphMemberDatasourcesCommandError");
983
924
  var de_BatchGetMembershipDatasourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
984
925
  if (output.statusCode !== 200 && output.statusCode >= 300) {
985
- return de_BatchGetMembershipDatasourcesCommandError(output, context);
926
+ return de_CommandError(output, context);
986
927
  }
987
928
  const contents = (0, import_smithy_client.map)({
988
929
  $metadata: deserializeMetadata(output)
@@ -995,37 +936,9 @@ var de_BatchGetMembershipDatasourcesCommand = /* @__PURE__ */ __name(async (outp
995
936
  Object.assign(contents, doc);
996
937
  return contents;
997
938
  }, "de_BatchGetMembershipDatasourcesCommand");
998
- var de_BatchGetMembershipDatasourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
999
- const parsedOutput = {
1000
- ...output,
1001
- body: await parseErrorBody(output.body, context)
1002
- };
1003
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1004
- switch (errorCode) {
1005
- case "AccessDeniedException":
1006
- case "com.amazonaws.detective#AccessDeniedException":
1007
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1008
- case "InternalServerException":
1009
- case "com.amazonaws.detective#InternalServerException":
1010
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1011
- case "ResourceNotFoundException":
1012
- case "com.amazonaws.detective#ResourceNotFoundException":
1013
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1014
- case "ValidationException":
1015
- case "com.amazonaws.detective#ValidationException":
1016
- throw await de_ValidationExceptionRes(parsedOutput, context);
1017
- default:
1018
- const parsedBody = parsedOutput.body;
1019
- return throwDefaultError({
1020
- output,
1021
- parsedBody,
1022
- errorCode
1023
- });
1024
- }
1025
- }, "de_BatchGetMembershipDatasourcesCommandError");
1026
939
  var de_CreateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1027
940
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1028
- return de_CreateGraphCommandError(output, context);
941
+ return de_CommandError(output, context);
1029
942
  }
1030
943
  const contents = (0, import_smithy_client.map)({
1031
944
  $metadata: deserializeMetadata(output)
@@ -1037,37 +950,9 @@ var de_CreateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1037
950
  Object.assign(contents, doc);
1038
951
  return contents;
1039
952
  }, "de_CreateGraphCommand");
1040
- var de_CreateGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1041
- const parsedOutput = {
1042
- ...output,
1043
- body: await parseErrorBody(output.body, context)
1044
- };
1045
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1046
- switch (errorCode) {
1047
- case "AccessDeniedException":
1048
- case "com.amazonaws.detective#AccessDeniedException":
1049
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1050
- case "ConflictException":
1051
- case "com.amazonaws.detective#ConflictException":
1052
- throw await de_ConflictExceptionRes(parsedOutput, context);
1053
- case "InternalServerException":
1054
- case "com.amazonaws.detective#InternalServerException":
1055
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1056
- case "ServiceQuotaExceededException":
1057
- case "com.amazonaws.detective#ServiceQuotaExceededException":
1058
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1059
- default:
1060
- const parsedBody = parsedOutput.body;
1061
- return throwDefaultError({
1062
- output,
1063
- parsedBody,
1064
- errorCode
1065
- });
1066
- }
1067
- }, "de_CreateGraphCommandError");
1068
953
  var de_CreateMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1069
954
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1070
- return de_CreateMembersCommandError(output, context);
955
+ return de_CommandError(output, context);
1071
956
  }
1072
957
  const contents = (0, import_smithy_client.map)({
1073
958
  $metadata: deserializeMetadata(output)
@@ -1080,40 +965,9 @@ var de_CreateMembersCommand = /* @__PURE__ */ __name(async (output, context) =>
1080
965
  Object.assign(contents, doc);
1081
966
  return contents;
1082
967
  }, "de_CreateMembersCommand");
1083
- var de_CreateMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1084
- const parsedOutput = {
1085
- ...output,
1086
- body: await parseErrorBody(output.body, context)
1087
- };
1088
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1089
- switch (errorCode) {
1090
- case "AccessDeniedException":
1091
- case "com.amazonaws.detective#AccessDeniedException":
1092
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1093
- case "InternalServerException":
1094
- case "com.amazonaws.detective#InternalServerException":
1095
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1096
- case "ResourceNotFoundException":
1097
- case "com.amazonaws.detective#ResourceNotFoundException":
1098
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1099
- case "ServiceQuotaExceededException":
1100
- case "com.amazonaws.detective#ServiceQuotaExceededException":
1101
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1102
- case "ValidationException":
1103
- case "com.amazonaws.detective#ValidationException":
1104
- throw await de_ValidationExceptionRes(parsedOutput, context);
1105
- default:
1106
- const parsedBody = parsedOutput.body;
1107
- return throwDefaultError({
1108
- output,
1109
- parsedBody,
1110
- errorCode
1111
- });
1112
- }
1113
- }, "de_CreateMembersCommandError");
1114
968
  var de_DeleteGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1115
969
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1116
- return de_DeleteGraphCommandError(output, context);
970
+ return de_CommandError(output, context);
1117
971
  }
1118
972
  const contents = (0, import_smithy_client.map)({
1119
973
  $metadata: deserializeMetadata(output)
@@ -1121,37 +975,9 @@ var de_DeleteGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1121
975
  await (0, import_smithy_client.collectBody)(output.body, context);
1122
976
  return contents;
1123
977
  }, "de_DeleteGraphCommand");
1124
- var de_DeleteGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1125
- const parsedOutput = {
1126
- ...output,
1127
- body: await parseErrorBody(output.body, context)
1128
- };
1129
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1130
- switch (errorCode) {
1131
- case "AccessDeniedException":
1132
- case "com.amazonaws.detective#AccessDeniedException":
1133
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1134
- case "InternalServerException":
1135
- case "com.amazonaws.detective#InternalServerException":
1136
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1137
- case "ResourceNotFoundException":
1138
- case "com.amazonaws.detective#ResourceNotFoundException":
1139
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1140
- case "ValidationException":
1141
- case "com.amazonaws.detective#ValidationException":
1142
- throw await de_ValidationExceptionRes(parsedOutput, context);
1143
- default:
1144
- const parsedBody = parsedOutput.body;
1145
- return throwDefaultError({
1146
- output,
1147
- parsedBody,
1148
- errorCode
1149
- });
1150
- }
1151
- }, "de_DeleteGraphCommandError");
1152
978
  var de_DeleteMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1153
979
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1154
- return de_DeleteMembersCommandError(output, context);
980
+ return de_CommandError(output, context);
1155
981
  }
1156
982
  const contents = (0, import_smithy_client.map)({
1157
983
  $metadata: deserializeMetadata(output)
@@ -1164,40 +990,9 @@ var de_DeleteMembersCommand = /* @__PURE__ */ __name(async (output, context) =>
1164
990
  Object.assign(contents, doc);
1165
991
  return contents;
1166
992
  }, "de_DeleteMembersCommand");
1167
- var de_DeleteMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1168
- const parsedOutput = {
1169
- ...output,
1170
- body: await parseErrorBody(output.body, context)
1171
- };
1172
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1173
- switch (errorCode) {
1174
- case "AccessDeniedException":
1175
- case "com.amazonaws.detective#AccessDeniedException":
1176
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1177
- case "ConflictException":
1178
- case "com.amazonaws.detective#ConflictException":
1179
- throw await de_ConflictExceptionRes(parsedOutput, context);
1180
- case "InternalServerException":
1181
- case "com.amazonaws.detective#InternalServerException":
1182
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1183
- case "ResourceNotFoundException":
1184
- case "com.amazonaws.detective#ResourceNotFoundException":
1185
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1186
- case "ValidationException":
1187
- case "com.amazonaws.detective#ValidationException":
1188
- throw await de_ValidationExceptionRes(parsedOutput, context);
1189
- default:
1190
- const parsedBody = parsedOutput.body;
1191
- return throwDefaultError({
1192
- output,
1193
- parsedBody,
1194
- errorCode
1195
- });
1196
- }
1197
- }, "de_DeleteMembersCommandError");
1198
993
  var de_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1199
994
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1200
- return de_DescribeOrganizationConfigurationCommandError(output, context);
995
+ return de_CommandError(output, context);
1201
996
  }
1202
997
  const contents = (0, import_smithy_client.map)({
1203
998
  $metadata: deserializeMetadata(output)
@@ -1209,37 +1004,9 @@ var de_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (
1209
1004
  Object.assign(contents, doc);
1210
1005
  return contents;
1211
1006
  }, "de_DescribeOrganizationConfigurationCommand");
1212
- var de_DescribeOrganizationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1213
- const parsedOutput = {
1214
- ...output,
1215
- body: await parseErrorBody(output.body, context)
1216
- };
1217
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1218
- switch (errorCode) {
1219
- case "AccessDeniedException":
1220
- case "com.amazonaws.detective#AccessDeniedException":
1221
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1222
- case "InternalServerException":
1223
- case "com.amazonaws.detective#InternalServerException":
1224
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1225
- case "TooManyRequestsException":
1226
- case "com.amazonaws.detective#TooManyRequestsException":
1227
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1228
- case "ValidationException":
1229
- case "com.amazonaws.detective#ValidationException":
1230
- throw await de_ValidationExceptionRes(parsedOutput, context);
1231
- default:
1232
- const parsedBody = parsedOutput.body;
1233
- return throwDefaultError({
1234
- output,
1235
- parsedBody,
1236
- errorCode
1237
- });
1238
- }
1239
- }, "de_DescribeOrganizationConfigurationCommandError");
1240
1007
  var de_DisableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
1241
1008
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1242
- return de_DisableOrganizationAdminAccountCommandError(output, context);
1009
+ return de_CommandError(output, context);
1243
1010
  }
1244
1011
  const contents = (0, import_smithy_client.map)({
1245
1012
  $metadata: deserializeMetadata(output)
@@ -1247,37 +1014,9 @@ var de_DisableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (ou
1247
1014
  await (0, import_smithy_client.collectBody)(output.body, context);
1248
1015
  return contents;
1249
1016
  }, "de_DisableOrganizationAdminAccountCommand");
1250
- var de_DisableOrganizationAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
1251
- const parsedOutput = {
1252
- ...output,
1253
- body: await parseErrorBody(output.body, context)
1254
- };
1255
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1256
- switch (errorCode) {
1257
- case "AccessDeniedException":
1258
- case "com.amazonaws.detective#AccessDeniedException":
1259
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1260
- case "InternalServerException":
1261
- case "com.amazonaws.detective#InternalServerException":
1262
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1263
- case "TooManyRequestsException":
1264
- case "com.amazonaws.detective#TooManyRequestsException":
1265
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1266
- case "ValidationException":
1267
- case "com.amazonaws.detective#ValidationException":
1268
- throw await de_ValidationExceptionRes(parsedOutput, context);
1269
- default:
1270
- const parsedBody = parsedOutput.body;
1271
- return throwDefaultError({
1272
- output,
1273
- parsedBody,
1274
- errorCode
1275
- });
1276
- }
1277
- }, "de_DisableOrganizationAdminAccountCommandError");
1278
1017
  var de_DisassociateMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
1279
1018
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1280
- return de_DisassociateMembershipCommandError(output, context);
1019
+ return de_CommandError(output, context);
1281
1020
  }
1282
1021
  const contents = (0, import_smithy_client.map)({
1283
1022
  $metadata: deserializeMetadata(output)
@@ -1285,40 +1024,9 @@ var de_DisassociateMembershipCommand = /* @__PURE__ */ __name(async (output, con
1285
1024
  await (0, import_smithy_client.collectBody)(output.body, context);
1286
1025
  return contents;
1287
1026
  }, "de_DisassociateMembershipCommand");
1288
- var de_DisassociateMembershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
1289
- const parsedOutput = {
1290
- ...output,
1291
- body: await parseErrorBody(output.body, context)
1292
- };
1293
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1294
- switch (errorCode) {
1295
- case "AccessDeniedException":
1296
- case "com.amazonaws.detective#AccessDeniedException":
1297
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1298
- case "ConflictException":
1299
- case "com.amazonaws.detective#ConflictException":
1300
- throw await de_ConflictExceptionRes(parsedOutput, context);
1301
- case "InternalServerException":
1302
- case "com.amazonaws.detective#InternalServerException":
1303
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1304
- case "ResourceNotFoundException":
1305
- case "com.amazonaws.detective#ResourceNotFoundException":
1306
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1307
- case "ValidationException":
1308
- case "com.amazonaws.detective#ValidationException":
1309
- throw await de_ValidationExceptionRes(parsedOutput, context);
1310
- default:
1311
- const parsedBody = parsedOutput.body;
1312
- return throwDefaultError({
1313
- output,
1314
- parsedBody,
1315
- errorCode
1316
- });
1317
- }
1318
- }, "de_DisassociateMembershipCommandError");
1319
1027
  var de_EnableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
1320
1028
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1321
- return de_EnableOrganizationAdminAccountCommandError(output, context);
1029
+ return de_CommandError(output, context);
1322
1030
  }
1323
1031
  const contents = (0, import_smithy_client.map)({
1324
1032
  $metadata: deserializeMetadata(output)
@@ -1326,37 +1034,9 @@ var de_EnableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (out
1326
1034
  await (0, import_smithy_client.collectBody)(output.body, context);
1327
1035
  return contents;
1328
1036
  }, "de_EnableOrganizationAdminAccountCommand");
1329
- var de_EnableOrganizationAdminAccountCommandError = /* @__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 "AccessDeniedException":
1337
- case "com.amazonaws.detective#AccessDeniedException":
1338
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1339
- case "InternalServerException":
1340
- case "com.amazonaws.detective#InternalServerException":
1341
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1342
- case "TooManyRequestsException":
1343
- case "com.amazonaws.detective#TooManyRequestsException":
1344
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1345
- case "ValidationException":
1346
- case "com.amazonaws.detective#ValidationException":
1347
- throw await de_ValidationExceptionRes(parsedOutput, context);
1348
- default:
1349
- const parsedBody = parsedOutput.body;
1350
- return throwDefaultError({
1351
- output,
1352
- parsedBody,
1353
- errorCode
1354
- });
1355
- }
1356
- }, "de_EnableOrganizationAdminAccountCommandError");
1357
1037
  var de_GetInvestigationCommand = /* @__PURE__ */ __name(async (output, context) => {
1358
1038
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1359
- return de_GetInvestigationCommandError(output, context);
1039
+ return de_CommandError(output, context);
1360
1040
  }
1361
1041
  const contents = (0, import_smithy_client.map)({
1362
1042
  $metadata: deserializeMetadata(output)
@@ -1377,40 +1057,9 @@ var de_GetInvestigationCommand = /* @__PURE__ */ __name(async (output, context)
1377
1057
  Object.assign(contents, doc);
1378
1058
  return contents;
1379
1059
  }, "de_GetInvestigationCommand");
1380
- var de_GetInvestigationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1381
- const parsedOutput = {
1382
- ...output,
1383
- body: await parseErrorBody(output.body, context)
1384
- };
1385
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1386
- switch (errorCode) {
1387
- case "AccessDeniedException":
1388
- case "com.amazonaws.detective#AccessDeniedException":
1389
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1390
- case "InternalServerException":
1391
- case "com.amazonaws.detective#InternalServerException":
1392
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1393
- case "ResourceNotFoundException":
1394
- case "com.amazonaws.detective#ResourceNotFoundException":
1395
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1396
- case "TooManyRequestsException":
1397
- case "com.amazonaws.detective#TooManyRequestsException":
1398
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1399
- case "ValidationException":
1400
- case "com.amazonaws.detective#ValidationException":
1401
- throw await de_ValidationExceptionRes(parsedOutput, context);
1402
- default:
1403
- const parsedBody = parsedOutput.body;
1404
- return throwDefaultError({
1405
- output,
1406
- parsedBody,
1407
- errorCode
1408
- });
1409
- }
1410
- }, "de_GetInvestigationCommandError");
1411
1060
  var de_GetMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1412
1061
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1413
- return de_GetMembersCommandError(output, context);
1062
+ return de_CommandError(output, context);
1414
1063
  }
1415
1064
  const contents = (0, import_smithy_client.map)({
1416
1065
  $metadata: deserializeMetadata(output)
@@ -1423,37 +1072,9 @@ var de_GetMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1423
1072
  Object.assign(contents, doc);
1424
1073
  return contents;
1425
1074
  }, "de_GetMembersCommand");
1426
- var de_GetMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1427
- const parsedOutput = {
1428
- ...output,
1429
- body: await parseErrorBody(output.body, context)
1430
- };
1431
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1432
- switch (errorCode) {
1433
- case "AccessDeniedException":
1434
- case "com.amazonaws.detective#AccessDeniedException":
1435
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1436
- case "InternalServerException":
1437
- case "com.amazonaws.detective#InternalServerException":
1438
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1439
- case "ResourceNotFoundException":
1440
- case "com.amazonaws.detective#ResourceNotFoundException":
1441
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1442
- case "ValidationException":
1443
- case "com.amazonaws.detective#ValidationException":
1444
- throw await de_ValidationExceptionRes(parsedOutput, context);
1445
- default:
1446
- const parsedBody = parsedOutput.body;
1447
- return throwDefaultError({
1448
- output,
1449
- parsedBody,
1450
- errorCode
1451
- });
1452
- }
1453
- }, "de_GetMembersCommandError");
1454
1075
  var de_ListDatasourcePackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
1455
1076
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1456
- return de_ListDatasourcePackagesCommandError(output, context);
1077
+ return de_CommandError(output, context);
1457
1078
  }
1458
1079
  const contents = (0, import_smithy_client.map)({
1459
1080
  $metadata: deserializeMetadata(output)
@@ -1466,37 +1087,9 @@ var de_ListDatasourcePackagesCommand = /* @__PURE__ */ __name(async (output, con
1466
1087
  Object.assign(contents, doc);
1467
1088
  return contents;
1468
1089
  }, "de_ListDatasourcePackagesCommand");
1469
- var de_ListDatasourcePackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1470
- const parsedOutput = {
1471
- ...output,
1472
- body: await parseErrorBody(output.body, context)
1473
- };
1474
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1475
- switch (errorCode) {
1476
- case "AccessDeniedException":
1477
- case "com.amazonaws.detective#AccessDeniedException":
1478
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1479
- case "InternalServerException":
1480
- case "com.amazonaws.detective#InternalServerException":
1481
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1482
- case "ResourceNotFoundException":
1483
- case "com.amazonaws.detective#ResourceNotFoundException":
1484
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1485
- case "ValidationException":
1486
- case "com.amazonaws.detective#ValidationException":
1487
- throw await de_ValidationExceptionRes(parsedOutput, context);
1488
- default:
1489
- const parsedBody = parsedOutput.body;
1490
- return throwDefaultError({
1491
- output,
1492
- parsedBody,
1493
- errorCode
1494
- });
1495
- }
1496
- }, "de_ListDatasourcePackagesCommandError");
1497
1090
  var de_ListGraphsCommand = /* @__PURE__ */ __name(async (output, context) => {
1498
1091
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1499
- return de_ListGraphsCommandError(output, context);
1092
+ return de_CommandError(output, context);
1500
1093
  }
1501
1094
  const contents = (0, import_smithy_client.map)({
1502
1095
  $metadata: deserializeMetadata(output)
@@ -1509,34 +1102,9 @@ var de_ListGraphsCommand = /* @__PURE__ */ __name(async (output, context) => {
1509
1102
  Object.assign(contents, doc);
1510
1103
  return contents;
1511
1104
  }, "de_ListGraphsCommand");
1512
- var de_ListGraphsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1513
- const parsedOutput = {
1514
- ...output,
1515
- body: await parseErrorBody(output.body, context)
1516
- };
1517
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1518
- switch (errorCode) {
1519
- case "AccessDeniedException":
1520
- case "com.amazonaws.detective#AccessDeniedException":
1521
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1522
- case "InternalServerException":
1523
- case "com.amazonaws.detective#InternalServerException":
1524
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1525
- case "ValidationException":
1526
- case "com.amazonaws.detective#ValidationException":
1527
- throw await de_ValidationExceptionRes(parsedOutput, context);
1528
- default:
1529
- const parsedBody = parsedOutput.body;
1530
- return throwDefaultError({
1531
- output,
1532
- parsedBody,
1533
- errorCode
1534
- });
1535
- }
1536
- }, "de_ListGraphsCommandError");
1537
1105
  var de_ListIndicatorsCommand = /* @__PURE__ */ __name(async (output, context) => {
1538
1106
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1539
- return de_ListIndicatorsCommandError(output, context);
1107
+ return de_CommandError(output, context);
1540
1108
  }
1541
1109
  const contents = (0, import_smithy_client.map)({
1542
1110
  $metadata: deserializeMetadata(output)
@@ -1551,40 +1119,9 @@ var de_ListIndicatorsCommand = /* @__PURE__ */ __name(async (output, context) =>
1551
1119
  Object.assign(contents, doc);
1552
1120
  return contents;
1553
1121
  }, "de_ListIndicatorsCommand");
1554
- var de_ListIndicatorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1555
- const parsedOutput = {
1556
- ...output,
1557
- body: await parseErrorBody(output.body, context)
1558
- };
1559
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1560
- switch (errorCode) {
1561
- case "AccessDeniedException":
1562
- case "com.amazonaws.detective#AccessDeniedException":
1563
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1564
- case "InternalServerException":
1565
- case "com.amazonaws.detective#InternalServerException":
1566
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1567
- case "ResourceNotFoundException":
1568
- case "com.amazonaws.detective#ResourceNotFoundException":
1569
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1570
- case "TooManyRequestsException":
1571
- case "com.amazonaws.detective#TooManyRequestsException":
1572
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1573
- case "ValidationException":
1574
- case "com.amazonaws.detective#ValidationException":
1575
- throw await de_ValidationExceptionRes(parsedOutput, context);
1576
- default:
1577
- const parsedBody = parsedOutput.body;
1578
- return throwDefaultError({
1579
- output,
1580
- parsedBody,
1581
- errorCode
1582
- });
1583
- }
1584
- }, "de_ListIndicatorsCommandError");
1585
1122
  var de_ListInvestigationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1586
1123
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1587
- return de_ListInvestigationsCommandError(output, context);
1124
+ return de_CommandError(output, context);
1588
1125
  }
1589
1126
  const contents = (0, import_smithy_client.map)({
1590
1127
  $metadata: deserializeMetadata(output)
@@ -1597,40 +1134,9 @@ var de_ListInvestigationsCommand = /* @__PURE__ */ __name(async (output, context
1597
1134
  Object.assign(contents, doc);
1598
1135
  return contents;
1599
1136
  }, "de_ListInvestigationsCommand");
1600
- var de_ListInvestigationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1601
- const parsedOutput = {
1602
- ...output,
1603
- body: await parseErrorBody(output.body, context)
1604
- };
1605
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1606
- switch (errorCode) {
1607
- case "AccessDeniedException":
1608
- case "com.amazonaws.detective#AccessDeniedException":
1609
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1610
- case "InternalServerException":
1611
- case "com.amazonaws.detective#InternalServerException":
1612
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1613
- case "ResourceNotFoundException":
1614
- case "com.amazonaws.detective#ResourceNotFoundException":
1615
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1616
- case "TooManyRequestsException":
1617
- case "com.amazonaws.detective#TooManyRequestsException":
1618
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1619
- case "ValidationException":
1620
- case "com.amazonaws.detective#ValidationException":
1621
- throw await de_ValidationExceptionRes(parsedOutput, context);
1622
- default:
1623
- const parsedBody = parsedOutput.body;
1624
- return throwDefaultError({
1625
- output,
1626
- parsedBody,
1627
- errorCode
1628
- });
1629
- }
1630
- }, "de_ListInvestigationsCommandError");
1631
1137
  var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1632
1138
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1633
- return de_ListInvitationsCommandError(output, context);
1139
+ return de_CommandError(output, context);
1634
1140
  }
1635
1141
  const contents = (0, import_smithy_client.map)({
1636
1142
  $metadata: deserializeMetadata(output)
@@ -1643,34 +1149,9 @@ var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) =
1643
1149
  Object.assign(contents, doc);
1644
1150
  return contents;
1645
1151
  }, "de_ListInvitationsCommand");
1646
- var de_ListInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1647
- const parsedOutput = {
1648
- ...output,
1649
- body: await parseErrorBody(output.body, context)
1650
- };
1651
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1652
- switch (errorCode) {
1653
- case "AccessDeniedException":
1654
- case "com.amazonaws.detective#AccessDeniedException":
1655
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1656
- case "InternalServerException":
1657
- case "com.amazonaws.detective#InternalServerException":
1658
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1659
- case "ValidationException":
1660
- case "com.amazonaws.detective#ValidationException":
1661
- throw await de_ValidationExceptionRes(parsedOutput, context);
1662
- default:
1663
- const parsedBody = parsedOutput.body;
1664
- return throwDefaultError({
1665
- output,
1666
- parsedBody,
1667
- errorCode
1668
- });
1669
- }
1670
- }, "de_ListInvitationsCommandError");
1671
1152
  var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1672
1153
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1673
- return de_ListMembersCommandError(output, context);
1154
+ return de_CommandError(output, context);
1674
1155
  }
1675
1156
  const contents = (0, import_smithy_client.map)({
1676
1157
  $metadata: deserializeMetadata(output)
@@ -1683,37 +1164,9 @@ var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1683
1164
  Object.assign(contents, doc);
1684
1165
  return contents;
1685
1166
  }, "de_ListMembersCommand");
1686
- var de_ListMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1687
- const parsedOutput = {
1688
- ...output,
1689
- body: await parseErrorBody(output.body, context)
1690
- };
1691
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1692
- switch (errorCode) {
1693
- case "AccessDeniedException":
1694
- case "com.amazonaws.detective#AccessDeniedException":
1695
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1696
- case "InternalServerException":
1697
- case "com.amazonaws.detective#InternalServerException":
1698
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1699
- case "ResourceNotFoundException":
1700
- case "com.amazonaws.detective#ResourceNotFoundException":
1701
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1702
- case "ValidationException":
1703
- case "com.amazonaws.detective#ValidationException":
1704
- throw await de_ValidationExceptionRes(parsedOutput, context);
1705
- default:
1706
- const parsedBody = parsedOutput.body;
1707
- return throwDefaultError({
1708
- output,
1709
- parsedBody,
1710
- errorCode
1711
- });
1712
- }
1713
- }, "de_ListMembersCommandError");
1714
1167
  var de_ListOrganizationAdminAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
1715
1168
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1716
- return de_ListOrganizationAdminAccountsCommandError(output, context);
1169
+ return de_CommandError(output, context);
1717
1170
  }
1718
1171
  const contents = (0, import_smithy_client.map)({
1719
1172
  $metadata: deserializeMetadata(output)
@@ -1726,37 +1179,9 @@ var de_ListOrganizationAdminAccountsCommand = /* @__PURE__ */ __name(async (outp
1726
1179
  Object.assign(contents, doc);
1727
1180
  return contents;
1728
1181
  }, "de_ListOrganizationAdminAccountsCommand");
1729
- var de_ListOrganizationAdminAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1730
- const parsedOutput = {
1731
- ...output,
1732
- body: await parseErrorBody(output.body, context)
1733
- };
1734
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1735
- switch (errorCode) {
1736
- case "AccessDeniedException":
1737
- case "com.amazonaws.detective#AccessDeniedException":
1738
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1739
- case "InternalServerException":
1740
- case "com.amazonaws.detective#InternalServerException":
1741
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1742
- case "TooManyRequestsException":
1743
- case "com.amazonaws.detective#TooManyRequestsException":
1744
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1745
- case "ValidationException":
1746
- case "com.amazonaws.detective#ValidationException":
1747
- throw await de_ValidationExceptionRes(parsedOutput, context);
1748
- default:
1749
- const parsedBody = parsedOutput.body;
1750
- return throwDefaultError({
1751
- output,
1752
- parsedBody,
1753
- errorCode
1754
- });
1755
- }
1756
- }, "de_ListOrganizationAdminAccountsCommandError");
1757
1182
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1758
1183
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1759
- return de_ListTagsForResourceCommandError(output, context);
1184
+ return de_CommandError(output, context);
1760
1185
  }
1761
1186
  const contents = (0, import_smithy_client.map)({
1762
1187
  $metadata: deserializeMetadata(output)
@@ -1768,37 +1193,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1768
1193
  Object.assign(contents, doc);
1769
1194
  return contents;
1770
1195
  }, "de_ListTagsForResourceCommand");
1771
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1772
- const parsedOutput = {
1773
- ...output,
1774
- body: await parseErrorBody(output.body, context)
1775
- };
1776
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1777
- switch (errorCode) {
1778
- case "AccessDeniedException":
1779
- case "com.amazonaws.detective#AccessDeniedException":
1780
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1781
- case "InternalServerException":
1782
- case "com.amazonaws.detective#InternalServerException":
1783
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1784
- case "ResourceNotFoundException":
1785
- case "com.amazonaws.detective#ResourceNotFoundException":
1786
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1787
- case "ValidationException":
1788
- case "com.amazonaws.detective#ValidationException":
1789
- throw await de_ValidationExceptionRes(parsedOutput, context);
1790
- default:
1791
- const parsedBody = parsedOutput.body;
1792
- return throwDefaultError({
1793
- output,
1794
- parsedBody,
1795
- errorCode
1796
- });
1797
- }
1798
- }, "de_ListTagsForResourceCommandError");
1799
1196
  var de_RejectInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
1800
1197
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1801
- return de_RejectInvitationCommandError(output, context);
1198
+ return de_CommandError(output, context);
1802
1199
  }
1803
1200
  const contents = (0, import_smithy_client.map)({
1804
1201
  $metadata: deserializeMetadata(output)
@@ -1806,40 +1203,9 @@ var de_RejectInvitationCommand = /* @__PURE__ */ __name(async (output, context)
1806
1203
  await (0, import_smithy_client.collectBody)(output.body, context);
1807
1204
  return contents;
1808
1205
  }, "de_RejectInvitationCommand");
1809
- var de_RejectInvitationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1810
- const parsedOutput = {
1811
- ...output,
1812
- body: await parseErrorBody(output.body, context)
1813
- };
1814
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1815
- switch (errorCode) {
1816
- case "AccessDeniedException":
1817
- case "com.amazonaws.detective#AccessDeniedException":
1818
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1819
- case "ConflictException":
1820
- case "com.amazonaws.detective#ConflictException":
1821
- throw await de_ConflictExceptionRes(parsedOutput, context);
1822
- case "InternalServerException":
1823
- case "com.amazonaws.detective#InternalServerException":
1824
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1825
- case "ResourceNotFoundException":
1826
- case "com.amazonaws.detective#ResourceNotFoundException":
1827
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1828
- case "ValidationException":
1829
- case "com.amazonaws.detective#ValidationException":
1830
- throw await de_ValidationExceptionRes(parsedOutput, context);
1831
- default:
1832
- const parsedBody = parsedOutput.body;
1833
- return throwDefaultError({
1834
- output,
1835
- parsedBody,
1836
- errorCode
1837
- });
1838
- }
1839
- }, "de_RejectInvitationCommandError");
1840
1206
  var de_StartInvestigationCommand = /* @__PURE__ */ __name(async (output, context) => {
1841
1207
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1842
- return de_StartInvestigationCommandError(output, context);
1208
+ return de_CommandError(output, context);
1843
1209
  }
1844
1210
  const contents = (0, import_smithy_client.map)({
1845
1211
  $metadata: deserializeMetadata(output)
@@ -1851,40 +1217,9 @@ var de_StartInvestigationCommand = /* @__PURE__ */ __name(async (output, context
1851
1217
  Object.assign(contents, doc);
1852
1218
  return contents;
1853
1219
  }, "de_StartInvestigationCommand");
1854
- var de_StartInvestigationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1855
- const parsedOutput = {
1856
- ...output,
1857
- body: await parseErrorBody(output.body, context)
1858
- };
1859
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1860
- switch (errorCode) {
1861
- case "AccessDeniedException":
1862
- case "com.amazonaws.detective#AccessDeniedException":
1863
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1864
- case "InternalServerException":
1865
- case "com.amazonaws.detective#InternalServerException":
1866
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1867
- case "ResourceNotFoundException":
1868
- case "com.amazonaws.detective#ResourceNotFoundException":
1869
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1870
- case "TooManyRequestsException":
1871
- case "com.amazonaws.detective#TooManyRequestsException":
1872
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1873
- case "ValidationException":
1874
- case "com.amazonaws.detective#ValidationException":
1875
- throw await de_ValidationExceptionRes(parsedOutput, context);
1876
- default:
1877
- const parsedBody = parsedOutput.body;
1878
- return throwDefaultError({
1879
- output,
1880
- parsedBody,
1881
- errorCode
1882
- });
1883
- }
1884
- }, "de_StartInvestigationCommandError");
1885
1220
  var de_StartMonitoringMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
1886
1221
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1887
- return de_StartMonitoringMemberCommandError(output, context);
1222
+ return de_CommandError(output, context);
1888
1223
  }
1889
1224
  const contents = (0, import_smithy_client.map)({
1890
1225
  $metadata: deserializeMetadata(output)
@@ -1892,43 +1227,9 @@ var de_StartMonitoringMemberCommand = /* @__PURE__ */ __name(async (output, cont
1892
1227
  await (0, import_smithy_client.collectBody)(output.body, context);
1893
1228
  return contents;
1894
1229
  }, "de_StartMonitoringMemberCommand");
1895
- var de_StartMonitoringMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
1896
- const parsedOutput = {
1897
- ...output,
1898
- body: await parseErrorBody(output.body, context)
1899
- };
1900
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1901
- switch (errorCode) {
1902
- case "AccessDeniedException":
1903
- case "com.amazonaws.detective#AccessDeniedException":
1904
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1905
- case "ConflictException":
1906
- case "com.amazonaws.detective#ConflictException":
1907
- throw await de_ConflictExceptionRes(parsedOutput, context);
1908
- case "InternalServerException":
1909
- case "com.amazonaws.detective#InternalServerException":
1910
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1911
- case "ResourceNotFoundException":
1912
- case "com.amazonaws.detective#ResourceNotFoundException":
1913
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1914
- case "ServiceQuotaExceededException":
1915
- case "com.amazonaws.detective#ServiceQuotaExceededException":
1916
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1917
- case "ValidationException":
1918
- case "com.amazonaws.detective#ValidationException":
1919
- throw await de_ValidationExceptionRes(parsedOutput, context);
1920
- default:
1921
- const parsedBody = parsedOutput.body;
1922
- return throwDefaultError({
1923
- output,
1924
- parsedBody,
1925
- errorCode
1926
- });
1927
- }
1928
- }, "de_StartMonitoringMemberCommandError");
1929
1230
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1930
1231
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1931
- return de_TagResourceCommandError(output, context);
1232
+ return de_CommandError(output, context);
1932
1233
  }
1933
1234
  const contents = (0, import_smithy_client.map)({
1934
1235
  $metadata: deserializeMetadata(output)
@@ -1936,37 +1237,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1936
1237
  await (0, import_smithy_client.collectBody)(output.body, context);
1937
1238
  return contents;
1938
1239
  }, "de_TagResourceCommand");
1939
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1940
- const parsedOutput = {
1941
- ...output,
1942
- body: await parseErrorBody(output.body, context)
1943
- };
1944
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1945
- switch (errorCode) {
1946
- case "AccessDeniedException":
1947
- case "com.amazonaws.detective#AccessDeniedException":
1948
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1949
- case "InternalServerException":
1950
- case "com.amazonaws.detective#InternalServerException":
1951
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1952
- case "ResourceNotFoundException":
1953
- case "com.amazonaws.detective#ResourceNotFoundException":
1954
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1955
- case "ValidationException":
1956
- case "com.amazonaws.detective#ValidationException":
1957
- throw await de_ValidationExceptionRes(parsedOutput, context);
1958
- default:
1959
- const parsedBody = parsedOutput.body;
1960
- return throwDefaultError({
1961
- output,
1962
- parsedBody,
1963
- errorCode
1964
- });
1965
- }
1966
- }, "de_TagResourceCommandError");
1967
1240
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1968
1241
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1969
- return de_UntagResourceCommandError(output, context);
1242
+ return de_CommandError(output, context);
1970
1243
  }
1971
1244
  const contents = (0, import_smithy_client.map)({
1972
1245
  $metadata: deserializeMetadata(output)
@@ -1974,37 +1247,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1974
1247
  await (0, import_smithy_client.collectBody)(output.body, context);
1975
1248
  return contents;
1976
1249
  }, "de_UntagResourceCommand");
1977
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1978
- const parsedOutput = {
1979
- ...output,
1980
- body: await parseErrorBody(output.body, context)
1981
- };
1982
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1983
- switch (errorCode) {
1984
- case "AccessDeniedException":
1985
- case "com.amazonaws.detective#AccessDeniedException":
1986
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1987
- case "InternalServerException":
1988
- case "com.amazonaws.detective#InternalServerException":
1989
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1990
- case "ResourceNotFoundException":
1991
- case "com.amazonaws.detective#ResourceNotFoundException":
1992
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1993
- case "ValidationException":
1994
- case "com.amazonaws.detective#ValidationException":
1995
- throw await de_ValidationExceptionRes(parsedOutput, context);
1996
- default:
1997
- const parsedBody = parsedOutput.body;
1998
- return throwDefaultError({
1999
- output,
2000
- parsedBody,
2001
- errorCode
2002
- });
2003
- }
2004
- }, "de_UntagResourceCommandError");
2005
1250
  var de_UpdateDatasourcePackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
2006
1251
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2007
- return de_UpdateDatasourcePackagesCommandError(output, context);
1252
+ return de_CommandError(output, context);
2008
1253
  }
2009
1254
  const contents = (0, import_smithy_client.map)({
2010
1255
  $metadata: deserializeMetadata(output)
@@ -2012,40 +1257,9 @@ var de_UpdateDatasourcePackagesCommand = /* @__PURE__ */ __name(async (output, c
2012
1257
  await (0, import_smithy_client.collectBody)(output.body, context);
2013
1258
  return contents;
2014
1259
  }, "de_UpdateDatasourcePackagesCommand");
2015
- var de_UpdateDatasourcePackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2016
- const parsedOutput = {
2017
- ...output,
2018
- body: await parseErrorBody(output.body, context)
2019
- };
2020
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2021
- switch (errorCode) {
2022
- case "AccessDeniedException":
2023
- case "com.amazonaws.detective#AccessDeniedException":
2024
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2025
- case "InternalServerException":
2026
- case "com.amazonaws.detective#InternalServerException":
2027
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2028
- case "ResourceNotFoundException":
2029
- case "com.amazonaws.detective#ResourceNotFoundException":
2030
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2031
- case "ServiceQuotaExceededException":
2032
- case "com.amazonaws.detective#ServiceQuotaExceededException":
2033
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2034
- case "ValidationException":
2035
- case "com.amazonaws.detective#ValidationException":
2036
- throw await de_ValidationExceptionRes(parsedOutput, context);
2037
- default:
2038
- const parsedBody = parsedOutput.body;
2039
- return throwDefaultError({
2040
- output,
2041
- parsedBody,
2042
- errorCode
2043
- });
2044
- }
2045
- }, "de_UpdateDatasourcePackagesCommandError");
2046
1260
  var de_UpdateInvestigationStateCommand = /* @__PURE__ */ __name(async (output, context) => {
2047
1261
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2048
- return de_UpdateInvestigationStateCommandError(output, context);
1262
+ return de_CommandError(output, context);
2049
1263
  }
2050
1264
  const contents = (0, import_smithy_client.map)({
2051
1265
  $metadata: deserializeMetadata(output)
@@ -2053,40 +1267,9 @@ var de_UpdateInvestigationStateCommand = /* @__PURE__ */ __name(async (output, c
2053
1267
  await (0, import_smithy_client.collectBody)(output.body, context);
2054
1268
  return contents;
2055
1269
  }, "de_UpdateInvestigationStateCommand");
2056
- var de_UpdateInvestigationStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
2057
- const parsedOutput = {
2058
- ...output,
2059
- body: await parseErrorBody(output.body, context)
2060
- };
2061
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2062
- switch (errorCode) {
2063
- case "AccessDeniedException":
2064
- case "com.amazonaws.detective#AccessDeniedException":
2065
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2066
- case "InternalServerException":
2067
- case "com.amazonaws.detective#InternalServerException":
2068
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2069
- case "ResourceNotFoundException":
2070
- case "com.amazonaws.detective#ResourceNotFoundException":
2071
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2072
- case "TooManyRequestsException":
2073
- case "com.amazonaws.detective#TooManyRequestsException":
2074
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2075
- case "ValidationException":
2076
- case "com.amazonaws.detective#ValidationException":
2077
- throw await de_ValidationExceptionRes(parsedOutput, context);
2078
- default:
2079
- const parsedBody = parsedOutput.body;
2080
- return throwDefaultError({
2081
- output,
2082
- parsedBody,
2083
- errorCode
2084
- });
2085
- }
2086
- }, "de_UpdateInvestigationStateCommandError");
2087
1270
  var de_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2088
1271
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2089
- return de_UpdateOrganizationConfigurationCommandError(output, context);
1272
+ return de_CommandError(output, context);
2090
1273
  }
2091
1274
  const contents = (0, import_smithy_client.map)({
2092
1275
  $metadata: deserializeMetadata(output)
@@ -2094,7 +1277,7 @@ var de_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (ou
2094
1277
  await (0, import_smithy_client.collectBody)(output.body, context);
2095
1278
  return contents;
2096
1279
  }, "de_UpdateOrganizationConfigurationCommand");
2097
- var de_UpdateOrganizationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1280
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2098
1281
  const parsedOutput = {
2099
1282
  ...output,
2100
1283
  body: await parseErrorBody(output.body, context)
@@ -2104,15 +1287,24 @@ var de_UpdateOrganizationConfigurationCommandError = /* @__PURE__ */ __name(asyn
2104
1287
  case "AccessDeniedException":
2105
1288
  case "com.amazonaws.detective#AccessDeniedException":
2106
1289
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1290
+ case "ConflictException":
1291
+ case "com.amazonaws.detective#ConflictException":
1292
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2107
1293
  case "InternalServerException":
2108
1294
  case "com.amazonaws.detective#InternalServerException":
2109
1295
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2110
- case "TooManyRequestsException":
2111
- case "com.amazonaws.detective#TooManyRequestsException":
2112
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1296
+ case "ResourceNotFoundException":
1297
+ case "com.amazonaws.detective#ResourceNotFoundException":
1298
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2113
1299
  case "ValidationException":
2114
1300
  case "com.amazonaws.detective#ValidationException":
2115
1301
  throw await de_ValidationExceptionRes(parsedOutput, context);
1302
+ case "ServiceQuotaExceededException":
1303
+ case "com.amazonaws.detective#ServiceQuotaExceededException":
1304
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1305
+ case "TooManyRequestsException":
1306
+ case "com.amazonaws.detective#TooManyRequestsException":
1307
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2116
1308
  default:
2117
1309
  const parsedBody = parsedOutput.body;
2118
1310
  return throwDefaultError({
@@ -2121,7 +1313,7 @@ var de_UpdateOrganizationConfigurationCommandError = /* @__PURE__ */ __name(asyn
2121
1313
  errorCode
2122
1314
  });
2123
1315
  }
2124
- }, "de_UpdateOrganizationConfigurationCommandError");
1316
+ }, "de_CommandError");
2125
1317
  var throwDefaultError = (0, import_smithy_client.withBaseException)(DetectiveServiceException);
2126
1318
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2127
1319
  const contents = (0, import_smithy_client.map)({});