@aws-sdk/client-accessanalyzer 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
@@ -1092,7 +1092,7 @@ var se_ValidatePolicyCommand = /* @__PURE__ */ __name(async (input, context) =>
1092
1092
  }, "se_ValidatePolicyCommand");
1093
1093
  var de_ApplyArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1094
1094
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1095
- return de_ApplyArchiveRuleCommandError(output, context);
1095
+ return de_CommandError(output, context);
1096
1096
  }
1097
1097
  const contents = (0, import_smithy_client.map)({
1098
1098
  $metadata: deserializeMetadata(output)
@@ -1100,40 +1100,9 @@ var de_ApplyArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context)
1100
1100
  await (0, import_smithy_client.collectBody)(output.body, context);
1101
1101
  return contents;
1102
1102
  }, "de_ApplyArchiveRuleCommand");
1103
- var de_ApplyArchiveRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1104
- const parsedOutput = {
1105
- ...output,
1106
- body: await parseErrorBody(output.body, context)
1107
- };
1108
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1109
- switch (errorCode) {
1110
- case "AccessDeniedException":
1111
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1112
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1113
- case "InternalServerException":
1114
- case "com.amazonaws.accessanalyzer#InternalServerException":
1115
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1116
- case "ResourceNotFoundException":
1117
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1118
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1119
- case "ThrottlingException":
1120
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1121
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1122
- case "ValidationException":
1123
- case "com.amazonaws.accessanalyzer#ValidationException":
1124
- throw await de_ValidationExceptionRes(parsedOutput, context);
1125
- default:
1126
- const parsedBody = parsedOutput.body;
1127
- return throwDefaultError({
1128
- output,
1129
- parsedBody,
1130
- errorCode
1131
- });
1132
- }
1133
- }, "de_ApplyArchiveRuleCommandError");
1134
1103
  var de_CancelPolicyGenerationCommand = /* @__PURE__ */ __name(async (output, context) => {
1135
1104
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1136
- return de_CancelPolicyGenerationCommandError(output, context);
1105
+ return de_CommandError(output, context);
1137
1106
  }
1138
1107
  const contents = (0, import_smithy_client.map)({
1139
1108
  $metadata: deserializeMetadata(output)
@@ -1141,37 +1110,9 @@ var de_CancelPolicyGenerationCommand = /* @__PURE__ */ __name(async (output, con
1141
1110
  await (0, import_smithy_client.collectBody)(output.body, context);
1142
1111
  return contents;
1143
1112
  }, "de_CancelPolicyGenerationCommand");
1144
- var de_CancelPolicyGenerationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1145
- const parsedOutput = {
1146
- ...output,
1147
- body: await parseErrorBody(output.body, context)
1148
- };
1149
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1150
- switch (errorCode) {
1151
- case "AccessDeniedException":
1152
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1153
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1154
- case "InternalServerException":
1155
- case "com.amazonaws.accessanalyzer#InternalServerException":
1156
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1157
- case "ThrottlingException":
1158
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1159
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1160
- case "ValidationException":
1161
- case "com.amazonaws.accessanalyzer#ValidationException":
1162
- throw await de_ValidationExceptionRes(parsedOutput, context);
1163
- default:
1164
- const parsedBody = parsedOutput.body;
1165
- return throwDefaultError({
1166
- output,
1167
- parsedBody,
1168
- errorCode
1169
- });
1170
- }
1171
- }, "de_CancelPolicyGenerationCommandError");
1172
1113
  var de_CheckAccessNotGrantedCommand = /* @__PURE__ */ __name(async (output, context) => {
1173
1114
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1174
- return de_CheckAccessNotGrantedCommandError(output, context);
1115
+ return de_CommandError(output, context);
1175
1116
  }
1176
1117
  const contents = (0, import_smithy_client.map)({
1177
1118
  $metadata: deserializeMetadata(output)
@@ -1185,43 +1126,9 @@ var de_CheckAccessNotGrantedCommand = /* @__PURE__ */ __name(async (output, cont
1185
1126
  Object.assign(contents, doc);
1186
1127
  return contents;
1187
1128
  }, "de_CheckAccessNotGrantedCommand");
1188
- var de_CheckAccessNotGrantedCommandError = /* @__PURE__ */ __name(async (output, context) => {
1189
- const parsedOutput = {
1190
- ...output,
1191
- body: await parseErrorBody(output.body, context)
1192
- };
1193
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1194
- switch (errorCode) {
1195
- case "AccessDeniedException":
1196
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1197
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1198
- case "InternalServerException":
1199
- case "com.amazonaws.accessanalyzer#InternalServerException":
1200
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1201
- case "InvalidParameterException":
1202
- case "com.amazonaws.accessanalyzer#InvalidParameterException":
1203
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1204
- case "ThrottlingException":
1205
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1206
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1207
- case "UnprocessableEntityException":
1208
- case "com.amazonaws.accessanalyzer#UnprocessableEntityException":
1209
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1210
- case "ValidationException":
1211
- case "com.amazonaws.accessanalyzer#ValidationException":
1212
- throw await de_ValidationExceptionRes(parsedOutput, context);
1213
- default:
1214
- const parsedBody = parsedOutput.body;
1215
- return throwDefaultError({
1216
- output,
1217
- parsedBody,
1218
- errorCode
1219
- });
1220
- }
1221
- }, "de_CheckAccessNotGrantedCommandError");
1222
1129
  var de_CheckNoNewAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
1223
1130
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1224
- return de_CheckNoNewAccessCommandError(output, context);
1131
+ return de_CommandError(output, context);
1225
1132
  }
1226
1133
  const contents = (0, import_smithy_client.map)({
1227
1134
  $metadata: deserializeMetadata(output)
@@ -1235,43 +1142,9 @@ var de_CheckNoNewAccessCommand = /* @__PURE__ */ __name(async (output, context)
1235
1142
  Object.assign(contents, doc);
1236
1143
  return contents;
1237
1144
  }, "de_CheckNoNewAccessCommand");
1238
- var de_CheckNoNewAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
1239
- const parsedOutput = {
1240
- ...output,
1241
- body: await parseErrorBody(output.body, context)
1242
- };
1243
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1244
- switch (errorCode) {
1245
- case "AccessDeniedException":
1246
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1247
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1248
- case "InternalServerException":
1249
- case "com.amazonaws.accessanalyzer#InternalServerException":
1250
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1251
- case "InvalidParameterException":
1252
- case "com.amazonaws.accessanalyzer#InvalidParameterException":
1253
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1254
- case "ThrottlingException":
1255
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1256
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1257
- case "UnprocessableEntityException":
1258
- case "com.amazonaws.accessanalyzer#UnprocessableEntityException":
1259
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1260
- case "ValidationException":
1261
- case "com.amazonaws.accessanalyzer#ValidationException":
1262
- throw await de_ValidationExceptionRes(parsedOutput, context);
1263
- default:
1264
- const parsedBody = parsedOutput.body;
1265
- return throwDefaultError({
1266
- output,
1267
- parsedBody,
1268
- errorCode
1269
- });
1270
- }
1271
- }, "de_CheckNoNewAccessCommandError");
1272
1145
  var de_CreateAccessPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
1273
1146
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1274
- return de_CreateAccessPreviewCommandError(output, context);
1147
+ return de_CommandError(output, context);
1275
1148
  }
1276
1149
  const contents = (0, import_smithy_client.map)({
1277
1150
  $metadata: deserializeMetadata(output)
@@ -1283,46 +1156,9 @@ var de_CreateAccessPreviewCommand = /* @__PURE__ */ __name(async (output, contex
1283
1156
  Object.assign(contents, doc);
1284
1157
  return contents;
1285
1158
  }, "de_CreateAccessPreviewCommand");
1286
- var de_CreateAccessPreviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
1287
- const parsedOutput = {
1288
- ...output,
1289
- body: await parseErrorBody(output.body, context)
1290
- };
1291
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1292
- switch (errorCode) {
1293
- case "AccessDeniedException":
1294
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1295
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1296
- case "ConflictException":
1297
- case "com.amazonaws.accessanalyzer#ConflictException":
1298
- throw await de_ConflictExceptionRes(parsedOutput, context);
1299
- case "InternalServerException":
1300
- case "com.amazonaws.accessanalyzer#InternalServerException":
1301
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1302
- case "ResourceNotFoundException":
1303
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1304
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1305
- case "ServiceQuotaExceededException":
1306
- case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
1307
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1308
- case "ThrottlingException":
1309
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1310
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1311
- case "ValidationException":
1312
- case "com.amazonaws.accessanalyzer#ValidationException":
1313
- throw await de_ValidationExceptionRes(parsedOutput, context);
1314
- default:
1315
- const parsedBody = parsedOutput.body;
1316
- return throwDefaultError({
1317
- output,
1318
- parsedBody,
1319
- errorCode
1320
- });
1321
- }
1322
- }, "de_CreateAccessPreviewCommandError");
1323
1159
  var de_CreateAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {
1324
1160
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1325
- return de_CreateAnalyzerCommandError(output, context);
1161
+ return de_CommandError(output, context);
1326
1162
  }
1327
1163
  const contents = (0, import_smithy_client.map)({
1328
1164
  $metadata: deserializeMetadata(output)
@@ -1334,43 +1170,9 @@ var de_CreateAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) =>
1334
1170
  Object.assign(contents, doc);
1335
1171
  return contents;
1336
1172
  }, "de_CreateAnalyzerCommand");
1337
- var de_CreateAnalyzerCommandError = /* @__PURE__ */ __name(async (output, context) => {
1338
- const parsedOutput = {
1339
- ...output,
1340
- body: await parseErrorBody(output.body, context)
1341
- };
1342
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1343
- switch (errorCode) {
1344
- case "AccessDeniedException":
1345
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1346
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1347
- case "ConflictException":
1348
- case "com.amazonaws.accessanalyzer#ConflictException":
1349
- throw await de_ConflictExceptionRes(parsedOutput, context);
1350
- case "InternalServerException":
1351
- case "com.amazonaws.accessanalyzer#InternalServerException":
1352
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1353
- case "ServiceQuotaExceededException":
1354
- case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
1355
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1356
- case "ThrottlingException":
1357
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1358
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1359
- case "ValidationException":
1360
- case "com.amazonaws.accessanalyzer#ValidationException":
1361
- throw await de_ValidationExceptionRes(parsedOutput, context);
1362
- default:
1363
- const parsedBody = parsedOutput.body;
1364
- return throwDefaultError({
1365
- output,
1366
- parsedBody,
1367
- errorCode
1368
- });
1369
- }
1370
- }, "de_CreateAnalyzerCommandError");
1371
1173
  var de_CreateArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1372
1174
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1373
- return de_CreateArchiveRuleCommandError(output, context);
1175
+ return de_CommandError(output, context);
1374
1176
  }
1375
1177
  const contents = (0, import_smithy_client.map)({
1376
1178
  $metadata: deserializeMetadata(output)
@@ -1378,46 +1180,9 @@ var de_CreateArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context)
1378
1180
  await (0, import_smithy_client.collectBody)(output.body, context);
1379
1181
  return contents;
1380
1182
  }, "de_CreateArchiveRuleCommand");
1381
- var de_CreateArchiveRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1382
- const parsedOutput = {
1383
- ...output,
1384
- body: await parseErrorBody(output.body, context)
1385
- };
1386
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1387
- switch (errorCode) {
1388
- case "AccessDeniedException":
1389
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1390
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1391
- case "ConflictException":
1392
- case "com.amazonaws.accessanalyzer#ConflictException":
1393
- throw await de_ConflictExceptionRes(parsedOutput, context);
1394
- case "InternalServerException":
1395
- case "com.amazonaws.accessanalyzer#InternalServerException":
1396
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1397
- case "ResourceNotFoundException":
1398
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1399
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1400
- case "ServiceQuotaExceededException":
1401
- case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
1402
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1403
- case "ThrottlingException":
1404
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1405
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1406
- case "ValidationException":
1407
- case "com.amazonaws.accessanalyzer#ValidationException":
1408
- throw await de_ValidationExceptionRes(parsedOutput, context);
1409
- default:
1410
- const parsedBody = parsedOutput.body;
1411
- return throwDefaultError({
1412
- output,
1413
- parsedBody,
1414
- errorCode
1415
- });
1416
- }
1417
- }, "de_CreateArchiveRuleCommandError");
1418
1183
  var de_DeleteAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {
1419
1184
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1420
- return de_DeleteAnalyzerCommandError(output, context);
1185
+ return de_CommandError(output, context);
1421
1186
  }
1422
1187
  const contents = (0, import_smithy_client.map)({
1423
1188
  $metadata: deserializeMetadata(output)
@@ -1425,40 +1190,9 @@ var de_DeleteAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) =>
1425
1190
  await (0, import_smithy_client.collectBody)(output.body, context);
1426
1191
  return contents;
1427
1192
  }, "de_DeleteAnalyzerCommand");
1428
- var de_DeleteAnalyzerCommandError = /* @__PURE__ */ __name(async (output, context) => {
1429
- const parsedOutput = {
1430
- ...output,
1431
- body: await parseErrorBody(output.body, context)
1432
- };
1433
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1434
- switch (errorCode) {
1435
- case "AccessDeniedException":
1436
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1437
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1438
- case "InternalServerException":
1439
- case "com.amazonaws.accessanalyzer#InternalServerException":
1440
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1441
- case "ResourceNotFoundException":
1442
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1443
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1444
- case "ThrottlingException":
1445
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1446
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1447
- case "ValidationException":
1448
- case "com.amazonaws.accessanalyzer#ValidationException":
1449
- throw await de_ValidationExceptionRes(parsedOutput, context);
1450
- default:
1451
- const parsedBody = parsedOutput.body;
1452
- return throwDefaultError({
1453
- output,
1454
- parsedBody,
1455
- errorCode
1456
- });
1457
- }
1458
- }, "de_DeleteAnalyzerCommandError");
1459
1193
  var de_DeleteArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1460
1194
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1461
- return de_DeleteArchiveRuleCommandError(output, context);
1195
+ return de_CommandError(output, context);
1462
1196
  }
1463
1197
  const contents = (0, import_smithy_client.map)({
1464
1198
  $metadata: deserializeMetadata(output)
@@ -1466,40 +1200,9 @@ var de_DeleteArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context)
1466
1200
  await (0, import_smithy_client.collectBody)(output.body, context);
1467
1201
  return contents;
1468
1202
  }, "de_DeleteArchiveRuleCommand");
1469
- var de_DeleteArchiveRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1470
- const parsedOutput = {
1471
- ...output,
1472
- body: await parseErrorBody(output.body, context)
1473
- };
1474
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1475
- switch (errorCode) {
1476
- case "AccessDeniedException":
1477
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1478
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1479
- case "InternalServerException":
1480
- case "com.amazonaws.accessanalyzer#InternalServerException":
1481
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1482
- case "ResourceNotFoundException":
1483
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1484
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1485
- case "ThrottlingException":
1486
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1487
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1488
- case "ValidationException":
1489
- case "com.amazonaws.accessanalyzer#ValidationException":
1490
- throw await de_ValidationExceptionRes(parsedOutput, context);
1491
- default:
1492
- const parsedBody = parsedOutput.body;
1493
- return throwDefaultError({
1494
- output,
1495
- parsedBody,
1496
- errorCode
1497
- });
1498
- }
1499
- }, "de_DeleteArchiveRuleCommandError");
1500
1203
  var de_GetAccessPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
1501
1204
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1502
- return de_GetAccessPreviewCommandError(output, context);
1205
+ return de_CommandError(output, context);
1503
1206
  }
1504
1207
  const contents = (0, import_smithy_client.map)({
1505
1208
  $metadata: deserializeMetadata(output)
@@ -1511,40 +1214,9 @@ var de_GetAccessPreviewCommand = /* @__PURE__ */ __name(async (output, context)
1511
1214
  Object.assign(contents, doc);
1512
1215
  return contents;
1513
1216
  }, "de_GetAccessPreviewCommand");
1514
- var de_GetAccessPreviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
1515
- const parsedOutput = {
1516
- ...output,
1517
- body: await parseErrorBody(output.body, context)
1518
- };
1519
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1520
- switch (errorCode) {
1521
- case "AccessDeniedException":
1522
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1523
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1524
- case "InternalServerException":
1525
- case "com.amazonaws.accessanalyzer#InternalServerException":
1526
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1527
- case "ResourceNotFoundException":
1528
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1529
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1530
- case "ThrottlingException":
1531
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1532
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1533
- case "ValidationException":
1534
- case "com.amazonaws.accessanalyzer#ValidationException":
1535
- throw await de_ValidationExceptionRes(parsedOutput, context);
1536
- default:
1537
- const parsedBody = parsedOutput.body;
1538
- return throwDefaultError({
1539
- output,
1540
- parsedBody,
1541
- errorCode
1542
- });
1543
- }
1544
- }, "de_GetAccessPreviewCommandError");
1545
1217
  var de_GetAnalyzedResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1546
1218
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1547
- return de_GetAnalyzedResourceCommandError(output, context);
1219
+ return de_CommandError(output, context);
1548
1220
  }
1549
1221
  const contents = (0, import_smithy_client.map)({
1550
1222
  $metadata: deserializeMetadata(output)
@@ -1556,40 +1228,9 @@ var de_GetAnalyzedResourceCommand = /* @__PURE__ */ __name(async (output, contex
1556
1228
  Object.assign(contents, doc);
1557
1229
  return contents;
1558
1230
  }, "de_GetAnalyzedResourceCommand");
1559
- var de_GetAnalyzedResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1560
- const parsedOutput = {
1561
- ...output,
1562
- body: await parseErrorBody(output.body, context)
1563
- };
1564
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1565
- switch (errorCode) {
1566
- case "AccessDeniedException":
1567
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1568
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1569
- case "InternalServerException":
1570
- case "com.amazonaws.accessanalyzer#InternalServerException":
1571
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1572
- case "ResourceNotFoundException":
1573
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1574
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1575
- case "ThrottlingException":
1576
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1577
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1578
- case "ValidationException":
1579
- case "com.amazonaws.accessanalyzer#ValidationException":
1580
- throw await de_ValidationExceptionRes(parsedOutput, context);
1581
- default:
1582
- const parsedBody = parsedOutput.body;
1583
- return throwDefaultError({
1584
- output,
1585
- parsedBody,
1586
- errorCode
1587
- });
1588
- }
1589
- }, "de_GetAnalyzedResourceCommandError");
1590
1231
  var de_GetAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {
1591
1232
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1592
- return de_GetAnalyzerCommandError(output, context);
1233
+ return de_CommandError(output, context);
1593
1234
  }
1594
1235
  const contents = (0, import_smithy_client.map)({
1595
1236
  $metadata: deserializeMetadata(output)
@@ -1601,40 +1242,9 @@ var de_GetAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {
1601
1242
  Object.assign(contents, doc);
1602
1243
  return contents;
1603
1244
  }, "de_GetAnalyzerCommand");
1604
- var de_GetAnalyzerCommandError = /* @__PURE__ */ __name(async (output, context) => {
1605
- const parsedOutput = {
1606
- ...output,
1607
- body: await parseErrorBody(output.body, context)
1608
- };
1609
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1610
- switch (errorCode) {
1611
- case "AccessDeniedException":
1612
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1613
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1614
- case "InternalServerException":
1615
- case "com.amazonaws.accessanalyzer#InternalServerException":
1616
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1617
- case "ResourceNotFoundException":
1618
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1619
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1620
- case "ThrottlingException":
1621
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1622
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1623
- case "ValidationException":
1624
- case "com.amazonaws.accessanalyzer#ValidationException":
1625
- throw await de_ValidationExceptionRes(parsedOutput, context);
1626
- default:
1627
- const parsedBody = parsedOutput.body;
1628
- return throwDefaultError({
1629
- output,
1630
- parsedBody,
1631
- errorCode
1632
- });
1633
- }
1634
- }, "de_GetAnalyzerCommandError");
1635
1245
  var de_GetArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1636
1246
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1637
- return de_GetArchiveRuleCommandError(output, context);
1247
+ return de_CommandError(output, context);
1638
1248
  }
1639
1249
  const contents = (0, import_smithy_client.map)({
1640
1250
  $metadata: deserializeMetadata(output)
@@ -1646,40 +1256,9 @@ var de_GetArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) =>
1646
1256
  Object.assign(contents, doc);
1647
1257
  return contents;
1648
1258
  }, "de_GetArchiveRuleCommand");
1649
- var de_GetArchiveRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1650
- const parsedOutput = {
1651
- ...output,
1652
- body: await parseErrorBody(output.body, context)
1653
- };
1654
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1655
- switch (errorCode) {
1656
- case "AccessDeniedException":
1657
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1658
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1659
- case "InternalServerException":
1660
- case "com.amazonaws.accessanalyzer#InternalServerException":
1661
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1662
- case "ResourceNotFoundException":
1663
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1664
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1665
- case "ThrottlingException":
1666
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1667
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1668
- case "ValidationException":
1669
- case "com.amazonaws.accessanalyzer#ValidationException":
1670
- throw await de_ValidationExceptionRes(parsedOutput, context);
1671
- default:
1672
- const parsedBody = parsedOutput.body;
1673
- return throwDefaultError({
1674
- output,
1675
- parsedBody,
1676
- errorCode
1677
- });
1678
- }
1679
- }, "de_GetArchiveRuleCommandError");
1680
1259
  var de_GetFindingCommand = /* @__PURE__ */ __name(async (output, context) => {
1681
1260
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1682
- return de_GetFindingCommandError(output, context);
1261
+ return de_CommandError(output, context);
1683
1262
  }
1684
1263
  const contents = (0, import_smithy_client.map)({
1685
1264
  $metadata: deserializeMetadata(output)
@@ -1691,96 +1270,34 @@ var de_GetFindingCommand = /* @__PURE__ */ __name(async (output, context) => {
1691
1270
  Object.assign(contents, doc);
1692
1271
  return contents;
1693
1272
  }, "de_GetFindingCommand");
1694
- var de_GetFindingCommandError = /* @__PURE__ */ __name(async (output, context) => {
1695
- const parsedOutput = {
1696
- ...output,
1697
- body: await parseErrorBody(output.body, context)
1698
- };
1699
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1700
- switch (errorCode) {
1701
- case "AccessDeniedException":
1702
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1703
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1704
- case "InternalServerException":
1705
- case "com.amazonaws.accessanalyzer#InternalServerException":
1706
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1707
- case "ResourceNotFoundException":
1708
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1709
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1710
- case "ThrottlingException":
1711
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1712
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1713
- case "ValidationException":
1714
- case "com.amazonaws.accessanalyzer#ValidationException":
1715
- throw await de_ValidationExceptionRes(parsedOutput, context);
1716
- default:
1717
- const parsedBody = parsedOutput.body;
1718
- return throwDefaultError({
1719
- output,
1720
- parsedBody,
1721
- errorCode
1722
- });
1723
- }
1724
- }, "de_GetFindingCommandError");
1725
1273
  var de_GetFindingV2Command = /* @__PURE__ */ __name(async (output, context) => {
1726
1274
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1727
- return de_GetFindingV2CommandError(output, context);
1728
- }
1729
- const contents = (0, import_smithy_client.map)({
1730
- $metadata: deserializeMetadata(output)
1731
- });
1732
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1733
- const doc = (0, import_smithy_client.take)(data, {
1734
- analyzedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1735
- createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1736
- error: import_smithy_client.expectString,
1737
- findingDetails: (_) => de_FindingDetailsList(_, context),
1738
- findingType: import_smithy_client.expectString,
1739
- id: import_smithy_client.expectString,
1740
- nextToken: import_smithy_client.expectString,
1741
- resource: import_smithy_client.expectString,
1742
- resourceOwnerAccount: import_smithy_client.expectString,
1743
- resourceType: import_smithy_client.expectString,
1744
- status: import_smithy_client.expectString,
1745
- updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1746
- });
1747
- Object.assign(contents, doc);
1748
- return contents;
1749
- }, "de_GetFindingV2Command");
1750
- var de_GetFindingV2CommandError = /* @__PURE__ */ __name(async (output, context) => {
1751
- const parsedOutput = {
1752
- ...output,
1753
- body: await parseErrorBody(output.body, context)
1754
- };
1755
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1756
- switch (errorCode) {
1757
- case "AccessDeniedException":
1758
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1759
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1760
- case "InternalServerException":
1761
- case "com.amazonaws.accessanalyzer#InternalServerException":
1762
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1763
- case "ResourceNotFoundException":
1764
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1765
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1766
- case "ThrottlingException":
1767
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1768
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1769
- case "ValidationException":
1770
- case "com.amazonaws.accessanalyzer#ValidationException":
1771
- throw await de_ValidationExceptionRes(parsedOutput, context);
1772
- default:
1773
- const parsedBody = parsedOutput.body;
1774
- return throwDefaultError({
1775
- output,
1776
- parsedBody,
1777
- errorCode
1778
- });
1275
+ return de_CommandError(output, context);
1779
1276
  }
1780
- }, "de_GetFindingV2CommandError");
1277
+ const contents = (0, import_smithy_client.map)({
1278
+ $metadata: deserializeMetadata(output)
1279
+ });
1280
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1281
+ const doc = (0, import_smithy_client.take)(data, {
1282
+ analyzedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1283
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1284
+ error: import_smithy_client.expectString,
1285
+ findingDetails: (_) => de_FindingDetailsList(_, context),
1286
+ findingType: import_smithy_client.expectString,
1287
+ id: import_smithy_client.expectString,
1288
+ nextToken: import_smithy_client.expectString,
1289
+ resource: import_smithy_client.expectString,
1290
+ resourceOwnerAccount: import_smithy_client.expectString,
1291
+ resourceType: import_smithy_client.expectString,
1292
+ status: import_smithy_client.expectString,
1293
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1294
+ });
1295
+ Object.assign(contents, doc);
1296
+ return contents;
1297
+ }, "de_GetFindingV2Command");
1781
1298
  var de_GetGeneratedPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1782
1299
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1783
- return de_GetGeneratedPolicyCommandError(output, context);
1300
+ return de_CommandError(output, context);
1784
1301
  }
1785
1302
  const contents = (0, import_smithy_client.map)({
1786
1303
  $metadata: deserializeMetadata(output)
@@ -1793,37 +1310,9 @@ var de_GetGeneratedPolicyCommand = /* @__PURE__ */ __name(async (output, context
1793
1310
  Object.assign(contents, doc);
1794
1311
  return contents;
1795
1312
  }, "de_GetGeneratedPolicyCommand");
1796
- var de_GetGeneratedPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1797
- const parsedOutput = {
1798
- ...output,
1799
- body: await parseErrorBody(output.body, context)
1800
- };
1801
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1802
- switch (errorCode) {
1803
- case "AccessDeniedException":
1804
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1805
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1806
- case "InternalServerException":
1807
- case "com.amazonaws.accessanalyzer#InternalServerException":
1808
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1809
- case "ThrottlingException":
1810
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1811
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1812
- case "ValidationException":
1813
- case "com.amazonaws.accessanalyzer#ValidationException":
1814
- throw await de_ValidationExceptionRes(parsedOutput, context);
1815
- default:
1816
- const parsedBody = parsedOutput.body;
1817
- return throwDefaultError({
1818
- output,
1819
- parsedBody,
1820
- errorCode
1821
- });
1822
- }
1823
- }, "de_GetGeneratedPolicyCommandError");
1824
1313
  var de_ListAccessPreviewFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1825
1314
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1826
- return de_ListAccessPreviewFindingsCommandError(output, context);
1315
+ return de_CommandError(output, context);
1827
1316
  }
1828
1317
  const contents = (0, import_smithy_client.map)({
1829
1318
  $metadata: deserializeMetadata(output)
@@ -1836,43 +1325,9 @@ var de_ListAccessPreviewFindingsCommand = /* @__PURE__ */ __name(async (output,
1836
1325
  Object.assign(contents, doc);
1837
1326
  return contents;
1838
1327
  }, "de_ListAccessPreviewFindingsCommand");
1839
- var de_ListAccessPreviewFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1840
- const parsedOutput = {
1841
- ...output,
1842
- body: await parseErrorBody(output.body, context)
1843
- };
1844
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1845
- switch (errorCode) {
1846
- case "AccessDeniedException":
1847
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1848
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1849
- case "ConflictException":
1850
- case "com.amazonaws.accessanalyzer#ConflictException":
1851
- throw await de_ConflictExceptionRes(parsedOutput, context);
1852
- case "InternalServerException":
1853
- case "com.amazonaws.accessanalyzer#InternalServerException":
1854
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1855
- case "ResourceNotFoundException":
1856
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1857
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1858
- case "ThrottlingException":
1859
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1860
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1861
- case "ValidationException":
1862
- case "com.amazonaws.accessanalyzer#ValidationException":
1863
- throw await de_ValidationExceptionRes(parsedOutput, context);
1864
- default:
1865
- const parsedBody = parsedOutput.body;
1866
- return throwDefaultError({
1867
- output,
1868
- parsedBody,
1869
- errorCode
1870
- });
1871
- }
1872
- }, "de_ListAccessPreviewFindingsCommandError");
1873
1328
  var de_ListAccessPreviewsCommand = /* @__PURE__ */ __name(async (output, context) => {
1874
1329
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1875
- return de_ListAccessPreviewsCommandError(output, context);
1330
+ return de_CommandError(output, context);
1876
1331
  }
1877
1332
  const contents = (0, import_smithy_client.map)({
1878
1333
  $metadata: deserializeMetadata(output)
@@ -1885,40 +1340,9 @@ var de_ListAccessPreviewsCommand = /* @__PURE__ */ __name(async (output, context
1885
1340
  Object.assign(contents, doc);
1886
1341
  return contents;
1887
1342
  }, "de_ListAccessPreviewsCommand");
1888
- var de_ListAccessPreviewsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1889
- const parsedOutput = {
1890
- ...output,
1891
- body: await parseErrorBody(output.body, context)
1892
- };
1893
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1894
- switch (errorCode) {
1895
- case "AccessDeniedException":
1896
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1897
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1898
- case "InternalServerException":
1899
- case "com.amazonaws.accessanalyzer#InternalServerException":
1900
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1901
- case "ResourceNotFoundException":
1902
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1903
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1904
- case "ThrottlingException":
1905
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1906
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1907
- case "ValidationException":
1908
- case "com.amazonaws.accessanalyzer#ValidationException":
1909
- throw await de_ValidationExceptionRes(parsedOutput, context);
1910
- default:
1911
- const parsedBody = parsedOutput.body;
1912
- return throwDefaultError({
1913
- output,
1914
- parsedBody,
1915
- errorCode
1916
- });
1917
- }
1918
- }, "de_ListAccessPreviewsCommandError");
1919
1343
  var de_ListAnalyzedResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
1920
1344
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1921
- return de_ListAnalyzedResourcesCommandError(output, context);
1345
+ return de_CommandError(output, context);
1922
1346
  }
1923
1347
  const contents = (0, import_smithy_client.map)({
1924
1348
  $metadata: deserializeMetadata(output)
@@ -1931,40 +1355,9 @@ var de_ListAnalyzedResourcesCommand = /* @__PURE__ */ __name(async (output, cont
1931
1355
  Object.assign(contents, doc);
1932
1356
  return contents;
1933
1357
  }, "de_ListAnalyzedResourcesCommand");
1934
- var de_ListAnalyzedResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1935
- const parsedOutput = {
1936
- ...output,
1937
- body: await parseErrorBody(output.body, context)
1938
- };
1939
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1940
- switch (errorCode) {
1941
- case "AccessDeniedException":
1942
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1943
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1944
- case "InternalServerException":
1945
- case "com.amazonaws.accessanalyzer#InternalServerException":
1946
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1947
- case "ResourceNotFoundException":
1948
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1949
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1950
- case "ThrottlingException":
1951
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1952
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1953
- case "ValidationException":
1954
- case "com.amazonaws.accessanalyzer#ValidationException":
1955
- throw await de_ValidationExceptionRes(parsedOutput, context);
1956
- default:
1957
- const parsedBody = parsedOutput.body;
1958
- return throwDefaultError({
1959
- output,
1960
- parsedBody,
1961
- errorCode
1962
- });
1963
- }
1964
- }, "de_ListAnalyzedResourcesCommandError");
1965
1358
  var de_ListAnalyzersCommand = /* @__PURE__ */ __name(async (output, context) => {
1966
1359
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1967
- return de_ListAnalyzersCommandError(output, context);
1360
+ return de_CommandError(output, context);
1968
1361
  }
1969
1362
  const contents = (0, import_smithy_client.map)({
1970
1363
  $metadata: deserializeMetadata(output)
@@ -1977,37 +1370,9 @@ var de_ListAnalyzersCommand = /* @__PURE__ */ __name(async (output, context) =>
1977
1370
  Object.assign(contents, doc);
1978
1371
  return contents;
1979
1372
  }, "de_ListAnalyzersCommand");
1980
- var de_ListAnalyzersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1981
- const parsedOutput = {
1982
- ...output,
1983
- body: await parseErrorBody(output.body, context)
1984
- };
1985
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1986
- switch (errorCode) {
1987
- case "AccessDeniedException":
1988
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
1989
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1990
- case "InternalServerException":
1991
- case "com.amazonaws.accessanalyzer#InternalServerException":
1992
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1993
- case "ThrottlingException":
1994
- case "com.amazonaws.accessanalyzer#ThrottlingException":
1995
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1996
- case "ValidationException":
1997
- case "com.amazonaws.accessanalyzer#ValidationException":
1998
- throw await de_ValidationExceptionRes(parsedOutput, context);
1999
- default:
2000
- const parsedBody = parsedOutput.body;
2001
- return throwDefaultError({
2002
- output,
2003
- parsedBody,
2004
- errorCode
2005
- });
2006
- }
2007
- }, "de_ListAnalyzersCommandError");
2008
1373
  var de_ListArchiveRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
2009
1374
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2010
- return de_ListArchiveRulesCommandError(output, context);
1375
+ return de_CommandError(output, context);
2011
1376
  }
2012
1377
  const contents = (0, import_smithy_client.map)({
2013
1378
  $metadata: deserializeMetadata(output)
@@ -2020,37 +1385,9 @@ var de_ListArchiveRulesCommand = /* @__PURE__ */ __name(async (output, context)
2020
1385
  Object.assign(contents, doc);
2021
1386
  return contents;
2022
1387
  }, "de_ListArchiveRulesCommand");
2023
- var de_ListArchiveRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2024
- const parsedOutput = {
2025
- ...output,
2026
- body: await parseErrorBody(output.body, context)
2027
- };
2028
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2029
- switch (errorCode) {
2030
- case "AccessDeniedException":
2031
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
2032
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2033
- case "InternalServerException":
2034
- case "com.amazonaws.accessanalyzer#InternalServerException":
2035
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2036
- case "ThrottlingException":
2037
- case "com.amazonaws.accessanalyzer#ThrottlingException":
2038
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2039
- case "ValidationException":
2040
- case "com.amazonaws.accessanalyzer#ValidationException":
2041
- throw await de_ValidationExceptionRes(parsedOutput, context);
2042
- default:
2043
- const parsedBody = parsedOutput.body;
2044
- return throwDefaultError({
2045
- output,
2046
- parsedBody,
2047
- errorCode
2048
- });
2049
- }
2050
- }, "de_ListArchiveRulesCommandError");
2051
1388
  var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2052
1389
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2053
- return de_ListFindingsCommandError(output, context);
1390
+ return de_CommandError(output, context);
2054
1391
  }
2055
1392
  const contents = (0, import_smithy_client.map)({
2056
1393
  $metadata: deserializeMetadata(output)
@@ -2063,86 +1400,24 @@ var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2063
1400
  Object.assign(contents, doc);
2064
1401
  return contents;
2065
1402
  }, "de_ListFindingsCommand");
2066
- var de_ListFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2067
- const parsedOutput = {
2068
- ...output,
2069
- body: await parseErrorBody(output.body, context)
2070
- };
2071
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2072
- switch (errorCode) {
2073
- case "AccessDeniedException":
2074
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
2075
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2076
- case "InternalServerException":
2077
- case "com.amazonaws.accessanalyzer#InternalServerException":
2078
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2079
- case "ResourceNotFoundException":
2080
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
2081
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2082
- case "ThrottlingException":
2083
- case "com.amazonaws.accessanalyzer#ThrottlingException":
2084
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2085
- case "ValidationException":
2086
- case "com.amazonaws.accessanalyzer#ValidationException":
2087
- throw await de_ValidationExceptionRes(parsedOutput, context);
2088
- default:
2089
- const parsedBody = parsedOutput.body;
2090
- return throwDefaultError({
2091
- output,
2092
- parsedBody,
2093
- errorCode
2094
- });
2095
- }
2096
- }, "de_ListFindingsCommandError");
2097
1403
  var de_ListFindingsV2Command = /* @__PURE__ */ __name(async (output, context) => {
2098
1404
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2099
- return de_ListFindingsV2CommandError(output, context);
1405
+ return de_CommandError(output, context);
2100
1406
  }
2101
1407
  const contents = (0, import_smithy_client.map)({
2102
1408
  $metadata: deserializeMetadata(output)
2103
- });
2104
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2105
- const doc = (0, import_smithy_client.take)(data, {
2106
- findings: (_) => de_FindingsListV2(_, context),
2107
- nextToken: import_smithy_client.expectString
2108
- });
2109
- Object.assign(contents, doc);
2110
- return contents;
2111
- }, "de_ListFindingsV2Command");
2112
- var de_ListFindingsV2CommandError = /* @__PURE__ */ __name(async (output, context) => {
2113
- const parsedOutput = {
2114
- ...output,
2115
- body: await parseErrorBody(output.body, context)
2116
- };
2117
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2118
- switch (errorCode) {
2119
- case "AccessDeniedException":
2120
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
2121
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2122
- case "InternalServerException":
2123
- case "com.amazonaws.accessanalyzer#InternalServerException":
2124
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2125
- case "ResourceNotFoundException":
2126
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
2127
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2128
- case "ThrottlingException":
2129
- case "com.amazonaws.accessanalyzer#ThrottlingException":
2130
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2131
- case "ValidationException":
2132
- case "com.amazonaws.accessanalyzer#ValidationException":
2133
- throw await de_ValidationExceptionRes(parsedOutput, context);
2134
- default:
2135
- const parsedBody = parsedOutput.body;
2136
- return throwDefaultError({
2137
- output,
2138
- parsedBody,
2139
- errorCode
2140
- });
2141
- }
2142
- }, "de_ListFindingsV2CommandError");
1409
+ });
1410
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1411
+ const doc = (0, import_smithy_client.take)(data, {
1412
+ findings: (_) => de_FindingsListV2(_, context),
1413
+ nextToken: import_smithy_client.expectString
1414
+ });
1415
+ Object.assign(contents, doc);
1416
+ return contents;
1417
+ }, "de_ListFindingsV2Command");
2143
1418
  var de_ListPolicyGenerationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2144
1419
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2145
- return de_ListPolicyGenerationsCommandError(output, context);
1420
+ return de_CommandError(output, context);
2146
1421
  }
2147
1422
  const contents = (0, import_smithy_client.map)({
2148
1423
  $metadata: deserializeMetadata(output)
@@ -2155,37 +1430,9 @@ var de_ListPolicyGenerationsCommand = /* @__PURE__ */ __name(async (output, cont
2155
1430
  Object.assign(contents, doc);
2156
1431
  return contents;
2157
1432
  }, "de_ListPolicyGenerationsCommand");
2158
- var de_ListPolicyGenerationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2159
- const parsedOutput = {
2160
- ...output,
2161
- body: await parseErrorBody(output.body, context)
2162
- };
2163
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2164
- switch (errorCode) {
2165
- case "AccessDeniedException":
2166
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
2167
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2168
- case "InternalServerException":
2169
- case "com.amazonaws.accessanalyzer#InternalServerException":
2170
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2171
- case "ThrottlingException":
2172
- case "com.amazonaws.accessanalyzer#ThrottlingException":
2173
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2174
- case "ValidationException":
2175
- case "com.amazonaws.accessanalyzer#ValidationException":
2176
- throw await de_ValidationExceptionRes(parsedOutput, context);
2177
- default:
2178
- const parsedBody = parsedOutput.body;
2179
- return throwDefaultError({
2180
- output,
2181
- parsedBody,
2182
- errorCode
2183
- });
2184
- }
2185
- }, "de_ListPolicyGenerationsCommandError");
2186
1433
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2187
1434
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2188
- return de_ListTagsForResourceCommandError(output, context);
1435
+ return de_CommandError(output, context);
2189
1436
  }
2190
1437
  const contents = (0, import_smithy_client.map)({
2191
1438
  $metadata: deserializeMetadata(output)
@@ -2197,40 +1444,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
2197
1444
  Object.assign(contents, doc);
2198
1445
  return contents;
2199
1446
  }, "de_ListTagsForResourceCommand");
2200
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2201
- const parsedOutput = {
2202
- ...output,
2203
- body: await parseErrorBody(output.body, context)
2204
- };
2205
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2206
- switch (errorCode) {
2207
- case "AccessDeniedException":
2208
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
2209
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2210
- case "InternalServerException":
2211
- case "com.amazonaws.accessanalyzer#InternalServerException":
2212
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2213
- case "ResourceNotFoundException":
2214
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
2215
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2216
- case "ThrottlingException":
2217
- case "com.amazonaws.accessanalyzer#ThrottlingException":
2218
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2219
- case "ValidationException":
2220
- case "com.amazonaws.accessanalyzer#ValidationException":
2221
- throw await de_ValidationExceptionRes(parsedOutput, context);
2222
- default:
2223
- const parsedBody = parsedOutput.body;
2224
- return throwDefaultError({
2225
- output,
2226
- parsedBody,
2227
- errorCode
2228
- });
2229
- }
2230
- }, "de_ListTagsForResourceCommandError");
2231
1447
  var de_StartPolicyGenerationCommand = /* @__PURE__ */ __name(async (output, context) => {
2232
1448
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2233
- return de_StartPolicyGenerationCommandError(output, context);
1449
+ return de_CommandError(output, context);
2234
1450
  }
2235
1451
  const contents = (0, import_smithy_client.map)({
2236
1452
  $metadata: deserializeMetadata(output)
@@ -2242,43 +1458,9 @@ var de_StartPolicyGenerationCommand = /* @__PURE__ */ __name(async (output, cont
2242
1458
  Object.assign(contents, doc);
2243
1459
  return contents;
2244
1460
  }, "de_StartPolicyGenerationCommand");
2245
- var de_StartPolicyGenerationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2246
- const parsedOutput = {
2247
- ...output,
2248
- body: await parseErrorBody(output.body, context)
2249
- };
2250
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2251
- switch (errorCode) {
2252
- case "AccessDeniedException":
2253
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
2254
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2255
- case "ConflictException":
2256
- case "com.amazonaws.accessanalyzer#ConflictException":
2257
- throw await de_ConflictExceptionRes(parsedOutput, context);
2258
- case "InternalServerException":
2259
- case "com.amazonaws.accessanalyzer#InternalServerException":
2260
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2261
- case "ServiceQuotaExceededException":
2262
- case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
2263
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2264
- case "ThrottlingException":
2265
- case "com.amazonaws.accessanalyzer#ThrottlingException":
2266
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2267
- case "ValidationException":
2268
- case "com.amazonaws.accessanalyzer#ValidationException":
2269
- throw await de_ValidationExceptionRes(parsedOutput, context);
2270
- default:
2271
- const parsedBody = parsedOutput.body;
2272
- return throwDefaultError({
2273
- output,
2274
- parsedBody,
2275
- errorCode
2276
- });
2277
- }
2278
- }, "de_StartPolicyGenerationCommandError");
2279
1461
  var de_StartResourceScanCommand = /* @__PURE__ */ __name(async (output, context) => {
2280
1462
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2281
- return de_StartResourceScanCommandError(output, context);
1463
+ return de_CommandError(output, context);
2282
1464
  }
2283
1465
  const contents = (0, import_smithy_client.map)({
2284
1466
  $metadata: deserializeMetadata(output)
@@ -2286,40 +1468,9 @@ var de_StartResourceScanCommand = /* @__PURE__ */ __name(async (output, context)
2286
1468
  await (0, import_smithy_client.collectBody)(output.body, context);
2287
1469
  return contents;
2288
1470
  }, "de_StartResourceScanCommand");
2289
- var de_StartResourceScanCommandError = /* @__PURE__ */ __name(async (output, context) => {
2290
- const parsedOutput = {
2291
- ...output,
2292
- body: await parseErrorBody(output.body, context)
2293
- };
2294
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2295
- switch (errorCode) {
2296
- case "AccessDeniedException":
2297
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
2298
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2299
- case "InternalServerException":
2300
- case "com.amazonaws.accessanalyzer#InternalServerException":
2301
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2302
- case "ResourceNotFoundException":
2303
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
2304
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2305
- case "ThrottlingException":
2306
- case "com.amazonaws.accessanalyzer#ThrottlingException":
2307
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2308
- case "ValidationException":
2309
- case "com.amazonaws.accessanalyzer#ValidationException":
2310
- throw await de_ValidationExceptionRes(parsedOutput, context);
2311
- default:
2312
- const parsedBody = parsedOutput.body;
2313
- return throwDefaultError({
2314
- output,
2315
- parsedBody,
2316
- errorCode
2317
- });
2318
- }
2319
- }, "de_StartResourceScanCommandError");
2320
1471
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2321
1472
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2322
- return de_TagResourceCommandError(output, context);
1473
+ return de_CommandError(output, context);
2323
1474
  }
2324
1475
  const contents = (0, import_smithy_client.map)({
2325
1476
  $metadata: deserializeMetadata(output)
@@ -2327,40 +1478,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2327
1478
  await (0, import_smithy_client.collectBody)(output.body, context);
2328
1479
  return contents;
2329
1480
  }, "de_TagResourceCommand");
2330
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2331
- const parsedOutput = {
2332
- ...output,
2333
- body: await parseErrorBody(output.body, context)
2334
- };
2335
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2336
- switch (errorCode) {
2337
- case "AccessDeniedException":
2338
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
2339
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2340
- case "InternalServerException":
2341
- case "com.amazonaws.accessanalyzer#InternalServerException":
2342
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2343
- case "ResourceNotFoundException":
2344
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
2345
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2346
- case "ThrottlingException":
2347
- case "com.amazonaws.accessanalyzer#ThrottlingException":
2348
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2349
- case "ValidationException":
2350
- case "com.amazonaws.accessanalyzer#ValidationException":
2351
- throw await de_ValidationExceptionRes(parsedOutput, context);
2352
- default:
2353
- const parsedBody = parsedOutput.body;
2354
- return throwDefaultError({
2355
- output,
2356
- parsedBody,
2357
- errorCode
2358
- });
2359
- }
2360
- }, "de_TagResourceCommandError");
2361
1481
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2362
1482
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2363
- return de_UntagResourceCommandError(output, context);
1483
+ return de_CommandError(output, context);
2364
1484
  }
2365
1485
  const contents = (0, import_smithy_client.map)({
2366
1486
  $metadata: deserializeMetadata(output)
@@ -2368,40 +1488,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
2368
1488
  await (0, import_smithy_client.collectBody)(output.body, context);
2369
1489
  return contents;
2370
1490
  }, "de_UntagResourceCommand");
2371
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2372
- const parsedOutput = {
2373
- ...output,
2374
- body: await parseErrorBody(output.body, context)
2375
- };
2376
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2377
- switch (errorCode) {
2378
- case "AccessDeniedException":
2379
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
2380
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2381
- case "InternalServerException":
2382
- case "com.amazonaws.accessanalyzer#InternalServerException":
2383
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2384
- case "ResourceNotFoundException":
2385
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
2386
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2387
- case "ThrottlingException":
2388
- case "com.amazonaws.accessanalyzer#ThrottlingException":
2389
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2390
- case "ValidationException":
2391
- case "com.amazonaws.accessanalyzer#ValidationException":
2392
- throw await de_ValidationExceptionRes(parsedOutput, context);
2393
- default:
2394
- const parsedBody = parsedOutput.body;
2395
- return throwDefaultError({
2396
- output,
2397
- parsedBody,
2398
- errorCode
2399
- });
2400
- }
2401
- }, "de_UntagResourceCommandError");
2402
1491
  var de_UpdateArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
2403
1492
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2404
- return de_UpdateArchiveRuleCommandError(output, context);
1493
+ return de_CommandError(output, context);
2405
1494
  }
2406
1495
  const contents = (0, import_smithy_client.map)({
2407
1496
  $metadata: deserializeMetadata(output)
@@ -2409,40 +1498,9 @@ var de_UpdateArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context)
2409
1498
  await (0, import_smithy_client.collectBody)(output.body, context);
2410
1499
  return contents;
2411
1500
  }, "de_UpdateArchiveRuleCommand");
2412
- var de_UpdateArchiveRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
2413
- const parsedOutput = {
2414
- ...output,
2415
- body: await parseErrorBody(output.body, context)
2416
- };
2417
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2418
- switch (errorCode) {
2419
- case "AccessDeniedException":
2420
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
2421
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2422
- case "InternalServerException":
2423
- case "com.amazonaws.accessanalyzer#InternalServerException":
2424
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2425
- case "ResourceNotFoundException":
2426
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
2427
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2428
- case "ThrottlingException":
2429
- case "com.amazonaws.accessanalyzer#ThrottlingException":
2430
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2431
- case "ValidationException":
2432
- case "com.amazonaws.accessanalyzer#ValidationException":
2433
- throw await de_ValidationExceptionRes(parsedOutput, context);
2434
- default:
2435
- const parsedBody = parsedOutput.body;
2436
- return throwDefaultError({
2437
- output,
2438
- parsedBody,
2439
- errorCode
2440
- });
2441
- }
2442
- }, "de_UpdateArchiveRuleCommandError");
2443
1501
  var de_UpdateFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2444
1502
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2445
- return de_UpdateFindingsCommandError(output, context);
1503
+ return de_CommandError(output, context);
2446
1504
  }
2447
1505
  const contents = (0, import_smithy_client.map)({
2448
1506
  $metadata: deserializeMetadata(output)
@@ -2450,40 +1508,9 @@ var de_UpdateFindingsCommand = /* @__PURE__ */ __name(async (output, context) =>
2450
1508
  await (0, import_smithy_client.collectBody)(output.body, context);
2451
1509
  return contents;
2452
1510
  }, "de_UpdateFindingsCommand");
2453
- var de_UpdateFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2454
- const parsedOutput = {
2455
- ...output,
2456
- body: await parseErrorBody(output.body, context)
2457
- };
2458
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2459
- switch (errorCode) {
2460
- case "AccessDeniedException":
2461
- case "com.amazonaws.accessanalyzer#AccessDeniedException":
2462
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2463
- case "InternalServerException":
2464
- case "com.amazonaws.accessanalyzer#InternalServerException":
2465
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2466
- case "ResourceNotFoundException":
2467
- case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
2468
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2469
- case "ThrottlingException":
2470
- case "com.amazonaws.accessanalyzer#ThrottlingException":
2471
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2472
- case "ValidationException":
2473
- case "com.amazonaws.accessanalyzer#ValidationException":
2474
- throw await de_ValidationExceptionRes(parsedOutput, context);
2475
- default:
2476
- const parsedBody = parsedOutput.body;
2477
- return throwDefaultError({
2478
- output,
2479
- parsedBody,
2480
- errorCode
2481
- });
2482
- }
2483
- }, "de_UpdateFindingsCommandError");
2484
1511
  var de_ValidatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2485
1512
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2486
- return de_ValidatePolicyCommandError(output, context);
1513
+ return de_CommandError(output, context);
2487
1514
  }
2488
1515
  const contents = (0, import_smithy_client.map)({
2489
1516
  $metadata: deserializeMetadata(output)
@@ -2496,7 +1523,7 @@ var de_ValidatePolicyCommand = /* @__PURE__ */ __name(async (output, context) =>
2496
1523
  Object.assign(contents, doc);
2497
1524
  return contents;
2498
1525
  }, "de_ValidatePolicyCommand");
2499
- var de_ValidatePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1526
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2500
1527
  const parsedOutput = {
2501
1528
  ...output,
2502
1529
  body: await parseErrorBody(output.body, context)
@@ -2509,12 +1536,27 @@ var de_ValidatePolicyCommandError = /* @__PURE__ */ __name(async (output, contex
2509
1536
  case "InternalServerException":
2510
1537
  case "com.amazonaws.accessanalyzer#InternalServerException":
2511
1538
  throw await de_InternalServerExceptionRes(parsedOutput, context);
1539
+ case "ResourceNotFoundException":
1540
+ case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
1541
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2512
1542
  case "ThrottlingException":
2513
1543
  case "com.amazonaws.accessanalyzer#ThrottlingException":
2514
1544
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2515
1545
  case "ValidationException":
2516
1546
  case "com.amazonaws.accessanalyzer#ValidationException":
2517
1547
  throw await de_ValidationExceptionRes(parsedOutput, context);
1548
+ case "InvalidParameterException":
1549
+ case "com.amazonaws.accessanalyzer#InvalidParameterException":
1550
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1551
+ case "UnprocessableEntityException":
1552
+ case "com.amazonaws.accessanalyzer#UnprocessableEntityException":
1553
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1554
+ case "ConflictException":
1555
+ case "com.amazonaws.accessanalyzer#ConflictException":
1556
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1557
+ case "ServiceQuotaExceededException":
1558
+ case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
1559
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2518
1560
  default:
2519
1561
  const parsedBody = parsedOutput.body;
2520
1562
  return throwDefaultError({
@@ -2523,7 +1565,7 @@ var de_ValidatePolicyCommandError = /* @__PURE__ */ __name(async (output, contex
2523
1565
  errorCode
2524
1566
  });
2525
1567
  }
2526
- }, "de_ValidatePolicyCommandError");
1568
+ }, "de_CommandError");
2527
1569
  var throwDefaultError = (0, import_smithy_client.withBaseException)(AccessAnalyzerServiceException);
2528
1570
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2529
1571
  const contents = (0, import_smithy_client.map)({});