@aws-sdk/client-m2 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1005,7 +1005,7 @@ var se_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context)
1005
1005
  }, "se_UpdateEnvironmentCommand");
1006
1006
  var de_CancelBatchJobExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
1007
1007
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1008
- return de_CancelBatchJobExecutionCommandError(output, context);
1008
+ return de_CommandError(output, context);
1009
1009
  }
1010
1010
  const contents = (0, import_smithy_client.map)({
1011
1011
  $metadata: deserializeMetadata(output)
@@ -1013,43 +1013,9 @@ var de_CancelBatchJobExecutionCommand = /* @__PURE__ */ __name(async (output, co
1013
1013
  await (0, import_smithy_client.collectBody)(output.body, context);
1014
1014
  return contents;
1015
1015
  }, "de_CancelBatchJobExecutionCommand");
1016
- var de_CancelBatchJobExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1017
- const parsedOutput = {
1018
- ...output,
1019
- body: await parseErrorBody(output.body, context)
1020
- };
1021
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1022
- switch (errorCode) {
1023
- case "AccessDeniedException":
1024
- case "com.amazonaws.m2#AccessDeniedException":
1025
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1026
- case "ConflictException":
1027
- case "com.amazonaws.m2#ConflictException":
1028
- throw await de_ConflictExceptionRes(parsedOutput, context);
1029
- case "InternalServerException":
1030
- case "com.amazonaws.m2#InternalServerException":
1031
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1032
- case "ResourceNotFoundException":
1033
- case "com.amazonaws.m2#ResourceNotFoundException":
1034
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1035
- case "ThrottlingException":
1036
- case "com.amazonaws.m2#ThrottlingException":
1037
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1038
- case "ValidationException":
1039
- case "com.amazonaws.m2#ValidationException":
1040
- throw await de_ValidationExceptionRes(parsedOutput, context);
1041
- default:
1042
- const parsedBody = parsedOutput.body;
1043
- return throwDefaultError({
1044
- output,
1045
- parsedBody,
1046
- errorCode
1047
- });
1048
- }
1049
- }, "de_CancelBatchJobExecutionCommandError");
1050
1016
  var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1051
1017
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1052
- return de_CreateApplicationCommandError(output, context);
1018
+ return de_CommandError(output, context);
1053
1019
  }
1054
1020
  const contents = (0, import_smithy_client.map)({
1055
1021
  $metadata: deserializeMetadata(output)
@@ -1063,43 +1029,9 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
1063
1029
  Object.assign(contents, doc);
1064
1030
  return contents;
1065
1031
  }, "de_CreateApplicationCommand");
1066
- var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1067
- const parsedOutput = {
1068
- ...output,
1069
- body: await parseErrorBody(output.body, context)
1070
- };
1071
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1072
- switch (errorCode) {
1073
- case "AccessDeniedException":
1074
- case "com.amazonaws.m2#AccessDeniedException":
1075
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1076
- case "ConflictException":
1077
- case "com.amazonaws.m2#ConflictException":
1078
- throw await de_ConflictExceptionRes(parsedOutput, context);
1079
- case "InternalServerException":
1080
- case "com.amazonaws.m2#InternalServerException":
1081
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1082
- case "ServiceQuotaExceededException":
1083
- case "com.amazonaws.m2#ServiceQuotaExceededException":
1084
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1085
- case "ThrottlingException":
1086
- case "com.amazonaws.m2#ThrottlingException":
1087
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1088
- case "ValidationException":
1089
- case "com.amazonaws.m2#ValidationException":
1090
- throw await de_ValidationExceptionRes(parsedOutput, context);
1091
- default:
1092
- const parsedBody = parsedOutput.body;
1093
- return throwDefaultError({
1094
- output,
1095
- parsedBody,
1096
- errorCode
1097
- });
1098
- }
1099
- }, "de_CreateApplicationCommandError");
1100
1032
  var de_CreateDataSetImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1101
1033
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1102
- return de_CreateDataSetImportTaskCommandError(output, context);
1034
+ return de_CommandError(output, context);
1103
1035
  }
1104
1036
  const contents = (0, import_smithy_client.map)({
1105
1037
  $metadata: deserializeMetadata(output)
@@ -1111,46 +1043,9 @@ var de_CreateDataSetImportTaskCommand = /* @__PURE__ */ __name(async (output, co
1111
1043
  Object.assign(contents, doc);
1112
1044
  return contents;
1113
1045
  }, "de_CreateDataSetImportTaskCommand");
1114
- var de_CreateDataSetImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
1115
- const parsedOutput = {
1116
- ...output,
1117
- body: await parseErrorBody(output.body, context)
1118
- };
1119
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1120
- switch (errorCode) {
1121
- case "AccessDeniedException":
1122
- case "com.amazonaws.m2#AccessDeniedException":
1123
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1124
- case "ConflictException":
1125
- case "com.amazonaws.m2#ConflictException":
1126
- throw await de_ConflictExceptionRes(parsedOutput, context);
1127
- case "InternalServerException":
1128
- case "com.amazonaws.m2#InternalServerException":
1129
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1130
- case "ResourceNotFoundException":
1131
- case "com.amazonaws.m2#ResourceNotFoundException":
1132
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1133
- case "ServiceQuotaExceededException":
1134
- case "com.amazonaws.m2#ServiceQuotaExceededException":
1135
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1136
- case "ThrottlingException":
1137
- case "com.amazonaws.m2#ThrottlingException":
1138
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1139
- case "ValidationException":
1140
- case "com.amazonaws.m2#ValidationException":
1141
- throw await de_ValidationExceptionRes(parsedOutput, context);
1142
- default:
1143
- const parsedBody = parsedOutput.body;
1144
- return throwDefaultError({
1145
- output,
1146
- parsedBody,
1147
- errorCode
1148
- });
1149
- }
1150
- }, "de_CreateDataSetImportTaskCommandError");
1151
1046
  var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
1152
1047
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1153
- return de_CreateDeploymentCommandError(output, context);
1048
+ return de_CommandError(output, context);
1154
1049
  }
1155
1050
  const contents = (0, import_smithy_client.map)({
1156
1051
  $metadata: deserializeMetadata(output)
@@ -1162,46 +1057,9 @@ var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
1162
1057
  Object.assign(contents, doc);
1163
1058
  return contents;
1164
1059
  }, "de_CreateDeploymentCommand");
1165
- var de_CreateDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1166
- const parsedOutput = {
1167
- ...output,
1168
- body: await parseErrorBody(output.body, context)
1169
- };
1170
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1171
- switch (errorCode) {
1172
- case "AccessDeniedException":
1173
- case "com.amazonaws.m2#AccessDeniedException":
1174
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1175
- case "ConflictException":
1176
- case "com.amazonaws.m2#ConflictException":
1177
- throw await de_ConflictExceptionRes(parsedOutput, context);
1178
- case "InternalServerException":
1179
- case "com.amazonaws.m2#InternalServerException":
1180
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1181
- case "ResourceNotFoundException":
1182
- case "com.amazonaws.m2#ResourceNotFoundException":
1183
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1184
- case "ServiceQuotaExceededException":
1185
- case "com.amazonaws.m2#ServiceQuotaExceededException":
1186
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1187
- case "ThrottlingException":
1188
- case "com.amazonaws.m2#ThrottlingException":
1189
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1190
- case "ValidationException":
1191
- case "com.amazonaws.m2#ValidationException":
1192
- throw await de_ValidationExceptionRes(parsedOutput, context);
1193
- default:
1194
- const parsedBody = parsedOutput.body;
1195
- return throwDefaultError({
1196
- output,
1197
- parsedBody,
1198
- errorCode
1199
- });
1200
- }
1201
- }, "de_CreateDeploymentCommandError");
1202
1060
  var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1203
1061
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1204
- return de_CreateEnvironmentCommandError(output, context);
1062
+ return de_CommandError(output, context);
1205
1063
  }
1206
1064
  const contents = (0, import_smithy_client.map)({
1207
1065
  $metadata: deserializeMetadata(output)
@@ -1213,43 +1071,9 @@ var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
1213
1071
  Object.assign(contents, doc);
1214
1072
  return contents;
1215
1073
  }, "de_CreateEnvironmentCommand");
1216
- var de_CreateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1217
- const parsedOutput = {
1218
- ...output,
1219
- body: await parseErrorBody(output.body, context)
1220
- };
1221
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1222
- switch (errorCode) {
1223
- case "AccessDeniedException":
1224
- case "com.amazonaws.m2#AccessDeniedException":
1225
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1226
- case "ConflictException":
1227
- case "com.amazonaws.m2#ConflictException":
1228
- throw await de_ConflictExceptionRes(parsedOutput, context);
1229
- case "InternalServerException":
1230
- case "com.amazonaws.m2#InternalServerException":
1231
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1232
- case "ServiceQuotaExceededException":
1233
- case "com.amazonaws.m2#ServiceQuotaExceededException":
1234
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1235
- case "ThrottlingException":
1236
- case "com.amazonaws.m2#ThrottlingException":
1237
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1238
- case "ValidationException":
1239
- case "com.amazonaws.m2#ValidationException":
1240
- throw await de_ValidationExceptionRes(parsedOutput, context);
1241
- default:
1242
- const parsedBody = parsedOutput.body;
1243
- return throwDefaultError({
1244
- output,
1245
- parsedBody,
1246
- errorCode
1247
- });
1248
- }
1249
- }, "de_CreateEnvironmentCommandError");
1250
1074
  var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1251
1075
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1252
- return de_DeleteApplicationCommandError(output, context);
1076
+ return de_CommandError(output, context);
1253
1077
  }
1254
1078
  const contents = (0, import_smithy_client.map)({
1255
1079
  $metadata: deserializeMetadata(output)
@@ -1257,40 +1081,9 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
1257
1081
  await (0, import_smithy_client.collectBody)(output.body, context);
1258
1082
  return contents;
1259
1083
  }, "de_DeleteApplicationCommand");
1260
- var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1261
- const parsedOutput = {
1262
- ...output,
1263
- body: await parseErrorBody(output.body, context)
1264
- };
1265
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1266
- switch (errorCode) {
1267
- case "AccessDeniedException":
1268
- case "com.amazonaws.m2#AccessDeniedException":
1269
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1270
- case "ConflictException":
1271
- case "com.amazonaws.m2#ConflictException":
1272
- throw await de_ConflictExceptionRes(parsedOutput, context);
1273
- case "InternalServerException":
1274
- case "com.amazonaws.m2#InternalServerException":
1275
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1276
- case "ThrottlingException":
1277
- case "com.amazonaws.m2#ThrottlingException":
1278
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1279
- case "ValidationException":
1280
- case "com.amazonaws.m2#ValidationException":
1281
- throw await de_ValidationExceptionRes(parsedOutput, context);
1282
- default:
1283
- const parsedBody = parsedOutput.body;
1284
- return throwDefaultError({
1285
- output,
1286
- parsedBody,
1287
- errorCode
1288
- });
1289
- }
1290
- }, "de_DeleteApplicationCommandError");
1291
1084
  var de_DeleteApplicationFromEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1292
1085
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1293
- return de_DeleteApplicationFromEnvironmentCommandError(output, context);
1086
+ return de_CommandError(output, context);
1294
1087
  }
1295
1088
  const contents = (0, import_smithy_client.map)({
1296
1089
  $metadata: deserializeMetadata(output)
@@ -1298,43 +1091,9 @@ var de_DeleteApplicationFromEnvironmentCommand = /* @__PURE__ */ __name(async (o
1298
1091
  await (0, import_smithy_client.collectBody)(output.body, context);
1299
1092
  return contents;
1300
1093
  }, "de_DeleteApplicationFromEnvironmentCommand");
1301
- var de_DeleteApplicationFromEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1302
- const parsedOutput = {
1303
- ...output,
1304
- body: await parseErrorBody(output.body, context)
1305
- };
1306
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1307
- switch (errorCode) {
1308
- case "AccessDeniedException":
1309
- case "com.amazonaws.m2#AccessDeniedException":
1310
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1311
- case "ConflictException":
1312
- case "com.amazonaws.m2#ConflictException":
1313
- throw await de_ConflictExceptionRes(parsedOutput, context);
1314
- case "InternalServerException":
1315
- case "com.amazonaws.m2#InternalServerException":
1316
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1317
- case "ResourceNotFoundException":
1318
- case "com.amazonaws.m2#ResourceNotFoundException":
1319
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1320
- case "ThrottlingException":
1321
- case "com.amazonaws.m2#ThrottlingException":
1322
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1323
- case "ValidationException":
1324
- case "com.amazonaws.m2#ValidationException":
1325
- throw await de_ValidationExceptionRes(parsedOutput, context);
1326
- default:
1327
- const parsedBody = parsedOutput.body;
1328
- return throwDefaultError({
1329
- output,
1330
- parsedBody,
1331
- errorCode
1332
- });
1333
- }
1334
- }, "de_DeleteApplicationFromEnvironmentCommandError");
1335
1094
  var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1336
1095
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1337
- return de_DeleteEnvironmentCommandError(output, context);
1096
+ return de_CommandError(output, context);
1338
1097
  }
1339
1098
  const contents = (0, import_smithy_client.map)({
1340
1099
  $metadata: deserializeMetadata(output)
@@ -1342,40 +1101,9 @@ var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
1342
1101
  await (0, import_smithy_client.collectBody)(output.body, context);
1343
1102
  return contents;
1344
1103
  }, "de_DeleteEnvironmentCommand");
1345
- var de_DeleteEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1346
- const parsedOutput = {
1347
- ...output,
1348
- body: await parseErrorBody(output.body, context)
1349
- };
1350
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1351
- switch (errorCode) {
1352
- case "AccessDeniedException":
1353
- case "com.amazonaws.m2#AccessDeniedException":
1354
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1355
- case "ConflictException":
1356
- case "com.amazonaws.m2#ConflictException":
1357
- throw await de_ConflictExceptionRes(parsedOutput, context);
1358
- case "InternalServerException":
1359
- case "com.amazonaws.m2#InternalServerException":
1360
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1361
- case "ThrottlingException":
1362
- case "com.amazonaws.m2#ThrottlingException":
1363
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1364
- case "ValidationException":
1365
- case "com.amazonaws.m2#ValidationException":
1366
- throw await de_ValidationExceptionRes(parsedOutput, context);
1367
- default:
1368
- const parsedBody = parsedOutput.body;
1369
- return throwDefaultError({
1370
- output,
1371
- parsedBody,
1372
- errorCode
1373
- });
1374
- }
1375
- }, "de_DeleteEnvironmentCommandError");
1376
1104
  var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1377
1105
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1378
- return de_GetApplicationCommandError(output, context);
1106
+ return de_CommandError(output, context);
1379
1107
  }
1380
1108
  const contents = (0, import_smithy_client.map)({
1381
1109
  $metadata: deserializeMetadata(output)
@@ -1406,40 +1134,9 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
1406
1134
  Object.assign(contents, doc);
1407
1135
  return contents;
1408
1136
  }, "de_GetApplicationCommand");
1409
- var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1410
- const parsedOutput = {
1411
- ...output,
1412
- body: await parseErrorBody(output.body, context)
1413
- };
1414
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1415
- switch (errorCode) {
1416
- case "AccessDeniedException":
1417
- case "com.amazonaws.m2#AccessDeniedException":
1418
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1419
- case "InternalServerException":
1420
- case "com.amazonaws.m2#InternalServerException":
1421
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1422
- case "ResourceNotFoundException":
1423
- case "com.amazonaws.m2#ResourceNotFoundException":
1424
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1425
- case "ThrottlingException":
1426
- case "com.amazonaws.m2#ThrottlingException":
1427
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1428
- case "ValidationException":
1429
- case "com.amazonaws.m2#ValidationException":
1430
- throw await de_ValidationExceptionRes(parsedOutput, context);
1431
- default:
1432
- const parsedBody = parsedOutput.body;
1433
- return throwDefaultError({
1434
- output,
1435
- parsedBody,
1436
- errorCode
1437
- });
1438
- }
1439
- }, "de_GetApplicationCommandError");
1440
1137
  var de_GetApplicationVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
1441
1138
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1442
- return de_GetApplicationVersionCommandError(output, context);
1139
+ return de_CommandError(output, context);
1443
1140
  }
1444
1141
  const contents = (0, import_smithy_client.map)({
1445
1142
  $metadata: deserializeMetadata(output)
@@ -1457,40 +1154,9 @@ var de_GetApplicationVersionCommand = /* @__PURE__ */ __name(async (output, cont
1457
1154
  Object.assign(contents, doc);
1458
1155
  return contents;
1459
1156
  }, "de_GetApplicationVersionCommand");
1460
- var de_GetApplicationVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1461
- const parsedOutput = {
1462
- ...output,
1463
- body: await parseErrorBody(output.body, context)
1464
- };
1465
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1466
- switch (errorCode) {
1467
- case "AccessDeniedException":
1468
- case "com.amazonaws.m2#AccessDeniedException":
1469
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1470
- case "InternalServerException":
1471
- case "com.amazonaws.m2#InternalServerException":
1472
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1473
- case "ResourceNotFoundException":
1474
- case "com.amazonaws.m2#ResourceNotFoundException":
1475
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1476
- case "ThrottlingException":
1477
- case "com.amazonaws.m2#ThrottlingException":
1478
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1479
- case "ValidationException":
1480
- case "com.amazonaws.m2#ValidationException":
1481
- throw await de_ValidationExceptionRes(parsedOutput, context);
1482
- default:
1483
- const parsedBody = parsedOutput.body;
1484
- return throwDefaultError({
1485
- output,
1486
- parsedBody,
1487
- errorCode
1488
- });
1489
- }
1490
- }, "de_GetApplicationVersionCommandError");
1491
1157
  var de_GetBatchJobExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
1492
1158
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1493
- return de_GetBatchJobExecutionCommandError(output, context);
1159
+ return de_CommandError(output, context);
1494
1160
  }
1495
1161
  const contents = (0, import_smithy_client.map)({
1496
1162
  $metadata: deserializeMetadata(output)
@@ -1513,40 +1179,9 @@ var de_GetBatchJobExecutionCommand = /* @__PURE__ */ __name(async (output, conte
1513
1179
  Object.assign(contents, doc);
1514
1180
  return contents;
1515
1181
  }, "de_GetBatchJobExecutionCommand");
1516
- var de_GetBatchJobExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1517
- const parsedOutput = {
1518
- ...output,
1519
- body: await parseErrorBody(output.body, context)
1520
- };
1521
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1522
- switch (errorCode) {
1523
- case "AccessDeniedException":
1524
- case "com.amazonaws.m2#AccessDeniedException":
1525
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1526
- case "InternalServerException":
1527
- case "com.amazonaws.m2#InternalServerException":
1528
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1529
- case "ResourceNotFoundException":
1530
- case "com.amazonaws.m2#ResourceNotFoundException":
1531
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1532
- case "ThrottlingException":
1533
- case "com.amazonaws.m2#ThrottlingException":
1534
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1535
- case "ValidationException":
1536
- case "com.amazonaws.m2#ValidationException":
1537
- throw await de_ValidationExceptionRes(parsedOutput, context);
1538
- default:
1539
- const parsedBody = parsedOutput.body;
1540
- return throwDefaultError({
1541
- output,
1542
- parsedBody,
1543
- errorCode
1544
- });
1545
- }
1546
- }, "de_GetBatchJobExecutionCommandError");
1547
1182
  var de_GetDataSetDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
1548
1183
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1549
- return de_GetDataSetDetailsCommandError(output, context);
1184
+ return de_CommandError(output, context);
1550
1185
  }
1551
1186
  const contents = (0, import_smithy_client.map)({
1552
1187
  $metadata: deserializeMetadata(output)
@@ -1566,49 +1201,9 @@ var de_GetDataSetDetailsCommand = /* @__PURE__ */ __name(async (output, context)
1566
1201
  Object.assign(contents, doc);
1567
1202
  return contents;
1568
1203
  }, "de_GetDataSetDetailsCommand");
1569
- var de_GetDataSetDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1570
- const parsedOutput = {
1571
- ...output,
1572
- body: await parseErrorBody(output.body, context)
1573
- };
1574
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1575
- switch (errorCode) {
1576
- case "AccessDeniedException":
1577
- case "com.amazonaws.m2#AccessDeniedException":
1578
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1579
- case "ConflictException":
1580
- case "com.amazonaws.m2#ConflictException":
1581
- throw await de_ConflictExceptionRes(parsedOutput, context);
1582
- case "ExecutionTimeoutException":
1583
- case "com.amazonaws.m2#ExecutionTimeoutException":
1584
- throw await de_ExecutionTimeoutExceptionRes(parsedOutput, context);
1585
- case "InternalServerException":
1586
- case "com.amazonaws.m2#InternalServerException":
1587
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1588
- case "ResourceNotFoundException":
1589
- case "com.amazonaws.m2#ResourceNotFoundException":
1590
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1591
- case "ServiceUnavailableException":
1592
- case "com.amazonaws.m2#ServiceUnavailableException":
1593
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1594
- case "ThrottlingException":
1595
- case "com.amazonaws.m2#ThrottlingException":
1596
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1597
- case "ValidationException":
1598
- case "com.amazonaws.m2#ValidationException":
1599
- throw await de_ValidationExceptionRes(parsedOutput, context);
1600
- default:
1601
- const parsedBody = parsedOutput.body;
1602
- return throwDefaultError({
1603
- output,
1604
- parsedBody,
1605
- errorCode
1606
- });
1607
- }
1608
- }, "de_GetDataSetDetailsCommandError");
1609
1204
  var de_GetDataSetImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1610
1205
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1611
- return de_GetDataSetImportTaskCommandError(output, context);
1206
+ return de_CommandError(output, context);
1612
1207
  }
1613
1208
  const contents = (0, import_smithy_client.map)({
1614
1209
  $metadata: deserializeMetadata(output)
@@ -1622,40 +1217,9 @@ var de_GetDataSetImportTaskCommand = /* @__PURE__ */ __name(async (output, conte
1622
1217
  Object.assign(contents, doc);
1623
1218
  return contents;
1624
1219
  }, "de_GetDataSetImportTaskCommand");
1625
- var de_GetDataSetImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
1626
- const parsedOutput = {
1627
- ...output,
1628
- body: await parseErrorBody(output.body, context)
1629
- };
1630
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1631
- switch (errorCode) {
1632
- case "AccessDeniedException":
1633
- case "com.amazonaws.m2#AccessDeniedException":
1634
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1635
- case "InternalServerException":
1636
- case "com.amazonaws.m2#InternalServerException":
1637
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1638
- case "ResourceNotFoundException":
1639
- case "com.amazonaws.m2#ResourceNotFoundException":
1640
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1641
- case "ThrottlingException":
1642
- case "com.amazonaws.m2#ThrottlingException":
1643
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1644
- case "ValidationException":
1645
- case "com.amazonaws.m2#ValidationException":
1646
- throw await de_ValidationExceptionRes(parsedOutput, context);
1647
- default:
1648
- const parsedBody = parsedOutput.body;
1649
- return throwDefaultError({
1650
- output,
1651
- parsedBody,
1652
- errorCode
1653
- });
1654
- }
1655
- }, "de_GetDataSetImportTaskCommandError");
1656
1220
  var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
1657
1221
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1658
- return de_GetDeploymentCommandError(output, context);
1222
+ return de_CommandError(output, context);
1659
1223
  }
1660
1224
  const contents = (0, import_smithy_client.map)({
1661
1225
  $metadata: deserializeMetadata(output)
@@ -1673,40 +1237,9 @@ var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) =>
1673
1237
  Object.assign(contents, doc);
1674
1238
  return contents;
1675
1239
  }, "de_GetDeploymentCommand");
1676
- var de_GetDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1677
- const parsedOutput = {
1678
- ...output,
1679
- body: await parseErrorBody(output.body, context)
1680
- };
1681
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1682
- switch (errorCode) {
1683
- case "AccessDeniedException":
1684
- case "com.amazonaws.m2#AccessDeniedException":
1685
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1686
- case "InternalServerException":
1687
- case "com.amazonaws.m2#InternalServerException":
1688
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1689
- case "ResourceNotFoundException":
1690
- case "com.amazonaws.m2#ResourceNotFoundException":
1691
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1692
- case "ThrottlingException":
1693
- case "com.amazonaws.m2#ThrottlingException":
1694
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1695
- case "ValidationException":
1696
- case "com.amazonaws.m2#ValidationException":
1697
- throw await de_ValidationExceptionRes(parsedOutput, context);
1698
- default:
1699
- const parsedBody = parsedOutput.body;
1700
- return throwDefaultError({
1701
- output,
1702
- parsedBody,
1703
- errorCode
1704
- });
1705
- }
1706
- }, "de_GetDeploymentCommandError");
1707
1240
  var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1708
1241
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1709
- return de_GetEnvironmentCommandError(output, context);
1242
+ return de_CommandError(output, context);
1710
1243
  }
1711
1244
  const contents = (0, import_smithy_client.map)({
1712
1245
  $metadata: deserializeMetadata(output)
@@ -1730,88 +1263,32 @@ var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) =>
1730
1263
  publiclyAccessible: import_smithy_client.expectBoolean,
1731
1264
  securityGroupIds: import_smithy_client._json,
1732
1265
  status: import_smithy_client.expectString,
1733
- statusReason: import_smithy_client.expectString,
1734
- storageConfigurations: (_) => de_StorageConfigurationList(_, context),
1735
- subnetIds: import_smithy_client._json,
1736
- tags: import_smithy_client._json,
1737
- vpcId: import_smithy_client.expectString
1738
- });
1739
- Object.assign(contents, doc);
1740
- return contents;
1741
- }, "de_GetEnvironmentCommand");
1742
- var de_GetEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1743
- const parsedOutput = {
1744
- ...output,
1745
- body: await parseErrorBody(output.body, context)
1746
- };
1747
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1748
- switch (errorCode) {
1749
- case "AccessDeniedException":
1750
- case "com.amazonaws.m2#AccessDeniedException":
1751
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1752
- case "InternalServerException":
1753
- case "com.amazonaws.m2#InternalServerException":
1754
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1755
- case "ResourceNotFoundException":
1756
- case "com.amazonaws.m2#ResourceNotFoundException":
1757
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1758
- case "ThrottlingException":
1759
- case "com.amazonaws.m2#ThrottlingException":
1760
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1761
- case "ValidationException":
1762
- case "com.amazonaws.m2#ValidationException":
1763
- throw await de_ValidationExceptionRes(parsedOutput, context);
1764
- default:
1765
- const parsedBody = parsedOutput.body;
1766
- return throwDefaultError({
1767
- output,
1768
- parsedBody,
1769
- errorCode
1770
- });
1771
- }
1772
- }, "de_GetEnvironmentCommandError");
1773
- var de_GetSignedBluinsightsUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
1774
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1775
- return de_GetSignedBluinsightsUrlCommandError(output, context);
1776
- }
1777
- const contents = (0, import_smithy_client.map)({
1778
- $metadata: deserializeMetadata(output)
1779
- });
1780
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1781
- const doc = (0, import_smithy_client.take)(data, {
1782
- signedBiUrl: import_smithy_client.expectString
1783
- });
1784
- Object.assign(contents, doc);
1785
- return contents;
1786
- }, "de_GetSignedBluinsightsUrlCommand");
1787
- var de_GetSignedBluinsightsUrlCommandError = /* @__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 "AccessDeniedException":
1795
- case "com.amazonaws.m2#AccessDeniedException":
1796
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1797
- case "InternalServerException":
1798
- case "com.amazonaws.m2#InternalServerException":
1799
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1800
- case "ThrottlingException":
1801
- case "com.amazonaws.m2#ThrottlingException":
1802
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1803
- default:
1804
- const parsedBody = parsedOutput.body;
1805
- return throwDefaultError({
1806
- output,
1807
- parsedBody,
1808
- errorCode
1809
- });
1266
+ statusReason: import_smithy_client.expectString,
1267
+ storageConfigurations: (_) => de_StorageConfigurationList(_, context),
1268
+ subnetIds: import_smithy_client._json,
1269
+ tags: import_smithy_client._json,
1270
+ vpcId: import_smithy_client.expectString
1271
+ });
1272
+ Object.assign(contents, doc);
1273
+ return contents;
1274
+ }, "de_GetEnvironmentCommand");
1275
+ var de_GetSignedBluinsightsUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
1276
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1277
+ return de_CommandError(output, context);
1810
1278
  }
1811
- }, "de_GetSignedBluinsightsUrlCommandError");
1279
+ const contents = (0, import_smithy_client.map)({
1280
+ $metadata: deserializeMetadata(output)
1281
+ });
1282
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1283
+ const doc = (0, import_smithy_client.take)(data, {
1284
+ signedBiUrl: import_smithy_client.expectString
1285
+ });
1286
+ Object.assign(contents, doc);
1287
+ return contents;
1288
+ }, "de_GetSignedBluinsightsUrlCommand");
1812
1289
  var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1813
1290
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1814
- return de_ListApplicationsCommandError(output, context);
1291
+ return de_CommandError(output, context);
1815
1292
  }
1816
1293
  const contents = (0, import_smithy_client.map)({
1817
1294
  $metadata: deserializeMetadata(output)
@@ -1824,37 +1301,9 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
1824
1301
  Object.assign(contents, doc);
1825
1302
  return contents;
1826
1303
  }, "de_ListApplicationsCommand");
1827
- var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1828
- const parsedOutput = {
1829
- ...output,
1830
- body: await parseErrorBody(output.body, context)
1831
- };
1832
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1833
- switch (errorCode) {
1834
- case "AccessDeniedException":
1835
- case "com.amazonaws.m2#AccessDeniedException":
1836
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1837
- case "InternalServerException":
1838
- case "com.amazonaws.m2#InternalServerException":
1839
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1840
- case "ThrottlingException":
1841
- case "com.amazonaws.m2#ThrottlingException":
1842
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1843
- case "ValidationException":
1844
- case "com.amazonaws.m2#ValidationException":
1845
- throw await de_ValidationExceptionRes(parsedOutput, context);
1846
- default:
1847
- const parsedBody = parsedOutput.body;
1848
- return throwDefaultError({
1849
- output,
1850
- parsedBody,
1851
- errorCode
1852
- });
1853
- }
1854
- }, "de_ListApplicationsCommandError");
1855
1304
  var de_ListApplicationVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1856
1305
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1857
- return de_ListApplicationVersionsCommandError(output, context);
1306
+ return de_CommandError(output, context);
1858
1307
  }
1859
1308
  const contents = (0, import_smithy_client.map)({
1860
1309
  $metadata: deserializeMetadata(output)
@@ -1867,40 +1316,9 @@ var de_ListApplicationVersionsCommand = /* @__PURE__ */ __name(async (output, co
1867
1316
  Object.assign(contents, doc);
1868
1317
  return contents;
1869
1318
  }, "de_ListApplicationVersionsCommand");
1870
- var de_ListApplicationVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1871
- const parsedOutput = {
1872
- ...output,
1873
- body: await parseErrorBody(output.body, context)
1874
- };
1875
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1876
- switch (errorCode) {
1877
- case "AccessDeniedException":
1878
- case "com.amazonaws.m2#AccessDeniedException":
1879
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1880
- case "InternalServerException":
1881
- case "com.amazonaws.m2#InternalServerException":
1882
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1883
- case "ResourceNotFoundException":
1884
- case "com.amazonaws.m2#ResourceNotFoundException":
1885
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1886
- case "ThrottlingException":
1887
- case "com.amazonaws.m2#ThrottlingException":
1888
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1889
- case "ValidationException":
1890
- case "com.amazonaws.m2#ValidationException":
1891
- throw await de_ValidationExceptionRes(parsedOutput, context);
1892
- default:
1893
- const parsedBody = parsedOutput.body;
1894
- return throwDefaultError({
1895
- output,
1896
- parsedBody,
1897
- errorCode
1898
- });
1899
- }
1900
- }, "de_ListApplicationVersionsCommandError");
1901
1319
  var de_ListBatchJobDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1902
1320
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1903
- return de_ListBatchJobDefinitionsCommandError(output, context);
1321
+ return de_CommandError(output, context);
1904
1322
  }
1905
1323
  const contents = (0, import_smithy_client.map)({
1906
1324
  $metadata: deserializeMetadata(output)
@@ -1913,40 +1331,9 @@ var de_ListBatchJobDefinitionsCommand = /* @__PURE__ */ __name(async (output, co
1913
1331
  Object.assign(contents, doc);
1914
1332
  return contents;
1915
1333
  }, "de_ListBatchJobDefinitionsCommand");
1916
- var de_ListBatchJobDefinitionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1917
- const parsedOutput = {
1918
- ...output,
1919
- body: await parseErrorBody(output.body, context)
1920
- };
1921
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1922
- switch (errorCode) {
1923
- case "AccessDeniedException":
1924
- case "com.amazonaws.m2#AccessDeniedException":
1925
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1926
- case "InternalServerException":
1927
- case "com.amazonaws.m2#InternalServerException":
1928
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1929
- case "ResourceNotFoundException":
1930
- case "com.amazonaws.m2#ResourceNotFoundException":
1931
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1932
- case "ThrottlingException":
1933
- case "com.amazonaws.m2#ThrottlingException":
1934
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1935
- case "ValidationException":
1936
- case "com.amazonaws.m2#ValidationException":
1937
- throw await de_ValidationExceptionRes(parsedOutput, context);
1938
- default:
1939
- const parsedBody = parsedOutput.body;
1940
- return throwDefaultError({
1941
- output,
1942
- parsedBody,
1943
- errorCode
1944
- });
1945
- }
1946
- }, "de_ListBatchJobDefinitionsCommandError");
1947
1334
  var de_ListBatchJobExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1948
1335
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1949
- return de_ListBatchJobExecutionsCommandError(output, context);
1336
+ return de_CommandError(output, context);
1950
1337
  }
1951
1338
  const contents = (0, import_smithy_client.map)({
1952
1339
  $metadata: deserializeMetadata(output)
@@ -1959,40 +1346,9 @@ var de_ListBatchJobExecutionsCommand = /* @__PURE__ */ __name(async (output, con
1959
1346
  Object.assign(contents, doc);
1960
1347
  return contents;
1961
1348
  }, "de_ListBatchJobExecutionsCommand");
1962
- var de_ListBatchJobExecutionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1963
- const parsedOutput = {
1964
- ...output,
1965
- body: await parseErrorBody(output.body, context)
1966
- };
1967
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1968
- switch (errorCode) {
1969
- case "AccessDeniedException":
1970
- case "com.amazonaws.m2#AccessDeniedException":
1971
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1972
- case "InternalServerException":
1973
- case "com.amazonaws.m2#InternalServerException":
1974
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1975
- case "ResourceNotFoundException":
1976
- case "com.amazonaws.m2#ResourceNotFoundException":
1977
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1978
- case "ThrottlingException":
1979
- case "com.amazonaws.m2#ThrottlingException":
1980
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1981
- case "ValidationException":
1982
- case "com.amazonaws.m2#ValidationException":
1983
- throw await de_ValidationExceptionRes(parsedOutput, context);
1984
- default:
1985
- const parsedBody = parsedOutput.body;
1986
- return throwDefaultError({
1987
- output,
1988
- parsedBody,
1989
- errorCode
1990
- });
1991
- }
1992
- }, "de_ListBatchJobExecutionsCommandError");
1993
1349
  var de_ListDataSetImportHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1994
1350
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1995
- return de_ListDataSetImportHistoryCommandError(output, context);
1351
+ return de_CommandError(output, context);
1996
1352
  }
1997
1353
  const contents = (0, import_smithy_client.map)({
1998
1354
  $metadata: deserializeMetadata(output)
@@ -2005,40 +1361,9 @@ var de_ListDataSetImportHistoryCommand = /* @__PURE__ */ __name(async (output, c
2005
1361
  Object.assign(contents, doc);
2006
1362
  return contents;
2007
1363
  }, "de_ListDataSetImportHistoryCommand");
2008
- var de_ListDataSetImportHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
2009
- const parsedOutput = {
2010
- ...output,
2011
- body: await parseErrorBody(output.body, context)
2012
- };
2013
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2014
- switch (errorCode) {
2015
- case "AccessDeniedException":
2016
- case "com.amazonaws.m2#AccessDeniedException":
2017
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2018
- case "InternalServerException":
2019
- case "com.amazonaws.m2#InternalServerException":
2020
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2021
- case "ResourceNotFoundException":
2022
- case "com.amazonaws.m2#ResourceNotFoundException":
2023
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2024
- case "ThrottlingException":
2025
- case "com.amazonaws.m2#ThrottlingException":
2026
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2027
- case "ValidationException":
2028
- case "com.amazonaws.m2#ValidationException":
2029
- throw await de_ValidationExceptionRes(parsedOutput, context);
2030
- default:
2031
- const parsedBody = parsedOutput.body;
2032
- return throwDefaultError({
2033
- output,
2034
- parsedBody,
2035
- errorCode
2036
- });
2037
- }
2038
- }, "de_ListDataSetImportHistoryCommandError");
2039
1364
  var de_ListDataSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
2040
1365
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2041
- return de_ListDataSetsCommandError(output, context);
1366
+ return de_CommandError(output, context);
2042
1367
  }
2043
1368
  const contents = (0, import_smithy_client.map)({
2044
1369
  $metadata: deserializeMetadata(output)
@@ -2051,49 +1376,9 @@ var de_ListDataSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
2051
1376
  Object.assign(contents, doc);
2052
1377
  return contents;
2053
1378
  }, "de_ListDataSetsCommand");
2054
- var de_ListDataSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2055
- const parsedOutput = {
2056
- ...output,
2057
- body: await parseErrorBody(output.body, context)
2058
- };
2059
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2060
- switch (errorCode) {
2061
- case "AccessDeniedException":
2062
- case "com.amazonaws.m2#AccessDeniedException":
2063
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2064
- case "ConflictException":
2065
- case "com.amazonaws.m2#ConflictException":
2066
- throw await de_ConflictExceptionRes(parsedOutput, context);
2067
- case "ExecutionTimeoutException":
2068
- case "com.amazonaws.m2#ExecutionTimeoutException":
2069
- throw await de_ExecutionTimeoutExceptionRes(parsedOutput, context);
2070
- case "InternalServerException":
2071
- case "com.amazonaws.m2#InternalServerException":
2072
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2073
- case "ResourceNotFoundException":
2074
- case "com.amazonaws.m2#ResourceNotFoundException":
2075
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2076
- case "ServiceUnavailableException":
2077
- case "com.amazonaws.m2#ServiceUnavailableException":
2078
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2079
- case "ThrottlingException":
2080
- case "com.amazonaws.m2#ThrottlingException":
2081
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2082
- case "ValidationException":
2083
- case "com.amazonaws.m2#ValidationException":
2084
- throw await de_ValidationExceptionRes(parsedOutput, context);
2085
- default:
2086
- const parsedBody = parsedOutput.body;
2087
- return throwDefaultError({
2088
- output,
2089
- parsedBody,
2090
- errorCode
2091
- });
2092
- }
2093
- }, "de_ListDataSetsCommandError");
2094
1379
  var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
2095
1380
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2096
- return de_ListDeploymentsCommandError(output, context);
1381
+ return de_CommandError(output, context);
2097
1382
  }
2098
1383
  const contents = (0, import_smithy_client.map)({
2099
1384
  $metadata: deserializeMetadata(output)
@@ -2106,40 +1391,9 @@ var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) =
2106
1391
  Object.assign(contents, doc);
2107
1392
  return contents;
2108
1393
  }, "de_ListDeploymentsCommand");
2109
- var de_ListDeploymentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2110
- const parsedOutput = {
2111
- ...output,
2112
- body: await parseErrorBody(output.body, context)
2113
- };
2114
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2115
- switch (errorCode) {
2116
- case "AccessDeniedException":
2117
- case "com.amazonaws.m2#AccessDeniedException":
2118
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2119
- case "InternalServerException":
2120
- case "com.amazonaws.m2#InternalServerException":
2121
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2122
- case "ResourceNotFoundException":
2123
- case "com.amazonaws.m2#ResourceNotFoundException":
2124
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2125
- case "ThrottlingException":
2126
- case "com.amazonaws.m2#ThrottlingException":
2127
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2128
- case "ValidationException":
2129
- case "com.amazonaws.m2#ValidationException":
2130
- throw await de_ValidationExceptionRes(parsedOutput, context);
2131
- default:
2132
- const parsedBody = parsedOutput.body;
2133
- return throwDefaultError({
2134
- output,
2135
- parsedBody,
2136
- errorCode
2137
- });
2138
- }
2139
- }, "de_ListDeploymentsCommandError");
2140
1394
  var de_ListEngineVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2141
1395
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2142
- return de_ListEngineVersionsCommandError(output, context);
1396
+ return de_CommandError(output, context);
2143
1397
  }
2144
1398
  const contents = (0, import_smithy_client.map)({
2145
1399
  $metadata: deserializeMetadata(output)
@@ -2152,37 +1406,9 @@ var de_ListEngineVersionsCommand = /* @__PURE__ */ __name(async (output, context
2152
1406
  Object.assign(contents, doc);
2153
1407
  return contents;
2154
1408
  }, "de_ListEngineVersionsCommand");
2155
- var de_ListEngineVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2156
- const parsedOutput = {
2157
- ...output,
2158
- body: await parseErrorBody(output.body, context)
2159
- };
2160
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2161
- switch (errorCode) {
2162
- case "AccessDeniedException":
2163
- case "com.amazonaws.m2#AccessDeniedException":
2164
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2165
- case "InternalServerException":
2166
- case "com.amazonaws.m2#InternalServerException":
2167
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2168
- case "ThrottlingException":
2169
- case "com.amazonaws.m2#ThrottlingException":
2170
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2171
- case "ValidationException":
2172
- case "com.amazonaws.m2#ValidationException":
2173
- throw await de_ValidationExceptionRes(parsedOutput, context);
2174
- default:
2175
- const parsedBody = parsedOutput.body;
2176
- return throwDefaultError({
2177
- output,
2178
- parsedBody,
2179
- errorCode
2180
- });
2181
- }
2182
- }, "de_ListEngineVersionsCommandError");
2183
1409
  var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
2184
1410
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2185
- return de_ListEnvironmentsCommandError(output, context);
1411
+ return de_CommandError(output, context);
2186
1412
  }
2187
1413
  const contents = (0, import_smithy_client.map)({
2188
1414
  $metadata: deserializeMetadata(output)
@@ -2195,37 +1421,9 @@ var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context)
2195
1421
  Object.assign(contents, doc);
2196
1422
  return contents;
2197
1423
  }, "de_ListEnvironmentsCommand");
2198
- var de_ListEnvironmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2199
- const parsedOutput = {
2200
- ...output,
2201
- body: await parseErrorBody(output.body, context)
2202
- };
2203
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2204
- switch (errorCode) {
2205
- case "AccessDeniedException":
2206
- case "com.amazonaws.m2#AccessDeniedException":
2207
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2208
- case "InternalServerException":
2209
- case "com.amazonaws.m2#InternalServerException":
2210
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2211
- case "ThrottlingException":
2212
- case "com.amazonaws.m2#ThrottlingException":
2213
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2214
- case "ValidationException":
2215
- case "com.amazonaws.m2#ValidationException":
2216
- throw await de_ValidationExceptionRes(parsedOutput, context);
2217
- default:
2218
- const parsedBody = parsedOutput.body;
2219
- return throwDefaultError({
2220
- output,
2221
- parsedBody,
2222
- errorCode
2223
- });
2224
- }
2225
- }, "de_ListEnvironmentsCommandError");
2226
1424
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2227
1425
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2228
- return de_ListTagsForResourceCommandError(output, context);
1426
+ return de_CommandError(output, context);
2229
1427
  }
2230
1428
  const contents = (0, import_smithy_client.map)({
2231
1429
  $metadata: deserializeMetadata(output)
@@ -2237,40 +1435,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
2237
1435
  Object.assign(contents, doc);
2238
1436
  return contents;
2239
1437
  }, "de_ListTagsForResourceCommand");
2240
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2241
- const parsedOutput = {
2242
- ...output,
2243
- body: await parseErrorBody(output.body, context)
2244
- };
2245
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2246
- switch (errorCode) {
2247
- case "AccessDeniedException":
2248
- case "com.amazonaws.m2#AccessDeniedException":
2249
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2250
- case "InternalServerException":
2251
- case "com.amazonaws.m2#InternalServerException":
2252
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2253
- case "ResourceNotFoundException":
2254
- case "com.amazonaws.m2#ResourceNotFoundException":
2255
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2256
- case "ThrottlingException":
2257
- case "com.amazonaws.m2#ThrottlingException":
2258
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2259
- case "ValidationException":
2260
- case "com.amazonaws.m2#ValidationException":
2261
- throw await de_ValidationExceptionRes(parsedOutput, context);
2262
- default:
2263
- const parsedBody = parsedOutput.body;
2264
- return throwDefaultError({
2265
- output,
2266
- parsedBody,
2267
- errorCode
2268
- });
2269
- }
2270
- }, "de_ListTagsForResourceCommandError");
2271
1438
  var de_StartApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
2272
1439
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2273
- return de_StartApplicationCommandError(output, context);
1440
+ return de_CommandError(output, context);
2274
1441
  }
2275
1442
  const contents = (0, import_smithy_client.map)({
2276
1443
  $metadata: deserializeMetadata(output)
@@ -2278,43 +1445,9 @@ var de_StartApplicationCommand = /* @__PURE__ */ __name(async (output, context)
2278
1445
  await (0, import_smithy_client.collectBody)(output.body, context);
2279
1446
  return contents;
2280
1447
  }, "de_StartApplicationCommand");
2281
- var de_StartApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2282
- const parsedOutput = {
2283
- ...output,
2284
- body: await parseErrorBody(output.body, context)
2285
- };
2286
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2287
- switch (errorCode) {
2288
- case "AccessDeniedException":
2289
- case "com.amazonaws.m2#AccessDeniedException":
2290
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2291
- case "ConflictException":
2292
- case "com.amazonaws.m2#ConflictException":
2293
- throw await de_ConflictExceptionRes(parsedOutput, context);
2294
- case "InternalServerException":
2295
- case "com.amazonaws.m2#InternalServerException":
2296
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2297
- case "ResourceNotFoundException":
2298
- case "com.amazonaws.m2#ResourceNotFoundException":
2299
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2300
- case "ThrottlingException":
2301
- case "com.amazonaws.m2#ThrottlingException":
2302
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2303
- case "ValidationException":
2304
- case "com.amazonaws.m2#ValidationException":
2305
- throw await de_ValidationExceptionRes(parsedOutput, context);
2306
- default:
2307
- const parsedBody = parsedOutput.body;
2308
- return throwDefaultError({
2309
- output,
2310
- parsedBody,
2311
- errorCode
2312
- });
2313
- }
2314
- }, "de_StartApplicationCommandError");
2315
1448
  var de_StartBatchJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2316
1449
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2317
- return de_StartBatchJobCommandError(output, context);
1450
+ return de_CommandError(output, context);
2318
1451
  }
2319
1452
  const contents = (0, import_smithy_client.map)({
2320
1453
  $metadata: deserializeMetadata(output)
@@ -2326,43 +1459,9 @@ var de_StartBatchJobCommand = /* @__PURE__ */ __name(async (output, context) =>
2326
1459
  Object.assign(contents, doc);
2327
1460
  return contents;
2328
1461
  }, "de_StartBatchJobCommand");
2329
- var de_StartBatchJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
2330
- const parsedOutput = {
2331
- ...output,
2332
- body: await parseErrorBody(output.body, context)
2333
- };
2334
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2335
- switch (errorCode) {
2336
- case "AccessDeniedException":
2337
- case "com.amazonaws.m2#AccessDeniedException":
2338
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2339
- case "ConflictException":
2340
- case "com.amazonaws.m2#ConflictException":
2341
- throw await de_ConflictExceptionRes(parsedOutput, context);
2342
- case "InternalServerException":
2343
- case "com.amazonaws.m2#InternalServerException":
2344
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2345
- case "ResourceNotFoundException":
2346
- case "com.amazonaws.m2#ResourceNotFoundException":
2347
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2348
- case "ThrottlingException":
2349
- case "com.amazonaws.m2#ThrottlingException":
2350
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2351
- case "ValidationException":
2352
- case "com.amazonaws.m2#ValidationException":
2353
- throw await de_ValidationExceptionRes(parsedOutput, context);
2354
- default:
2355
- const parsedBody = parsedOutput.body;
2356
- return throwDefaultError({
2357
- output,
2358
- parsedBody,
2359
- errorCode
2360
- });
2361
- }
2362
- }, "de_StartBatchJobCommandError");
2363
1462
  var de_StopApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
2364
1463
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2365
- return de_StopApplicationCommandError(output, context);
1464
+ return de_CommandError(output, context);
2366
1465
  }
2367
1466
  const contents = (0, import_smithy_client.map)({
2368
1467
  $metadata: deserializeMetadata(output)
@@ -2370,43 +1469,9 @@ var de_StopApplicationCommand = /* @__PURE__ */ __name(async (output, context) =
2370
1469
  await (0, import_smithy_client.collectBody)(output.body, context);
2371
1470
  return contents;
2372
1471
  }, "de_StopApplicationCommand");
2373
- var de_StopApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2374
- const parsedOutput = {
2375
- ...output,
2376
- body: await parseErrorBody(output.body, context)
2377
- };
2378
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2379
- switch (errorCode) {
2380
- case "AccessDeniedException":
2381
- case "com.amazonaws.m2#AccessDeniedException":
2382
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2383
- case "ConflictException":
2384
- case "com.amazonaws.m2#ConflictException":
2385
- throw await de_ConflictExceptionRes(parsedOutput, context);
2386
- case "InternalServerException":
2387
- case "com.amazonaws.m2#InternalServerException":
2388
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2389
- case "ResourceNotFoundException":
2390
- case "com.amazonaws.m2#ResourceNotFoundException":
2391
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2392
- case "ThrottlingException":
2393
- case "com.amazonaws.m2#ThrottlingException":
2394
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2395
- case "ValidationException":
2396
- case "com.amazonaws.m2#ValidationException":
2397
- throw await de_ValidationExceptionRes(parsedOutput, context);
2398
- default:
2399
- const parsedBody = parsedOutput.body;
2400
- return throwDefaultError({
2401
- output,
2402
- parsedBody,
2403
- errorCode
2404
- });
2405
- }
2406
- }, "de_StopApplicationCommandError");
2407
1472
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2408
1473
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2409
- return de_TagResourceCommandError(output, context);
1474
+ return de_CommandError(output, context);
2410
1475
  }
2411
1476
  const contents = (0, import_smithy_client.map)({
2412
1477
  $metadata: deserializeMetadata(output)
@@ -2414,43 +1479,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2414
1479
  await (0, import_smithy_client.collectBody)(output.body, context);
2415
1480
  return contents;
2416
1481
  }, "de_TagResourceCommand");
2417
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2418
- const parsedOutput = {
2419
- ...output,
2420
- body: await parseErrorBody(output.body, context)
2421
- };
2422
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2423
- switch (errorCode) {
2424
- case "AccessDeniedException":
2425
- case "com.amazonaws.m2#AccessDeniedException":
2426
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2427
- case "InternalServerException":
2428
- case "com.amazonaws.m2#InternalServerException":
2429
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2430
- case "ResourceNotFoundException":
2431
- case "com.amazonaws.m2#ResourceNotFoundException":
2432
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2433
- case "ServiceQuotaExceededException":
2434
- case "com.amazonaws.m2#ServiceQuotaExceededException":
2435
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2436
- case "ThrottlingException":
2437
- case "com.amazonaws.m2#ThrottlingException":
2438
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2439
- case "ValidationException":
2440
- case "com.amazonaws.m2#ValidationException":
2441
- throw await de_ValidationExceptionRes(parsedOutput, context);
2442
- default:
2443
- const parsedBody = parsedOutput.body;
2444
- return throwDefaultError({
2445
- output,
2446
- parsedBody,
2447
- errorCode
2448
- });
2449
- }
2450
- }, "de_TagResourceCommandError");
2451
1482
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2452
1483
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2453
- return de_UntagResourceCommandError(output, context);
1484
+ return de_CommandError(output, context);
2454
1485
  }
2455
1486
  const contents = (0, import_smithy_client.map)({
2456
1487
  $metadata: deserializeMetadata(output)
@@ -2458,40 +1489,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
2458
1489
  await (0, import_smithy_client.collectBody)(output.body, context);
2459
1490
  return contents;
2460
1491
  }, "de_UntagResourceCommand");
2461
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2462
- const parsedOutput = {
2463
- ...output,
2464
- body: await parseErrorBody(output.body, context)
2465
- };
2466
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2467
- switch (errorCode) {
2468
- case "AccessDeniedException":
2469
- case "com.amazonaws.m2#AccessDeniedException":
2470
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2471
- case "InternalServerException":
2472
- case "com.amazonaws.m2#InternalServerException":
2473
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2474
- case "ResourceNotFoundException":
2475
- case "com.amazonaws.m2#ResourceNotFoundException":
2476
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2477
- case "ThrottlingException":
2478
- case "com.amazonaws.m2#ThrottlingException":
2479
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2480
- case "ValidationException":
2481
- case "com.amazonaws.m2#ValidationException":
2482
- throw await de_ValidationExceptionRes(parsedOutput, context);
2483
- default:
2484
- const parsedBody = parsedOutput.body;
2485
- return throwDefaultError({
2486
- output,
2487
- parsedBody,
2488
- errorCode
2489
- });
2490
- }
2491
- }, "de_UntagResourceCommandError");
2492
1492
  var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
2493
1493
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2494
- return de_UpdateApplicationCommandError(output, context);
1494
+ return de_CommandError(output, context);
2495
1495
  }
2496
1496
  const contents = (0, import_smithy_client.map)({
2497
1497
  $metadata: deserializeMetadata(output)
@@ -2503,43 +1503,9 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
2503
1503
  Object.assign(contents, doc);
2504
1504
  return contents;
2505
1505
  }, "de_UpdateApplicationCommand");
2506
- var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2507
- const parsedOutput = {
2508
- ...output,
2509
- body: await parseErrorBody(output.body, context)
2510
- };
2511
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2512
- switch (errorCode) {
2513
- case "AccessDeniedException":
2514
- case "com.amazonaws.m2#AccessDeniedException":
2515
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2516
- case "ConflictException":
2517
- case "com.amazonaws.m2#ConflictException":
2518
- throw await de_ConflictExceptionRes(parsedOutput, context);
2519
- case "InternalServerException":
2520
- case "com.amazonaws.m2#InternalServerException":
2521
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2522
- case "ResourceNotFoundException":
2523
- case "com.amazonaws.m2#ResourceNotFoundException":
2524
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2525
- case "ThrottlingException":
2526
- case "com.amazonaws.m2#ThrottlingException":
2527
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2528
- case "ValidationException":
2529
- case "com.amazonaws.m2#ValidationException":
2530
- throw await de_ValidationExceptionRes(parsedOutput, context);
2531
- default:
2532
- const parsedBody = parsedOutput.body;
2533
- return throwDefaultError({
2534
- output,
2535
- parsedBody,
2536
- errorCode
2537
- });
2538
- }
2539
- }, "de_UpdateApplicationCommandError");
2540
1506
  var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
2541
1507
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2542
- return de_UpdateEnvironmentCommandError(output, context);
1508
+ return de_CommandError(output, context);
2543
1509
  }
2544
1510
  const contents = (0, import_smithy_client.map)({
2545
1511
  $metadata: deserializeMetadata(output)
@@ -2551,7 +1517,7 @@ var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
2551
1517
  Object.assign(contents, doc);
2552
1518
  return contents;
2553
1519
  }, "de_UpdateEnvironmentCommand");
2554
- var de_UpdateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1520
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2555
1521
  const parsedOutput = {
2556
1522
  ...output,
2557
1523
  body: await parseErrorBody(output.body, context)
@@ -2570,15 +1536,21 @@ var de_UpdateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, con
2570
1536
  case "ResourceNotFoundException":
2571
1537
  case "com.amazonaws.m2#ResourceNotFoundException":
2572
1538
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2573
- case "ServiceQuotaExceededException":
2574
- case "com.amazonaws.m2#ServiceQuotaExceededException":
2575
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2576
1539
  case "ThrottlingException":
2577
1540
  case "com.amazonaws.m2#ThrottlingException":
2578
1541
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2579
1542
  case "ValidationException":
2580
1543
  case "com.amazonaws.m2#ValidationException":
2581
1544
  throw await de_ValidationExceptionRes(parsedOutput, context);
1545
+ case "ServiceQuotaExceededException":
1546
+ case "com.amazonaws.m2#ServiceQuotaExceededException":
1547
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1548
+ case "ExecutionTimeoutException":
1549
+ case "com.amazonaws.m2#ExecutionTimeoutException":
1550
+ throw await de_ExecutionTimeoutExceptionRes(parsedOutput, context);
1551
+ case "ServiceUnavailableException":
1552
+ case "com.amazonaws.m2#ServiceUnavailableException":
1553
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2582
1554
  default:
2583
1555
  const parsedBody = parsedOutput.body;
2584
1556
  return throwDefaultError({
@@ -2587,7 +1559,7 @@ var de_UpdateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, con
2587
1559
  errorCode
2588
1560
  });
2589
1561
  }
2590
- }, "de_UpdateEnvironmentCommandError");
1562
+ }, "de_CommandError");
2591
1563
  var throwDefaultError = (0, import_smithy_client.withBaseException)(M2ServiceException);
2592
1564
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2593
1565
  const contents = (0, import_smithy_client.map)({});