@aws-sdk/client-codecatalyst 3.504.0 → 3.511.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
@@ -1022,7 +1022,7 @@ var se_VerifySessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1022
1022
  }, "se_VerifySessionCommand");
1023
1023
  var de_CreateAccessTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1024
1024
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1025
- return de_CreateAccessTokenCommandError(output, context);
1025
+ return de_CommandError(output, context);
1026
1026
  }
1027
1027
  const contents = (0, import_smithy_client.map)({
1028
1028
  $metadata: deserializeMetadata(output)
@@ -1037,43 +1037,9 @@ var de_CreateAccessTokenCommand = /* @__PURE__ */ __name(async (output, context)
1037
1037
  Object.assign(contents, doc);
1038
1038
  return contents;
1039
1039
  }, "de_CreateAccessTokenCommand");
1040
- var de_CreateAccessTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
1041
- const parsedOutput = {
1042
- ...output,
1043
- body: await parseErrorBody(output.body, context)
1044
- };
1045
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1046
- switch (errorCode) {
1047
- case "AccessDeniedException":
1048
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1049
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1050
- case "ConflictException":
1051
- case "com.amazonaws.codecatalyst#ConflictException":
1052
- throw await de_ConflictExceptionRes(parsedOutput, context);
1053
- case "ResourceNotFoundException":
1054
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1055
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1056
- case "ServiceQuotaExceededException":
1057
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1058
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1059
- case "ThrottlingException":
1060
- case "com.amazonaws.codecatalyst#ThrottlingException":
1061
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1062
- case "ValidationException":
1063
- case "com.amazonaws.codecatalyst#ValidationException":
1064
- throw await de_ValidationExceptionRes(parsedOutput, context);
1065
- default:
1066
- const parsedBody = parsedOutput.body;
1067
- return throwDefaultError({
1068
- output,
1069
- parsedBody,
1070
- errorCode
1071
- });
1072
- }
1073
- }, "de_CreateAccessTokenCommandError");
1074
1040
  var de_CreateDevEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1075
1041
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1076
- return de_CreateDevEnvironmentCommandError(output, context);
1042
+ return de_CommandError(output, context);
1077
1043
  }
1078
1044
  const contents = (0, import_smithy_client.map)({
1079
1045
  $metadata: deserializeMetadata(output)
@@ -1088,43 +1054,9 @@ var de_CreateDevEnvironmentCommand = /* @__PURE__ */ __name(async (output, conte
1088
1054
  Object.assign(contents, doc);
1089
1055
  return contents;
1090
1056
  }, "de_CreateDevEnvironmentCommand");
1091
- var de_CreateDevEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1092
- const parsedOutput = {
1093
- ...output,
1094
- body: await parseErrorBody(output.body, context)
1095
- };
1096
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1097
- switch (errorCode) {
1098
- case "AccessDeniedException":
1099
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1100
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1101
- case "ConflictException":
1102
- case "com.amazonaws.codecatalyst#ConflictException":
1103
- throw await de_ConflictExceptionRes(parsedOutput, context);
1104
- case "ResourceNotFoundException":
1105
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1106
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1107
- case "ServiceQuotaExceededException":
1108
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1109
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1110
- case "ThrottlingException":
1111
- case "com.amazonaws.codecatalyst#ThrottlingException":
1112
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1113
- case "ValidationException":
1114
- case "com.amazonaws.codecatalyst#ValidationException":
1115
- throw await de_ValidationExceptionRes(parsedOutput, context);
1116
- default:
1117
- const parsedBody = parsedOutput.body;
1118
- return throwDefaultError({
1119
- output,
1120
- parsedBody,
1121
- errorCode
1122
- });
1123
- }
1124
- }, "de_CreateDevEnvironmentCommandError");
1125
1057
  var de_CreateProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
1126
1058
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1127
- return de_CreateProjectCommandError(output, context);
1059
+ return de_CommandError(output, context);
1128
1060
  }
1129
1061
  const contents = (0, import_smithy_client.map)({
1130
1062
  $metadata: deserializeMetadata(output)
@@ -1139,43 +1071,9 @@ var de_CreateProjectCommand = /* @__PURE__ */ __name(async (output, context) =>
1139
1071
  Object.assign(contents, doc);
1140
1072
  return contents;
1141
1073
  }, "de_CreateProjectCommand");
1142
- var de_CreateProjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
1143
- const parsedOutput = {
1144
- ...output,
1145
- body: await parseErrorBody(output.body, context)
1146
- };
1147
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1148
- switch (errorCode) {
1149
- case "AccessDeniedException":
1150
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1151
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1152
- case "ConflictException":
1153
- case "com.amazonaws.codecatalyst#ConflictException":
1154
- throw await de_ConflictExceptionRes(parsedOutput, context);
1155
- case "ResourceNotFoundException":
1156
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1157
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1158
- case "ServiceQuotaExceededException":
1159
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1160
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1161
- case "ThrottlingException":
1162
- case "com.amazonaws.codecatalyst#ThrottlingException":
1163
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1164
- case "ValidationException":
1165
- case "com.amazonaws.codecatalyst#ValidationException":
1166
- throw await de_ValidationExceptionRes(parsedOutput, context);
1167
- default:
1168
- const parsedBody = parsedOutput.body;
1169
- return throwDefaultError({
1170
- output,
1171
- parsedBody,
1172
- errorCode
1173
- });
1174
- }
1175
- }, "de_CreateProjectCommandError");
1176
1074
  var de_CreateSourceRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1177
1075
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1178
- return de_CreateSourceRepositoryCommandError(output, context);
1076
+ return de_CommandError(output, context);
1179
1077
  }
1180
1078
  const contents = (0, import_smithy_client.map)({
1181
1079
  $metadata: deserializeMetadata(output)
@@ -1190,43 +1088,9 @@ var de_CreateSourceRepositoryCommand = /* @__PURE__ */ __name(async (output, con
1190
1088
  Object.assign(contents, doc);
1191
1089
  return contents;
1192
1090
  }, "de_CreateSourceRepositoryCommand");
1193
- var de_CreateSourceRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1194
- const parsedOutput = {
1195
- ...output,
1196
- body: await parseErrorBody(output.body, context)
1197
- };
1198
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1199
- switch (errorCode) {
1200
- case "AccessDeniedException":
1201
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1202
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1203
- case "ConflictException":
1204
- case "com.amazonaws.codecatalyst#ConflictException":
1205
- throw await de_ConflictExceptionRes(parsedOutput, context);
1206
- case "ResourceNotFoundException":
1207
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1208
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1209
- case "ServiceQuotaExceededException":
1210
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1211
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1212
- case "ThrottlingException":
1213
- case "com.amazonaws.codecatalyst#ThrottlingException":
1214
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1215
- case "ValidationException":
1216
- case "com.amazonaws.codecatalyst#ValidationException":
1217
- throw await de_ValidationExceptionRes(parsedOutput, context);
1218
- default:
1219
- const parsedBody = parsedOutput.body;
1220
- return throwDefaultError({
1221
- output,
1222
- parsedBody,
1223
- errorCode
1224
- });
1225
- }
1226
- }, "de_CreateSourceRepositoryCommandError");
1227
1091
  var de_CreateSourceRepositoryBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
1228
1092
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1229
- return de_CreateSourceRepositoryBranchCommandError(output, context);
1093
+ return de_CommandError(output, context);
1230
1094
  }
1231
1095
  const contents = (0, import_smithy_client.map)({
1232
1096
  $metadata: deserializeMetadata(output)
@@ -1241,43 +1105,9 @@ var de_CreateSourceRepositoryBranchCommand = /* @__PURE__ */ __name(async (outpu
1241
1105
  Object.assign(contents, doc);
1242
1106
  return contents;
1243
1107
  }, "de_CreateSourceRepositoryBranchCommand");
1244
- var de_CreateSourceRepositoryBranchCommandError = /* @__PURE__ */ __name(async (output, context) => {
1245
- const parsedOutput = {
1246
- ...output,
1247
- body: await parseErrorBody(output.body, context)
1248
- };
1249
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1250
- switch (errorCode) {
1251
- case "AccessDeniedException":
1252
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1253
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1254
- case "ConflictException":
1255
- case "com.amazonaws.codecatalyst#ConflictException":
1256
- throw await de_ConflictExceptionRes(parsedOutput, context);
1257
- case "ResourceNotFoundException":
1258
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1259
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1260
- case "ServiceQuotaExceededException":
1261
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1262
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1263
- case "ThrottlingException":
1264
- case "com.amazonaws.codecatalyst#ThrottlingException":
1265
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1266
- case "ValidationException":
1267
- case "com.amazonaws.codecatalyst#ValidationException":
1268
- throw await de_ValidationExceptionRes(parsedOutput, context);
1269
- default:
1270
- const parsedBody = parsedOutput.body;
1271
- return throwDefaultError({
1272
- output,
1273
- parsedBody,
1274
- errorCode
1275
- });
1276
- }
1277
- }, "de_CreateSourceRepositoryBranchCommandError");
1278
1108
  var de_DeleteAccessTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1279
1109
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1280
- return de_DeleteAccessTokenCommandError(output, context);
1110
+ return de_CommandError(output, context);
1281
1111
  }
1282
1112
  const contents = (0, import_smithy_client.map)({
1283
1113
  $metadata: deserializeMetadata(output)
@@ -1285,43 +1115,9 @@ var de_DeleteAccessTokenCommand = /* @__PURE__ */ __name(async (output, context)
1285
1115
  await (0, import_smithy_client.collectBody)(output.body, context);
1286
1116
  return contents;
1287
1117
  }, "de_DeleteAccessTokenCommand");
1288
- var de_DeleteAccessTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
1289
- const parsedOutput = {
1290
- ...output,
1291
- body: await parseErrorBody(output.body, context)
1292
- };
1293
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1294
- switch (errorCode) {
1295
- case "AccessDeniedException":
1296
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1297
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1298
- case "ConflictException":
1299
- case "com.amazonaws.codecatalyst#ConflictException":
1300
- throw await de_ConflictExceptionRes(parsedOutput, context);
1301
- case "ResourceNotFoundException":
1302
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1303
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1304
- case "ServiceQuotaExceededException":
1305
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1306
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1307
- case "ThrottlingException":
1308
- case "com.amazonaws.codecatalyst#ThrottlingException":
1309
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1310
- case "ValidationException":
1311
- case "com.amazonaws.codecatalyst#ValidationException":
1312
- throw await de_ValidationExceptionRes(parsedOutput, context);
1313
- default:
1314
- const parsedBody = parsedOutput.body;
1315
- return throwDefaultError({
1316
- output,
1317
- parsedBody,
1318
- errorCode
1319
- });
1320
- }
1321
- }, "de_DeleteAccessTokenCommandError");
1322
1118
  var de_DeleteDevEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1323
1119
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1324
- return de_DeleteDevEnvironmentCommandError(output, context);
1120
+ return de_CommandError(output, context);
1325
1121
  }
1326
1122
  const contents = (0, import_smithy_client.map)({
1327
1123
  $metadata: deserializeMetadata(output)
@@ -1335,43 +1131,9 @@ var de_DeleteDevEnvironmentCommand = /* @__PURE__ */ __name(async (output, conte
1335
1131
  Object.assign(contents, doc);
1336
1132
  return contents;
1337
1133
  }, "de_DeleteDevEnvironmentCommand");
1338
- var de_DeleteDevEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1339
- const parsedOutput = {
1340
- ...output,
1341
- body: await parseErrorBody(output.body, context)
1342
- };
1343
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1344
- switch (errorCode) {
1345
- case "AccessDeniedException":
1346
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1347
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1348
- case "ConflictException":
1349
- case "com.amazonaws.codecatalyst#ConflictException":
1350
- throw await de_ConflictExceptionRes(parsedOutput, context);
1351
- case "ResourceNotFoundException":
1352
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1353
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1354
- case "ServiceQuotaExceededException":
1355
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1356
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1357
- case "ThrottlingException":
1358
- case "com.amazonaws.codecatalyst#ThrottlingException":
1359
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1360
- case "ValidationException":
1361
- case "com.amazonaws.codecatalyst#ValidationException":
1362
- throw await de_ValidationExceptionRes(parsedOutput, context);
1363
- default:
1364
- const parsedBody = parsedOutput.body;
1365
- return throwDefaultError({
1366
- output,
1367
- parsedBody,
1368
- errorCode
1369
- });
1370
- }
1371
- }, "de_DeleteDevEnvironmentCommandError");
1372
1134
  var de_DeleteProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
1373
1135
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1374
- return de_DeleteProjectCommandError(output, context);
1136
+ return de_CommandError(output, context);
1375
1137
  }
1376
1138
  const contents = (0, import_smithy_client.map)({
1377
1139
  $metadata: deserializeMetadata(output)
@@ -1385,43 +1147,9 @@ var de_DeleteProjectCommand = /* @__PURE__ */ __name(async (output, context) =>
1385
1147
  Object.assign(contents, doc);
1386
1148
  return contents;
1387
1149
  }, "de_DeleteProjectCommand");
1388
- var de_DeleteProjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
1389
- const parsedOutput = {
1390
- ...output,
1391
- body: await parseErrorBody(output.body, context)
1392
- };
1393
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1394
- switch (errorCode) {
1395
- case "AccessDeniedException":
1396
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1397
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1398
- case "ConflictException":
1399
- case "com.amazonaws.codecatalyst#ConflictException":
1400
- throw await de_ConflictExceptionRes(parsedOutput, context);
1401
- case "ResourceNotFoundException":
1402
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1403
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1404
- case "ServiceQuotaExceededException":
1405
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1406
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1407
- case "ThrottlingException":
1408
- case "com.amazonaws.codecatalyst#ThrottlingException":
1409
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1410
- case "ValidationException":
1411
- case "com.amazonaws.codecatalyst#ValidationException":
1412
- throw await de_ValidationExceptionRes(parsedOutput, context);
1413
- default:
1414
- const parsedBody = parsedOutput.body;
1415
- return throwDefaultError({
1416
- output,
1417
- parsedBody,
1418
- errorCode
1419
- });
1420
- }
1421
- }, "de_DeleteProjectCommandError");
1422
1150
  var de_DeleteSourceRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1423
1151
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1424
- return de_DeleteSourceRepositoryCommandError(output, context);
1152
+ return de_CommandError(output, context);
1425
1153
  }
1426
1154
  const contents = (0, import_smithy_client.map)({
1427
1155
  $metadata: deserializeMetadata(output)
@@ -1435,43 +1163,9 @@ var de_DeleteSourceRepositoryCommand = /* @__PURE__ */ __name(async (output, con
1435
1163
  Object.assign(contents, doc);
1436
1164
  return contents;
1437
1165
  }, "de_DeleteSourceRepositoryCommand");
1438
- var de_DeleteSourceRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1439
- const parsedOutput = {
1440
- ...output,
1441
- body: await parseErrorBody(output.body, context)
1442
- };
1443
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1444
- switch (errorCode) {
1445
- case "AccessDeniedException":
1446
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1447
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1448
- case "ConflictException":
1449
- case "com.amazonaws.codecatalyst#ConflictException":
1450
- throw await de_ConflictExceptionRes(parsedOutput, context);
1451
- case "ResourceNotFoundException":
1452
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1453
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1454
- case "ServiceQuotaExceededException":
1455
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1456
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1457
- case "ThrottlingException":
1458
- case "com.amazonaws.codecatalyst#ThrottlingException":
1459
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1460
- case "ValidationException":
1461
- case "com.amazonaws.codecatalyst#ValidationException":
1462
- throw await de_ValidationExceptionRes(parsedOutput, context);
1463
- default:
1464
- const parsedBody = parsedOutput.body;
1465
- return throwDefaultError({
1466
- output,
1467
- parsedBody,
1468
- errorCode
1469
- });
1470
- }
1471
- }, "de_DeleteSourceRepositoryCommandError");
1472
1166
  var de_DeleteSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1473
1167
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1474
- return de_DeleteSpaceCommandError(output, context);
1168
+ return de_CommandError(output, context);
1475
1169
  }
1476
1170
  const contents = (0, import_smithy_client.map)({
1477
1171
  $metadata: deserializeMetadata(output)
@@ -1484,43 +1178,9 @@ var de_DeleteSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1484
1178
  Object.assign(contents, doc);
1485
1179
  return contents;
1486
1180
  }, "de_DeleteSpaceCommand");
1487
- var de_DeleteSpaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1488
- const parsedOutput = {
1489
- ...output,
1490
- body: await parseErrorBody(output.body, context)
1491
- };
1492
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1493
- switch (errorCode) {
1494
- case "AccessDeniedException":
1495
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1496
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1497
- case "ConflictException":
1498
- case "com.amazonaws.codecatalyst#ConflictException":
1499
- throw await de_ConflictExceptionRes(parsedOutput, context);
1500
- case "ResourceNotFoundException":
1501
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1502
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1503
- case "ServiceQuotaExceededException":
1504
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1505
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1506
- case "ThrottlingException":
1507
- case "com.amazonaws.codecatalyst#ThrottlingException":
1508
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1509
- case "ValidationException":
1510
- case "com.amazonaws.codecatalyst#ValidationException":
1511
- throw await de_ValidationExceptionRes(parsedOutput, context);
1512
- default:
1513
- const parsedBody = parsedOutput.body;
1514
- return throwDefaultError({
1515
- output,
1516
- parsedBody,
1517
- errorCode
1518
- });
1519
- }
1520
- }, "de_DeleteSpaceCommandError");
1521
1181
  var de_GetDevEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1522
1182
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1523
- return de_GetDevEnvironmentCommandError(output, context);
1183
+ return de_CommandError(output, context);
1524
1184
  }
1525
1185
  const contents = (0, import_smithy_client.map)({
1526
1186
  $metadata: deserializeMetadata(output)
@@ -1545,43 +1205,9 @@ var de_GetDevEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
1545
1205
  Object.assign(contents, doc);
1546
1206
  return contents;
1547
1207
  }, "de_GetDevEnvironmentCommand");
1548
- var de_GetDevEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1549
- const parsedOutput = {
1550
- ...output,
1551
- body: await parseErrorBody(output.body, context)
1552
- };
1553
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1554
- switch (errorCode) {
1555
- case "AccessDeniedException":
1556
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1557
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1558
- case "ConflictException":
1559
- case "com.amazonaws.codecatalyst#ConflictException":
1560
- throw await de_ConflictExceptionRes(parsedOutput, context);
1561
- case "ResourceNotFoundException":
1562
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1563
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1564
- case "ServiceQuotaExceededException":
1565
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1566
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1567
- case "ThrottlingException":
1568
- case "com.amazonaws.codecatalyst#ThrottlingException":
1569
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1570
- case "ValidationException":
1571
- case "com.amazonaws.codecatalyst#ValidationException":
1572
- throw await de_ValidationExceptionRes(parsedOutput, context);
1573
- default:
1574
- const parsedBody = parsedOutput.body;
1575
- return throwDefaultError({
1576
- output,
1577
- parsedBody,
1578
- errorCode
1579
- });
1580
- }
1581
- }, "de_GetDevEnvironmentCommandError");
1582
1208
  var de_GetProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
1583
1209
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1584
- return de_GetProjectCommandError(output, context);
1210
+ return de_CommandError(output, context);
1585
1211
  }
1586
1212
  const contents = (0, import_smithy_client.map)({
1587
1213
  $metadata: deserializeMetadata(output)
@@ -1596,43 +1222,9 @@ var de_GetProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
1596
1222
  Object.assign(contents, doc);
1597
1223
  return contents;
1598
1224
  }, "de_GetProjectCommand");
1599
- var de_GetProjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
1600
- const parsedOutput = {
1601
- ...output,
1602
- body: await parseErrorBody(output.body, context)
1603
- };
1604
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1605
- switch (errorCode) {
1606
- case "AccessDeniedException":
1607
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1608
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1609
- case "ConflictException":
1610
- case "com.amazonaws.codecatalyst#ConflictException":
1611
- throw await de_ConflictExceptionRes(parsedOutput, context);
1612
- case "ResourceNotFoundException":
1613
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1614
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1615
- case "ServiceQuotaExceededException":
1616
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1617
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1618
- case "ThrottlingException":
1619
- case "com.amazonaws.codecatalyst#ThrottlingException":
1620
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1621
- case "ValidationException":
1622
- case "com.amazonaws.codecatalyst#ValidationException":
1623
- throw await de_ValidationExceptionRes(parsedOutput, context);
1624
- default:
1625
- const parsedBody = parsedOutput.body;
1626
- return throwDefaultError({
1627
- output,
1628
- parsedBody,
1629
- errorCode
1630
- });
1631
- }
1632
- }, "de_GetProjectCommandError");
1633
1225
  var de_GetSourceRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1634
1226
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1635
- return de_GetSourceRepositoryCommandError(output, context);
1227
+ return de_CommandError(output, context);
1636
1228
  }
1637
1229
  const contents = (0, import_smithy_client.map)({
1638
1230
  $metadata: deserializeMetadata(output)
@@ -1649,43 +1241,9 @@ var de_GetSourceRepositoryCommand = /* @__PURE__ */ __name(async (output, contex
1649
1241
  Object.assign(contents, doc);
1650
1242
  return contents;
1651
1243
  }, "de_GetSourceRepositoryCommand");
1652
- var de_GetSourceRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1653
- const parsedOutput = {
1654
- ...output,
1655
- body: await parseErrorBody(output.body, context)
1656
- };
1657
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1658
- switch (errorCode) {
1659
- case "AccessDeniedException":
1660
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1661
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1662
- case "ConflictException":
1663
- case "com.amazonaws.codecatalyst#ConflictException":
1664
- throw await de_ConflictExceptionRes(parsedOutput, context);
1665
- case "ResourceNotFoundException":
1666
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1667
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1668
- case "ServiceQuotaExceededException":
1669
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1670
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1671
- case "ThrottlingException":
1672
- case "com.amazonaws.codecatalyst#ThrottlingException":
1673
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1674
- case "ValidationException":
1675
- case "com.amazonaws.codecatalyst#ValidationException":
1676
- throw await de_ValidationExceptionRes(parsedOutput, context);
1677
- default:
1678
- const parsedBody = parsedOutput.body;
1679
- return throwDefaultError({
1680
- output,
1681
- parsedBody,
1682
- errorCode
1683
- });
1684
- }
1685
- }, "de_GetSourceRepositoryCommandError");
1686
1244
  var de_GetSourceRepositoryCloneUrlsCommand = /* @__PURE__ */ __name(async (output, context) => {
1687
1245
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1688
- return de_GetSourceRepositoryCloneUrlsCommandError(output, context);
1246
+ return de_CommandError(output, context);
1689
1247
  }
1690
1248
  const contents = (0, import_smithy_client.map)({
1691
1249
  $metadata: deserializeMetadata(output)
@@ -1697,43 +1255,9 @@ var de_GetSourceRepositoryCloneUrlsCommand = /* @__PURE__ */ __name(async (outpu
1697
1255
  Object.assign(contents, doc);
1698
1256
  return contents;
1699
1257
  }, "de_GetSourceRepositoryCloneUrlsCommand");
1700
- var de_GetSourceRepositoryCloneUrlsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1701
- const parsedOutput = {
1702
- ...output,
1703
- body: await parseErrorBody(output.body, context)
1704
- };
1705
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1706
- switch (errorCode) {
1707
- case "AccessDeniedException":
1708
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1709
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1710
- case "ConflictException":
1711
- case "com.amazonaws.codecatalyst#ConflictException":
1712
- throw await de_ConflictExceptionRes(parsedOutput, context);
1713
- case "ResourceNotFoundException":
1714
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1715
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1716
- case "ServiceQuotaExceededException":
1717
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1718
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1719
- case "ThrottlingException":
1720
- case "com.amazonaws.codecatalyst#ThrottlingException":
1721
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1722
- case "ValidationException":
1723
- case "com.amazonaws.codecatalyst#ValidationException":
1724
- throw await de_ValidationExceptionRes(parsedOutput, context);
1725
- default:
1726
- const parsedBody = parsedOutput.body;
1727
- return throwDefaultError({
1728
- output,
1729
- parsedBody,
1730
- errorCode
1731
- });
1732
- }
1733
- }, "de_GetSourceRepositoryCloneUrlsCommandError");
1734
1258
  var de_GetSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1735
1259
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1736
- return de_GetSpaceCommandError(output, context);
1260
+ return de_CommandError(output, context);
1737
1261
  }
1738
1262
  const contents = (0, import_smithy_client.map)({
1739
1263
  $metadata: deserializeMetadata(output)
@@ -1748,43 +1272,9 @@ var de_GetSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1748
1272
  Object.assign(contents, doc);
1749
1273
  return contents;
1750
1274
  }, "de_GetSpaceCommand");
1751
- var de_GetSpaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1752
- const parsedOutput = {
1753
- ...output,
1754
- body: await parseErrorBody(output.body, context)
1755
- };
1756
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1757
- switch (errorCode) {
1758
- case "AccessDeniedException":
1759
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1760
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1761
- case "ConflictException":
1762
- case "com.amazonaws.codecatalyst#ConflictException":
1763
- throw await de_ConflictExceptionRes(parsedOutput, context);
1764
- case "ResourceNotFoundException":
1765
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1766
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1767
- case "ServiceQuotaExceededException":
1768
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1769
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1770
- case "ThrottlingException":
1771
- case "com.amazonaws.codecatalyst#ThrottlingException":
1772
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1773
- case "ValidationException":
1774
- case "com.amazonaws.codecatalyst#ValidationException":
1775
- throw await de_ValidationExceptionRes(parsedOutput, context);
1776
- default:
1777
- const parsedBody = parsedOutput.body;
1778
- return throwDefaultError({
1779
- output,
1780
- parsedBody,
1781
- errorCode
1782
- });
1783
- }
1784
- }, "de_GetSpaceCommandError");
1785
1275
  var de_GetSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
1786
1276
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1787
- return de_GetSubscriptionCommandError(output, context);
1277
+ return de_CommandError(output, context);
1788
1278
  }
1789
1279
  const contents = (0, import_smithy_client.map)({
1790
1280
  $metadata: deserializeMetadata(output)
@@ -1797,43 +1287,9 @@ var de_GetSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) =
1797
1287
  Object.assign(contents, doc);
1798
1288
  return contents;
1799
1289
  }, "de_GetSubscriptionCommand");
1800
- var de_GetSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1801
- const parsedOutput = {
1802
- ...output,
1803
- body: await parseErrorBody(output.body, context)
1804
- };
1805
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1806
- switch (errorCode) {
1807
- case "AccessDeniedException":
1808
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1809
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1810
- case "ConflictException":
1811
- case "com.amazonaws.codecatalyst#ConflictException":
1812
- throw await de_ConflictExceptionRes(parsedOutput, context);
1813
- case "ResourceNotFoundException":
1814
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1815
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1816
- case "ServiceQuotaExceededException":
1817
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1818
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1819
- case "ThrottlingException":
1820
- case "com.amazonaws.codecatalyst#ThrottlingException":
1821
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1822
- case "ValidationException":
1823
- case "com.amazonaws.codecatalyst#ValidationException":
1824
- throw await de_ValidationExceptionRes(parsedOutput, context);
1825
- default:
1826
- const parsedBody = parsedOutput.body;
1827
- return throwDefaultError({
1828
- output,
1829
- parsedBody,
1830
- errorCode
1831
- });
1832
- }
1833
- }, "de_GetSubscriptionCommandError");
1834
1290
  var de_GetUserDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
1835
1291
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1836
- return de_GetUserDetailsCommandError(output, context);
1292
+ return de_CommandError(output, context);
1837
1293
  }
1838
1294
  const contents = (0, import_smithy_client.map)({
1839
1295
  $metadata: deserializeMetadata(output)
@@ -1849,43 +1305,9 @@ var de_GetUserDetailsCommand = /* @__PURE__ */ __name(async (output, context) =>
1849
1305
  Object.assign(contents, doc);
1850
1306
  return contents;
1851
1307
  }, "de_GetUserDetailsCommand");
1852
- var de_GetUserDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1853
- const parsedOutput = {
1854
- ...output,
1855
- body: await parseErrorBody(output.body, context)
1856
- };
1857
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1858
- switch (errorCode) {
1859
- case "AccessDeniedException":
1860
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1861
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1862
- case "ConflictException":
1863
- case "com.amazonaws.codecatalyst#ConflictException":
1864
- throw await de_ConflictExceptionRes(parsedOutput, context);
1865
- case "ResourceNotFoundException":
1866
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1867
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1868
- case "ServiceQuotaExceededException":
1869
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1870
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1871
- case "ThrottlingException":
1872
- case "com.amazonaws.codecatalyst#ThrottlingException":
1873
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1874
- case "ValidationException":
1875
- case "com.amazonaws.codecatalyst#ValidationException":
1876
- throw await de_ValidationExceptionRes(parsedOutput, context);
1877
- default:
1878
- const parsedBody = parsedOutput.body;
1879
- return throwDefaultError({
1880
- output,
1881
- parsedBody,
1882
- errorCode
1883
- });
1884
- }
1885
- }, "de_GetUserDetailsCommandError");
1886
1308
  var de_GetWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1887
1309
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1888
- return de_GetWorkflowCommandError(output, context);
1310
+ return de_CommandError(output, context);
1889
1311
  }
1890
1312
  const contents = (0, import_smithy_client.map)({
1891
1313
  $metadata: deserializeMetadata(output)
@@ -1907,43 +1329,9 @@ var de_GetWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1907
1329
  Object.assign(contents, doc);
1908
1330
  return contents;
1909
1331
  }, "de_GetWorkflowCommand");
1910
- var de_GetWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
1911
- const parsedOutput = {
1912
- ...output,
1913
- body: await parseErrorBody(output.body, context)
1914
- };
1915
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1916
- switch (errorCode) {
1917
- case "AccessDeniedException":
1918
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1919
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1920
- case "ConflictException":
1921
- case "com.amazonaws.codecatalyst#ConflictException":
1922
- throw await de_ConflictExceptionRes(parsedOutput, context);
1923
- case "ResourceNotFoundException":
1924
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1925
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1926
- case "ServiceQuotaExceededException":
1927
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1928
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1929
- case "ThrottlingException":
1930
- case "com.amazonaws.codecatalyst#ThrottlingException":
1931
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1932
- case "ValidationException":
1933
- case "com.amazonaws.codecatalyst#ValidationException":
1934
- throw await de_ValidationExceptionRes(parsedOutput, context);
1935
- default:
1936
- const parsedBody = parsedOutput.body;
1937
- return throwDefaultError({
1938
- output,
1939
- parsedBody,
1940
- errorCode
1941
- });
1942
- }
1943
- }, "de_GetWorkflowCommandError");
1944
1332
  var de_GetWorkflowRunCommand = /* @__PURE__ */ __name(async (output, context) => {
1945
1333
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1946
- return de_GetWorkflowRunCommandError(output, context);
1334
+ return de_CommandError(output, context);
1947
1335
  }
1948
1336
  const contents = (0, import_smithy_client.map)({
1949
1337
  $metadata: deserializeMetadata(output)
@@ -1963,43 +1351,9 @@ var de_GetWorkflowRunCommand = /* @__PURE__ */ __name(async (output, context) =>
1963
1351
  Object.assign(contents, doc);
1964
1352
  return contents;
1965
1353
  }, "de_GetWorkflowRunCommand");
1966
- var de_GetWorkflowRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
1967
- const parsedOutput = {
1968
- ...output,
1969
- body: await parseErrorBody(output.body, context)
1970
- };
1971
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1972
- switch (errorCode) {
1973
- case "AccessDeniedException":
1974
- case "com.amazonaws.codecatalyst#AccessDeniedException":
1975
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1976
- case "ConflictException":
1977
- case "com.amazonaws.codecatalyst#ConflictException":
1978
- throw await de_ConflictExceptionRes(parsedOutput, context);
1979
- case "ResourceNotFoundException":
1980
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1981
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1982
- case "ServiceQuotaExceededException":
1983
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1984
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1985
- case "ThrottlingException":
1986
- case "com.amazonaws.codecatalyst#ThrottlingException":
1987
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1988
- case "ValidationException":
1989
- case "com.amazonaws.codecatalyst#ValidationException":
1990
- throw await de_ValidationExceptionRes(parsedOutput, context);
1991
- default:
1992
- const parsedBody = parsedOutput.body;
1993
- return throwDefaultError({
1994
- output,
1995
- parsedBody,
1996
- errorCode
1997
- });
1998
- }
1999
- }, "de_GetWorkflowRunCommandError");
2000
1354
  var de_ListAccessTokensCommand = /* @__PURE__ */ __name(async (output, context) => {
2001
1355
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2002
- return de_ListAccessTokensCommandError(output, context);
1356
+ return de_CommandError(output, context);
2003
1357
  }
2004
1358
  const contents = (0, import_smithy_client.map)({
2005
1359
  $metadata: deserializeMetadata(output)
@@ -2012,43 +1366,9 @@ var de_ListAccessTokensCommand = /* @__PURE__ */ __name(async (output, context)
2012
1366
  Object.assign(contents, doc);
2013
1367
  return contents;
2014
1368
  }, "de_ListAccessTokensCommand");
2015
- var de_ListAccessTokensCommandError = /* @__PURE__ */ __name(async (output, context) => {
2016
- const parsedOutput = {
2017
- ...output,
2018
- body: await parseErrorBody(output.body, context)
2019
- };
2020
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2021
- switch (errorCode) {
2022
- case "AccessDeniedException":
2023
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2024
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2025
- case "ConflictException":
2026
- case "com.amazonaws.codecatalyst#ConflictException":
2027
- throw await de_ConflictExceptionRes(parsedOutput, context);
2028
- case "ResourceNotFoundException":
2029
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2030
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2031
- case "ServiceQuotaExceededException":
2032
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2033
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2034
- case "ThrottlingException":
2035
- case "com.amazonaws.codecatalyst#ThrottlingException":
2036
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2037
- case "ValidationException":
2038
- case "com.amazonaws.codecatalyst#ValidationException":
2039
- throw await de_ValidationExceptionRes(parsedOutput, context);
2040
- default:
2041
- const parsedBody = parsedOutput.body;
2042
- return throwDefaultError({
2043
- output,
2044
- parsedBody,
2045
- errorCode
2046
- });
2047
- }
2048
- }, "de_ListAccessTokensCommandError");
2049
1369
  var de_ListDevEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
2050
1370
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2051
- return de_ListDevEnvironmentsCommandError(output, context);
1371
+ return de_CommandError(output, context);
2052
1372
  }
2053
1373
  const contents = (0, import_smithy_client.map)({
2054
1374
  $metadata: deserializeMetadata(output)
@@ -2061,43 +1381,9 @@ var de_ListDevEnvironmentsCommand = /* @__PURE__ */ __name(async (output, contex
2061
1381
  Object.assign(contents, doc);
2062
1382
  return contents;
2063
1383
  }, "de_ListDevEnvironmentsCommand");
2064
- var de_ListDevEnvironmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2065
- const parsedOutput = {
2066
- ...output,
2067
- body: await parseErrorBody(output.body, context)
2068
- };
2069
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2070
- switch (errorCode) {
2071
- case "AccessDeniedException":
2072
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2073
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2074
- case "ConflictException":
2075
- case "com.amazonaws.codecatalyst#ConflictException":
2076
- throw await de_ConflictExceptionRes(parsedOutput, context);
2077
- case "ResourceNotFoundException":
2078
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2079
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2080
- case "ServiceQuotaExceededException":
2081
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2082
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2083
- case "ThrottlingException":
2084
- case "com.amazonaws.codecatalyst#ThrottlingException":
2085
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2086
- case "ValidationException":
2087
- case "com.amazonaws.codecatalyst#ValidationException":
2088
- throw await de_ValidationExceptionRes(parsedOutput, context);
2089
- default:
2090
- const parsedBody = parsedOutput.body;
2091
- return throwDefaultError({
2092
- output,
2093
- parsedBody,
2094
- errorCode
2095
- });
2096
- }
2097
- }, "de_ListDevEnvironmentsCommandError");
2098
1384
  var de_ListDevEnvironmentSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2099
1385
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2100
- return de_ListDevEnvironmentSessionsCommandError(output, context);
1386
+ return de_CommandError(output, context);
2101
1387
  }
2102
1388
  const contents = (0, import_smithy_client.map)({
2103
1389
  $metadata: deserializeMetadata(output)
@@ -2110,43 +1396,9 @@ var de_ListDevEnvironmentSessionsCommand = /* @__PURE__ */ __name(async (output,
2110
1396
  Object.assign(contents, doc);
2111
1397
  return contents;
2112
1398
  }, "de_ListDevEnvironmentSessionsCommand");
2113
- var de_ListDevEnvironmentSessionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2114
- const parsedOutput = {
2115
- ...output,
2116
- body: await parseErrorBody(output.body, context)
2117
- };
2118
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2119
- switch (errorCode) {
2120
- case "AccessDeniedException":
2121
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2122
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2123
- case "ConflictException":
2124
- case "com.amazonaws.codecatalyst#ConflictException":
2125
- throw await de_ConflictExceptionRes(parsedOutput, context);
2126
- case "ResourceNotFoundException":
2127
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2128
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2129
- case "ServiceQuotaExceededException":
2130
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2131
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2132
- case "ThrottlingException":
2133
- case "com.amazonaws.codecatalyst#ThrottlingException":
2134
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2135
- case "ValidationException":
2136
- case "com.amazonaws.codecatalyst#ValidationException":
2137
- throw await de_ValidationExceptionRes(parsedOutput, context);
2138
- default:
2139
- const parsedBody = parsedOutput.body;
2140
- return throwDefaultError({
2141
- output,
2142
- parsedBody,
2143
- errorCode
2144
- });
2145
- }
2146
- }, "de_ListDevEnvironmentSessionsCommandError");
2147
1399
  var de_ListEventLogsCommand = /* @__PURE__ */ __name(async (output, context) => {
2148
1400
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2149
- return de_ListEventLogsCommandError(output, context);
1401
+ return de_CommandError(output, context);
2150
1402
  }
2151
1403
  const contents = (0, import_smithy_client.map)({
2152
1404
  $metadata: deserializeMetadata(output)
@@ -2159,43 +1411,9 @@ var de_ListEventLogsCommand = /* @__PURE__ */ __name(async (output, context) =>
2159
1411
  Object.assign(contents, doc);
2160
1412
  return contents;
2161
1413
  }, "de_ListEventLogsCommand");
2162
- var de_ListEventLogsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2163
- const parsedOutput = {
2164
- ...output,
2165
- body: await parseErrorBody(output.body, context)
2166
- };
2167
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2168
- switch (errorCode) {
2169
- case "AccessDeniedException":
2170
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2171
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2172
- case "ConflictException":
2173
- case "com.amazonaws.codecatalyst#ConflictException":
2174
- throw await de_ConflictExceptionRes(parsedOutput, context);
2175
- case "ResourceNotFoundException":
2176
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2177
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2178
- case "ServiceQuotaExceededException":
2179
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2180
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2181
- case "ThrottlingException":
2182
- case "com.amazonaws.codecatalyst#ThrottlingException":
2183
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2184
- case "ValidationException":
2185
- case "com.amazonaws.codecatalyst#ValidationException":
2186
- throw await de_ValidationExceptionRes(parsedOutput, context);
2187
- default:
2188
- const parsedBody = parsedOutput.body;
2189
- return throwDefaultError({
2190
- output,
2191
- parsedBody,
2192
- errorCode
2193
- });
2194
- }
2195
- }, "de_ListEventLogsCommandError");
2196
1414
  var de_ListProjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
2197
1415
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2198
- return de_ListProjectsCommandError(output, context);
1416
+ return de_CommandError(output, context);
2199
1417
  }
2200
1418
  const contents = (0, import_smithy_client.map)({
2201
1419
  $metadata: deserializeMetadata(output)
@@ -2208,43 +1426,9 @@ var de_ListProjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
2208
1426
  Object.assign(contents, doc);
2209
1427
  return contents;
2210
1428
  }, "de_ListProjectsCommand");
2211
- var de_ListProjectsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2212
- const parsedOutput = {
2213
- ...output,
2214
- body: await parseErrorBody(output.body, context)
2215
- };
2216
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2217
- switch (errorCode) {
2218
- case "AccessDeniedException":
2219
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2220
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2221
- case "ConflictException":
2222
- case "com.amazonaws.codecatalyst#ConflictException":
2223
- throw await de_ConflictExceptionRes(parsedOutput, context);
2224
- case "ResourceNotFoundException":
2225
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2226
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2227
- case "ServiceQuotaExceededException":
2228
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2229
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2230
- case "ThrottlingException":
2231
- case "com.amazonaws.codecatalyst#ThrottlingException":
2232
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2233
- case "ValidationException":
2234
- case "com.amazonaws.codecatalyst#ValidationException":
2235
- throw await de_ValidationExceptionRes(parsedOutput, context);
2236
- default:
2237
- const parsedBody = parsedOutput.body;
2238
- return throwDefaultError({
2239
- output,
2240
- parsedBody,
2241
- errorCode
2242
- });
2243
- }
2244
- }, "de_ListProjectsCommandError");
2245
1429
  var de_ListSourceRepositoriesCommand = /* @__PURE__ */ __name(async (output, context) => {
2246
1430
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2247
- return de_ListSourceRepositoriesCommandError(output, context);
1431
+ return de_CommandError(output, context);
2248
1432
  }
2249
1433
  const contents = (0, import_smithy_client.map)({
2250
1434
  $metadata: deserializeMetadata(output)
@@ -2257,43 +1441,9 @@ var de_ListSourceRepositoriesCommand = /* @__PURE__ */ __name(async (output, con
2257
1441
  Object.assign(contents, doc);
2258
1442
  return contents;
2259
1443
  }, "de_ListSourceRepositoriesCommand");
2260
- var de_ListSourceRepositoriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2261
- const parsedOutput = {
2262
- ...output,
2263
- body: await parseErrorBody(output.body, context)
2264
- };
2265
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2266
- switch (errorCode) {
2267
- case "AccessDeniedException":
2268
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2269
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2270
- case "ConflictException":
2271
- case "com.amazonaws.codecatalyst#ConflictException":
2272
- throw await de_ConflictExceptionRes(parsedOutput, context);
2273
- case "ResourceNotFoundException":
2274
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2275
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2276
- case "ServiceQuotaExceededException":
2277
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2278
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2279
- case "ThrottlingException":
2280
- case "com.amazonaws.codecatalyst#ThrottlingException":
2281
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2282
- case "ValidationException":
2283
- case "com.amazonaws.codecatalyst#ValidationException":
2284
- throw await de_ValidationExceptionRes(parsedOutput, context);
2285
- default:
2286
- const parsedBody = parsedOutput.body;
2287
- return throwDefaultError({
2288
- output,
2289
- parsedBody,
2290
- errorCode
2291
- });
2292
- }
2293
- }, "de_ListSourceRepositoriesCommandError");
2294
1444
  var de_ListSourceRepositoryBranchesCommand = /* @__PURE__ */ __name(async (output, context) => {
2295
1445
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2296
- return de_ListSourceRepositoryBranchesCommandError(output, context);
1446
+ return de_CommandError(output, context);
2297
1447
  }
2298
1448
  const contents = (0, import_smithy_client.map)({
2299
1449
  $metadata: deserializeMetadata(output)
@@ -2306,43 +1456,9 @@ var de_ListSourceRepositoryBranchesCommand = /* @__PURE__ */ __name(async (outpu
2306
1456
  Object.assign(contents, doc);
2307
1457
  return contents;
2308
1458
  }, "de_ListSourceRepositoryBranchesCommand");
2309
- var de_ListSourceRepositoryBranchesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2310
- const parsedOutput = {
2311
- ...output,
2312
- body: await parseErrorBody(output.body, context)
2313
- };
2314
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2315
- switch (errorCode) {
2316
- case "AccessDeniedException":
2317
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2318
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2319
- case "ConflictException":
2320
- case "com.amazonaws.codecatalyst#ConflictException":
2321
- throw await de_ConflictExceptionRes(parsedOutput, context);
2322
- case "ResourceNotFoundException":
2323
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2324
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2325
- case "ServiceQuotaExceededException":
2326
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2327
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2328
- case "ThrottlingException":
2329
- case "com.amazonaws.codecatalyst#ThrottlingException":
2330
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2331
- case "ValidationException":
2332
- case "com.amazonaws.codecatalyst#ValidationException":
2333
- throw await de_ValidationExceptionRes(parsedOutput, context);
2334
- default:
2335
- const parsedBody = parsedOutput.body;
2336
- return throwDefaultError({
2337
- output,
2338
- parsedBody,
2339
- errorCode
2340
- });
2341
- }
2342
- }, "de_ListSourceRepositoryBranchesCommandError");
2343
1459
  var de_ListSpacesCommand = /* @__PURE__ */ __name(async (output, context) => {
2344
1460
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2345
- return de_ListSpacesCommandError(output, context);
1461
+ return de_CommandError(output, context);
2346
1462
  }
2347
1463
  const contents = (0, import_smithy_client.map)({
2348
1464
  $metadata: deserializeMetadata(output)
@@ -2355,43 +1471,9 @@ var de_ListSpacesCommand = /* @__PURE__ */ __name(async (output, context) => {
2355
1471
  Object.assign(contents, doc);
2356
1472
  return contents;
2357
1473
  }, "de_ListSpacesCommand");
2358
- var de_ListSpacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2359
- const parsedOutput = {
2360
- ...output,
2361
- body: await parseErrorBody(output.body, context)
2362
- };
2363
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2364
- switch (errorCode) {
2365
- case "AccessDeniedException":
2366
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2367
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2368
- case "ConflictException":
2369
- case "com.amazonaws.codecatalyst#ConflictException":
2370
- throw await de_ConflictExceptionRes(parsedOutput, context);
2371
- case "ResourceNotFoundException":
2372
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2373
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2374
- case "ServiceQuotaExceededException":
2375
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2376
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2377
- case "ThrottlingException":
2378
- case "com.amazonaws.codecatalyst#ThrottlingException":
2379
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2380
- case "ValidationException":
2381
- case "com.amazonaws.codecatalyst#ValidationException":
2382
- throw await de_ValidationExceptionRes(parsedOutput, context);
2383
- default:
2384
- const parsedBody = parsedOutput.body;
2385
- return throwDefaultError({
2386
- output,
2387
- parsedBody,
2388
- errorCode
2389
- });
2390
- }
2391
- }, "de_ListSpacesCommandError");
2392
1474
  var de_ListWorkflowRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
2393
1475
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2394
- return de_ListWorkflowRunsCommandError(output, context);
1476
+ return de_CommandError(output, context);
2395
1477
  }
2396
1478
  const contents = (0, import_smithy_client.map)({
2397
1479
  $metadata: deserializeMetadata(output)
@@ -2404,43 +1486,9 @@ var de_ListWorkflowRunsCommand = /* @__PURE__ */ __name(async (output, context)
2404
1486
  Object.assign(contents, doc);
2405
1487
  return contents;
2406
1488
  }, "de_ListWorkflowRunsCommand");
2407
- var de_ListWorkflowRunsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2408
- const parsedOutput = {
2409
- ...output,
2410
- body: await parseErrorBody(output.body, context)
2411
- };
2412
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2413
- switch (errorCode) {
2414
- case "AccessDeniedException":
2415
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2416
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2417
- case "ConflictException":
2418
- case "com.amazonaws.codecatalyst#ConflictException":
2419
- throw await de_ConflictExceptionRes(parsedOutput, context);
2420
- case "ResourceNotFoundException":
2421
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2422
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2423
- case "ServiceQuotaExceededException":
2424
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2425
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2426
- case "ThrottlingException":
2427
- case "com.amazonaws.codecatalyst#ThrottlingException":
2428
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2429
- case "ValidationException":
2430
- case "com.amazonaws.codecatalyst#ValidationException":
2431
- throw await de_ValidationExceptionRes(parsedOutput, context);
2432
- default:
2433
- const parsedBody = parsedOutput.body;
2434
- return throwDefaultError({
2435
- output,
2436
- parsedBody,
2437
- errorCode
2438
- });
2439
- }
2440
- }, "de_ListWorkflowRunsCommandError");
2441
1489
  var de_ListWorkflowsCommand = /* @__PURE__ */ __name(async (output, context) => {
2442
1490
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2443
- return de_ListWorkflowsCommandError(output, context);
1491
+ return de_CommandError(output, context);
2444
1492
  }
2445
1493
  const contents = (0, import_smithy_client.map)({
2446
1494
  $metadata: deserializeMetadata(output)
@@ -2453,43 +1501,9 @@ var de_ListWorkflowsCommand = /* @__PURE__ */ __name(async (output, context) =>
2453
1501
  Object.assign(contents, doc);
2454
1502
  return contents;
2455
1503
  }, "de_ListWorkflowsCommand");
2456
- var de_ListWorkflowsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2457
- const parsedOutput = {
2458
- ...output,
2459
- body: await parseErrorBody(output.body, context)
2460
- };
2461
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2462
- switch (errorCode) {
2463
- case "AccessDeniedException":
2464
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2465
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2466
- case "ConflictException":
2467
- case "com.amazonaws.codecatalyst#ConflictException":
2468
- throw await de_ConflictExceptionRes(parsedOutput, context);
2469
- case "ResourceNotFoundException":
2470
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2471
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2472
- case "ServiceQuotaExceededException":
2473
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2474
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2475
- case "ThrottlingException":
2476
- case "com.amazonaws.codecatalyst#ThrottlingException":
2477
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2478
- case "ValidationException":
2479
- case "com.amazonaws.codecatalyst#ValidationException":
2480
- throw await de_ValidationExceptionRes(parsedOutput, context);
2481
- default:
2482
- const parsedBody = parsedOutput.body;
2483
- return throwDefaultError({
2484
- output,
2485
- parsedBody,
2486
- errorCode
2487
- });
2488
- }
2489
- }, "de_ListWorkflowsCommandError");
2490
1504
  var de_StartDevEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
2491
1505
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2492
- return de_StartDevEnvironmentCommandError(output, context);
1506
+ return de_CommandError(output, context);
2493
1507
  }
2494
1508
  const contents = (0, import_smithy_client.map)({
2495
1509
  $metadata: deserializeMetadata(output)
@@ -2504,43 +1518,9 @@ var de_StartDevEnvironmentCommand = /* @__PURE__ */ __name(async (output, contex
2504
1518
  Object.assign(contents, doc);
2505
1519
  return contents;
2506
1520
  }, "de_StartDevEnvironmentCommand");
2507
- var de_StartDevEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2508
- const parsedOutput = {
2509
- ...output,
2510
- body: await parseErrorBody(output.body, context)
2511
- };
2512
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2513
- switch (errorCode) {
2514
- case "AccessDeniedException":
2515
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2516
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2517
- case "ConflictException":
2518
- case "com.amazonaws.codecatalyst#ConflictException":
2519
- throw await de_ConflictExceptionRes(parsedOutput, context);
2520
- case "ResourceNotFoundException":
2521
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2522
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2523
- case "ServiceQuotaExceededException":
2524
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2525
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2526
- case "ThrottlingException":
2527
- case "com.amazonaws.codecatalyst#ThrottlingException":
2528
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2529
- case "ValidationException":
2530
- case "com.amazonaws.codecatalyst#ValidationException":
2531
- throw await de_ValidationExceptionRes(parsedOutput, context);
2532
- default:
2533
- const parsedBody = parsedOutput.body;
2534
- return throwDefaultError({
2535
- output,
2536
- parsedBody,
2537
- errorCode
2538
- });
2539
- }
2540
- }, "de_StartDevEnvironmentCommandError");
2541
1521
  var de_StartDevEnvironmentSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
2542
1522
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2543
- return de_StartDevEnvironmentSessionCommandError(output, context);
1523
+ return de_CommandError(output, context);
2544
1524
  }
2545
1525
  const contents = (0, import_smithy_client.map)({
2546
1526
  $metadata: deserializeMetadata(output)
@@ -2556,43 +1536,9 @@ var de_StartDevEnvironmentSessionCommand = /* @__PURE__ */ __name(async (output,
2556
1536
  Object.assign(contents, doc);
2557
1537
  return contents;
2558
1538
  }, "de_StartDevEnvironmentSessionCommand");
2559
- var de_StartDevEnvironmentSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2560
- const parsedOutput = {
2561
- ...output,
2562
- body: await parseErrorBody(output.body, context)
2563
- };
2564
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2565
- switch (errorCode) {
2566
- case "AccessDeniedException":
2567
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2568
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2569
- case "ConflictException":
2570
- case "com.amazonaws.codecatalyst#ConflictException":
2571
- throw await de_ConflictExceptionRes(parsedOutput, context);
2572
- case "ResourceNotFoundException":
2573
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2574
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2575
- case "ServiceQuotaExceededException":
2576
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2577
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2578
- case "ThrottlingException":
2579
- case "com.amazonaws.codecatalyst#ThrottlingException":
2580
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2581
- case "ValidationException":
2582
- case "com.amazonaws.codecatalyst#ValidationException":
2583
- throw await de_ValidationExceptionRes(parsedOutput, context);
2584
- default:
2585
- const parsedBody = parsedOutput.body;
2586
- return throwDefaultError({
2587
- output,
2588
- parsedBody,
2589
- errorCode
2590
- });
2591
- }
2592
- }, "de_StartDevEnvironmentSessionCommandError");
2593
1539
  var de_StartWorkflowRunCommand = /* @__PURE__ */ __name(async (output, context) => {
2594
1540
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2595
- return de_StartWorkflowRunCommandError(output, context);
1541
+ return de_CommandError(output, context);
2596
1542
  }
2597
1543
  const contents = (0, import_smithy_client.map)({
2598
1544
  $metadata: deserializeMetadata(output)
@@ -2607,43 +1553,9 @@ var de_StartWorkflowRunCommand = /* @__PURE__ */ __name(async (output, context)
2607
1553
  Object.assign(contents, doc);
2608
1554
  return contents;
2609
1555
  }, "de_StartWorkflowRunCommand");
2610
- var de_StartWorkflowRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
2611
- const parsedOutput = {
2612
- ...output,
2613
- body: await parseErrorBody(output.body, context)
2614
- };
2615
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2616
- switch (errorCode) {
2617
- case "AccessDeniedException":
2618
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2619
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2620
- case "ConflictException":
2621
- case "com.amazonaws.codecatalyst#ConflictException":
2622
- throw await de_ConflictExceptionRes(parsedOutput, context);
2623
- case "ResourceNotFoundException":
2624
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2625
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2626
- case "ServiceQuotaExceededException":
2627
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2628
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2629
- case "ThrottlingException":
2630
- case "com.amazonaws.codecatalyst#ThrottlingException":
2631
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2632
- case "ValidationException":
2633
- case "com.amazonaws.codecatalyst#ValidationException":
2634
- throw await de_ValidationExceptionRes(parsedOutput, context);
2635
- default:
2636
- const parsedBody = parsedOutput.body;
2637
- return throwDefaultError({
2638
- output,
2639
- parsedBody,
2640
- errorCode
2641
- });
2642
- }
2643
- }, "de_StartWorkflowRunCommandError");
2644
1556
  var de_StopDevEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
2645
1557
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2646
- return de_StopDevEnvironmentCommandError(output, context);
1558
+ return de_CommandError(output, context);
2647
1559
  }
2648
1560
  const contents = (0, import_smithy_client.map)({
2649
1561
  $metadata: deserializeMetadata(output)
@@ -2658,43 +1570,9 @@ var de_StopDevEnvironmentCommand = /* @__PURE__ */ __name(async (output, context
2658
1570
  Object.assign(contents, doc);
2659
1571
  return contents;
2660
1572
  }, "de_StopDevEnvironmentCommand");
2661
- var de_StopDevEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2662
- const parsedOutput = {
2663
- ...output,
2664
- body: await parseErrorBody(output.body, context)
2665
- };
2666
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2667
- switch (errorCode) {
2668
- case "AccessDeniedException":
2669
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2670
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2671
- case "ConflictException":
2672
- case "com.amazonaws.codecatalyst#ConflictException":
2673
- throw await de_ConflictExceptionRes(parsedOutput, context);
2674
- case "ResourceNotFoundException":
2675
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2676
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2677
- case "ServiceQuotaExceededException":
2678
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2679
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2680
- case "ThrottlingException":
2681
- case "com.amazonaws.codecatalyst#ThrottlingException":
2682
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2683
- case "ValidationException":
2684
- case "com.amazonaws.codecatalyst#ValidationException":
2685
- throw await de_ValidationExceptionRes(parsedOutput, context);
2686
- default:
2687
- const parsedBody = parsedOutput.body;
2688
- return throwDefaultError({
2689
- output,
2690
- parsedBody,
2691
- errorCode
2692
- });
2693
- }
2694
- }, "de_StopDevEnvironmentCommandError");
2695
1573
  var de_StopDevEnvironmentSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
2696
1574
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2697
- return de_StopDevEnvironmentSessionCommandError(output, context);
1575
+ return de_CommandError(output, context);
2698
1576
  }
2699
1577
  const contents = (0, import_smithy_client.map)({
2700
1578
  $metadata: deserializeMetadata(output)
@@ -2709,43 +1587,9 @@ var de_StopDevEnvironmentSessionCommand = /* @__PURE__ */ __name(async (output,
2709
1587
  Object.assign(contents, doc);
2710
1588
  return contents;
2711
1589
  }, "de_StopDevEnvironmentSessionCommand");
2712
- var de_StopDevEnvironmentSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2713
- const parsedOutput = {
2714
- ...output,
2715
- body: await parseErrorBody(output.body, context)
2716
- };
2717
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2718
- switch (errorCode) {
2719
- case "AccessDeniedException":
2720
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2721
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2722
- case "ConflictException":
2723
- case "com.amazonaws.codecatalyst#ConflictException":
2724
- throw await de_ConflictExceptionRes(parsedOutput, context);
2725
- case "ResourceNotFoundException":
2726
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2727
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2728
- case "ServiceQuotaExceededException":
2729
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2730
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2731
- case "ThrottlingException":
2732
- case "com.amazonaws.codecatalyst#ThrottlingException":
2733
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2734
- case "ValidationException":
2735
- case "com.amazonaws.codecatalyst#ValidationException":
2736
- throw await de_ValidationExceptionRes(parsedOutput, context);
2737
- default:
2738
- const parsedBody = parsedOutput.body;
2739
- return throwDefaultError({
2740
- output,
2741
- parsedBody,
2742
- errorCode
2743
- });
2744
- }
2745
- }, "de_StopDevEnvironmentSessionCommandError");
2746
1590
  var de_UpdateDevEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
2747
1591
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2748
- return de_UpdateDevEnvironmentCommandError(output, context);
1592
+ return de_CommandError(output, context);
2749
1593
  }
2750
1594
  const contents = (0, import_smithy_client.map)({
2751
1595
  $metadata: deserializeMetadata(output)
@@ -2764,43 +1608,9 @@ var de_UpdateDevEnvironmentCommand = /* @__PURE__ */ __name(async (output, conte
2764
1608
  Object.assign(contents, doc);
2765
1609
  return contents;
2766
1610
  }, "de_UpdateDevEnvironmentCommand");
2767
- var de_UpdateDevEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2768
- const parsedOutput = {
2769
- ...output,
2770
- body: await parseErrorBody(output.body, context)
2771
- };
2772
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2773
- switch (errorCode) {
2774
- case "AccessDeniedException":
2775
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2776
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2777
- case "ConflictException":
2778
- case "com.amazonaws.codecatalyst#ConflictException":
2779
- throw await de_ConflictExceptionRes(parsedOutput, context);
2780
- case "ResourceNotFoundException":
2781
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2782
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2783
- case "ServiceQuotaExceededException":
2784
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2785
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2786
- case "ThrottlingException":
2787
- case "com.amazonaws.codecatalyst#ThrottlingException":
2788
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2789
- case "ValidationException":
2790
- case "com.amazonaws.codecatalyst#ValidationException":
2791
- throw await de_ValidationExceptionRes(parsedOutput, context);
2792
- default:
2793
- const parsedBody = parsedOutput.body;
2794
- return throwDefaultError({
2795
- output,
2796
- parsedBody,
2797
- errorCode
2798
- });
2799
- }
2800
- }, "de_UpdateDevEnvironmentCommandError");
2801
1611
  var de_UpdateProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
2802
1612
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2803
- return de_UpdateProjectCommandError(output, context);
1613
+ return de_CommandError(output, context);
2804
1614
  }
2805
1615
  const contents = (0, import_smithy_client.map)({
2806
1616
  $metadata: deserializeMetadata(output)
@@ -2815,43 +1625,9 @@ var de_UpdateProjectCommand = /* @__PURE__ */ __name(async (output, context) =>
2815
1625
  Object.assign(contents, doc);
2816
1626
  return contents;
2817
1627
  }, "de_UpdateProjectCommand");
2818
- var de_UpdateProjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
2819
- const parsedOutput = {
2820
- ...output,
2821
- body: await parseErrorBody(output.body, context)
2822
- };
2823
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2824
- switch (errorCode) {
2825
- case "AccessDeniedException":
2826
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2827
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2828
- case "ConflictException":
2829
- case "com.amazonaws.codecatalyst#ConflictException":
2830
- throw await de_ConflictExceptionRes(parsedOutput, context);
2831
- case "ResourceNotFoundException":
2832
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2833
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2834
- case "ServiceQuotaExceededException":
2835
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2836
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2837
- case "ThrottlingException":
2838
- case "com.amazonaws.codecatalyst#ThrottlingException":
2839
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2840
- case "ValidationException":
2841
- case "com.amazonaws.codecatalyst#ValidationException":
2842
- throw await de_ValidationExceptionRes(parsedOutput, context);
2843
- default:
2844
- const parsedBody = parsedOutput.body;
2845
- return throwDefaultError({
2846
- output,
2847
- parsedBody,
2848
- errorCode
2849
- });
2850
- }
2851
- }, "de_UpdateProjectCommandError");
2852
1628
  var de_UpdateSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
2853
1629
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2854
- return de_UpdateSpaceCommandError(output, context);
1630
+ return de_CommandError(output, context);
2855
1631
  }
2856
1632
  const contents = (0, import_smithy_client.map)({
2857
1633
  $metadata: deserializeMetadata(output)
@@ -2865,43 +1641,9 @@ var de_UpdateSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
2865
1641
  Object.assign(contents, doc);
2866
1642
  return contents;
2867
1643
  }, "de_UpdateSpaceCommand");
2868
- var de_UpdateSpaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2869
- const parsedOutput = {
2870
- ...output,
2871
- body: await parseErrorBody(output.body, context)
2872
- };
2873
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2874
- switch (errorCode) {
2875
- case "AccessDeniedException":
2876
- case "com.amazonaws.codecatalyst#AccessDeniedException":
2877
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2878
- case "ConflictException":
2879
- case "com.amazonaws.codecatalyst#ConflictException":
2880
- throw await de_ConflictExceptionRes(parsedOutput, context);
2881
- case "ResourceNotFoundException":
2882
- case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2883
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2884
- case "ServiceQuotaExceededException":
2885
- case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2886
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2887
- case "ThrottlingException":
2888
- case "com.amazonaws.codecatalyst#ThrottlingException":
2889
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2890
- case "ValidationException":
2891
- case "com.amazonaws.codecatalyst#ValidationException":
2892
- throw await de_ValidationExceptionRes(parsedOutput, context);
2893
- default:
2894
- const parsedBody = parsedOutput.body;
2895
- return throwDefaultError({
2896
- output,
2897
- parsedBody,
2898
- errorCode
2899
- });
2900
- }
2901
- }, "de_UpdateSpaceCommandError");
2902
1644
  var de_VerifySessionCommand = /* @__PURE__ */ __name(async (output, context) => {
2903
1645
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2904
- return de_VerifySessionCommandError(output, context);
1646
+ return de_CommandError(output, context);
2905
1647
  }
2906
1648
  const contents = (0, import_smithy_client.map)({
2907
1649
  $metadata: deserializeMetadata(output)
@@ -2913,7 +1655,7 @@ var de_VerifySessionCommand = /* @__PURE__ */ __name(async (output, context) =>
2913
1655
  Object.assign(contents, doc);
2914
1656
  return contents;
2915
1657
  }, "de_VerifySessionCommand");
2916
- var de_VerifySessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1658
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2917
1659
  const parsedOutput = {
2918
1660
  ...output,
2919
1661
  body: await parseErrorBody(output.body, context)
@@ -2946,7 +1688,7 @@ var de_VerifySessionCommandError = /* @__PURE__ */ __name(async (output, context
2946
1688
  errorCode
2947
1689
  });
2948
1690
  }
2949
- }, "de_VerifySessionCommandError");
1691
+ }, "de_CommandError");
2950
1692
  var throwDefaultError = (0, import_smithy_client.withBaseException)(CodeCatalystServiceException);
2951
1693
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2952
1694
  const contents = (0, import_smithy_client.map)({});