@aws-sdk/client-xray 3.503.1 → 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
@@ -920,7 +920,7 @@ var se_UpdateSamplingRuleCommand = /* @__PURE__ */ __name(async (input, context)
920
920
  }, "se_UpdateSamplingRuleCommand");
921
921
  var de_BatchGetTracesCommand = /* @__PURE__ */ __name(async (output, context) => {
922
922
  if (output.statusCode !== 200 && output.statusCode >= 300) {
923
- return de_BatchGetTracesCommandError(output, context);
923
+ return de_CommandError(output, context);
924
924
  }
925
925
  const contents = (0, import_smithy_client.map)({
926
926
  $metadata: deserializeMetadata(output)
@@ -934,31 +934,9 @@ var de_BatchGetTracesCommand = /* @__PURE__ */ __name(async (output, context) =>
934
934
  Object.assign(contents, doc);
935
935
  return contents;
936
936
  }, "de_BatchGetTracesCommand");
937
- var de_BatchGetTracesCommandError = /* @__PURE__ */ __name(async (output, context) => {
938
- const parsedOutput = {
939
- ...output,
940
- body: await parseErrorBody(output.body, context)
941
- };
942
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
943
- switch (errorCode) {
944
- case "InvalidRequestException":
945
- case "com.amazonaws.xray#InvalidRequestException":
946
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
947
- case "ThrottledException":
948
- case "com.amazonaws.xray#ThrottledException":
949
- throw await de_ThrottledExceptionRes(parsedOutput, context);
950
- default:
951
- const parsedBody = parsedOutput.body;
952
- return throwDefaultError({
953
- output,
954
- parsedBody,
955
- errorCode
956
- });
957
- }
958
- }, "de_BatchGetTracesCommandError");
959
937
  var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
960
938
  if (output.statusCode !== 200 && output.statusCode >= 300) {
961
- return de_CreateGroupCommandError(output, context);
939
+ return de_CommandError(output, context);
962
940
  }
963
941
  const contents = (0, import_smithy_client.map)({
964
942
  $metadata: deserializeMetadata(output)
@@ -970,31 +948,9 @@ var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
970
948
  Object.assign(contents, doc);
971
949
  return contents;
972
950
  }, "de_CreateGroupCommand");
973
- var de_CreateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
974
- const parsedOutput = {
975
- ...output,
976
- body: await parseErrorBody(output.body, context)
977
- };
978
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
979
- switch (errorCode) {
980
- case "InvalidRequestException":
981
- case "com.amazonaws.xray#InvalidRequestException":
982
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
983
- case "ThrottledException":
984
- case "com.amazonaws.xray#ThrottledException":
985
- throw await de_ThrottledExceptionRes(parsedOutput, context);
986
- default:
987
- const parsedBody = parsedOutput.body;
988
- return throwDefaultError({
989
- output,
990
- parsedBody,
991
- errorCode
992
- });
993
- }
994
- }, "de_CreateGroupCommandError");
995
951
  var de_CreateSamplingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
996
952
  if (output.statusCode !== 200 && output.statusCode >= 300) {
997
- return de_CreateSamplingRuleCommandError(output, context);
953
+ return de_CommandError(output, context);
998
954
  }
999
955
  const contents = (0, import_smithy_client.map)({
1000
956
  $metadata: deserializeMetadata(output)
@@ -1006,34 +962,9 @@ var de_CreateSamplingRuleCommand = /* @__PURE__ */ __name(async (output, context
1006
962
  Object.assign(contents, doc);
1007
963
  return contents;
1008
964
  }, "de_CreateSamplingRuleCommand");
1009
- var de_CreateSamplingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1010
- const parsedOutput = {
1011
- ...output,
1012
- body: await parseErrorBody(output.body, context)
1013
- };
1014
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1015
- switch (errorCode) {
1016
- case "InvalidRequestException":
1017
- case "com.amazonaws.xray#InvalidRequestException":
1018
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1019
- case "RuleLimitExceededException":
1020
- case "com.amazonaws.xray#RuleLimitExceededException":
1021
- throw await de_RuleLimitExceededExceptionRes(parsedOutput, context);
1022
- case "ThrottledException":
1023
- case "com.amazonaws.xray#ThrottledException":
1024
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1025
- default:
1026
- const parsedBody = parsedOutput.body;
1027
- return throwDefaultError({
1028
- output,
1029
- parsedBody,
1030
- errorCode
1031
- });
1032
- }
1033
- }, "de_CreateSamplingRuleCommandError");
1034
965
  var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1035
966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1036
- return de_DeleteGroupCommandError(output, context);
967
+ return de_CommandError(output, context);
1037
968
  }
1038
969
  const contents = (0, import_smithy_client.map)({
1039
970
  $metadata: deserializeMetadata(output)
@@ -1041,31 +972,9 @@ var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1041
972
  await (0, import_smithy_client.collectBody)(output.body, context);
1042
973
  return contents;
1043
974
  }, "de_DeleteGroupCommand");
1044
- var de_DeleteGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1045
- const parsedOutput = {
1046
- ...output,
1047
- body: await parseErrorBody(output.body, context)
1048
- };
1049
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1050
- switch (errorCode) {
1051
- case "InvalidRequestException":
1052
- case "com.amazonaws.xray#InvalidRequestException":
1053
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1054
- case "ThrottledException":
1055
- case "com.amazonaws.xray#ThrottledException":
1056
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1057
- default:
1058
- const parsedBody = parsedOutput.body;
1059
- return throwDefaultError({
1060
- output,
1061
- parsedBody,
1062
- errorCode
1063
- });
1064
- }
1065
- }, "de_DeleteGroupCommandError");
1066
975
  var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1067
976
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1068
- return de_DeleteResourcePolicyCommandError(output, context);
977
+ return de_CommandError(output, context);
1069
978
  }
1070
979
  const contents = (0, import_smithy_client.map)({
1071
980
  $metadata: deserializeMetadata(output)
@@ -1073,34 +982,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
1073
982
  await (0, import_smithy_client.collectBody)(output.body, context);
1074
983
  return contents;
1075
984
  }, "de_DeleteResourcePolicyCommand");
1076
- var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1077
- const parsedOutput = {
1078
- ...output,
1079
- body: await parseErrorBody(output.body, context)
1080
- };
1081
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1082
- switch (errorCode) {
1083
- case "InvalidPolicyRevisionIdException":
1084
- case "com.amazonaws.xray#InvalidPolicyRevisionIdException":
1085
- throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput, context);
1086
- case "InvalidRequestException":
1087
- case "com.amazonaws.xray#InvalidRequestException":
1088
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1089
- case "ThrottledException":
1090
- case "com.amazonaws.xray#ThrottledException":
1091
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1092
- default:
1093
- const parsedBody = parsedOutput.body;
1094
- return throwDefaultError({
1095
- output,
1096
- parsedBody,
1097
- errorCode
1098
- });
1099
- }
1100
- }, "de_DeleteResourcePolicyCommandError");
1101
985
  var de_DeleteSamplingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1102
986
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1103
- return de_DeleteSamplingRuleCommandError(output, context);
987
+ return de_CommandError(output, context);
1104
988
  }
1105
989
  const contents = (0, import_smithy_client.map)({
1106
990
  $metadata: deserializeMetadata(output)
@@ -1112,31 +996,9 @@ var de_DeleteSamplingRuleCommand = /* @__PURE__ */ __name(async (output, context
1112
996
  Object.assign(contents, doc);
1113
997
  return contents;
1114
998
  }, "de_DeleteSamplingRuleCommand");
1115
- var de_DeleteSamplingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1116
- const parsedOutput = {
1117
- ...output,
1118
- body: await parseErrorBody(output.body, context)
1119
- };
1120
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1121
- switch (errorCode) {
1122
- case "InvalidRequestException":
1123
- case "com.amazonaws.xray#InvalidRequestException":
1124
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1125
- case "ThrottledException":
1126
- case "com.amazonaws.xray#ThrottledException":
1127
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1128
- default:
1129
- const parsedBody = parsedOutput.body;
1130
- return throwDefaultError({
1131
- output,
1132
- parsedBody,
1133
- errorCode
1134
- });
1135
- }
1136
- }, "de_DeleteSamplingRuleCommandError");
1137
999
  var de_GetEncryptionConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1138
1000
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1139
- return de_GetEncryptionConfigCommandError(output, context);
1001
+ return de_CommandError(output, context);
1140
1002
  }
1141
1003
  const contents = (0, import_smithy_client.map)({
1142
1004
  $metadata: deserializeMetadata(output)
@@ -1148,31 +1010,9 @@ var de_GetEncryptionConfigCommand = /* @__PURE__ */ __name(async (output, contex
1148
1010
  Object.assign(contents, doc);
1149
1011
  return contents;
1150
1012
  }, "de_GetEncryptionConfigCommand");
1151
- var de_GetEncryptionConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
1152
- const parsedOutput = {
1153
- ...output,
1154
- body: await parseErrorBody(output.body, context)
1155
- };
1156
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1157
- switch (errorCode) {
1158
- case "InvalidRequestException":
1159
- case "com.amazonaws.xray#InvalidRequestException":
1160
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1161
- case "ThrottledException":
1162
- case "com.amazonaws.xray#ThrottledException":
1163
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1164
- default:
1165
- const parsedBody = parsedOutput.body;
1166
- return throwDefaultError({
1167
- output,
1168
- parsedBody,
1169
- errorCode
1170
- });
1171
- }
1172
- }, "de_GetEncryptionConfigCommandError");
1173
1013
  var de_GetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1174
1014
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1175
- return de_GetGroupCommandError(output, context);
1015
+ return de_CommandError(output, context);
1176
1016
  }
1177
1017
  const contents = (0, import_smithy_client.map)({
1178
1018
  $metadata: deserializeMetadata(output)
@@ -1184,31 +1024,9 @@ var de_GetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1184
1024
  Object.assign(contents, doc);
1185
1025
  return contents;
1186
1026
  }, "de_GetGroupCommand");
1187
- var de_GetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1188
- const parsedOutput = {
1189
- ...output,
1190
- body: await parseErrorBody(output.body, context)
1191
- };
1192
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1193
- switch (errorCode) {
1194
- case "InvalidRequestException":
1195
- case "com.amazonaws.xray#InvalidRequestException":
1196
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1197
- case "ThrottledException":
1198
- case "com.amazonaws.xray#ThrottledException":
1199
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1200
- default:
1201
- const parsedBody = parsedOutput.body;
1202
- return throwDefaultError({
1203
- output,
1204
- parsedBody,
1205
- errorCode
1206
- });
1207
- }
1208
- }, "de_GetGroupCommandError");
1209
1027
  var de_GetGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1210
1028
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1211
- return de_GetGroupsCommandError(output, context);
1029
+ return de_CommandError(output, context);
1212
1030
  }
1213
1031
  const contents = (0, import_smithy_client.map)({
1214
1032
  $metadata: deserializeMetadata(output)
@@ -1221,31 +1039,9 @@ var de_GetGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1221
1039
  Object.assign(contents, doc);
1222
1040
  return contents;
1223
1041
  }, "de_GetGroupsCommand");
1224
- var de_GetGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1225
- const parsedOutput = {
1226
- ...output,
1227
- body: await parseErrorBody(output.body, context)
1228
- };
1229
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1230
- switch (errorCode) {
1231
- case "InvalidRequestException":
1232
- case "com.amazonaws.xray#InvalidRequestException":
1233
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1234
- case "ThrottledException":
1235
- case "com.amazonaws.xray#ThrottledException":
1236
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1237
- default:
1238
- const parsedBody = parsedOutput.body;
1239
- return throwDefaultError({
1240
- output,
1241
- parsedBody,
1242
- errorCode
1243
- });
1244
- }
1245
- }, "de_GetGroupsCommandError");
1246
1042
  var de_GetInsightCommand = /* @__PURE__ */ __name(async (output, context) => {
1247
1043
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1248
- return de_GetInsightCommandError(output, context);
1044
+ return de_CommandError(output, context);
1249
1045
  }
1250
1046
  const contents = (0, import_smithy_client.map)({
1251
1047
  $metadata: deserializeMetadata(output)
@@ -1257,31 +1053,9 @@ var de_GetInsightCommand = /* @__PURE__ */ __name(async (output, context) => {
1257
1053
  Object.assign(contents, doc);
1258
1054
  return contents;
1259
1055
  }, "de_GetInsightCommand");
1260
- var de_GetInsightCommandError = /* @__PURE__ */ __name(async (output, context) => {
1261
- const parsedOutput = {
1262
- ...output,
1263
- body: await parseErrorBody(output.body, context)
1264
- };
1265
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1266
- switch (errorCode) {
1267
- case "InvalidRequestException":
1268
- case "com.amazonaws.xray#InvalidRequestException":
1269
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1270
- case "ThrottledException":
1271
- case "com.amazonaws.xray#ThrottledException":
1272
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1273
- default:
1274
- const parsedBody = parsedOutput.body;
1275
- return throwDefaultError({
1276
- output,
1277
- parsedBody,
1278
- errorCode
1279
- });
1280
- }
1281
- }, "de_GetInsightCommandError");
1282
1056
  var de_GetInsightEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
1283
1057
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1284
- return de_GetInsightEventsCommandError(output, context);
1058
+ return de_CommandError(output, context);
1285
1059
  }
1286
1060
  const contents = (0, import_smithy_client.map)({
1287
1061
  $metadata: deserializeMetadata(output)
@@ -1294,31 +1068,9 @@ var de_GetInsightEventsCommand = /* @__PURE__ */ __name(async (output, context)
1294
1068
  Object.assign(contents, doc);
1295
1069
  return contents;
1296
1070
  }, "de_GetInsightEventsCommand");
1297
- var de_GetInsightEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1298
- const parsedOutput = {
1299
- ...output,
1300
- body: await parseErrorBody(output.body, context)
1301
- };
1302
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1303
- switch (errorCode) {
1304
- case "InvalidRequestException":
1305
- case "com.amazonaws.xray#InvalidRequestException":
1306
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1307
- case "ThrottledException":
1308
- case "com.amazonaws.xray#ThrottledException":
1309
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1310
- default:
1311
- const parsedBody = parsedOutput.body;
1312
- return throwDefaultError({
1313
- output,
1314
- parsedBody,
1315
- errorCode
1316
- });
1317
- }
1318
- }, "de_GetInsightEventsCommandError");
1319
1071
  var de_GetInsightImpactGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1320
1072
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1321
- return de_GetInsightImpactGraphCommandError(output, context);
1073
+ return de_CommandError(output, context);
1322
1074
  }
1323
1075
  const contents = (0, import_smithy_client.map)({
1324
1076
  $metadata: deserializeMetadata(output)
@@ -1336,31 +1088,9 @@ var de_GetInsightImpactGraphCommand = /* @__PURE__ */ __name(async (output, cont
1336
1088
  Object.assign(contents, doc);
1337
1089
  return contents;
1338
1090
  }, "de_GetInsightImpactGraphCommand");
1339
- var de_GetInsightImpactGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1340
- const parsedOutput = {
1341
- ...output,
1342
- body: await parseErrorBody(output.body, context)
1343
- };
1344
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1345
- switch (errorCode) {
1346
- case "InvalidRequestException":
1347
- case "com.amazonaws.xray#InvalidRequestException":
1348
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1349
- case "ThrottledException":
1350
- case "com.amazonaws.xray#ThrottledException":
1351
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1352
- default:
1353
- const parsedBody = parsedOutput.body;
1354
- return throwDefaultError({
1355
- output,
1356
- parsedBody,
1357
- errorCode
1358
- });
1359
- }
1360
- }, "de_GetInsightImpactGraphCommandError");
1361
1091
  var de_GetInsightSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
1362
1092
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1363
- return de_GetInsightSummariesCommandError(output, context);
1093
+ return de_CommandError(output, context);
1364
1094
  }
1365
1095
  const contents = (0, import_smithy_client.map)({
1366
1096
  $metadata: deserializeMetadata(output)
@@ -1373,31 +1103,9 @@ var de_GetInsightSummariesCommand = /* @__PURE__ */ __name(async (output, contex
1373
1103
  Object.assign(contents, doc);
1374
1104
  return contents;
1375
1105
  }, "de_GetInsightSummariesCommand");
1376
- var de_GetInsightSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1377
- const parsedOutput = {
1378
- ...output,
1379
- body: await parseErrorBody(output.body, context)
1380
- };
1381
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1382
- switch (errorCode) {
1383
- case "InvalidRequestException":
1384
- case "com.amazonaws.xray#InvalidRequestException":
1385
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1386
- case "ThrottledException":
1387
- case "com.amazonaws.xray#ThrottledException":
1388
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1389
- default:
1390
- const parsedBody = parsedOutput.body;
1391
- return throwDefaultError({
1392
- output,
1393
- parsedBody,
1394
- errorCode
1395
- });
1396
- }
1397
- }, "de_GetInsightSummariesCommandError");
1398
1106
  var de_GetSamplingRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
1399
1107
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1400
- return de_GetSamplingRulesCommandError(output, context);
1108
+ return de_CommandError(output, context);
1401
1109
  }
1402
1110
  const contents = (0, import_smithy_client.map)({
1403
1111
  $metadata: deserializeMetadata(output)
@@ -1410,31 +1118,9 @@ var de_GetSamplingRulesCommand = /* @__PURE__ */ __name(async (output, context)
1410
1118
  Object.assign(contents, doc);
1411
1119
  return contents;
1412
1120
  }, "de_GetSamplingRulesCommand");
1413
- var de_GetSamplingRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1414
- const parsedOutput = {
1415
- ...output,
1416
- body: await parseErrorBody(output.body, context)
1417
- };
1418
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1419
- switch (errorCode) {
1420
- case "InvalidRequestException":
1421
- case "com.amazonaws.xray#InvalidRequestException":
1422
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1423
- case "ThrottledException":
1424
- case "com.amazonaws.xray#ThrottledException":
1425
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1426
- default:
1427
- const parsedBody = parsedOutput.body;
1428
- return throwDefaultError({
1429
- output,
1430
- parsedBody,
1431
- errorCode
1432
- });
1433
- }
1434
- }, "de_GetSamplingRulesCommandError");
1435
1121
  var de_GetSamplingStatisticSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
1436
1122
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1437
- return de_GetSamplingStatisticSummariesCommandError(output, context);
1123
+ return de_CommandError(output, context);
1438
1124
  }
1439
1125
  const contents = (0, import_smithy_client.map)({
1440
1126
  $metadata: deserializeMetadata(output)
@@ -1447,31 +1133,9 @@ var de_GetSamplingStatisticSummariesCommand = /* @__PURE__ */ __name(async (outp
1447
1133
  Object.assign(contents, doc);
1448
1134
  return contents;
1449
1135
  }, "de_GetSamplingStatisticSummariesCommand");
1450
- var de_GetSamplingStatisticSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1451
- const parsedOutput = {
1452
- ...output,
1453
- body: await parseErrorBody(output.body, context)
1454
- };
1455
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1456
- switch (errorCode) {
1457
- case "InvalidRequestException":
1458
- case "com.amazonaws.xray#InvalidRequestException":
1459
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1460
- case "ThrottledException":
1461
- case "com.amazonaws.xray#ThrottledException":
1462
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1463
- default:
1464
- const parsedBody = parsedOutput.body;
1465
- return throwDefaultError({
1466
- output,
1467
- parsedBody,
1468
- errorCode
1469
- });
1470
- }
1471
- }, "de_GetSamplingStatisticSummariesCommandError");
1472
1136
  var de_GetSamplingTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1473
1137
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1474
- return de_GetSamplingTargetsCommandError(output, context);
1138
+ return de_CommandError(output, context);
1475
1139
  }
1476
1140
  const contents = (0, import_smithy_client.map)({
1477
1141
  $metadata: deserializeMetadata(output)
@@ -1485,31 +1149,9 @@ var de_GetSamplingTargetsCommand = /* @__PURE__ */ __name(async (output, context
1485
1149
  Object.assign(contents, doc);
1486
1150
  return contents;
1487
1151
  }, "de_GetSamplingTargetsCommand");
1488
- var de_GetSamplingTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1489
- const parsedOutput = {
1490
- ...output,
1491
- body: await parseErrorBody(output.body, context)
1492
- };
1493
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1494
- switch (errorCode) {
1495
- case "InvalidRequestException":
1496
- case "com.amazonaws.xray#InvalidRequestException":
1497
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1498
- case "ThrottledException":
1499
- case "com.amazonaws.xray#ThrottledException":
1500
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1501
- default:
1502
- const parsedBody = parsedOutput.body;
1503
- return throwDefaultError({
1504
- output,
1505
- parsedBody,
1506
- errorCode
1507
- });
1508
- }
1509
- }, "de_GetSamplingTargetsCommandError");
1510
1152
  var de_GetServiceGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1511
1153
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1512
- return de_GetServiceGraphCommandError(output, context);
1154
+ return de_CommandError(output, context);
1513
1155
  }
1514
1156
  const contents = (0, import_smithy_client.map)({
1515
1157
  $metadata: deserializeMetadata(output)
@@ -1525,31 +1167,9 @@ var de_GetServiceGraphCommand = /* @__PURE__ */ __name(async (output, context) =
1525
1167
  Object.assign(contents, doc);
1526
1168
  return contents;
1527
1169
  }, "de_GetServiceGraphCommand");
1528
- var de_GetServiceGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1529
- const parsedOutput = {
1530
- ...output,
1531
- body: await parseErrorBody(output.body, context)
1532
- };
1533
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1534
- switch (errorCode) {
1535
- case "InvalidRequestException":
1536
- case "com.amazonaws.xray#InvalidRequestException":
1537
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1538
- case "ThrottledException":
1539
- case "com.amazonaws.xray#ThrottledException":
1540
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1541
- default:
1542
- const parsedBody = parsedOutput.body;
1543
- return throwDefaultError({
1544
- output,
1545
- parsedBody,
1546
- errorCode
1547
- });
1548
- }
1549
- }, "de_GetServiceGraphCommandError");
1550
1170
  var de_GetTimeSeriesServiceStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
1551
1171
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1552
- return de_GetTimeSeriesServiceStatisticsCommandError(output, context);
1172
+ return de_CommandError(output, context);
1553
1173
  }
1554
1174
  const contents = (0, import_smithy_client.map)({
1555
1175
  $metadata: deserializeMetadata(output)
@@ -1563,31 +1183,9 @@ var de_GetTimeSeriesServiceStatisticsCommand = /* @__PURE__ */ __name(async (out
1563
1183
  Object.assign(contents, doc);
1564
1184
  return contents;
1565
1185
  }, "de_GetTimeSeriesServiceStatisticsCommand");
1566
- var de_GetTimeSeriesServiceStatisticsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1567
- const parsedOutput = {
1568
- ...output,
1569
- body: await parseErrorBody(output.body, context)
1570
- };
1571
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1572
- switch (errorCode) {
1573
- case "InvalidRequestException":
1574
- case "com.amazonaws.xray#InvalidRequestException":
1575
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1576
- case "ThrottledException":
1577
- case "com.amazonaws.xray#ThrottledException":
1578
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1579
- default:
1580
- const parsedBody = parsedOutput.body;
1581
- return throwDefaultError({
1582
- output,
1583
- parsedBody,
1584
- errorCode
1585
- });
1586
- }
1587
- }, "de_GetTimeSeriesServiceStatisticsCommandError");
1588
1186
  var de_GetTraceGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1589
1187
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1590
- return de_GetTraceGraphCommandError(output, context);
1188
+ return de_CommandError(output, context);
1591
1189
  }
1592
1190
  const contents = (0, import_smithy_client.map)({
1593
1191
  $metadata: deserializeMetadata(output)
@@ -1600,31 +1198,9 @@ var de_GetTraceGraphCommand = /* @__PURE__ */ __name(async (output, context) =>
1600
1198
  Object.assign(contents, doc);
1601
1199
  return contents;
1602
1200
  }, "de_GetTraceGraphCommand");
1603
- var de_GetTraceGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1604
- const parsedOutput = {
1605
- ...output,
1606
- body: await parseErrorBody(output.body, context)
1607
- };
1608
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1609
- switch (errorCode) {
1610
- case "InvalidRequestException":
1611
- case "com.amazonaws.xray#InvalidRequestException":
1612
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1613
- case "ThrottledException":
1614
- case "com.amazonaws.xray#ThrottledException":
1615
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1616
- default:
1617
- const parsedBody = parsedOutput.body;
1618
- return throwDefaultError({
1619
- output,
1620
- parsedBody,
1621
- errorCode
1622
- });
1623
- }
1624
- }, "de_GetTraceGraphCommandError");
1625
1201
  var de_GetTraceSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
1626
1202
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1627
- return de_GetTraceSummariesCommandError(output, context);
1203
+ return de_CommandError(output, context);
1628
1204
  }
1629
1205
  const contents = (0, import_smithy_client.map)({
1630
1206
  $metadata: deserializeMetadata(output)
@@ -1639,31 +1215,9 @@ var de_GetTraceSummariesCommand = /* @__PURE__ */ __name(async (output, context)
1639
1215
  Object.assign(contents, doc);
1640
1216
  return contents;
1641
1217
  }, "de_GetTraceSummariesCommand");
1642
- var de_GetTraceSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1643
- const parsedOutput = {
1644
- ...output,
1645
- body: await parseErrorBody(output.body, context)
1646
- };
1647
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1648
- switch (errorCode) {
1649
- case "InvalidRequestException":
1650
- case "com.amazonaws.xray#InvalidRequestException":
1651
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1652
- case "ThrottledException":
1653
- case "com.amazonaws.xray#ThrottledException":
1654
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1655
- default:
1656
- const parsedBody = parsedOutput.body;
1657
- return throwDefaultError({
1658
- output,
1659
- parsedBody,
1660
- errorCode
1661
- });
1662
- }
1663
- }, "de_GetTraceSummariesCommandError");
1664
1218
  var de_ListResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
1665
1219
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1666
- return de_ListResourcePoliciesCommandError(output, context);
1220
+ return de_CommandError(output, context);
1667
1221
  }
1668
1222
  const contents = (0, import_smithy_client.map)({
1669
1223
  $metadata: deserializeMetadata(output)
@@ -1676,31 +1230,9 @@ var de_ListResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, conte
1676
1230
  Object.assign(contents, doc);
1677
1231
  return contents;
1678
1232
  }, "de_ListResourcePoliciesCommand");
1679
- var de_ListResourcePoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1680
- const parsedOutput = {
1681
- ...output,
1682
- body: await parseErrorBody(output.body, context)
1683
- };
1684
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1685
- switch (errorCode) {
1686
- case "InvalidRequestException":
1687
- case "com.amazonaws.xray#InvalidRequestException":
1688
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1689
- case "ThrottledException":
1690
- case "com.amazonaws.xray#ThrottledException":
1691
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1692
- default:
1693
- const parsedBody = parsedOutput.body;
1694
- return throwDefaultError({
1695
- output,
1696
- parsedBody,
1697
- errorCode
1698
- });
1699
- }
1700
- }, "de_ListResourcePoliciesCommandError");
1701
1233
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1702
1234
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1703
- return de_ListTagsForResourceCommandError(output, context);
1235
+ return de_CommandError(output, context);
1704
1236
  }
1705
1237
  const contents = (0, import_smithy_client.map)({
1706
1238
  $metadata: deserializeMetadata(output)
@@ -1713,34 +1245,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1713
1245
  Object.assign(contents, doc);
1714
1246
  return contents;
1715
1247
  }, "de_ListTagsForResourceCommand");
1716
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1717
- const parsedOutput = {
1718
- ...output,
1719
- body: await parseErrorBody(output.body, context)
1720
- };
1721
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1722
- switch (errorCode) {
1723
- case "InvalidRequestException":
1724
- case "com.amazonaws.xray#InvalidRequestException":
1725
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1726
- case "ResourceNotFoundException":
1727
- case "com.amazonaws.xray#ResourceNotFoundException":
1728
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1729
- case "ThrottledException":
1730
- case "com.amazonaws.xray#ThrottledException":
1731
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1732
- default:
1733
- const parsedBody = parsedOutput.body;
1734
- return throwDefaultError({
1735
- output,
1736
- parsedBody,
1737
- errorCode
1738
- });
1739
- }
1740
- }, "de_ListTagsForResourceCommandError");
1741
1248
  var de_PutEncryptionConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1742
1249
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1743
- return de_PutEncryptionConfigCommandError(output, context);
1250
+ return de_CommandError(output, context);
1744
1251
  }
1745
1252
  const contents = (0, import_smithy_client.map)({
1746
1253
  $metadata: deserializeMetadata(output)
@@ -1752,31 +1259,9 @@ var de_PutEncryptionConfigCommand = /* @__PURE__ */ __name(async (output, contex
1752
1259
  Object.assign(contents, doc);
1753
1260
  return contents;
1754
1261
  }, "de_PutEncryptionConfigCommand");
1755
- var de_PutEncryptionConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
1756
- const parsedOutput = {
1757
- ...output,
1758
- body: await parseErrorBody(output.body, context)
1759
- };
1760
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1761
- switch (errorCode) {
1762
- case "InvalidRequestException":
1763
- case "com.amazonaws.xray#InvalidRequestException":
1764
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1765
- case "ThrottledException":
1766
- case "com.amazonaws.xray#ThrottledException":
1767
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1768
- default:
1769
- const parsedBody = parsedOutput.body;
1770
- return throwDefaultError({
1771
- output,
1772
- parsedBody,
1773
- errorCode
1774
- });
1775
- }
1776
- }, "de_PutEncryptionConfigCommandError");
1777
1262
  var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1778
1263
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1779
- return de_PutResourcePolicyCommandError(output, context);
1264
+ return de_CommandError(output, context);
1780
1265
  }
1781
1266
  const contents = (0, import_smithy_client.map)({
1782
1267
  $metadata: deserializeMetadata(output)
@@ -1788,43 +1273,9 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
1788
1273
  Object.assign(contents, doc);
1789
1274
  return contents;
1790
1275
  }, "de_PutResourcePolicyCommand");
1791
- var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1792
- const parsedOutput = {
1793
- ...output,
1794
- body: await parseErrorBody(output.body, context)
1795
- };
1796
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1797
- switch (errorCode) {
1798
- case "InvalidPolicyRevisionIdException":
1799
- case "com.amazonaws.xray#InvalidPolicyRevisionIdException":
1800
- throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput, context);
1801
- case "LockoutPreventionException":
1802
- case "com.amazonaws.xray#LockoutPreventionException":
1803
- throw await de_LockoutPreventionExceptionRes(parsedOutput, context);
1804
- case "MalformedPolicyDocumentException":
1805
- case "com.amazonaws.xray#MalformedPolicyDocumentException":
1806
- throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
1807
- case "PolicyCountLimitExceededException":
1808
- case "com.amazonaws.xray#PolicyCountLimitExceededException":
1809
- throw await de_PolicyCountLimitExceededExceptionRes(parsedOutput, context);
1810
- case "PolicySizeLimitExceededException":
1811
- case "com.amazonaws.xray#PolicySizeLimitExceededException":
1812
- throw await de_PolicySizeLimitExceededExceptionRes(parsedOutput, context);
1813
- case "ThrottledException":
1814
- case "com.amazonaws.xray#ThrottledException":
1815
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1816
- default:
1817
- const parsedBody = parsedOutput.body;
1818
- return throwDefaultError({
1819
- output,
1820
- parsedBody,
1821
- errorCode
1822
- });
1823
- }
1824
- }, "de_PutResourcePolicyCommandError");
1825
1276
  var de_PutTelemetryRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
1826
1277
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1827
- return de_PutTelemetryRecordsCommandError(output, context);
1278
+ return de_CommandError(output, context);
1828
1279
  }
1829
1280
  const contents = (0, import_smithy_client.map)({
1830
1281
  $metadata: deserializeMetadata(output)
@@ -1832,31 +1283,9 @@ var de_PutTelemetryRecordsCommand = /* @__PURE__ */ __name(async (output, contex
1832
1283
  await (0, import_smithy_client.collectBody)(output.body, context);
1833
1284
  return contents;
1834
1285
  }, "de_PutTelemetryRecordsCommand");
1835
- var de_PutTelemetryRecordsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1836
- const parsedOutput = {
1837
- ...output,
1838
- body: await parseErrorBody(output.body, context)
1839
- };
1840
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1841
- switch (errorCode) {
1842
- case "InvalidRequestException":
1843
- case "com.amazonaws.xray#InvalidRequestException":
1844
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1845
- case "ThrottledException":
1846
- case "com.amazonaws.xray#ThrottledException":
1847
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1848
- default:
1849
- const parsedBody = parsedOutput.body;
1850
- return throwDefaultError({
1851
- output,
1852
- parsedBody,
1853
- errorCode
1854
- });
1855
- }
1856
- }, "de_PutTelemetryRecordsCommandError");
1857
1286
  var de_PutTraceSegmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1858
1287
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1859
- return de_PutTraceSegmentsCommandError(output, context);
1288
+ return de_CommandError(output, context);
1860
1289
  }
1861
1290
  const contents = (0, import_smithy_client.map)({
1862
1291
  $metadata: deserializeMetadata(output)
@@ -1868,31 +1297,9 @@ var de_PutTraceSegmentsCommand = /* @__PURE__ */ __name(async (output, context)
1868
1297
  Object.assign(contents, doc);
1869
1298
  return contents;
1870
1299
  }, "de_PutTraceSegmentsCommand");
1871
- var de_PutTraceSegmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1872
- const parsedOutput = {
1873
- ...output,
1874
- body: await parseErrorBody(output.body, context)
1875
- };
1876
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1877
- switch (errorCode) {
1878
- case "InvalidRequestException":
1879
- case "com.amazonaws.xray#InvalidRequestException":
1880
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1881
- case "ThrottledException":
1882
- case "com.amazonaws.xray#ThrottledException":
1883
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1884
- default:
1885
- const parsedBody = parsedOutput.body;
1886
- return throwDefaultError({
1887
- output,
1888
- parsedBody,
1889
- errorCode
1890
- });
1891
- }
1892
- }, "de_PutTraceSegmentsCommandError");
1893
1300
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1894
1301
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1895
- return de_TagResourceCommandError(output, context);
1302
+ return de_CommandError(output, context);
1896
1303
  }
1897
1304
  const contents = (0, import_smithy_client.map)({
1898
1305
  $metadata: deserializeMetadata(output)
@@ -1900,37 +1307,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1900
1307
  await (0, import_smithy_client.collectBody)(output.body, context);
1901
1308
  return contents;
1902
1309
  }, "de_TagResourceCommand");
1903
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1904
- const parsedOutput = {
1905
- ...output,
1906
- body: await parseErrorBody(output.body, context)
1907
- };
1908
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1909
- switch (errorCode) {
1910
- case "InvalidRequestException":
1911
- case "com.amazonaws.xray#InvalidRequestException":
1912
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1913
- case "ResourceNotFoundException":
1914
- case "com.amazonaws.xray#ResourceNotFoundException":
1915
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1916
- case "ThrottledException":
1917
- case "com.amazonaws.xray#ThrottledException":
1918
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1919
- case "TooManyTagsException":
1920
- case "com.amazonaws.xray#TooManyTagsException":
1921
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1922
- default:
1923
- const parsedBody = parsedOutput.body;
1924
- return throwDefaultError({
1925
- output,
1926
- parsedBody,
1927
- errorCode
1928
- });
1929
- }
1930
- }, "de_TagResourceCommandError");
1931
1310
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1932
1311
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1933
- return de_UntagResourceCommandError(output, context);
1312
+ return de_CommandError(output, context);
1934
1313
  }
1935
1314
  const contents = (0, import_smithy_client.map)({
1936
1315
  $metadata: deserializeMetadata(output)
@@ -1938,34 +1317,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1938
1317
  await (0, import_smithy_client.collectBody)(output.body, context);
1939
1318
  return contents;
1940
1319
  }, "de_UntagResourceCommand");
1941
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1942
- const parsedOutput = {
1943
- ...output,
1944
- body: await parseErrorBody(output.body, context)
1945
- };
1946
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1947
- switch (errorCode) {
1948
- case "InvalidRequestException":
1949
- case "com.amazonaws.xray#InvalidRequestException":
1950
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1951
- case "ResourceNotFoundException":
1952
- case "com.amazonaws.xray#ResourceNotFoundException":
1953
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1954
- case "ThrottledException":
1955
- case "com.amazonaws.xray#ThrottledException":
1956
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1957
- default:
1958
- const parsedBody = parsedOutput.body;
1959
- return throwDefaultError({
1960
- output,
1961
- parsedBody,
1962
- errorCode
1963
- });
1964
- }
1965
- }, "de_UntagResourceCommandError");
1966
1320
  var de_UpdateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1967
1321
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1968
- return de_UpdateGroupCommandError(output, context);
1322
+ return de_CommandError(output, context);
1969
1323
  }
1970
1324
  const contents = (0, import_smithy_client.map)({
1971
1325
  $metadata: deserializeMetadata(output)
@@ -1977,31 +1331,9 @@ var de_UpdateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1977
1331
  Object.assign(contents, doc);
1978
1332
  return contents;
1979
1333
  }, "de_UpdateGroupCommand");
1980
- var de_UpdateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1981
- const parsedOutput = {
1982
- ...output,
1983
- body: await parseErrorBody(output.body, context)
1984
- };
1985
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1986
- switch (errorCode) {
1987
- case "InvalidRequestException":
1988
- case "com.amazonaws.xray#InvalidRequestException":
1989
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1990
- case "ThrottledException":
1991
- case "com.amazonaws.xray#ThrottledException":
1992
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1993
- default:
1994
- const parsedBody = parsedOutput.body;
1995
- return throwDefaultError({
1996
- output,
1997
- parsedBody,
1998
- errorCode
1999
- });
2000
- }
2001
- }, "de_UpdateGroupCommandError");
2002
1334
  var de_UpdateSamplingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
2003
1335
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2004
- return de_UpdateSamplingRuleCommandError(output, context);
1336
+ return de_CommandError(output, context);
2005
1337
  }
2006
1338
  const contents = (0, import_smithy_client.map)({
2007
1339
  $metadata: deserializeMetadata(output)
@@ -2013,7 +1345,7 @@ var de_UpdateSamplingRuleCommand = /* @__PURE__ */ __name(async (output, context
2013
1345
  Object.assign(contents, doc);
2014
1346
  return contents;
2015
1347
  }, "de_UpdateSamplingRuleCommand");
2016
- var de_UpdateSamplingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1348
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2017
1349
  const parsedOutput = {
2018
1350
  ...output,
2019
1351
  body: await parseErrorBody(output.body, context)
@@ -2026,6 +1358,30 @@ var de_UpdateSamplingRuleCommandError = /* @__PURE__ */ __name(async (output, co
2026
1358
  case "ThrottledException":
2027
1359
  case "com.amazonaws.xray#ThrottledException":
2028
1360
  throw await de_ThrottledExceptionRes(parsedOutput, context);
1361
+ case "RuleLimitExceededException":
1362
+ case "com.amazonaws.xray#RuleLimitExceededException":
1363
+ throw await de_RuleLimitExceededExceptionRes(parsedOutput, context);
1364
+ case "InvalidPolicyRevisionIdException":
1365
+ case "com.amazonaws.xray#InvalidPolicyRevisionIdException":
1366
+ throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput, context);
1367
+ case "ResourceNotFoundException":
1368
+ case "com.amazonaws.xray#ResourceNotFoundException":
1369
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1370
+ case "LockoutPreventionException":
1371
+ case "com.amazonaws.xray#LockoutPreventionException":
1372
+ throw await de_LockoutPreventionExceptionRes(parsedOutput, context);
1373
+ case "MalformedPolicyDocumentException":
1374
+ case "com.amazonaws.xray#MalformedPolicyDocumentException":
1375
+ throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
1376
+ case "PolicyCountLimitExceededException":
1377
+ case "com.amazonaws.xray#PolicyCountLimitExceededException":
1378
+ throw await de_PolicyCountLimitExceededExceptionRes(parsedOutput, context);
1379
+ case "PolicySizeLimitExceededException":
1380
+ case "com.amazonaws.xray#PolicySizeLimitExceededException":
1381
+ throw await de_PolicySizeLimitExceededExceptionRes(parsedOutput, context);
1382
+ case "TooManyTagsException":
1383
+ case "com.amazonaws.xray#TooManyTagsException":
1384
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2029
1385
  default:
2030
1386
  const parsedBody = parsedOutput.body;
2031
1387
  return throwDefaultError({
@@ -2034,7 +1390,7 @@ var de_UpdateSamplingRuleCommandError = /* @__PURE__ */ __name(async (output, co
2034
1390
  errorCode
2035
1391
  });
2036
1392
  }
2037
- }, "de_UpdateSamplingRuleCommandError");
1393
+ }, "de_CommandError");
2038
1394
  var throwDefaultError = (0, import_smithy_client.withBaseException)(XRayServiceException);
2039
1395
  var de_InvalidPolicyRevisionIdExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2040
1396
  const contents = (0, import_smithy_client.map)({});