@aws-sdk/client-amp 3.504.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
@@ -845,7 +845,7 @@ var se_UpdateWorkspaceAliasCommand = /* @__PURE__ */ __name(async (input, contex
845
845
  }, "se_UpdateWorkspaceAliasCommand");
846
846
  var de_CreateAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
847
847
  if (output.statusCode !== 202 && output.statusCode >= 300) {
848
- return de_CreateAlertManagerDefinitionCommandError(output, context);
848
+ return de_CommandError(output, context);
849
849
  }
850
850
  const contents = (0, import_smithy_client.map)({
851
851
  $metadata: deserializeMetadata(output)
@@ -857,46 +857,9 @@ var de_CreateAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (outpu
857
857
  Object.assign(contents, doc);
858
858
  return contents;
859
859
  }, "de_CreateAlertManagerDefinitionCommand");
860
- var de_CreateAlertManagerDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
861
- const parsedOutput = {
862
- ...output,
863
- body: await parseErrorBody(output.body, context)
864
- };
865
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
866
- switch (errorCode) {
867
- case "AccessDeniedException":
868
- case "com.amazonaws.amp#AccessDeniedException":
869
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
870
- case "ConflictException":
871
- case "com.amazonaws.amp#ConflictException":
872
- throw await de_ConflictExceptionRes(parsedOutput, context);
873
- case "InternalServerException":
874
- case "com.amazonaws.amp#InternalServerException":
875
- throw await de_InternalServerExceptionRes(parsedOutput, context);
876
- case "ResourceNotFoundException":
877
- case "com.amazonaws.amp#ResourceNotFoundException":
878
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
879
- case "ServiceQuotaExceededException":
880
- case "com.amazonaws.amp#ServiceQuotaExceededException":
881
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
882
- case "ThrottlingException":
883
- case "com.amazonaws.amp#ThrottlingException":
884
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
885
- case "ValidationException":
886
- case "com.amazonaws.amp#ValidationException":
887
- throw await de_ValidationExceptionRes(parsedOutput, context);
888
- default:
889
- const parsedBody = parsedOutput.body;
890
- return throwDefaultError({
891
- output,
892
- parsedBody,
893
- errorCode
894
- });
895
- }
896
- }, "de_CreateAlertManagerDefinitionCommandError");
897
860
  var de_CreateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
898
861
  if (output.statusCode !== 202 && output.statusCode >= 300) {
899
- return de_CreateLoggingConfigurationCommandError(output, context);
862
+ return de_CommandError(output, context);
900
863
  }
901
864
  const contents = (0, import_smithy_client.map)({
902
865
  $metadata: deserializeMetadata(output)
@@ -908,37 +871,9 @@ var de_CreateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
908
871
  Object.assign(contents, doc);
909
872
  return contents;
910
873
  }, "de_CreateLoggingConfigurationCommand");
911
- var de_CreateLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
912
- const parsedOutput = {
913
- ...output,
914
- body: await parseErrorBody(output.body, context)
915
- };
916
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
917
- switch (errorCode) {
918
- case "AccessDeniedException":
919
- case "com.amazonaws.amp#AccessDeniedException":
920
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
921
- case "InternalServerException":
922
- case "com.amazonaws.amp#InternalServerException":
923
- throw await de_InternalServerExceptionRes(parsedOutput, context);
924
- case "ResourceNotFoundException":
925
- case "com.amazonaws.amp#ResourceNotFoundException":
926
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
927
- case "ValidationException":
928
- case "com.amazonaws.amp#ValidationException":
929
- throw await de_ValidationExceptionRes(parsedOutput, context);
930
- default:
931
- const parsedBody = parsedOutput.body;
932
- return throwDefaultError({
933
- output,
934
- parsedBody,
935
- errorCode
936
- });
937
- }
938
- }, "de_CreateLoggingConfigurationCommandError");
939
874
  var de_CreateRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
940
875
  if (output.statusCode !== 202 && output.statusCode >= 300) {
941
- return de_CreateRuleGroupsNamespaceCommandError(output, context);
876
+ return de_CommandError(output, context);
942
877
  }
943
878
  const contents = (0, import_smithy_client.map)({
944
879
  $metadata: deserializeMetadata(output)
@@ -953,46 +888,9 @@ var de_CreateRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output,
953
888
  Object.assign(contents, doc);
954
889
  return contents;
955
890
  }, "de_CreateRuleGroupsNamespaceCommand");
956
- var de_CreateRuleGroupsNamespaceCommandError = /* @__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.amp#AccessDeniedException":
965
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
966
- case "ConflictException":
967
- case "com.amazonaws.amp#ConflictException":
968
- throw await de_ConflictExceptionRes(parsedOutput, context);
969
- case "InternalServerException":
970
- case "com.amazonaws.amp#InternalServerException":
971
- throw await de_InternalServerExceptionRes(parsedOutput, context);
972
- case "ResourceNotFoundException":
973
- case "com.amazonaws.amp#ResourceNotFoundException":
974
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
975
- case "ServiceQuotaExceededException":
976
- case "com.amazonaws.amp#ServiceQuotaExceededException":
977
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
978
- case "ThrottlingException":
979
- case "com.amazonaws.amp#ThrottlingException":
980
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
981
- case "ValidationException":
982
- case "com.amazonaws.amp#ValidationException":
983
- throw await de_ValidationExceptionRes(parsedOutput, context);
984
- default:
985
- const parsedBody = parsedOutput.body;
986
- return throwDefaultError({
987
- output,
988
- parsedBody,
989
- errorCode
990
- });
991
- }
992
- }, "de_CreateRuleGroupsNamespaceCommandError");
993
891
  var de_CreateScraperCommand = /* @__PURE__ */ __name(async (output, context) => {
994
892
  if (output.statusCode !== 202 && output.statusCode >= 300) {
995
- return de_CreateScraperCommandError(output, context);
893
+ return de_CommandError(output, context);
996
894
  }
997
895
  const contents = (0, import_smithy_client.map)({
998
896
  $metadata: deserializeMetadata(output)
@@ -1007,46 +905,9 @@ var de_CreateScraperCommand = /* @__PURE__ */ __name(async (output, context) =>
1007
905
  Object.assign(contents, doc);
1008
906
  return contents;
1009
907
  }, "de_CreateScraperCommand");
1010
- var de_CreateScraperCommandError = /* @__PURE__ */ __name(async (output, context) => {
1011
- const parsedOutput = {
1012
- ...output,
1013
- body: await parseErrorBody(output.body, context)
1014
- };
1015
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1016
- switch (errorCode) {
1017
- case "AccessDeniedException":
1018
- case "com.amazonaws.amp#AccessDeniedException":
1019
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1020
- case "ConflictException":
1021
- case "com.amazonaws.amp#ConflictException":
1022
- throw await de_ConflictExceptionRes(parsedOutput, context);
1023
- case "InternalServerException":
1024
- case "com.amazonaws.amp#InternalServerException":
1025
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1026
- case "ResourceNotFoundException":
1027
- case "com.amazonaws.amp#ResourceNotFoundException":
1028
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1029
- case "ServiceQuotaExceededException":
1030
- case "com.amazonaws.amp#ServiceQuotaExceededException":
1031
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1032
- case "ThrottlingException":
1033
- case "com.amazonaws.amp#ThrottlingException":
1034
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1035
- case "ValidationException":
1036
- case "com.amazonaws.amp#ValidationException":
1037
- throw await de_ValidationExceptionRes(parsedOutput, context);
1038
- default:
1039
- const parsedBody = parsedOutput.body;
1040
- return throwDefaultError({
1041
- output,
1042
- parsedBody,
1043
- errorCode
1044
- });
1045
- }
1046
- }, "de_CreateScraperCommandError");
1047
908
  var de_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1048
909
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1049
- return de_CreateWorkspaceCommandError(output, context);
910
+ return de_CommandError(output, context);
1050
911
  }
1051
912
  const contents = (0, import_smithy_client.map)({
1052
913
  $metadata: deserializeMetadata(output)
@@ -1062,43 +923,9 @@ var de_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) =
1062
923
  Object.assign(contents, doc);
1063
924
  return contents;
1064
925
  }, "de_CreateWorkspaceCommand");
1065
- var de_CreateWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1066
- const parsedOutput = {
1067
- ...output,
1068
- body: await parseErrorBody(output.body, context)
1069
- };
1070
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1071
- switch (errorCode) {
1072
- case "AccessDeniedException":
1073
- case "com.amazonaws.amp#AccessDeniedException":
1074
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1075
- case "ConflictException":
1076
- case "com.amazonaws.amp#ConflictException":
1077
- throw await de_ConflictExceptionRes(parsedOutput, context);
1078
- case "InternalServerException":
1079
- case "com.amazonaws.amp#InternalServerException":
1080
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1081
- case "ServiceQuotaExceededException":
1082
- case "com.amazonaws.amp#ServiceQuotaExceededException":
1083
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1084
- case "ThrottlingException":
1085
- case "com.amazonaws.amp#ThrottlingException":
1086
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1087
- case "ValidationException":
1088
- case "com.amazonaws.amp#ValidationException":
1089
- throw await de_ValidationExceptionRes(parsedOutput, context);
1090
- default:
1091
- const parsedBody = parsedOutput.body;
1092
- return throwDefaultError({
1093
- output,
1094
- parsedBody,
1095
- errorCode
1096
- });
1097
- }
1098
- }, "de_CreateWorkspaceCommandError");
1099
926
  var de_DeleteAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
1100
927
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1101
- return de_DeleteAlertManagerDefinitionCommandError(output, context);
928
+ return de_CommandError(output, context);
1102
929
  }
1103
930
  const contents = (0, import_smithy_client.map)({
1104
931
  $metadata: deserializeMetadata(output)
@@ -1106,43 +933,9 @@ var de_DeleteAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (outpu
1106
933
  await (0, import_smithy_client.collectBody)(output.body, context);
1107
934
  return contents;
1108
935
  }, "de_DeleteAlertManagerDefinitionCommand");
1109
- var de_DeleteAlertManagerDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1110
- const parsedOutput = {
1111
- ...output,
1112
- body: await parseErrorBody(output.body, context)
1113
- };
1114
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1115
- switch (errorCode) {
1116
- case "AccessDeniedException":
1117
- case "com.amazonaws.amp#AccessDeniedException":
1118
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1119
- case "ConflictException":
1120
- case "com.amazonaws.amp#ConflictException":
1121
- throw await de_ConflictExceptionRes(parsedOutput, context);
1122
- case "InternalServerException":
1123
- case "com.amazonaws.amp#InternalServerException":
1124
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1125
- case "ResourceNotFoundException":
1126
- case "com.amazonaws.amp#ResourceNotFoundException":
1127
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1128
- case "ThrottlingException":
1129
- case "com.amazonaws.amp#ThrottlingException":
1130
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1131
- case "ValidationException":
1132
- case "com.amazonaws.amp#ValidationException":
1133
- throw await de_ValidationExceptionRes(parsedOutput, context);
1134
- default:
1135
- const parsedBody = parsedOutput.body;
1136
- return throwDefaultError({
1137
- output,
1138
- parsedBody,
1139
- errorCode
1140
- });
1141
- }
1142
- }, "de_DeleteAlertManagerDefinitionCommandError");
1143
936
  var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1144
937
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1145
- return de_DeleteLoggingConfigurationCommandError(output, context);
938
+ return de_CommandError(output, context);
1146
939
  }
1147
940
  const contents = (0, import_smithy_client.map)({
1148
941
  $metadata: deserializeMetadata(output)
@@ -1150,40 +943,9 @@ var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
1150
943
  await (0, import_smithy_client.collectBody)(output.body, context);
1151
944
  return contents;
1152
945
  }, "de_DeleteLoggingConfigurationCommand");
1153
- var de_DeleteLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1154
- const parsedOutput = {
1155
- ...output,
1156
- body: await parseErrorBody(output.body, context)
1157
- };
1158
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1159
- switch (errorCode) {
1160
- case "AccessDeniedException":
1161
- case "com.amazonaws.amp#AccessDeniedException":
1162
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1163
- case "ConflictException":
1164
- case "com.amazonaws.amp#ConflictException":
1165
- throw await de_ConflictExceptionRes(parsedOutput, context);
1166
- case "InternalServerException":
1167
- case "com.amazonaws.amp#InternalServerException":
1168
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1169
- case "ResourceNotFoundException":
1170
- case "com.amazonaws.amp#ResourceNotFoundException":
1171
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1172
- case "ValidationException":
1173
- case "com.amazonaws.amp#ValidationException":
1174
- throw await de_ValidationExceptionRes(parsedOutput, context);
1175
- default:
1176
- const parsedBody = parsedOutput.body;
1177
- return throwDefaultError({
1178
- output,
1179
- parsedBody,
1180
- errorCode
1181
- });
1182
- }
1183
- }, "de_DeleteLoggingConfigurationCommandError");
1184
946
  var de_DeleteRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1185
947
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1186
- return de_DeleteRuleGroupsNamespaceCommandError(output, context);
948
+ return de_CommandError(output, context);
1187
949
  }
1188
950
  const contents = (0, import_smithy_client.map)({
1189
951
  $metadata: deserializeMetadata(output)
@@ -1191,43 +953,9 @@ var de_DeleteRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output,
1191
953
  await (0, import_smithy_client.collectBody)(output.body, context);
1192
954
  return contents;
1193
955
  }, "de_DeleteRuleGroupsNamespaceCommand");
1194
- var de_DeleteRuleGroupsNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1195
- const parsedOutput = {
1196
- ...output,
1197
- body: await parseErrorBody(output.body, context)
1198
- };
1199
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1200
- switch (errorCode) {
1201
- case "AccessDeniedException":
1202
- case "com.amazonaws.amp#AccessDeniedException":
1203
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1204
- case "ConflictException":
1205
- case "com.amazonaws.amp#ConflictException":
1206
- throw await de_ConflictExceptionRes(parsedOutput, context);
1207
- case "InternalServerException":
1208
- case "com.amazonaws.amp#InternalServerException":
1209
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1210
- case "ResourceNotFoundException":
1211
- case "com.amazonaws.amp#ResourceNotFoundException":
1212
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1213
- case "ThrottlingException":
1214
- case "com.amazonaws.amp#ThrottlingException":
1215
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1216
- case "ValidationException":
1217
- case "com.amazonaws.amp#ValidationException":
1218
- throw await de_ValidationExceptionRes(parsedOutput, context);
1219
- default:
1220
- const parsedBody = parsedOutput.body;
1221
- return throwDefaultError({
1222
- output,
1223
- parsedBody,
1224
- errorCode
1225
- });
1226
- }
1227
- }, "de_DeleteRuleGroupsNamespaceCommandError");
1228
956
  var de_DeleteScraperCommand = /* @__PURE__ */ __name(async (output, context) => {
1229
957
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1230
- return de_DeleteScraperCommandError(output, context);
958
+ return de_CommandError(output, context);
1231
959
  }
1232
960
  const contents = (0, import_smithy_client.map)({
1233
961
  $metadata: deserializeMetadata(output)
@@ -1240,43 +968,9 @@ var de_DeleteScraperCommand = /* @__PURE__ */ __name(async (output, context) =>
1240
968
  Object.assign(contents, doc);
1241
969
  return contents;
1242
970
  }, "de_DeleteScraperCommand");
1243
- var de_DeleteScraperCommandError = /* @__PURE__ */ __name(async (output, context) => {
1244
- const parsedOutput = {
1245
- ...output,
1246
- body: await parseErrorBody(output.body, context)
1247
- };
1248
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1249
- switch (errorCode) {
1250
- case "AccessDeniedException":
1251
- case "com.amazonaws.amp#AccessDeniedException":
1252
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1253
- case "ConflictException":
1254
- case "com.amazonaws.amp#ConflictException":
1255
- throw await de_ConflictExceptionRes(parsedOutput, context);
1256
- case "InternalServerException":
1257
- case "com.amazonaws.amp#InternalServerException":
1258
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1259
- case "ResourceNotFoundException":
1260
- case "com.amazonaws.amp#ResourceNotFoundException":
1261
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1262
- case "ThrottlingException":
1263
- case "com.amazonaws.amp#ThrottlingException":
1264
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1265
- case "ValidationException":
1266
- case "com.amazonaws.amp#ValidationException":
1267
- throw await de_ValidationExceptionRes(parsedOutput, context);
1268
- default:
1269
- const parsedBody = parsedOutput.body;
1270
- return throwDefaultError({
1271
- output,
1272
- parsedBody,
1273
- errorCode
1274
- });
1275
- }
1276
- }, "de_DeleteScraperCommandError");
1277
971
  var de_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1278
972
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1279
- return de_DeleteWorkspaceCommandError(output, context);
973
+ return de_CommandError(output, context);
1280
974
  }
1281
975
  const contents = (0, import_smithy_client.map)({
1282
976
  $metadata: deserializeMetadata(output)
@@ -1284,43 +978,9 @@ var de_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) =
1284
978
  await (0, import_smithy_client.collectBody)(output.body, context);
1285
979
  return contents;
1286
980
  }, "de_DeleteWorkspaceCommand");
1287
- var de_DeleteWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1288
- const parsedOutput = {
1289
- ...output,
1290
- body: await parseErrorBody(output.body, context)
1291
- };
1292
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1293
- switch (errorCode) {
1294
- case "AccessDeniedException":
1295
- case "com.amazonaws.amp#AccessDeniedException":
1296
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1297
- case "ConflictException":
1298
- case "com.amazonaws.amp#ConflictException":
1299
- throw await de_ConflictExceptionRes(parsedOutput, context);
1300
- case "InternalServerException":
1301
- case "com.amazonaws.amp#InternalServerException":
1302
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1303
- case "ResourceNotFoundException":
1304
- case "com.amazonaws.amp#ResourceNotFoundException":
1305
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1306
- case "ThrottlingException":
1307
- case "com.amazonaws.amp#ThrottlingException":
1308
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1309
- case "ValidationException":
1310
- case "com.amazonaws.amp#ValidationException":
1311
- throw await de_ValidationExceptionRes(parsedOutput, context);
1312
- default:
1313
- const parsedBody = parsedOutput.body;
1314
- return throwDefaultError({
1315
- output,
1316
- parsedBody,
1317
- errorCode
1318
- });
1319
- }
1320
- }, "de_DeleteWorkspaceCommandError");
1321
981
  var de_DescribeAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
1322
982
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1323
- return de_DescribeAlertManagerDefinitionCommandError(output, context);
983
+ return de_CommandError(output, context);
1324
984
  }
1325
985
  const contents = (0, import_smithy_client.map)({
1326
986
  $metadata: deserializeMetadata(output)
@@ -1332,40 +992,9 @@ var de_DescribeAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (out
1332
992
  Object.assign(contents, doc);
1333
993
  return contents;
1334
994
  }, "de_DescribeAlertManagerDefinitionCommand");
1335
- var de_DescribeAlertManagerDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1336
- const parsedOutput = {
1337
- ...output,
1338
- body: await parseErrorBody(output.body, context)
1339
- };
1340
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1341
- switch (errorCode) {
1342
- case "AccessDeniedException":
1343
- case "com.amazonaws.amp#AccessDeniedException":
1344
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1345
- case "InternalServerException":
1346
- case "com.amazonaws.amp#InternalServerException":
1347
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1348
- case "ResourceNotFoundException":
1349
- case "com.amazonaws.amp#ResourceNotFoundException":
1350
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1351
- case "ThrottlingException":
1352
- case "com.amazonaws.amp#ThrottlingException":
1353
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1354
- case "ValidationException":
1355
- case "com.amazonaws.amp#ValidationException":
1356
- throw await de_ValidationExceptionRes(parsedOutput, context);
1357
- default:
1358
- const parsedBody = parsedOutput.body;
1359
- return throwDefaultError({
1360
- output,
1361
- parsedBody,
1362
- errorCode
1363
- });
1364
- }
1365
- }, "de_DescribeAlertManagerDefinitionCommandError");
1366
995
  var de_DescribeLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1367
996
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1368
- return de_DescribeLoggingConfigurationCommandError(output, context);
997
+ return de_CommandError(output, context);
1369
998
  }
1370
999
  const contents = (0, import_smithy_client.map)({
1371
1000
  $metadata: deserializeMetadata(output)
@@ -1377,37 +1006,9 @@ var de_DescribeLoggingConfigurationCommand = /* @__PURE__ */ __name(async (outpu
1377
1006
  Object.assign(contents, doc);
1378
1007
  return contents;
1379
1008
  }, "de_DescribeLoggingConfigurationCommand");
1380
- var de_DescribeLoggingConfigurationCommandError = /* @__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.amp#AccessDeniedException":
1389
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1390
- case "InternalServerException":
1391
- case "com.amazonaws.amp#InternalServerException":
1392
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1393
- case "ResourceNotFoundException":
1394
- case "com.amazonaws.amp#ResourceNotFoundException":
1395
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1396
- case "ValidationException":
1397
- case "com.amazonaws.amp#ValidationException":
1398
- throw await de_ValidationExceptionRes(parsedOutput, context);
1399
- default:
1400
- const parsedBody = parsedOutput.body;
1401
- return throwDefaultError({
1402
- output,
1403
- parsedBody,
1404
- errorCode
1405
- });
1406
- }
1407
- }, "de_DescribeLoggingConfigurationCommandError");
1408
1009
  var de_DescribeRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1409
1010
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1410
- return de_DescribeRuleGroupsNamespaceCommandError(output, context);
1011
+ return de_CommandError(output, context);
1411
1012
  }
1412
1013
  const contents = (0, import_smithy_client.map)({
1413
1014
  $metadata: deserializeMetadata(output)
@@ -1419,40 +1020,9 @@ var de_DescribeRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output
1419
1020
  Object.assign(contents, doc);
1420
1021
  return contents;
1421
1022
  }, "de_DescribeRuleGroupsNamespaceCommand");
1422
- var de_DescribeRuleGroupsNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1423
- const parsedOutput = {
1424
- ...output,
1425
- body: await parseErrorBody(output.body, context)
1426
- };
1427
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1428
- switch (errorCode) {
1429
- case "AccessDeniedException":
1430
- case "com.amazonaws.amp#AccessDeniedException":
1431
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1432
- case "InternalServerException":
1433
- case "com.amazonaws.amp#InternalServerException":
1434
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1435
- case "ResourceNotFoundException":
1436
- case "com.amazonaws.amp#ResourceNotFoundException":
1437
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1438
- case "ThrottlingException":
1439
- case "com.amazonaws.amp#ThrottlingException":
1440
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1441
- case "ValidationException":
1442
- case "com.amazonaws.amp#ValidationException":
1443
- throw await de_ValidationExceptionRes(parsedOutput, context);
1444
- default:
1445
- const parsedBody = parsedOutput.body;
1446
- return throwDefaultError({
1447
- output,
1448
- parsedBody,
1449
- errorCode
1450
- });
1451
- }
1452
- }, "de_DescribeRuleGroupsNamespaceCommandError");
1453
1023
  var de_DescribeScraperCommand = /* @__PURE__ */ __name(async (output, context) => {
1454
1024
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1455
- return de_DescribeScraperCommandError(output, context);
1025
+ return de_CommandError(output, context);
1456
1026
  }
1457
1027
  const contents = (0, import_smithy_client.map)({
1458
1028
  $metadata: deserializeMetadata(output)
@@ -1464,40 +1034,9 @@ var de_DescribeScraperCommand = /* @__PURE__ */ __name(async (output, context) =
1464
1034
  Object.assign(contents, doc);
1465
1035
  return contents;
1466
1036
  }, "de_DescribeScraperCommand");
1467
- var de_DescribeScraperCommandError = /* @__PURE__ */ __name(async (output, context) => {
1468
- const parsedOutput = {
1469
- ...output,
1470
- body: await parseErrorBody(output.body, context)
1471
- };
1472
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1473
- switch (errorCode) {
1474
- case "AccessDeniedException":
1475
- case "com.amazonaws.amp#AccessDeniedException":
1476
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1477
- case "InternalServerException":
1478
- case "com.amazonaws.amp#InternalServerException":
1479
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1480
- case "ResourceNotFoundException":
1481
- case "com.amazonaws.amp#ResourceNotFoundException":
1482
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1483
- case "ThrottlingException":
1484
- case "com.amazonaws.amp#ThrottlingException":
1485
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1486
- case "ValidationException":
1487
- case "com.amazonaws.amp#ValidationException":
1488
- throw await de_ValidationExceptionRes(parsedOutput, context);
1489
- default:
1490
- const parsedBody = parsedOutput.body;
1491
- return throwDefaultError({
1492
- output,
1493
- parsedBody,
1494
- errorCode
1495
- });
1496
- }
1497
- }, "de_DescribeScraperCommandError");
1498
1037
  var de_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1499
1038
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1500
- return de_DescribeWorkspaceCommandError(output, context);
1039
+ return de_CommandError(output, context);
1501
1040
  }
1502
1041
  const contents = (0, import_smithy_client.map)({
1503
1042
  $metadata: deserializeMetadata(output)
@@ -1509,40 +1048,9 @@ var de_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (output, context)
1509
1048
  Object.assign(contents, doc);
1510
1049
  return contents;
1511
1050
  }, "de_DescribeWorkspaceCommand");
1512
- var de_DescribeWorkspaceCommandError = /* @__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.amp#AccessDeniedException":
1521
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1522
- case "InternalServerException":
1523
- case "com.amazonaws.amp#InternalServerException":
1524
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1525
- case "ResourceNotFoundException":
1526
- case "com.amazonaws.amp#ResourceNotFoundException":
1527
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1528
- case "ThrottlingException":
1529
- case "com.amazonaws.amp#ThrottlingException":
1530
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1531
- case "ValidationException":
1532
- case "com.amazonaws.amp#ValidationException":
1533
- throw await de_ValidationExceptionRes(parsedOutput, context);
1534
- default:
1535
- const parsedBody = parsedOutput.body;
1536
- return throwDefaultError({
1537
- output,
1538
- parsedBody,
1539
- errorCode
1540
- });
1541
- }
1542
- }, "de_DescribeWorkspaceCommandError");
1543
1051
  var de_GetDefaultScraperConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1544
1052
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1545
- return de_GetDefaultScraperConfigurationCommandError(output, context);
1053
+ return de_CommandError(output, context);
1546
1054
  }
1547
1055
  const contents = (0, import_smithy_client.map)({
1548
1056
  $metadata: deserializeMetadata(output)
@@ -1554,34 +1062,9 @@ var de_GetDefaultScraperConfigurationCommand = /* @__PURE__ */ __name(async (out
1554
1062
  Object.assign(contents, doc);
1555
1063
  return contents;
1556
1064
  }, "de_GetDefaultScraperConfigurationCommand");
1557
- var de_GetDefaultScraperConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1558
- const parsedOutput = {
1559
- ...output,
1560
- body: await parseErrorBody(output.body, context)
1561
- };
1562
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1563
- switch (errorCode) {
1564
- case "AccessDeniedException":
1565
- case "com.amazonaws.amp#AccessDeniedException":
1566
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1567
- case "InternalServerException":
1568
- case "com.amazonaws.amp#InternalServerException":
1569
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1570
- case "ThrottlingException":
1571
- case "com.amazonaws.amp#ThrottlingException":
1572
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1573
- default:
1574
- const parsedBody = parsedOutput.body;
1575
- return throwDefaultError({
1576
- output,
1577
- parsedBody,
1578
- errorCode
1579
- });
1580
- }
1581
- }, "de_GetDefaultScraperConfigurationCommandError");
1582
1065
  var de_ListRuleGroupsNamespacesCommand = /* @__PURE__ */ __name(async (output, context) => {
1583
1066
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1584
- return de_ListRuleGroupsNamespacesCommandError(output, context);
1067
+ return de_CommandError(output, context);
1585
1068
  }
1586
1069
  const contents = (0, import_smithy_client.map)({
1587
1070
  $metadata: deserializeMetadata(output)
@@ -1594,40 +1077,9 @@ var de_ListRuleGroupsNamespacesCommand = /* @__PURE__ */ __name(async (output, c
1594
1077
  Object.assign(contents, doc);
1595
1078
  return contents;
1596
1079
  }, "de_ListRuleGroupsNamespacesCommand");
1597
- var de_ListRuleGroupsNamespacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1598
- const parsedOutput = {
1599
- ...output,
1600
- body: await parseErrorBody(output.body, context)
1601
- };
1602
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1603
- switch (errorCode) {
1604
- case "AccessDeniedException":
1605
- case "com.amazonaws.amp#AccessDeniedException":
1606
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1607
- case "InternalServerException":
1608
- case "com.amazonaws.amp#InternalServerException":
1609
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1610
- case "ResourceNotFoundException":
1611
- case "com.amazonaws.amp#ResourceNotFoundException":
1612
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1613
- case "ThrottlingException":
1614
- case "com.amazonaws.amp#ThrottlingException":
1615
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1616
- case "ValidationException":
1617
- case "com.amazonaws.amp#ValidationException":
1618
- throw await de_ValidationExceptionRes(parsedOutput, context);
1619
- default:
1620
- const parsedBody = parsedOutput.body;
1621
- return throwDefaultError({
1622
- output,
1623
- parsedBody,
1624
- errorCode
1625
- });
1626
- }
1627
- }, "de_ListRuleGroupsNamespacesCommandError");
1628
1080
  var de_ListScrapersCommand = /* @__PURE__ */ __name(async (output, context) => {
1629
1081
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1630
- return de_ListScrapersCommandError(output, context);
1082
+ return de_CommandError(output, context);
1631
1083
  }
1632
1084
  const contents = (0, import_smithy_client.map)({
1633
1085
  $metadata: deserializeMetadata(output)
@@ -1640,37 +1092,9 @@ var de_ListScrapersCommand = /* @__PURE__ */ __name(async (output, context) => {
1640
1092
  Object.assign(contents, doc);
1641
1093
  return contents;
1642
1094
  }, "de_ListScrapersCommand");
1643
- var de_ListScrapersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1644
- const parsedOutput = {
1645
- ...output,
1646
- body: await parseErrorBody(output.body, context)
1647
- };
1648
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1649
- switch (errorCode) {
1650
- case "AccessDeniedException":
1651
- case "com.amazonaws.amp#AccessDeniedException":
1652
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1653
- case "InternalServerException":
1654
- case "com.amazonaws.amp#InternalServerException":
1655
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1656
- case "ThrottlingException":
1657
- case "com.amazonaws.amp#ThrottlingException":
1658
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1659
- case "ValidationException":
1660
- case "com.amazonaws.amp#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_ListScrapersCommandError");
1671
1095
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1672
1096
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1673
- return de_ListTagsForResourceCommandError(output, context);
1097
+ return de_CommandError(output, context);
1674
1098
  }
1675
1099
  const contents = (0, import_smithy_client.map)({
1676
1100
  $metadata: deserializeMetadata(output)
@@ -1682,40 +1106,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1682
1106
  Object.assign(contents, doc);
1683
1107
  return contents;
1684
1108
  }, "de_ListTagsForResourceCommand");
1685
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1686
- const parsedOutput = {
1687
- ...output,
1688
- body: await parseErrorBody(output.body, context)
1689
- };
1690
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1691
- switch (errorCode) {
1692
- case "AccessDeniedException":
1693
- case "com.amazonaws.amp#AccessDeniedException":
1694
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1695
- case "InternalServerException":
1696
- case "com.amazonaws.amp#InternalServerException":
1697
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1698
- case "ResourceNotFoundException":
1699
- case "com.amazonaws.amp#ResourceNotFoundException":
1700
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1701
- case "ThrottlingException":
1702
- case "com.amazonaws.amp#ThrottlingException":
1703
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1704
- case "ValidationException":
1705
- case "com.amazonaws.amp#ValidationException":
1706
- throw await de_ValidationExceptionRes(parsedOutput, context);
1707
- default:
1708
- const parsedBody = parsedOutput.body;
1709
- return throwDefaultError({
1710
- output,
1711
- parsedBody,
1712
- errorCode
1713
- });
1714
- }
1715
- }, "de_ListTagsForResourceCommandError");
1716
1109
  var de_ListWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
1717
1110
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1718
- return de_ListWorkspacesCommandError(output, context);
1111
+ return de_CommandError(output, context);
1719
1112
  }
1720
1113
  const contents = (0, import_smithy_client.map)({
1721
1114
  $metadata: deserializeMetadata(output)
@@ -1728,37 +1121,9 @@ var de_ListWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) =>
1728
1121
  Object.assign(contents, doc);
1729
1122
  return contents;
1730
1123
  }, "de_ListWorkspacesCommand");
1731
- var de_ListWorkspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1732
- const parsedOutput = {
1733
- ...output,
1734
- body: await parseErrorBody(output.body, context)
1735
- };
1736
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1737
- switch (errorCode) {
1738
- case "AccessDeniedException":
1739
- case "com.amazonaws.amp#AccessDeniedException":
1740
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1741
- case "InternalServerException":
1742
- case "com.amazonaws.amp#InternalServerException":
1743
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1744
- case "ThrottlingException":
1745
- case "com.amazonaws.amp#ThrottlingException":
1746
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1747
- case "ValidationException":
1748
- case "com.amazonaws.amp#ValidationException":
1749
- throw await de_ValidationExceptionRes(parsedOutput, context);
1750
- default:
1751
- const parsedBody = parsedOutput.body;
1752
- return throwDefaultError({
1753
- output,
1754
- parsedBody,
1755
- errorCode
1756
- });
1757
- }
1758
- }, "de_ListWorkspacesCommandError");
1759
1124
  var de_PutAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
1760
1125
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1761
- return de_PutAlertManagerDefinitionCommandError(output, context);
1126
+ return de_CommandError(output, context);
1762
1127
  }
1763
1128
  const contents = (0, import_smithy_client.map)({
1764
1129
  $metadata: deserializeMetadata(output)
@@ -1770,46 +1135,9 @@ var de_PutAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (output,
1770
1135
  Object.assign(contents, doc);
1771
1136
  return contents;
1772
1137
  }, "de_PutAlertManagerDefinitionCommand");
1773
- var de_PutAlertManagerDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1774
- const parsedOutput = {
1775
- ...output,
1776
- body: await parseErrorBody(output.body, context)
1777
- };
1778
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1779
- switch (errorCode) {
1780
- case "AccessDeniedException":
1781
- case "com.amazonaws.amp#AccessDeniedException":
1782
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1783
- case "ConflictException":
1784
- case "com.amazonaws.amp#ConflictException":
1785
- throw await de_ConflictExceptionRes(parsedOutput, context);
1786
- case "InternalServerException":
1787
- case "com.amazonaws.amp#InternalServerException":
1788
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1789
- case "ResourceNotFoundException":
1790
- case "com.amazonaws.amp#ResourceNotFoundException":
1791
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1792
- case "ServiceQuotaExceededException":
1793
- case "com.amazonaws.amp#ServiceQuotaExceededException":
1794
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1795
- case "ThrottlingException":
1796
- case "com.amazonaws.amp#ThrottlingException":
1797
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1798
- case "ValidationException":
1799
- case "com.amazonaws.amp#ValidationException":
1800
- throw await de_ValidationExceptionRes(parsedOutput, context);
1801
- default:
1802
- const parsedBody = parsedOutput.body;
1803
- return throwDefaultError({
1804
- output,
1805
- parsedBody,
1806
- errorCode
1807
- });
1808
- }
1809
- }, "de_PutAlertManagerDefinitionCommandError");
1810
1138
  var de_PutRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1811
1139
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1812
- return de_PutRuleGroupsNamespaceCommandError(output, context);
1140
+ return de_CommandError(output, context);
1813
1141
  }
1814
1142
  const contents = (0, import_smithy_client.map)({
1815
1143
  $metadata: deserializeMetadata(output)
@@ -1824,46 +1152,9 @@ var de_PutRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output, con
1824
1152
  Object.assign(contents, doc);
1825
1153
  return contents;
1826
1154
  }, "de_PutRuleGroupsNamespaceCommand");
1827
- var de_PutRuleGroupsNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1828
- const parsedOutput = {
1829
- ...output,
1830
- body: await parseErrorBody(output.body, context)
1831
- };
1832
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1833
- switch (errorCode) {
1834
- case "AccessDeniedException":
1835
- case "com.amazonaws.amp#AccessDeniedException":
1836
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1837
- case "ConflictException":
1838
- case "com.amazonaws.amp#ConflictException":
1839
- throw await de_ConflictExceptionRes(parsedOutput, context);
1840
- case "InternalServerException":
1841
- case "com.amazonaws.amp#InternalServerException":
1842
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1843
- case "ResourceNotFoundException":
1844
- case "com.amazonaws.amp#ResourceNotFoundException":
1845
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1846
- case "ServiceQuotaExceededException":
1847
- case "com.amazonaws.amp#ServiceQuotaExceededException":
1848
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1849
- case "ThrottlingException":
1850
- case "com.amazonaws.amp#ThrottlingException":
1851
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1852
- case "ValidationException":
1853
- case "com.amazonaws.amp#ValidationException":
1854
- throw await de_ValidationExceptionRes(parsedOutput, context);
1855
- default:
1856
- const parsedBody = parsedOutput.body;
1857
- return throwDefaultError({
1858
- output,
1859
- parsedBody,
1860
- errorCode
1861
- });
1862
- }
1863
- }, "de_PutRuleGroupsNamespaceCommandError");
1864
1155
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1865
1156
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1866
- return de_TagResourceCommandError(output, context);
1157
+ return de_CommandError(output, context);
1867
1158
  }
1868
1159
  const contents = (0, import_smithy_client.map)({
1869
1160
  $metadata: deserializeMetadata(output)
@@ -1871,40 +1162,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1871
1162
  await (0, import_smithy_client.collectBody)(output.body, context);
1872
1163
  return contents;
1873
1164
  }, "de_TagResourceCommand");
1874
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1875
- const parsedOutput = {
1876
- ...output,
1877
- body: await parseErrorBody(output.body, context)
1878
- };
1879
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1880
- switch (errorCode) {
1881
- case "AccessDeniedException":
1882
- case "com.amazonaws.amp#AccessDeniedException":
1883
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1884
- case "InternalServerException":
1885
- case "com.amazonaws.amp#InternalServerException":
1886
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1887
- case "ResourceNotFoundException":
1888
- case "com.amazonaws.amp#ResourceNotFoundException":
1889
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1890
- case "ThrottlingException":
1891
- case "com.amazonaws.amp#ThrottlingException":
1892
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1893
- case "ValidationException":
1894
- case "com.amazonaws.amp#ValidationException":
1895
- throw await de_ValidationExceptionRes(parsedOutput, context);
1896
- default:
1897
- const parsedBody = parsedOutput.body;
1898
- return throwDefaultError({
1899
- output,
1900
- parsedBody,
1901
- errorCode
1902
- });
1903
- }
1904
- }, "de_TagResourceCommandError");
1905
1165
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1906
1166
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1907
- return de_UntagResourceCommandError(output, context);
1167
+ return de_CommandError(output, context);
1908
1168
  }
1909
1169
  const contents = (0, import_smithy_client.map)({
1910
1170
  $metadata: deserializeMetadata(output)
@@ -1912,40 +1172,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1912
1172
  await (0, import_smithy_client.collectBody)(output.body, context);
1913
1173
  return contents;
1914
1174
  }, "de_UntagResourceCommand");
1915
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1916
- const parsedOutput = {
1917
- ...output,
1918
- body: await parseErrorBody(output.body, context)
1919
- };
1920
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1921
- switch (errorCode) {
1922
- case "AccessDeniedException":
1923
- case "com.amazonaws.amp#AccessDeniedException":
1924
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1925
- case "InternalServerException":
1926
- case "com.amazonaws.amp#InternalServerException":
1927
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1928
- case "ResourceNotFoundException":
1929
- case "com.amazonaws.amp#ResourceNotFoundException":
1930
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1931
- case "ThrottlingException":
1932
- case "com.amazonaws.amp#ThrottlingException":
1933
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1934
- case "ValidationException":
1935
- case "com.amazonaws.amp#ValidationException":
1936
- throw await de_ValidationExceptionRes(parsedOutput, context);
1937
- default:
1938
- const parsedBody = parsedOutput.body;
1939
- return throwDefaultError({
1940
- output,
1941
- parsedBody,
1942
- errorCode
1943
- });
1944
- }
1945
- }, "de_UntagResourceCommandError");
1946
1175
  var de_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1947
1176
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1948
- return de_UpdateLoggingConfigurationCommandError(output, context);
1177
+ return de_CommandError(output, context);
1949
1178
  }
1950
1179
  const contents = (0, import_smithy_client.map)({
1951
1180
  $metadata: deserializeMetadata(output)
@@ -1957,40 +1186,9 @@ var de_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
1957
1186
  Object.assign(contents, doc);
1958
1187
  return contents;
1959
1188
  }, "de_UpdateLoggingConfigurationCommand");
1960
- var de_UpdateLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1961
- const parsedOutput = {
1962
- ...output,
1963
- body: await parseErrorBody(output.body, context)
1964
- };
1965
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1966
- switch (errorCode) {
1967
- case "AccessDeniedException":
1968
- case "com.amazonaws.amp#AccessDeniedException":
1969
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1970
- case "ConflictException":
1971
- case "com.amazonaws.amp#ConflictException":
1972
- throw await de_ConflictExceptionRes(parsedOutput, context);
1973
- case "InternalServerException":
1974
- case "com.amazonaws.amp#InternalServerException":
1975
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1976
- case "ResourceNotFoundException":
1977
- case "com.amazonaws.amp#ResourceNotFoundException":
1978
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1979
- case "ValidationException":
1980
- case "com.amazonaws.amp#ValidationException":
1981
- throw await de_ValidationExceptionRes(parsedOutput, context);
1982
- default:
1983
- const parsedBody = parsedOutput.body;
1984
- return throwDefaultError({
1985
- output,
1986
- parsedBody,
1987
- errorCode
1988
- });
1989
- }
1990
- }, "de_UpdateLoggingConfigurationCommandError");
1991
1189
  var de_UpdateWorkspaceAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
1992
1190
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1993
- return de_UpdateWorkspaceAliasCommandError(output, context);
1191
+ return de_CommandError(output, context);
1994
1192
  }
1995
1193
  const contents = (0, import_smithy_client.map)({
1996
1194
  $metadata: deserializeMetadata(output)
@@ -1998,7 +1196,7 @@ var de_UpdateWorkspaceAliasCommand = /* @__PURE__ */ __name(async (output, conte
1998
1196
  await (0, import_smithy_client.collectBody)(output.body, context);
1999
1197
  return contents;
2000
1198
  }, "de_UpdateWorkspaceAliasCommand");
2001
- var de_UpdateWorkspaceAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
1199
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2002
1200
  const parsedOutput = {
2003
1201
  ...output,
2004
1202
  body: await parseErrorBody(output.body, context)
@@ -2034,7 +1232,7 @@ var de_UpdateWorkspaceAliasCommandError = /* @__PURE__ */ __name(async (output,
2034
1232
  errorCode
2035
1233
  });
2036
1234
  }
2037
- }, "de_UpdateWorkspaceAliasCommandError");
1235
+ }, "de_CommandError");
2038
1236
  var throwDefaultError = (0, import_smithy_client.withBaseException)(AmpServiceException);
2039
1237
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2040
1238
  const contents = (0, import_smithy_client.map)({});