@aws-sdk/client-appconfig 3.504.0 → 3.509.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1041,7 +1041,7 @@ var se_ValidateConfigurationCommand = /* @__PURE__ */ __name(async (input, conte
1041
1041
  }, "se_ValidateConfigurationCommand");
1042
1042
  var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1043
1043
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1044
- return de_CreateApplicationCommandError(output, context);
1044
+ return de_CommandError(output, context);
1045
1045
  }
1046
1046
  const contents = (0, import_smithy_client.map)({
1047
1047
  $metadata: deserializeMetadata(output)
@@ -1055,34 +1055,9 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
1055
1055
  Object.assign(contents, doc);
1056
1056
  return contents;
1057
1057
  }, "de_CreateApplicationCommand");
1058
- var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1059
- const parsedOutput = {
1060
- ...output,
1061
- body: await parseErrorBody(output.body, context)
1062
- };
1063
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1064
- switch (errorCode) {
1065
- case "BadRequestException":
1066
- case "com.amazonaws.appconfig#BadRequestException":
1067
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1068
- case "InternalServerException":
1069
- case "com.amazonaws.appconfig#InternalServerException":
1070
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1071
- case "ServiceQuotaExceededException":
1072
- case "com.amazonaws.appconfig#ServiceQuotaExceededException":
1073
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1074
- default:
1075
- const parsedBody = parsedOutput.body;
1076
- return throwDefaultError({
1077
- output,
1078
- parsedBody,
1079
- errorCode
1080
- });
1081
- }
1082
- }, "de_CreateApplicationCommandError");
1083
1058
  var de_CreateConfigurationProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1084
1059
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1085
- return de_CreateConfigurationProfileCommandError(output, context);
1060
+ return de_CommandError(output, context);
1086
1061
  }
1087
1062
  const contents = (0, import_smithy_client.map)({
1088
1063
  $metadata: deserializeMetadata(output)
@@ -1103,37 +1078,9 @@ var de_CreateConfigurationProfileCommand = /* @__PURE__ */ __name(async (output,
1103
1078
  Object.assign(contents, doc);
1104
1079
  return contents;
1105
1080
  }, "de_CreateConfigurationProfileCommand");
1106
- var de_CreateConfigurationProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1107
- const parsedOutput = {
1108
- ...output,
1109
- body: await parseErrorBody(output.body, context)
1110
- };
1111
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1112
- switch (errorCode) {
1113
- case "BadRequestException":
1114
- case "com.amazonaws.appconfig#BadRequestException":
1115
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1116
- case "InternalServerException":
1117
- case "com.amazonaws.appconfig#InternalServerException":
1118
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1119
- case "ResourceNotFoundException":
1120
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1121
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1122
- case "ServiceQuotaExceededException":
1123
- case "com.amazonaws.appconfig#ServiceQuotaExceededException":
1124
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1125
- default:
1126
- const parsedBody = parsedOutput.body;
1127
- return throwDefaultError({
1128
- output,
1129
- parsedBody,
1130
- errorCode
1131
- });
1132
- }
1133
- }, "de_CreateConfigurationProfileCommandError");
1134
1081
  var de_CreateDeploymentStrategyCommand = /* @__PURE__ */ __name(async (output, context) => {
1135
1082
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1136
- return de_CreateDeploymentStrategyCommandError(output, context);
1083
+ return de_CommandError(output, context);
1137
1084
  }
1138
1085
  const contents = (0, import_smithy_client.map)({
1139
1086
  $metadata: deserializeMetadata(output)
@@ -1152,34 +1099,9 @@ var de_CreateDeploymentStrategyCommand = /* @__PURE__ */ __name(async (output, c
1152
1099
  Object.assign(contents, doc);
1153
1100
  return contents;
1154
1101
  }, "de_CreateDeploymentStrategyCommand");
1155
- var de_CreateDeploymentStrategyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1156
- const parsedOutput = {
1157
- ...output,
1158
- body: await parseErrorBody(output.body, context)
1159
- };
1160
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1161
- switch (errorCode) {
1162
- case "BadRequestException":
1163
- case "com.amazonaws.appconfig#BadRequestException":
1164
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1165
- case "InternalServerException":
1166
- case "com.amazonaws.appconfig#InternalServerException":
1167
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1168
- case "ServiceQuotaExceededException":
1169
- case "com.amazonaws.appconfig#ServiceQuotaExceededException":
1170
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1171
- default:
1172
- const parsedBody = parsedOutput.body;
1173
- return throwDefaultError({
1174
- output,
1175
- parsedBody,
1176
- errorCode
1177
- });
1178
- }
1179
- }, "de_CreateDeploymentStrategyCommandError");
1180
1102
  var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1181
1103
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1182
- return de_CreateEnvironmentCommandError(output, context);
1104
+ return de_CommandError(output, context);
1183
1105
  }
1184
1106
  const contents = (0, import_smithy_client.map)({
1185
1107
  $metadata: deserializeMetadata(output)
@@ -1196,37 +1118,9 @@ var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
1196
1118
  Object.assign(contents, doc);
1197
1119
  return contents;
1198
1120
  }, "de_CreateEnvironmentCommand");
1199
- var de_CreateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1200
- const parsedOutput = {
1201
- ...output,
1202
- body: await parseErrorBody(output.body, context)
1203
- };
1204
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1205
- switch (errorCode) {
1206
- case "BadRequestException":
1207
- case "com.amazonaws.appconfig#BadRequestException":
1208
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1209
- case "InternalServerException":
1210
- case "com.amazonaws.appconfig#InternalServerException":
1211
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1212
- case "ResourceNotFoundException":
1213
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1214
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1215
- case "ServiceQuotaExceededException":
1216
- case "com.amazonaws.appconfig#ServiceQuotaExceededException":
1217
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1218
- default:
1219
- const parsedBody = parsedOutput.body;
1220
- return throwDefaultError({
1221
- output,
1222
- parsedBody,
1223
- errorCode
1224
- });
1225
- }
1226
- }, "de_CreateEnvironmentCommandError");
1227
1121
  var de_CreateExtensionCommand = /* @__PURE__ */ __name(async (output, context) => {
1228
1122
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1229
- return de_CreateExtensionCommandError(output, context);
1123
+ return de_CommandError(output, context);
1230
1124
  }
1231
1125
  const contents = (0, import_smithy_client.map)({
1232
1126
  $metadata: deserializeMetadata(output)
@@ -1244,37 +1138,9 @@ var de_CreateExtensionCommand = /* @__PURE__ */ __name(async (output, context) =
1244
1138
  Object.assign(contents, doc);
1245
1139
  return contents;
1246
1140
  }, "de_CreateExtensionCommand");
1247
- var de_CreateExtensionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1248
- const parsedOutput = {
1249
- ...output,
1250
- body: await parseErrorBody(output.body, context)
1251
- };
1252
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1253
- switch (errorCode) {
1254
- case "BadRequestException":
1255
- case "com.amazonaws.appconfig#BadRequestException":
1256
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1257
- case "ConflictException":
1258
- case "com.amazonaws.appconfig#ConflictException":
1259
- throw await de_ConflictExceptionRes(parsedOutput, context);
1260
- case "InternalServerException":
1261
- case "com.amazonaws.appconfig#InternalServerException":
1262
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1263
- case "ServiceQuotaExceededException":
1264
- case "com.amazonaws.appconfig#ServiceQuotaExceededException":
1265
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1266
- default:
1267
- const parsedBody = parsedOutput.body;
1268
- return throwDefaultError({
1269
- output,
1270
- parsedBody,
1271
- errorCode
1272
- });
1273
- }
1274
- }, "de_CreateExtensionCommandError");
1275
1141
  var de_CreateExtensionAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
1276
1142
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1277
- return de_CreateExtensionAssociationCommandError(output, context);
1143
+ return de_CommandError(output, context);
1278
1144
  }
1279
1145
  const contents = (0, import_smithy_client.map)({
1280
1146
  $metadata: deserializeMetadata(output)
@@ -1291,37 +1157,9 @@ var de_CreateExtensionAssociationCommand = /* @__PURE__ */ __name(async (output,
1291
1157
  Object.assign(contents, doc);
1292
1158
  return contents;
1293
1159
  }, "de_CreateExtensionAssociationCommand");
1294
- var de_CreateExtensionAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1295
- const parsedOutput = {
1296
- ...output,
1297
- body: await parseErrorBody(output.body, context)
1298
- };
1299
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1300
- switch (errorCode) {
1301
- case "BadRequestException":
1302
- case "com.amazonaws.appconfig#BadRequestException":
1303
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1304
- case "InternalServerException":
1305
- case "com.amazonaws.appconfig#InternalServerException":
1306
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1307
- case "ResourceNotFoundException":
1308
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1309
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1310
- case "ServiceQuotaExceededException":
1311
- case "com.amazonaws.appconfig#ServiceQuotaExceededException":
1312
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1313
- default:
1314
- const parsedBody = parsedOutput.body;
1315
- return throwDefaultError({
1316
- output,
1317
- parsedBody,
1318
- errorCode
1319
- });
1320
- }
1321
- }, "de_CreateExtensionAssociationCommandError");
1322
1160
  var de_CreateHostedConfigurationVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
1323
1161
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1324
- return de_CreateHostedConfigurationVersionCommandError(output, context);
1162
+ return de_CommandError(output, context);
1325
1163
  }
1326
1164
  const contents = (0, import_smithy_client.map)({
1327
1165
  $metadata: deserializeMetadata(output),
@@ -1337,43 +1175,9 @@ var de_CreateHostedConfigurationVersionCommand = /* @__PURE__ */ __name(async (o
1337
1175
  contents.Content = data;
1338
1176
  return contents;
1339
1177
  }, "de_CreateHostedConfigurationVersionCommand");
1340
- var de_CreateHostedConfigurationVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1341
- const parsedOutput = {
1342
- ...output,
1343
- body: await parseErrorBody(output.body, context)
1344
- };
1345
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1346
- switch (errorCode) {
1347
- case "BadRequestException":
1348
- case "com.amazonaws.appconfig#BadRequestException":
1349
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1350
- case "ConflictException":
1351
- case "com.amazonaws.appconfig#ConflictException":
1352
- throw await de_ConflictExceptionRes(parsedOutput, context);
1353
- case "InternalServerException":
1354
- case "com.amazonaws.appconfig#InternalServerException":
1355
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1356
- case "PayloadTooLargeException":
1357
- case "com.amazonaws.appconfig#PayloadTooLargeException":
1358
- throw await de_PayloadTooLargeExceptionRes(parsedOutput, context);
1359
- case "ResourceNotFoundException":
1360
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1361
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1362
- case "ServiceQuotaExceededException":
1363
- case "com.amazonaws.appconfig#ServiceQuotaExceededException":
1364
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1365
- default:
1366
- const parsedBody = parsedOutput.body;
1367
- return throwDefaultError({
1368
- output,
1369
- parsedBody,
1370
- errorCode
1371
- });
1372
- }
1373
- }, "de_CreateHostedConfigurationVersionCommandError");
1374
1178
  var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1375
1179
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1376
- return de_DeleteApplicationCommandError(output, context);
1180
+ return de_CommandError(output, context);
1377
1181
  }
1378
1182
  const contents = (0, import_smithy_client.map)({
1379
1183
  $metadata: deserializeMetadata(output)
@@ -1381,34 +1185,9 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
1381
1185
  await (0, import_smithy_client.collectBody)(output.body, context);
1382
1186
  return contents;
1383
1187
  }, "de_DeleteApplicationCommand");
1384
- var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1385
- const parsedOutput = {
1386
- ...output,
1387
- body: await parseErrorBody(output.body, context)
1388
- };
1389
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1390
- switch (errorCode) {
1391
- case "BadRequestException":
1392
- case "com.amazonaws.appconfig#BadRequestException":
1393
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1394
- case "InternalServerException":
1395
- case "com.amazonaws.appconfig#InternalServerException":
1396
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1397
- case "ResourceNotFoundException":
1398
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1399
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1400
- default:
1401
- const parsedBody = parsedOutput.body;
1402
- return throwDefaultError({
1403
- output,
1404
- parsedBody,
1405
- errorCode
1406
- });
1407
- }
1408
- }, "de_DeleteApplicationCommandError");
1409
1188
  var de_DeleteConfigurationProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1410
1189
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1411
- return de_DeleteConfigurationProfileCommandError(output, context);
1190
+ return de_CommandError(output, context);
1412
1191
  }
1413
1192
  const contents = (0, import_smithy_client.map)({
1414
1193
  $metadata: deserializeMetadata(output)
@@ -1416,37 +1195,9 @@ var de_DeleteConfigurationProfileCommand = /* @__PURE__ */ __name(async (output,
1416
1195
  await (0, import_smithy_client.collectBody)(output.body, context);
1417
1196
  return contents;
1418
1197
  }, "de_DeleteConfigurationProfileCommand");
1419
- var de_DeleteConfigurationProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1420
- const parsedOutput = {
1421
- ...output,
1422
- body: await parseErrorBody(output.body, context)
1423
- };
1424
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1425
- switch (errorCode) {
1426
- case "BadRequestException":
1427
- case "com.amazonaws.appconfig#BadRequestException":
1428
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1429
- case "ConflictException":
1430
- case "com.amazonaws.appconfig#ConflictException":
1431
- throw await de_ConflictExceptionRes(parsedOutput, context);
1432
- case "InternalServerException":
1433
- case "com.amazonaws.appconfig#InternalServerException":
1434
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1435
- case "ResourceNotFoundException":
1436
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1437
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1438
- default:
1439
- const parsedBody = parsedOutput.body;
1440
- return throwDefaultError({
1441
- output,
1442
- parsedBody,
1443
- errorCode
1444
- });
1445
- }
1446
- }, "de_DeleteConfigurationProfileCommandError");
1447
1198
  var de_DeleteDeploymentStrategyCommand = /* @__PURE__ */ __name(async (output, context) => {
1448
1199
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1449
- return de_DeleteDeploymentStrategyCommandError(output, context);
1200
+ return de_CommandError(output, context);
1450
1201
  }
1451
1202
  const contents = (0, import_smithy_client.map)({
1452
1203
  $metadata: deserializeMetadata(output)
@@ -1454,34 +1205,9 @@ var de_DeleteDeploymentStrategyCommand = /* @__PURE__ */ __name(async (output, c
1454
1205
  await (0, import_smithy_client.collectBody)(output.body, context);
1455
1206
  return contents;
1456
1207
  }, "de_DeleteDeploymentStrategyCommand");
1457
- var de_DeleteDeploymentStrategyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1458
- const parsedOutput = {
1459
- ...output,
1460
- body: await parseErrorBody(output.body, context)
1461
- };
1462
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1463
- switch (errorCode) {
1464
- case "BadRequestException":
1465
- case "com.amazonaws.appconfig#BadRequestException":
1466
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1467
- case "InternalServerException":
1468
- case "com.amazonaws.appconfig#InternalServerException":
1469
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1470
- case "ResourceNotFoundException":
1471
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1472
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1473
- default:
1474
- const parsedBody = parsedOutput.body;
1475
- return throwDefaultError({
1476
- output,
1477
- parsedBody,
1478
- errorCode
1479
- });
1480
- }
1481
- }, "de_DeleteDeploymentStrategyCommandError");
1482
1208
  var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1483
1209
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1484
- return de_DeleteEnvironmentCommandError(output, context);
1210
+ return de_CommandError(output, context);
1485
1211
  }
1486
1212
  const contents = (0, import_smithy_client.map)({
1487
1213
  $metadata: deserializeMetadata(output)
@@ -1489,37 +1215,9 @@ var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
1489
1215
  await (0, import_smithy_client.collectBody)(output.body, context);
1490
1216
  return contents;
1491
1217
  }, "de_DeleteEnvironmentCommand");
1492
- var de_DeleteEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1493
- const parsedOutput = {
1494
- ...output,
1495
- body: await parseErrorBody(output.body, context)
1496
- };
1497
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1498
- switch (errorCode) {
1499
- case "BadRequestException":
1500
- case "com.amazonaws.appconfig#BadRequestException":
1501
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1502
- case "ConflictException":
1503
- case "com.amazonaws.appconfig#ConflictException":
1504
- throw await de_ConflictExceptionRes(parsedOutput, context);
1505
- case "InternalServerException":
1506
- case "com.amazonaws.appconfig#InternalServerException":
1507
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1508
- case "ResourceNotFoundException":
1509
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1510
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1511
- default:
1512
- const parsedBody = parsedOutput.body;
1513
- return throwDefaultError({
1514
- output,
1515
- parsedBody,
1516
- errorCode
1517
- });
1518
- }
1519
- }, "de_DeleteEnvironmentCommandError");
1520
1218
  var de_DeleteExtensionCommand = /* @__PURE__ */ __name(async (output, context) => {
1521
1219
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1522
- return de_DeleteExtensionCommandError(output, context);
1220
+ return de_CommandError(output, context);
1523
1221
  }
1524
1222
  const contents = (0, import_smithy_client.map)({
1525
1223
  $metadata: deserializeMetadata(output)
@@ -1527,34 +1225,9 @@ var de_DeleteExtensionCommand = /* @__PURE__ */ __name(async (output, context) =
1527
1225
  await (0, import_smithy_client.collectBody)(output.body, context);
1528
1226
  return contents;
1529
1227
  }, "de_DeleteExtensionCommand");
1530
- var de_DeleteExtensionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1531
- const parsedOutput = {
1532
- ...output,
1533
- body: await parseErrorBody(output.body, context)
1534
- };
1535
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1536
- switch (errorCode) {
1537
- case "BadRequestException":
1538
- case "com.amazonaws.appconfig#BadRequestException":
1539
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1540
- case "InternalServerException":
1541
- case "com.amazonaws.appconfig#InternalServerException":
1542
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1543
- case "ResourceNotFoundException":
1544
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1545
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1546
- default:
1547
- const parsedBody = parsedOutput.body;
1548
- return throwDefaultError({
1549
- output,
1550
- parsedBody,
1551
- errorCode
1552
- });
1553
- }
1554
- }, "de_DeleteExtensionCommandError");
1555
1228
  var de_DeleteExtensionAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
1556
1229
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1557
- return de_DeleteExtensionAssociationCommandError(output, context);
1230
+ return de_CommandError(output, context);
1558
1231
  }
1559
1232
  const contents = (0, import_smithy_client.map)({
1560
1233
  $metadata: deserializeMetadata(output)
@@ -1562,34 +1235,9 @@ var de_DeleteExtensionAssociationCommand = /* @__PURE__ */ __name(async (output,
1562
1235
  await (0, import_smithy_client.collectBody)(output.body, context);
1563
1236
  return contents;
1564
1237
  }, "de_DeleteExtensionAssociationCommand");
1565
- var de_DeleteExtensionAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1566
- const parsedOutput = {
1567
- ...output,
1568
- body: await parseErrorBody(output.body, context)
1569
- };
1570
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1571
- switch (errorCode) {
1572
- case "BadRequestException":
1573
- case "com.amazonaws.appconfig#BadRequestException":
1574
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1575
- case "InternalServerException":
1576
- case "com.amazonaws.appconfig#InternalServerException":
1577
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1578
- case "ResourceNotFoundException":
1579
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1580
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1581
- default:
1582
- const parsedBody = parsedOutput.body;
1583
- return throwDefaultError({
1584
- output,
1585
- parsedBody,
1586
- errorCode
1587
- });
1588
- }
1589
- }, "de_DeleteExtensionAssociationCommandError");
1590
1238
  var de_DeleteHostedConfigurationVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
1591
1239
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1592
- return de_DeleteHostedConfigurationVersionCommandError(output, context);
1240
+ return de_CommandError(output, context);
1593
1241
  }
1594
1242
  const contents = (0, import_smithy_client.map)({
1595
1243
  $metadata: deserializeMetadata(output)
@@ -1597,34 +1245,9 @@ var de_DeleteHostedConfigurationVersionCommand = /* @__PURE__ */ __name(async (o
1597
1245
  await (0, import_smithy_client.collectBody)(output.body, context);
1598
1246
  return contents;
1599
1247
  }, "de_DeleteHostedConfigurationVersionCommand");
1600
- var de_DeleteHostedConfigurationVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1601
- const parsedOutput = {
1602
- ...output,
1603
- body: await parseErrorBody(output.body, context)
1604
- };
1605
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1606
- switch (errorCode) {
1607
- case "BadRequestException":
1608
- case "com.amazonaws.appconfig#BadRequestException":
1609
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1610
- case "InternalServerException":
1611
- case "com.amazonaws.appconfig#InternalServerException":
1612
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1613
- case "ResourceNotFoundException":
1614
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1615
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1616
- default:
1617
- const parsedBody = parsedOutput.body;
1618
- return throwDefaultError({
1619
- output,
1620
- parsedBody,
1621
- errorCode
1622
- });
1623
- }
1624
- }, "de_DeleteHostedConfigurationVersionCommandError");
1625
1248
  var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1626
1249
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1627
- return de_GetApplicationCommandError(output, context);
1250
+ return de_CommandError(output, context);
1628
1251
  }
1629
1252
  const contents = (0, import_smithy_client.map)({
1630
1253
  $metadata: deserializeMetadata(output)
@@ -1638,34 +1261,9 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
1638
1261
  Object.assign(contents, doc);
1639
1262
  return contents;
1640
1263
  }, "de_GetApplicationCommand");
1641
- var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1642
- const parsedOutput = {
1643
- ...output,
1644
- body: await parseErrorBody(output.body, context)
1645
- };
1646
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1647
- switch (errorCode) {
1648
- case "BadRequestException":
1649
- case "com.amazonaws.appconfig#BadRequestException":
1650
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1651
- case "InternalServerException":
1652
- case "com.amazonaws.appconfig#InternalServerException":
1653
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1654
- case "ResourceNotFoundException":
1655
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1656
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1657
- default:
1658
- const parsedBody = parsedOutput.body;
1659
- return throwDefaultError({
1660
- output,
1661
- parsedBody,
1662
- errorCode
1663
- });
1664
- }
1665
- }, "de_GetApplicationCommandError");
1666
1264
  var de_GetConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1667
1265
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1668
- return de_GetConfigurationCommandError(output, context);
1266
+ return de_CommandError(output, context);
1669
1267
  }
1670
1268
  const contents = (0, import_smithy_client.map)({
1671
1269
  $metadata: deserializeMetadata(output),
@@ -1676,34 +1274,9 @@ var de_GetConfigurationCommand = /* @__PURE__ */ __name(async (output, context)
1676
1274
  contents.Content = data;
1677
1275
  return contents;
1678
1276
  }, "de_GetConfigurationCommand");
1679
- var de_GetConfigurationCommandError = /* @__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 "BadRequestException":
1687
- case "com.amazonaws.appconfig#BadRequestException":
1688
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1689
- case "InternalServerException":
1690
- case "com.amazonaws.appconfig#InternalServerException":
1691
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1692
- case "ResourceNotFoundException":
1693
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1694
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1695
- default:
1696
- const parsedBody = parsedOutput.body;
1697
- return throwDefaultError({
1698
- output,
1699
- parsedBody,
1700
- errorCode
1701
- });
1702
- }
1703
- }, "de_GetConfigurationCommandError");
1704
1277
  var de_GetConfigurationProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1705
1278
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1706
- return de_GetConfigurationProfileCommandError(output, context);
1279
+ return de_CommandError(output, context);
1707
1280
  }
1708
1281
  const contents = (0, import_smithy_client.map)({
1709
1282
  $metadata: deserializeMetadata(output)
@@ -1724,34 +1297,9 @@ var de_GetConfigurationProfileCommand = /* @__PURE__ */ __name(async (output, co
1724
1297
  Object.assign(contents, doc);
1725
1298
  return contents;
1726
1299
  }, "de_GetConfigurationProfileCommand");
1727
- var de_GetConfigurationProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1728
- const parsedOutput = {
1729
- ...output,
1730
- body: await parseErrorBody(output.body, context)
1731
- };
1732
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1733
- switch (errorCode) {
1734
- case "BadRequestException":
1735
- case "com.amazonaws.appconfig#BadRequestException":
1736
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1737
- case "InternalServerException":
1738
- case "com.amazonaws.appconfig#InternalServerException":
1739
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1740
- case "ResourceNotFoundException":
1741
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1742
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1743
- default:
1744
- const parsedBody = parsedOutput.body;
1745
- return throwDefaultError({
1746
- output,
1747
- parsedBody,
1748
- errorCode
1749
- });
1750
- }
1751
- }, "de_GetConfigurationProfileCommandError");
1752
1300
  var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
1753
1301
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1754
- return de_GetDeploymentCommandError(output, context);
1302
+ return de_CommandError(output, context);
1755
1303
  }
1756
1304
  const contents = (0, import_smithy_client.map)({
1757
1305
  $metadata: deserializeMetadata(output)
@@ -1784,34 +1332,9 @@ var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) =>
1784
1332
  Object.assign(contents, doc);
1785
1333
  return contents;
1786
1334
  }, "de_GetDeploymentCommand");
1787
- var de_GetDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1788
- const parsedOutput = {
1789
- ...output,
1790
- body: await parseErrorBody(output.body, context)
1791
- };
1792
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1793
- switch (errorCode) {
1794
- case "BadRequestException":
1795
- case "com.amazonaws.appconfig#BadRequestException":
1796
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1797
- case "InternalServerException":
1798
- case "com.amazonaws.appconfig#InternalServerException":
1799
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1800
- case "ResourceNotFoundException":
1801
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1802
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1803
- default:
1804
- const parsedBody = parsedOutput.body;
1805
- return throwDefaultError({
1806
- output,
1807
- parsedBody,
1808
- errorCode
1809
- });
1810
- }
1811
- }, "de_GetDeploymentCommandError");
1812
1335
  var de_GetDeploymentStrategyCommand = /* @__PURE__ */ __name(async (output, context) => {
1813
1336
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1814
- return de_GetDeploymentStrategyCommandError(output, context);
1337
+ return de_CommandError(output, context);
1815
1338
  }
1816
1339
  const contents = (0, import_smithy_client.map)({
1817
1340
  $metadata: deserializeMetadata(output)
@@ -1830,34 +1353,9 @@ var de_GetDeploymentStrategyCommand = /* @__PURE__ */ __name(async (output, cont
1830
1353
  Object.assign(contents, doc);
1831
1354
  return contents;
1832
1355
  }, "de_GetDeploymentStrategyCommand");
1833
- var de_GetDeploymentStrategyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1834
- const parsedOutput = {
1835
- ...output,
1836
- body: await parseErrorBody(output.body, context)
1837
- };
1838
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1839
- switch (errorCode) {
1840
- case "BadRequestException":
1841
- case "com.amazonaws.appconfig#BadRequestException":
1842
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1843
- case "InternalServerException":
1844
- case "com.amazonaws.appconfig#InternalServerException":
1845
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1846
- case "ResourceNotFoundException":
1847
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1848
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1849
- default:
1850
- const parsedBody = parsedOutput.body;
1851
- return throwDefaultError({
1852
- output,
1853
- parsedBody,
1854
- errorCode
1855
- });
1856
- }
1857
- }, "de_GetDeploymentStrategyCommandError");
1858
1356
  var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1859
1357
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1860
- return de_GetEnvironmentCommandError(output, context);
1358
+ return de_CommandError(output, context);
1861
1359
  }
1862
1360
  const contents = (0, import_smithy_client.map)({
1863
1361
  $metadata: deserializeMetadata(output)
@@ -1874,34 +1372,9 @@ var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) =>
1874
1372
  Object.assign(contents, doc);
1875
1373
  return contents;
1876
1374
  }, "de_GetEnvironmentCommand");
1877
- var de_GetEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1878
- const parsedOutput = {
1879
- ...output,
1880
- body: await parseErrorBody(output.body, context)
1881
- };
1882
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1883
- switch (errorCode) {
1884
- case "BadRequestException":
1885
- case "com.amazonaws.appconfig#BadRequestException":
1886
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1887
- case "InternalServerException":
1888
- case "com.amazonaws.appconfig#InternalServerException":
1889
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1890
- case "ResourceNotFoundException":
1891
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1892
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1893
- default:
1894
- const parsedBody = parsedOutput.body;
1895
- return throwDefaultError({
1896
- output,
1897
- parsedBody,
1898
- errorCode
1899
- });
1900
- }
1901
- }, "de_GetEnvironmentCommandError");
1902
1375
  var de_GetExtensionCommand = /* @__PURE__ */ __name(async (output, context) => {
1903
1376
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1904
- return de_GetExtensionCommandError(output, context);
1377
+ return de_CommandError(output, context);
1905
1378
  }
1906
1379
  const contents = (0, import_smithy_client.map)({
1907
1380
  $metadata: deserializeMetadata(output)
@@ -1919,34 +1392,9 @@ var de_GetExtensionCommand = /* @__PURE__ */ __name(async (output, context) => {
1919
1392
  Object.assign(contents, doc);
1920
1393
  return contents;
1921
1394
  }, "de_GetExtensionCommand");
1922
- var de_GetExtensionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1923
- const parsedOutput = {
1924
- ...output,
1925
- body: await parseErrorBody(output.body, context)
1926
- };
1927
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1928
- switch (errorCode) {
1929
- case "BadRequestException":
1930
- case "com.amazonaws.appconfig#BadRequestException":
1931
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1932
- case "InternalServerException":
1933
- case "com.amazonaws.appconfig#InternalServerException":
1934
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1935
- case "ResourceNotFoundException":
1936
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1937
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1938
- default:
1939
- const parsedBody = parsedOutput.body;
1940
- return throwDefaultError({
1941
- output,
1942
- parsedBody,
1943
- errorCode
1944
- });
1945
- }
1946
- }, "de_GetExtensionCommandError");
1947
1395
  var de_GetExtensionAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
1948
1396
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1949
- return de_GetExtensionAssociationCommandError(output, context);
1397
+ return de_CommandError(output, context);
1950
1398
  }
1951
1399
  const contents = (0, import_smithy_client.map)({
1952
1400
  $metadata: deserializeMetadata(output)
@@ -1963,34 +1411,9 @@ var de_GetExtensionAssociationCommand = /* @__PURE__ */ __name(async (output, co
1963
1411
  Object.assign(contents, doc);
1964
1412
  return contents;
1965
1413
  }, "de_GetExtensionAssociationCommand");
1966
- var de_GetExtensionAssociationCommandError = /* @__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 "BadRequestException":
1974
- case "com.amazonaws.appconfig#BadRequestException":
1975
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1976
- case "InternalServerException":
1977
- case "com.amazonaws.appconfig#InternalServerException":
1978
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1979
- case "ResourceNotFoundException":
1980
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1981
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1982
- default:
1983
- const parsedBody = parsedOutput.body;
1984
- return throwDefaultError({
1985
- output,
1986
- parsedBody,
1987
- errorCode
1988
- });
1989
- }
1990
- }, "de_GetExtensionAssociationCommandError");
1991
1414
  var de_GetHostedConfigurationVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
1992
1415
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1993
- return de_GetHostedConfigurationVersionCommandError(output, context);
1416
+ return de_CommandError(output, context);
1994
1417
  }
1995
1418
  const contents = (0, import_smithy_client.map)({
1996
1419
  $metadata: deserializeMetadata(output),
@@ -2006,34 +1429,9 @@ var de_GetHostedConfigurationVersionCommand = /* @__PURE__ */ __name(async (outp
2006
1429
  contents.Content = data;
2007
1430
  return contents;
2008
1431
  }, "de_GetHostedConfigurationVersionCommand");
2009
- var de_GetHostedConfigurationVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2010
- const parsedOutput = {
2011
- ...output,
2012
- body: await parseErrorBody(output.body, context)
2013
- };
2014
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2015
- switch (errorCode) {
2016
- case "BadRequestException":
2017
- case "com.amazonaws.appconfig#BadRequestException":
2018
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2019
- case "InternalServerException":
2020
- case "com.amazonaws.appconfig#InternalServerException":
2021
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2022
- case "ResourceNotFoundException":
2023
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2024
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2025
- default:
2026
- const parsedBody = parsedOutput.body;
2027
- return throwDefaultError({
2028
- output,
2029
- parsedBody,
2030
- errorCode
2031
- });
2032
- }
2033
- }, "de_GetHostedConfigurationVersionCommandError");
2034
1432
  var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2035
1433
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2036
- return de_ListApplicationsCommandError(output, context);
1434
+ return de_CommandError(output, context);
2037
1435
  }
2038
1436
  const contents = (0, import_smithy_client.map)({
2039
1437
  $metadata: deserializeMetadata(output)
@@ -2046,31 +1444,9 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
2046
1444
  Object.assign(contents, doc);
2047
1445
  return contents;
2048
1446
  }, "de_ListApplicationsCommand");
2049
- var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2050
- const parsedOutput = {
2051
- ...output,
2052
- body: await parseErrorBody(output.body, context)
2053
- };
2054
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2055
- switch (errorCode) {
2056
- case "BadRequestException":
2057
- case "com.amazonaws.appconfig#BadRequestException":
2058
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2059
- case "InternalServerException":
2060
- case "com.amazonaws.appconfig#InternalServerException":
2061
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2062
- default:
2063
- const parsedBody = parsedOutput.body;
2064
- return throwDefaultError({
2065
- output,
2066
- parsedBody,
2067
- errorCode
2068
- });
2069
- }
2070
- }, "de_ListApplicationsCommandError");
2071
1447
  var de_ListConfigurationProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
2072
1448
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2073
- return de_ListConfigurationProfilesCommandError(output, context);
1449
+ return de_CommandError(output, context);
2074
1450
  }
2075
1451
  const contents = (0, import_smithy_client.map)({
2076
1452
  $metadata: deserializeMetadata(output)
@@ -2083,34 +1459,9 @@ var de_ListConfigurationProfilesCommand = /* @__PURE__ */ __name(async (output,
2083
1459
  Object.assign(contents, doc);
2084
1460
  return contents;
2085
1461
  }, "de_ListConfigurationProfilesCommand");
2086
- var de_ListConfigurationProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2087
- const parsedOutput = {
2088
- ...output,
2089
- body: await parseErrorBody(output.body, context)
2090
- };
2091
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2092
- switch (errorCode) {
2093
- case "BadRequestException":
2094
- case "com.amazonaws.appconfig#BadRequestException":
2095
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2096
- case "InternalServerException":
2097
- case "com.amazonaws.appconfig#InternalServerException":
2098
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2099
- case "ResourceNotFoundException":
2100
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2101
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2102
- default:
2103
- const parsedBody = parsedOutput.body;
2104
- return throwDefaultError({
2105
- output,
2106
- parsedBody,
2107
- errorCode
2108
- });
2109
- }
2110
- }, "de_ListConfigurationProfilesCommandError");
2111
1462
  var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
2112
1463
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2113
- return de_ListDeploymentsCommandError(output, context);
1464
+ return de_CommandError(output, context);
2114
1465
  }
2115
1466
  const contents = (0, import_smithy_client.map)({
2116
1467
  $metadata: deserializeMetadata(output)
@@ -2123,34 +1474,9 @@ var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) =
2123
1474
  Object.assign(contents, doc);
2124
1475
  return contents;
2125
1476
  }, "de_ListDeploymentsCommand");
2126
- var de_ListDeploymentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2127
- const parsedOutput = {
2128
- ...output,
2129
- body: await parseErrorBody(output.body, context)
2130
- };
2131
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2132
- switch (errorCode) {
2133
- case "BadRequestException":
2134
- case "com.amazonaws.appconfig#BadRequestException":
2135
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2136
- case "InternalServerException":
2137
- case "com.amazonaws.appconfig#InternalServerException":
2138
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2139
- case "ResourceNotFoundException":
2140
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2141
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2142
- default:
2143
- const parsedBody = parsedOutput.body;
2144
- return throwDefaultError({
2145
- output,
2146
- parsedBody,
2147
- errorCode
2148
- });
2149
- }
2150
- }, "de_ListDeploymentsCommandError");
2151
1477
  var de_ListDeploymentStrategiesCommand = /* @__PURE__ */ __name(async (output, context) => {
2152
1478
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2153
- return de_ListDeploymentStrategiesCommandError(output, context);
1479
+ return de_CommandError(output, context);
2154
1480
  }
2155
1481
  const contents = (0, import_smithy_client.map)({
2156
1482
  $metadata: deserializeMetadata(output)
@@ -2163,31 +1489,9 @@ var de_ListDeploymentStrategiesCommand = /* @__PURE__ */ __name(async (output, c
2163
1489
  Object.assign(contents, doc);
2164
1490
  return contents;
2165
1491
  }, "de_ListDeploymentStrategiesCommand");
2166
- var de_ListDeploymentStrategiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2167
- const parsedOutput = {
2168
- ...output,
2169
- body: await parseErrorBody(output.body, context)
2170
- };
2171
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2172
- switch (errorCode) {
2173
- case "BadRequestException":
2174
- case "com.amazonaws.appconfig#BadRequestException":
2175
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2176
- case "InternalServerException":
2177
- case "com.amazonaws.appconfig#InternalServerException":
2178
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2179
- default:
2180
- const parsedBody = parsedOutput.body;
2181
- return throwDefaultError({
2182
- output,
2183
- parsedBody,
2184
- errorCode
2185
- });
2186
- }
2187
- }, "de_ListDeploymentStrategiesCommandError");
2188
1492
  var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
2189
1493
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2190
- return de_ListEnvironmentsCommandError(output, context);
1494
+ return de_CommandError(output, context);
2191
1495
  }
2192
1496
  const contents = (0, import_smithy_client.map)({
2193
1497
  $metadata: deserializeMetadata(output)
@@ -2200,34 +1504,9 @@ var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context)
2200
1504
  Object.assign(contents, doc);
2201
1505
  return contents;
2202
1506
  }, "de_ListEnvironmentsCommand");
2203
- var de_ListEnvironmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2204
- const parsedOutput = {
2205
- ...output,
2206
- body: await parseErrorBody(output.body, context)
2207
- };
2208
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2209
- switch (errorCode) {
2210
- case "BadRequestException":
2211
- case "com.amazonaws.appconfig#BadRequestException":
2212
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2213
- case "InternalServerException":
2214
- case "com.amazonaws.appconfig#InternalServerException":
2215
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2216
- case "ResourceNotFoundException":
2217
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2218
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2219
- default:
2220
- const parsedBody = parsedOutput.body;
2221
- return throwDefaultError({
2222
- output,
2223
- parsedBody,
2224
- errorCode
2225
- });
2226
- }
2227
- }, "de_ListEnvironmentsCommandError");
2228
1507
  var de_ListExtensionAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2229
1508
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2230
- return de_ListExtensionAssociationsCommandError(output, context);
1509
+ return de_CommandError(output, context);
2231
1510
  }
2232
1511
  const contents = (0, import_smithy_client.map)({
2233
1512
  $metadata: deserializeMetadata(output)
@@ -2240,31 +1519,9 @@ var de_ListExtensionAssociationsCommand = /* @__PURE__ */ __name(async (output,
2240
1519
  Object.assign(contents, doc);
2241
1520
  return contents;
2242
1521
  }, "de_ListExtensionAssociationsCommand");
2243
- var de_ListExtensionAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2244
- const parsedOutput = {
2245
- ...output,
2246
- body: await parseErrorBody(output.body, context)
2247
- };
2248
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2249
- switch (errorCode) {
2250
- case "BadRequestException":
2251
- case "com.amazonaws.appconfig#BadRequestException":
2252
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2253
- case "InternalServerException":
2254
- case "com.amazonaws.appconfig#InternalServerException":
2255
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2256
- default:
2257
- const parsedBody = parsedOutput.body;
2258
- return throwDefaultError({
2259
- output,
2260
- parsedBody,
2261
- errorCode
2262
- });
2263
- }
2264
- }, "de_ListExtensionAssociationsCommandError");
2265
1522
  var de_ListExtensionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2266
1523
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2267
- return de_ListExtensionsCommandError(output, context);
1524
+ return de_CommandError(output, context);
2268
1525
  }
2269
1526
  const contents = (0, import_smithy_client.map)({
2270
1527
  $metadata: deserializeMetadata(output)
@@ -2277,31 +1534,9 @@ var de_ListExtensionsCommand = /* @__PURE__ */ __name(async (output, context) =>
2277
1534
  Object.assign(contents, doc);
2278
1535
  return contents;
2279
1536
  }, "de_ListExtensionsCommand");
2280
- var de_ListExtensionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2281
- const parsedOutput = {
2282
- ...output,
2283
- body: await parseErrorBody(output.body, context)
2284
- };
2285
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2286
- switch (errorCode) {
2287
- case "BadRequestException":
2288
- case "com.amazonaws.appconfig#BadRequestException":
2289
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2290
- case "InternalServerException":
2291
- case "com.amazonaws.appconfig#InternalServerException":
2292
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2293
- default:
2294
- const parsedBody = parsedOutput.body;
2295
- return throwDefaultError({
2296
- output,
2297
- parsedBody,
2298
- errorCode
2299
- });
2300
- }
2301
- }, "de_ListExtensionsCommandError");
2302
1537
  var de_ListHostedConfigurationVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2303
1538
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2304
- return de_ListHostedConfigurationVersionsCommandError(output, context);
1539
+ return de_CommandError(output, context);
2305
1540
  }
2306
1541
  const contents = (0, import_smithy_client.map)({
2307
1542
  $metadata: deserializeMetadata(output)
@@ -2314,73 +1549,23 @@ var de_ListHostedConfigurationVersionsCommand = /* @__PURE__ */ __name(async (ou
2314
1549
  Object.assign(contents, doc);
2315
1550
  return contents;
2316
1551
  }, "de_ListHostedConfigurationVersionsCommand");
2317
- var de_ListHostedConfigurationVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2318
- const parsedOutput = {
2319
- ...output,
2320
- body: await parseErrorBody(output.body, context)
2321
- };
2322
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2323
- switch (errorCode) {
2324
- case "BadRequestException":
2325
- case "com.amazonaws.appconfig#BadRequestException":
2326
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2327
- case "InternalServerException":
2328
- case "com.amazonaws.appconfig#InternalServerException":
2329
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2330
- case "ResourceNotFoundException":
2331
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2332
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2333
- default:
2334
- const parsedBody = parsedOutput.body;
2335
- return throwDefaultError({
2336
- output,
2337
- parsedBody,
2338
- errorCode
2339
- });
2340
- }
2341
- }, "de_ListHostedConfigurationVersionsCommandError");
2342
1552
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2343
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2344
- return de_ListTagsForResourceCommandError(output, context);
2345
- }
2346
- const contents = (0, import_smithy_client.map)({
2347
- $metadata: deserializeMetadata(output)
2348
- });
2349
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2350
- const doc = (0, import_smithy_client.take)(data, {
2351
- Tags: import_smithy_client._json
2352
- });
2353
- Object.assign(contents, doc);
2354
- return contents;
2355
- }, "de_ListTagsForResourceCommand");
2356
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2357
- const parsedOutput = {
2358
- ...output,
2359
- body: await parseErrorBody(output.body, context)
2360
- };
2361
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2362
- switch (errorCode) {
2363
- case "BadRequestException":
2364
- case "com.amazonaws.appconfig#BadRequestException":
2365
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2366
- case "InternalServerException":
2367
- case "com.amazonaws.appconfig#InternalServerException":
2368
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2369
- case "ResourceNotFoundException":
2370
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2371
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2372
- default:
2373
- const parsedBody = parsedOutput.body;
2374
- return throwDefaultError({
2375
- output,
2376
- parsedBody,
2377
- errorCode
2378
- });
1553
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1554
+ return de_CommandError(output, context);
2379
1555
  }
2380
- }, "de_ListTagsForResourceCommandError");
1556
+ const contents = (0, import_smithy_client.map)({
1557
+ $metadata: deserializeMetadata(output)
1558
+ });
1559
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1560
+ const doc = (0, import_smithy_client.take)(data, {
1561
+ Tags: import_smithy_client._json
1562
+ });
1563
+ Object.assign(contents, doc);
1564
+ return contents;
1565
+ }, "de_ListTagsForResourceCommand");
2381
1566
  var de_StartDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
2382
1567
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2383
- return de_StartDeploymentCommandError(output, context);
1568
+ return de_CommandError(output, context);
2384
1569
  }
2385
1570
  const contents = (0, import_smithy_client.map)({
2386
1571
  $metadata: deserializeMetadata(output)
@@ -2413,37 +1598,9 @@ var de_StartDeploymentCommand = /* @__PURE__ */ __name(async (output, context) =
2413
1598
  Object.assign(contents, doc);
2414
1599
  return contents;
2415
1600
  }, "de_StartDeploymentCommand");
2416
- var de_StartDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2417
- const parsedOutput = {
2418
- ...output,
2419
- body: await parseErrorBody(output.body, context)
2420
- };
2421
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2422
- switch (errorCode) {
2423
- case "BadRequestException":
2424
- case "com.amazonaws.appconfig#BadRequestException":
2425
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2426
- case "ConflictException":
2427
- case "com.amazonaws.appconfig#ConflictException":
2428
- throw await de_ConflictExceptionRes(parsedOutput, context);
2429
- case "InternalServerException":
2430
- case "com.amazonaws.appconfig#InternalServerException":
2431
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2432
- case "ResourceNotFoundException":
2433
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2434
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2435
- default:
2436
- const parsedBody = parsedOutput.body;
2437
- return throwDefaultError({
2438
- output,
2439
- parsedBody,
2440
- errorCode
2441
- });
2442
- }
2443
- }, "de_StartDeploymentCommandError");
2444
1601
  var de_StopDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
2445
1602
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2446
- return de_StopDeploymentCommandError(output, context);
1603
+ return de_CommandError(output, context);
2447
1604
  }
2448
1605
  const contents = (0, import_smithy_client.map)({
2449
1606
  $metadata: deserializeMetadata(output)
@@ -2476,34 +1633,9 @@ var de_StopDeploymentCommand = /* @__PURE__ */ __name(async (output, context) =>
2476
1633
  Object.assign(contents, doc);
2477
1634
  return contents;
2478
1635
  }, "de_StopDeploymentCommand");
2479
- var de_StopDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2480
- const parsedOutput = {
2481
- ...output,
2482
- body: await parseErrorBody(output.body, context)
2483
- };
2484
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2485
- switch (errorCode) {
2486
- case "BadRequestException":
2487
- case "com.amazonaws.appconfig#BadRequestException":
2488
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2489
- case "InternalServerException":
2490
- case "com.amazonaws.appconfig#InternalServerException":
2491
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2492
- case "ResourceNotFoundException":
2493
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2494
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2495
- default:
2496
- const parsedBody = parsedOutput.body;
2497
- return throwDefaultError({
2498
- output,
2499
- parsedBody,
2500
- errorCode
2501
- });
2502
- }
2503
- }, "de_StopDeploymentCommandError");
2504
1636
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2505
1637
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2506
- return de_TagResourceCommandError(output, context);
1638
+ return de_CommandError(output, context);
2507
1639
  }
2508
1640
  const contents = (0, import_smithy_client.map)({
2509
1641
  $metadata: deserializeMetadata(output)
@@ -2511,34 +1643,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2511
1643
  await (0, import_smithy_client.collectBody)(output.body, context);
2512
1644
  return contents;
2513
1645
  }, "de_TagResourceCommand");
2514
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2515
- const parsedOutput = {
2516
- ...output,
2517
- body: await parseErrorBody(output.body, context)
2518
- };
2519
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2520
- switch (errorCode) {
2521
- case "BadRequestException":
2522
- case "com.amazonaws.appconfig#BadRequestException":
2523
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2524
- case "InternalServerException":
2525
- case "com.amazonaws.appconfig#InternalServerException":
2526
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2527
- case "ResourceNotFoundException":
2528
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2529
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2530
- default:
2531
- const parsedBody = parsedOutput.body;
2532
- return throwDefaultError({
2533
- output,
2534
- parsedBody,
2535
- errorCode
2536
- });
2537
- }
2538
- }, "de_TagResourceCommandError");
2539
1646
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2540
1647
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2541
- return de_UntagResourceCommandError(output, context);
1648
+ return de_CommandError(output, context);
2542
1649
  }
2543
1650
  const contents = (0, import_smithy_client.map)({
2544
1651
  $metadata: deserializeMetadata(output)
@@ -2546,34 +1653,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
2546
1653
  await (0, import_smithy_client.collectBody)(output.body, context);
2547
1654
  return contents;
2548
1655
  }, "de_UntagResourceCommand");
2549
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2550
- const parsedOutput = {
2551
- ...output,
2552
- body: await parseErrorBody(output.body, context)
2553
- };
2554
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2555
- switch (errorCode) {
2556
- case "BadRequestException":
2557
- case "com.amazonaws.appconfig#BadRequestException":
2558
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2559
- case "InternalServerException":
2560
- case "com.amazonaws.appconfig#InternalServerException":
2561
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2562
- case "ResourceNotFoundException":
2563
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2564
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2565
- default:
2566
- const parsedBody = parsedOutput.body;
2567
- return throwDefaultError({
2568
- output,
2569
- parsedBody,
2570
- errorCode
2571
- });
2572
- }
2573
- }, "de_UntagResourceCommandError");
2574
1656
  var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
2575
1657
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2576
- return de_UpdateApplicationCommandError(output, context);
1658
+ return de_CommandError(output, context);
2577
1659
  }
2578
1660
  const contents = (0, import_smithy_client.map)({
2579
1661
  $metadata: deserializeMetadata(output)
@@ -2587,34 +1669,9 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
2587
1669
  Object.assign(contents, doc);
2588
1670
  return contents;
2589
1671
  }, "de_UpdateApplicationCommand");
2590
- var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2591
- const parsedOutput = {
2592
- ...output,
2593
- body: await parseErrorBody(output.body, context)
2594
- };
2595
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2596
- switch (errorCode) {
2597
- case "BadRequestException":
2598
- case "com.amazonaws.appconfig#BadRequestException":
2599
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2600
- case "InternalServerException":
2601
- case "com.amazonaws.appconfig#InternalServerException":
2602
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2603
- case "ResourceNotFoundException":
2604
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2605
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2606
- default:
2607
- const parsedBody = parsedOutput.body;
2608
- return throwDefaultError({
2609
- output,
2610
- parsedBody,
2611
- errorCode
2612
- });
2613
- }
2614
- }, "de_UpdateApplicationCommandError");
2615
1672
  var de_UpdateConfigurationProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
2616
1673
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2617
- return de_UpdateConfigurationProfileCommandError(output, context);
1674
+ return de_CommandError(output, context);
2618
1675
  }
2619
1676
  const contents = (0, import_smithy_client.map)({
2620
1677
  $metadata: deserializeMetadata(output)
@@ -2635,34 +1692,9 @@ var de_UpdateConfigurationProfileCommand = /* @__PURE__ */ __name(async (output,
2635
1692
  Object.assign(contents, doc);
2636
1693
  return contents;
2637
1694
  }, "de_UpdateConfigurationProfileCommand");
2638
- var de_UpdateConfigurationProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
2639
- const parsedOutput = {
2640
- ...output,
2641
- body: await parseErrorBody(output.body, context)
2642
- };
2643
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2644
- switch (errorCode) {
2645
- case "BadRequestException":
2646
- case "com.amazonaws.appconfig#BadRequestException":
2647
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2648
- case "InternalServerException":
2649
- case "com.amazonaws.appconfig#InternalServerException":
2650
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2651
- case "ResourceNotFoundException":
2652
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2653
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2654
- default:
2655
- const parsedBody = parsedOutput.body;
2656
- return throwDefaultError({
2657
- output,
2658
- parsedBody,
2659
- errorCode
2660
- });
2661
- }
2662
- }, "de_UpdateConfigurationProfileCommandError");
2663
1695
  var de_UpdateDeploymentStrategyCommand = /* @__PURE__ */ __name(async (output, context) => {
2664
1696
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2665
- return de_UpdateDeploymentStrategyCommandError(output, context);
1697
+ return de_CommandError(output, context);
2666
1698
  }
2667
1699
  const contents = (0, import_smithy_client.map)({
2668
1700
  $metadata: deserializeMetadata(output)
@@ -2681,34 +1713,9 @@ var de_UpdateDeploymentStrategyCommand = /* @__PURE__ */ __name(async (output, c
2681
1713
  Object.assign(contents, doc);
2682
1714
  return contents;
2683
1715
  }, "de_UpdateDeploymentStrategyCommand");
2684
- var de_UpdateDeploymentStrategyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2685
- const parsedOutput = {
2686
- ...output,
2687
- body: await parseErrorBody(output.body, context)
2688
- };
2689
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2690
- switch (errorCode) {
2691
- case "BadRequestException":
2692
- case "com.amazonaws.appconfig#BadRequestException":
2693
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2694
- case "InternalServerException":
2695
- case "com.amazonaws.appconfig#InternalServerException":
2696
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2697
- case "ResourceNotFoundException":
2698
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2699
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2700
- default:
2701
- const parsedBody = parsedOutput.body;
2702
- return throwDefaultError({
2703
- output,
2704
- parsedBody,
2705
- errorCode
2706
- });
2707
- }
2708
- }, "de_UpdateDeploymentStrategyCommandError");
2709
1716
  var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
2710
1717
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2711
- return de_UpdateEnvironmentCommandError(output, context);
1718
+ return de_CommandError(output, context);
2712
1719
  }
2713
1720
  const contents = (0, import_smithy_client.map)({
2714
1721
  $metadata: deserializeMetadata(output)
@@ -2725,34 +1732,9 @@ var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
2725
1732
  Object.assign(contents, doc);
2726
1733
  return contents;
2727
1734
  }, "de_UpdateEnvironmentCommand");
2728
- var de_UpdateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2729
- const parsedOutput = {
2730
- ...output,
2731
- body: await parseErrorBody(output.body, context)
2732
- };
2733
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2734
- switch (errorCode) {
2735
- case "BadRequestException":
2736
- case "com.amazonaws.appconfig#BadRequestException":
2737
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2738
- case "InternalServerException":
2739
- case "com.amazonaws.appconfig#InternalServerException":
2740
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2741
- case "ResourceNotFoundException":
2742
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2743
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2744
- default:
2745
- const parsedBody = parsedOutput.body;
2746
- return throwDefaultError({
2747
- output,
2748
- parsedBody,
2749
- errorCode
2750
- });
2751
- }
2752
- }, "de_UpdateEnvironmentCommandError");
2753
1735
  var de_UpdateExtensionCommand = /* @__PURE__ */ __name(async (output, context) => {
2754
1736
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2755
- return de_UpdateExtensionCommandError(output, context);
1737
+ return de_CommandError(output, context);
2756
1738
  }
2757
1739
  const contents = (0, import_smithy_client.map)({
2758
1740
  $metadata: deserializeMetadata(output)
@@ -2770,37 +1752,9 @@ var de_UpdateExtensionCommand = /* @__PURE__ */ __name(async (output, context) =
2770
1752
  Object.assign(contents, doc);
2771
1753
  return contents;
2772
1754
  }, "de_UpdateExtensionCommand");
2773
- var de_UpdateExtensionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2774
- const parsedOutput = {
2775
- ...output,
2776
- body: await parseErrorBody(output.body, context)
2777
- };
2778
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2779
- switch (errorCode) {
2780
- case "BadRequestException":
2781
- case "com.amazonaws.appconfig#BadRequestException":
2782
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2783
- case "ConflictException":
2784
- case "com.amazonaws.appconfig#ConflictException":
2785
- throw await de_ConflictExceptionRes(parsedOutput, context);
2786
- case "InternalServerException":
2787
- case "com.amazonaws.appconfig#InternalServerException":
2788
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2789
- case "ResourceNotFoundException":
2790
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2791
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2792
- default:
2793
- const parsedBody = parsedOutput.body;
2794
- return throwDefaultError({
2795
- output,
2796
- parsedBody,
2797
- errorCode
2798
- });
2799
- }
2800
- }, "de_UpdateExtensionCommandError");
2801
1755
  var de_UpdateExtensionAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
2802
1756
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2803
- return de_UpdateExtensionAssociationCommandError(output, context);
1757
+ return de_CommandError(output, context);
2804
1758
  }
2805
1759
  const contents = (0, import_smithy_client.map)({
2806
1760
  $metadata: deserializeMetadata(output)
@@ -2817,34 +1771,9 @@ var de_UpdateExtensionAssociationCommand = /* @__PURE__ */ __name(async (output,
2817
1771
  Object.assign(contents, doc);
2818
1772
  return contents;
2819
1773
  }, "de_UpdateExtensionAssociationCommand");
2820
- var de_UpdateExtensionAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2821
- const parsedOutput = {
2822
- ...output,
2823
- body: await parseErrorBody(output.body, context)
2824
- };
2825
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2826
- switch (errorCode) {
2827
- case "BadRequestException":
2828
- case "com.amazonaws.appconfig#BadRequestException":
2829
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2830
- case "InternalServerException":
2831
- case "com.amazonaws.appconfig#InternalServerException":
2832
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2833
- case "ResourceNotFoundException":
2834
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2835
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2836
- default:
2837
- const parsedBody = parsedOutput.body;
2838
- return throwDefaultError({
2839
- output,
2840
- parsedBody,
2841
- errorCode
2842
- });
2843
- }
2844
- }, "de_UpdateExtensionAssociationCommandError");
2845
1774
  var de_ValidateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2846
1775
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2847
- return de_ValidateConfigurationCommandError(output, context);
1776
+ return de_CommandError(output, context);
2848
1777
  }
2849
1778
  const contents = (0, import_smithy_client.map)({
2850
1779
  $metadata: deserializeMetadata(output)
@@ -2852,7 +1781,7 @@ var de_ValidateConfigurationCommand = /* @__PURE__ */ __name(async (output, cont
2852
1781
  await (0, import_smithy_client.collectBody)(output.body, context);
2853
1782
  return contents;
2854
1783
  }, "de_ValidateConfigurationCommand");
2855
- var de_ValidateConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1784
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2856
1785
  const parsedOutput = {
2857
1786
  ...output,
2858
1787
  body: await parseErrorBody(output.body, context)
@@ -2865,9 +1794,18 @@ var de_ValidateConfigurationCommandError = /* @__PURE__ */ __name(async (output,
2865
1794
  case "InternalServerException":
2866
1795
  case "com.amazonaws.appconfig#InternalServerException":
2867
1796
  throw await de_InternalServerExceptionRes(parsedOutput, context);
1797
+ case "ServiceQuotaExceededException":
1798
+ case "com.amazonaws.appconfig#ServiceQuotaExceededException":
1799
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2868
1800
  case "ResourceNotFoundException":
2869
1801
  case "com.amazonaws.appconfig#ResourceNotFoundException":
2870
1802
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1803
+ case "ConflictException":
1804
+ case "com.amazonaws.appconfig#ConflictException":
1805
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1806
+ case "PayloadTooLargeException":
1807
+ case "com.amazonaws.appconfig#PayloadTooLargeException":
1808
+ throw await de_PayloadTooLargeExceptionRes(parsedOutput, context);
2871
1809
  default:
2872
1810
  const parsedBody = parsedOutput.body;
2873
1811
  return throwDefaultError({
@@ -2876,7 +1814,7 @@ var de_ValidateConfigurationCommandError = /* @__PURE__ */ __name(async (output,
2876
1814
  errorCode
2877
1815
  });
2878
1816
  }
2879
- }, "de_ValidateConfigurationCommandError");
1817
+ }, "de_CommandError");
2880
1818
  var throwDefaultError = (0, import_smithy_client.withBaseException)(AppConfigServiceException);
2881
1819
  var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2882
1820
  const contents = (0, import_smithy_client.map)({});