@aws-sdk/client-verifiedpermissions 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
@@ -1031,7 +1031,7 @@ var se_UpdatePolicyTemplateCommand = /* @__PURE__ */ __name(async (input, contex
1031
1031
  }, "se_UpdatePolicyTemplateCommand");
1032
1032
  var de_BatchIsAuthorizedCommand = /* @__PURE__ */ __name(async (output, context) => {
1033
1033
  if (output.statusCode >= 300) {
1034
- return de_BatchIsAuthorizedCommandError(output, context);
1034
+ return de_CommandError(output, context);
1035
1035
  }
1036
1036
  const data = await parseBody(output.body, context);
1037
1037
  let contents = {};
@@ -1042,40 +1042,9 @@ var de_BatchIsAuthorizedCommand = /* @__PURE__ */ __name(async (output, context)
1042
1042
  };
1043
1043
  return response;
1044
1044
  }, "de_BatchIsAuthorizedCommand");
1045
- var de_BatchIsAuthorizedCommandError = /* @__PURE__ */ __name(async (output, context) => {
1046
- const parsedOutput = {
1047
- ...output,
1048
- body: await parseErrorBody(output.body, context)
1049
- };
1050
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1051
- switch (errorCode) {
1052
- case "AccessDeniedException":
1053
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1054
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1055
- case "InternalServerException":
1056
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1057
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1058
- case "ResourceNotFoundException":
1059
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1060
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1061
- case "ThrottlingException":
1062
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1063
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1064
- case "ValidationException":
1065
- case "com.amazonaws.verifiedpermissions#ValidationException":
1066
- throw await de_ValidationExceptionRes(parsedOutput, context);
1067
- default:
1068
- const parsedBody = parsedOutput.body;
1069
- return throwDefaultError({
1070
- output,
1071
- parsedBody,
1072
- errorCode
1073
- });
1074
- }
1075
- }, "de_BatchIsAuthorizedCommandError");
1076
1045
  var de_CreateIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1077
1046
  if (output.statusCode >= 300) {
1078
- return de_CreateIdentitySourceCommandError(output, context);
1047
+ return de_CommandError(output, context);
1079
1048
  }
1080
1049
  const data = await parseBody(output.body, context);
1081
1050
  let contents = {};
@@ -1086,46 +1055,9 @@ var de_CreateIdentitySourceCommand = /* @__PURE__ */ __name(async (output, conte
1086
1055
  };
1087
1056
  return response;
1088
1057
  }, "de_CreateIdentitySourceCommand");
1089
- var de_CreateIdentitySourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1090
- const parsedOutput = {
1091
- ...output,
1092
- body: await parseErrorBody(output.body, context)
1093
- };
1094
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1095
- switch (errorCode) {
1096
- case "AccessDeniedException":
1097
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1098
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1099
- case "ConflictException":
1100
- case "com.amazonaws.verifiedpermissions#ConflictException":
1101
- throw await de_ConflictExceptionRes(parsedOutput, context);
1102
- case "InternalServerException":
1103
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1104
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1105
- case "ResourceNotFoundException":
1106
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1107
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1108
- case "ServiceQuotaExceededException":
1109
- case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
1110
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1111
- case "ThrottlingException":
1112
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1113
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1114
- case "ValidationException":
1115
- case "com.amazonaws.verifiedpermissions#ValidationException":
1116
- throw await de_ValidationExceptionRes(parsedOutput, context);
1117
- default:
1118
- const parsedBody = parsedOutput.body;
1119
- return throwDefaultError({
1120
- output,
1121
- parsedBody,
1122
- errorCode
1123
- });
1124
- }
1125
- }, "de_CreateIdentitySourceCommandError");
1126
1058
  var de_CreatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1127
1059
  if (output.statusCode >= 300) {
1128
- return de_CreatePolicyCommandError(output, context);
1060
+ return de_CommandError(output, context);
1129
1061
  }
1130
1062
  const data = await parseBody(output.body, context);
1131
1063
  let contents = {};
@@ -1136,46 +1068,9 @@ var de_CreatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1136
1068
  };
1137
1069
  return response;
1138
1070
  }, "de_CreatePolicyCommand");
1139
- var de_CreatePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1140
- const parsedOutput = {
1141
- ...output,
1142
- body: await parseErrorBody(output.body, context)
1143
- };
1144
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1145
- switch (errorCode) {
1146
- case "AccessDeniedException":
1147
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1148
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1149
- case "ConflictException":
1150
- case "com.amazonaws.verifiedpermissions#ConflictException":
1151
- throw await de_ConflictExceptionRes(parsedOutput, context);
1152
- case "InternalServerException":
1153
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1154
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1155
- case "ResourceNotFoundException":
1156
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1157
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1158
- case "ServiceQuotaExceededException":
1159
- case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
1160
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1161
- case "ThrottlingException":
1162
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1163
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1164
- case "ValidationException":
1165
- case "com.amazonaws.verifiedpermissions#ValidationException":
1166
- throw await de_ValidationExceptionRes(parsedOutput, context);
1167
- default:
1168
- const parsedBody = parsedOutput.body;
1169
- return throwDefaultError({
1170
- output,
1171
- parsedBody,
1172
- errorCode
1173
- });
1174
- }
1175
- }, "de_CreatePolicyCommandError");
1176
1071
  var de_CreatePolicyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
1177
1072
  if (output.statusCode >= 300) {
1178
- return de_CreatePolicyStoreCommandError(output, context);
1073
+ return de_CommandError(output, context);
1179
1074
  }
1180
1075
  const data = await parseBody(output.body, context);
1181
1076
  let contents = {};
@@ -1186,43 +1081,9 @@ var de_CreatePolicyStoreCommand = /* @__PURE__ */ __name(async (output, context)
1186
1081
  };
1187
1082
  return response;
1188
1083
  }, "de_CreatePolicyStoreCommand");
1189
- var de_CreatePolicyStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
1190
- const parsedOutput = {
1191
- ...output,
1192
- body: await parseErrorBody(output.body, context)
1193
- };
1194
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1195
- switch (errorCode) {
1196
- case "AccessDeniedException":
1197
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1198
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1199
- case "ConflictException":
1200
- case "com.amazonaws.verifiedpermissions#ConflictException":
1201
- throw await de_ConflictExceptionRes(parsedOutput, context);
1202
- case "InternalServerException":
1203
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1204
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1205
- case "ServiceQuotaExceededException":
1206
- case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
1207
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1208
- case "ThrottlingException":
1209
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1210
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1211
- case "ValidationException":
1212
- case "com.amazonaws.verifiedpermissions#ValidationException":
1213
- throw await de_ValidationExceptionRes(parsedOutput, context);
1214
- default:
1215
- const parsedBody = parsedOutput.body;
1216
- return throwDefaultError({
1217
- output,
1218
- parsedBody,
1219
- errorCode
1220
- });
1221
- }
1222
- }, "de_CreatePolicyStoreCommandError");
1223
1084
  var de_CreatePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1224
1085
  if (output.statusCode >= 300) {
1225
- return de_CreatePolicyTemplateCommandError(output, context);
1086
+ return de_CommandError(output, context);
1226
1087
  }
1227
1088
  const data = await parseBody(output.body, context);
1228
1089
  let contents = {};
@@ -1233,46 +1094,9 @@ var de_CreatePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, conte
1233
1094
  };
1234
1095
  return response;
1235
1096
  }, "de_CreatePolicyTemplateCommand");
1236
- var de_CreatePolicyTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1237
- const parsedOutput = {
1238
- ...output,
1239
- body: await parseErrorBody(output.body, context)
1240
- };
1241
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1242
- switch (errorCode) {
1243
- case "AccessDeniedException":
1244
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1245
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1246
- case "ConflictException":
1247
- case "com.amazonaws.verifiedpermissions#ConflictException":
1248
- throw await de_ConflictExceptionRes(parsedOutput, context);
1249
- case "InternalServerException":
1250
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1251
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1252
- case "ResourceNotFoundException":
1253
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1254
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1255
- case "ServiceQuotaExceededException":
1256
- case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
1257
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1258
- case "ThrottlingException":
1259
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1260
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1261
- case "ValidationException":
1262
- case "com.amazonaws.verifiedpermissions#ValidationException":
1263
- throw await de_ValidationExceptionRes(parsedOutput, context);
1264
- default:
1265
- const parsedBody = parsedOutput.body;
1266
- return throwDefaultError({
1267
- output,
1268
- parsedBody,
1269
- errorCode
1270
- });
1271
- }
1272
- }, "de_CreatePolicyTemplateCommandError");
1273
1097
  var de_DeleteIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1274
1098
  if (output.statusCode >= 300) {
1275
- return de_DeleteIdentitySourceCommandError(output, context);
1099
+ return de_CommandError(output, context);
1276
1100
  }
1277
1101
  const data = await parseBody(output.body, context);
1278
1102
  let contents = {};
@@ -1283,43 +1107,9 @@ var de_DeleteIdentitySourceCommand = /* @__PURE__ */ __name(async (output, conte
1283
1107
  };
1284
1108
  return response;
1285
1109
  }, "de_DeleteIdentitySourceCommand");
1286
- var de_DeleteIdentitySourceCommandError = /* @__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.verifiedpermissions#AccessDeniedException":
1295
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1296
- case "ConflictException":
1297
- case "com.amazonaws.verifiedpermissions#ConflictException":
1298
- throw await de_ConflictExceptionRes(parsedOutput, context);
1299
- case "InternalServerException":
1300
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1301
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1302
- case "ResourceNotFoundException":
1303
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1304
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1305
- case "ThrottlingException":
1306
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1307
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1308
- case "ValidationException":
1309
- case "com.amazonaws.verifiedpermissions#ValidationException":
1310
- throw await de_ValidationExceptionRes(parsedOutput, context);
1311
- default:
1312
- const parsedBody = parsedOutput.body;
1313
- return throwDefaultError({
1314
- output,
1315
- parsedBody,
1316
- errorCode
1317
- });
1318
- }
1319
- }, "de_DeleteIdentitySourceCommandError");
1320
1110
  var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1321
1111
  if (output.statusCode >= 300) {
1322
- return de_DeletePolicyCommandError(output, context);
1112
+ return de_CommandError(output, context);
1323
1113
  }
1324
1114
  const data = await parseBody(output.body, context);
1325
1115
  let contents = {};
@@ -1330,43 +1120,9 @@ var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1330
1120
  };
1331
1121
  return response;
1332
1122
  }, "de_DeletePolicyCommand");
1333
- var de_DeletePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1334
- const parsedOutput = {
1335
- ...output,
1336
- body: await parseErrorBody(output.body, context)
1337
- };
1338
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1339
- switch (errorCode) {
1340
- case "AccessDeniedException":
1341
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1342
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1343
- case "ConflictException":
1344
- case "com.amazonaws.verifiedpermissions#ConflictException":
1345
- throw await de_ConflictExceptionRes(parsedOutput, context);
1346
- case "InternalServerException":
1347
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1348
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1349
- case "ResourceNotFoundException":
1350
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1351
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1352
- case "ThrottlingException":
1353
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1354
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1355
- case "ValidationException":
1356
- case "com.amazonaws.verifiedpermissions#ValidationException":
1357
- throw await de_ValidationExceptionRes(parsedOutput, context);
1358
- default:
1359
- const parsedBody = parsedOutput.body;
1360
- return throwDefaultError({
1361
- output,
1362
- parsedBody,
1363
- errorCode
1364
- });
1365
- }
1366
- }, "de_DeletePolicyCommandError");
1367
1123
  var de_DeletePolicyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
1368
1124
  if (output.statusCode >= 300) {
1369
- return de_DeletePolicyStoreCommandError(output, context);
1125
+ return de_CommandError(output, context);
1370
1126
  }
1371
1127
  const data = await parseBody(output.body, context);
1372
1128
  let contents = {};
@@ -1377,37 +1133,9 @@ var de_DeletePolicyStoreCommand = /* @__PURE__ */ __name(async (output, context)
1377
1133
  };
1378
1134
  return response;
1379
1135
  }, "de_DeletePolicyStoreCommand");
1380
- var de_DeletePolicyStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
1381
- const parsedOutput = {
1382
- ...output,
1383
- body: await parseErrorBody(output.body, context)
1384
- };
1385
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1386
- switch (errorCode) {
1387
- case "AccessDeniedException":
1388
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1389
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1390
- case "InternalServerException":
1391
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1392
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1393
- case "ThrottlingException":
1394
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1395
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1396
- case "ValidationException":
1397
- case "com.amazonaws.verifiedpermissions#ValidationException":
1398
- throw await de_ValidationExceptionRes(parsedOutput, context);
1399
- default:
1400
- const parsedBody = parsedOutput.body;
1401
- return throwDefaultError({
1402
- output,
1403
- parsedBody,
1404
- errorCode
1405
- });
1406
- }
1407
- }, "de_DeletePolicyStoreCommandError");
1408
1136
  var de_DeletePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1409
1137
  if (output.statusCode >= 300) {
1410
- return de_DeletePolicyTemplateCommandError(output, context);
1138
+ return de_CommandError(output, context);
1411
1139
  }
1412
1140
  const data = await parseBody(output.body, context);
1413
1141
  let contents = {};
@@ -1418,43 +1146,9 @@ var de_DeletePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, conte
1418
1146
  };
1419
1147
  return response;
1420
1148
  }, "de_DeletePolicyTemplateCommand");
1421
- var de_DeletePolicyTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1422
- const parsedOutput = {
1423
- ...output,
1424
- body: await parseErrorBody(output.body, context)
1425
- };
1426
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1427
- switch (errorCode) {
1428
- case "AccessDeniedException":
1429
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1430
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1431
- case "ConflictException":
1432
- case "com.amazonaws.verifiedpermissions#ConflictException":
1433
- throw await de_ConflictExceptionRes(parsedOutput, context);
1434
- case "InternalServerException":
1435
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1436
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1437
- case "ResourceNotFoundException":
1438
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1439
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1440
- case "ThrottlingException":
1441
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1442
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1443
- case "ValidationException":
1444
- case "com.amazonaws.verifiedpermissions#ValidationException":
1445
- throw await de_ValidationExceptionRes(parsedOutput, context);
1446
- default:
1447
- const parsedBody = parsedOutput.body;
1448
- return throwDefaultError({
1449
- output,
1450
- parsedBody,
1451
- errorCode
1452
- });
1453
- }
1454
- }, "de_DeletePolicyTemplateCommandError");
1455
1149
  var de_GetIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1456
1150
  if (output.statusCode >= 300) {
1457
- return de_GetIdentitySourceCommandError(output, context);
1151
+ return de_CommandError(output, context);
1458
1152
  }
1459
1153
  const data = await parseBody(output.body, context);
1460
1154
  let contents = {};
@@ -1465,40 +1159,9 @@ var de_GetIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context)
1465
1159
  };
1466
1160
  return response;
1467
1161
  }, "de_GetIdentitySourceCommand");
1468
- var de_GetIdentitySourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1469
- const parsedOutput = {
1470
- ...output,
1471
- body: await parseErrorBody(output.body, context)
1472
- };
1473
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1474
- switch (errorCode) {
1475
- case "AccessDeniedException":
1476
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1477
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1478
- case "InternalServerException":
1479
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1480
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1481
- case "ResourceNotFoundException":
1482
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1483
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1484
- case "ThrottlingException":
1485
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1486
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1487
- case "ValidationException":
1488
- case "com.amazonaws.verifiedpermissions#ValidationException":
1489
- throw await de_ValidationExceptionRes(parsedOutput, context);
1490
- default:
1491
- const parsedBody = parsedOutput.body;
1492
- return throwDefaultError({
1493
- output,
1494
- parsedBody,
1495
- errorCode
1496
- });
1497
- }
1498
- }, "de_GetIdentitySourceCommandError");
1499
1162
  var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1500
1163
  if (output.statusCode >= 300) {
1501
- return de_GetPolicyCommandError(output, context);
1164
+ return de_CommandError(output, context);
1502
1165
  }
1503
1166
  const data = await parseBody(output.body, context);
1504
1167
  let contents = {};
@@ -1509,40 +1172,9 @@ var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1509
1172
  };
1510
1173
  return response;
1511
1174
  }, "de_GetPolicyCommand");
1512
- var de_GetPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1513
- const parsedOutput = {
1514
- ...output,
1515
- body: await parseErrorBody(output.body, context)
1516
- };
1517
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1518
- switch (errorCode) {
1519
- case "AccessDeniedException":
1520
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1521
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1522
- case "InternalServerException":
1523
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1524
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1525
- case "ResourceNotFoundException":
1526
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1527
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1528
- case "ThrottlingException":
1529
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1530
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1531
- case "ValidationException":
1532
- case "com.amazonaws.verifiedpermissions#ValidationException":
1533
- throw await de_ValidationExceptionRes(parsedOutput, context);
1534
- default:
1535
- const parsedBody = parsedOutput.body;
1536
- return throwDefaultError({
1537
- output,
1538
- parsedBody,
1539
- errorCode
1540
- });
1541
- }
1542
- }, "de_GetPolicyCommandError");
1543
1175
  var de_GetPolicyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
1544
1176
  if (output.statusCode >= 300) {
1545
- return de_GetPolicyStoreCommandError(output, context);
1177
+ return de_CommandError(output, context);
1546
1178
  }
1547
1179
  const data = await parseBody(output.body, context);
1548
1180
  let contents = {};
@@ -1553,40 +1185,9 @@ var de_GetPolicyStoreCommand = /* @__PURE__ */ __name(async (output, context) =>
1553
1185
  };
1554
1186
  return response;
1555
1187
  }, "de_GetPolicyStoreCommand");
1556
- var de_GetPolicyStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
1557
- const parsedOutput = {
1558
- ...output,
1559
- body: await parseErrorBody(output.body, context)
1560
- };
1561
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1562
- switch (errorCode) {
1563
- case "AccessDeniedException":
1564
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1565
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1566
- case "InternalServerException":
1567
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1568
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1569
- case "ResourceNotFoundException":
1570
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1571
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1572
- case "ThrottlingException":
1573
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1574
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1575
- case "ValidationException":
1576
- case "com.amazonaws.verifiedpermissions#ValidationException":
1577
- throw await de_ValidationExceptionRes(parsedOutput, context);
1578
- default:
1579
- const parsedBody = parsedOutput.body;
1580
- return throwDefaultError({
1581
- output,
1582
- parsedBody,
1583
- errorCode
1584
- });
1585
- }
1586
- }, "de_GetPolicyStoreCommandError");
1587
1188
  var de_GetPolicyTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1588
1189
  if (output.statusCode >= 300) {
1589
- return de_GetPolicyTemplateCommandError(output, context);
1190
+ return de_CommandError(output, context);
1590
1191
  }
1591
1192
  const data = await parseBody(output.body, context);
1592
1193
  let contents = {};
@@ -1597,40 +1198,9 @@ var de_GetPolicyTemplateCommand = /* @__PURE__ */ __name(async (output, context)
1597
1198
  };
1598
1199
  return response;
1599
1200
  }, "de_GetPolicyTemplateCommand");
1600
- var de_GetPolicyTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1601
- const parsedOutput = {
1602
- ...output,
1603
- body: await parseErrorBody(output.body, context)
1604
- };
1605
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1606
- switch (errorCode) {
1607
- case "AccessDeniedException":
1608
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1609
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1610
- case "InternalServerException":
1611
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1612
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1613
- case "ResourceNotFoundException":
1614
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1615
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1616
- case "ThrottlingException":
1617
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1618
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1619
- case "ValidationException":
1620
- case "com.amazonaws.verifiedpermissions#ValidationException":
1621
- throw await de_ValidationExceptionRes(parsedOutput, context);
1622
- default:
1623
- const parsedBody = parsedOutput.body;
1624
- return throwDefaultError({
1625
- output,
1626
- parsedBody,
1627
- errorCode
1628
- });
1629
- }
1630
- }, "de_GetPolicyTemplateCommandError");
1631
1201
  var de_GetSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1632
1202
  if (output.statusCode >= 300) {
1633
- return de_GetSchemaCommandError(output, context);
1203
+ return de_CommandError(output, context);
1634
1204
  }
1635
1205
  const data = await parseBody(output.body, context);
1636
1206
  let contents = {};
@@ -1641,40 +1211,9 @@ var de_GetSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1641
1211
  };
1642
1212
  return response;
1643
1213
  }, "de_GetSchemaCommand");
1644
- var de_GetSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1645
- const parsedOutput = {
1646
- ...output,
1647
- body: await parseErrorBody(output.body, context)
1648
- };
1649
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1650
- switch (errorCode) {
1651
- case "AccessDeniedException":
1652
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1653
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1654
- case "InternalServerException":
1655
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1656
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1657
- case "ResourceNotFoundException":
1658
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1659
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1660
- case "ThrottlingException":
1661
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1662
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1663
- case "ValidationException":
1664
- case "com.amazonaws.verifiedpermissions#ValidationException":
1665
- throw await de_ValidationExceptionRes(parsedOutput, context);
1666
- default:
1667
- const parsedBody = parsedOutput.body;
1668
- return throwDefaultError({
1669
- output,
1670
- parsedBody,
1671
- errorCode
1672
- });
1673
- }
1674
- }, "de_GetSchemaCommandError");
1675
1214
  var de_IsAuthorizedCommand = /* @__PURE__ */ __name(async (output, context) => {
1676
1215
  if (output.statusCode >= 300) {
1677
- return de_IsAuthorizedCommandError(output, context);
1216
+ return de_CommandError(output, context);
1678
1217
  }
1679
1218
  const data = await parseBody(output.body, context);
1680
1219
  let contents = {};
@@ -1685,40 +1224,9 @@ var de_IsAuthorizedCommand = /* @__PURE__ */ __name(async (output, context) => {
1685
1224
  };
1686
1225
  return response;
1687
1226
  }, "de_IsAuthorizedCommand");
1688
- var de_IsAuthorizedCommandError = /* @__PURE__ */ __name(async (output, context) => {
1689
- const parsedOutput = {
1690
- ...output,
1691
- body: await parseErrorBody(output.body, context)
1692
- };
1693
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1694
- switch (errorCode) {
1695
- case "AccessDeniedException":
1696
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1697
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1698
- case "InternalServerException":
1699
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1700
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1701
- case "ResourceNotFoundException":
1702
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1703
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1704
- case "ThrottlingException":
1705
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1706
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1707
- case "ValidationException":
1708
- case "com.amazonaws.verifiedpermissions#ValidationException":
1709
- throw await de_ValidationExceptionRes(parsedOutput, context);
1710
- default:
1711
- const parsedBody = parsedOutput.body;
1712
- return throwDefaultError({
1713
- output,
1714
- parsedBody,
1715
- errorCode
1716
- });
1717
- }
1718
- }, "de_IsAuthorizedCommandError");
1719
1227
  var de_IsAuthorizedWithTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1720
1228
  if (output.statusCode >= 300) {
1721
- return de_IsAuthorizedWithTokenCommandError(output, context);
1229
+ return de_CommandError(output, context);
1722
1230
  }
1723
1231
  const data = await parseBody(output.body, context);
1724
1232
  let contents = {};
@@ -1729,40 +1237,9 @@ var de_IsAuthorizedWithTokenCommand = /* @__PURE__ */ __name(async (output, cont
1729
1237
  };
1730
1238
  return response;
1731
1239
  }, "de_IsAuthorizedWithTokenCommand");
1732
- var de_IsAuthorizedWithTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
1733
- const parsedOutput = {
1734
- ...output,
1735
- body: await parseErrorBody(output.body, context)
1736
- };
1737
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1738
- switch (errorCode) {
1739
- case "AccessDeniedException":
1740
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1741
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1742
- case "InternalServerException":
1743
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1744
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1745
- case "ResourceNotFoundException":
1746
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1747
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1748
- case "ThrottlingException":
1749
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1750
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1751
- case "ValidationException":
1752
- case "com.amazonaws.verifiedpermissions#ValidationException":
1753
- throw await de_ValidationExceptionRes(parsedOutput, context);
1754
- default:
1755
- const parsedBody = parsedOutput.body;
1756
- return throwDefaultError({
1757
- output,
1758
- parsedBody,
1759
- errorCode
1760
- });
1761
- }
1762
- }, "de_IsAuthorizedWithTokenCommandError");
1763
1240
  var de_ListIdentitySourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
1764
1241
  if (output.statusCode >= 300) {
1765
- return de_ListIdentitySourcesCommandError(output, context);
1242
+ return de_CommandError(output, context);
1766
1243
  }
1767
1244
  const data = await parseBody(output.body, context);
1768
1245
  let contents = {};
@@ -1773,40 +1250,9 @@ var de_ListIdentitySourcesCommand = /* @__PURE__ */ __name(async (output, contex
1773
1250
  };
1774
1251
  return response;
1775
1252
  }, "de_ListIdentitySourcesCommand");
1776
- var de_ListIdentitySourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1777
- const parsedOutput = {
1778
- ...output,
1779
- body: await parseErrorBody(output.body, context)
1780
- };
1781
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1782
- switch (errorCode) {
1783
- case "AccessDeniedException":
1784
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1785
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1786
- case "InternalServerException":
1787
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1788
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1789
- case "ResourceNotFoundException":
1790
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1791
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1792
- case "ThrottlingException":
1793
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1794
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1795
- case "ValidationException":
1796
- case "com.amazonaws.verifiedpermissions#ValidationException":
1797
- throw await de_ValidationExceptionRes(parsedOutput, context);
1798
- default:
1799
- const parsedBody = parsedOutput.body;
1800
- return throwDefaultError({
1801
- output,
1802
- parsedBody,
1803
- errorCode
1804
- });
1805
- }
1806
- }, "de_ListIdentitySourcesCommandError");
1807
1253
  var de_ListPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
1808
1254
  if (output.statusCode >= 300) {
1809
- return de_ListPoliciesCommandError(output, context);
1255
+ return de_CommandError(output, context);
1810
1256
  }
1811
1257
  const data = await parseBody(output.body, context);
1812
1258
  let contents = {};
@@ -1817,40 +1263,9 @@ var de_ListPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
1817
1263
  };
1818
1264
  return response;
1819
1265
  }, "de_ListPoliciesCommand");
1820
- var de_ListPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1821
- const parsedOutput = {
1822
- ...output,
1823
- body: await parseErrorBody(output.body, context)
1824
- };
1825
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1826
- switch (errorCode) {
1827
- case "AccessDeniedException":
1828
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1829
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1830
- case "InternalServerException":
1831
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1832
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1833
- case "ResourceNotFoundException":
1834
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1835
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1836
- case "ThrottlingException":
1837
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1838
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1839
- case "ValidationException":
1840
- case "com.amazonaws.verifiedpermissions#ValidationException":
1841
- throw await de_ValidationExceptionRes(parsedOutput, context);
1842
- default:
1843
- const parsedBody = parsedOutput.body;
1844
- return throwDefaultError({
1845
- output,
1846
- parsedBody,
1847
- errorCode
1848
- });
1849
- }
1850
- }, "de_ListPoliciesCommandError");
1851
1266
  var de_ListPolicyStoresCommand = /* @__PURE__ */ __name(async (output, context) => {
1852
1267
  if (output.statusCode >= 300) {
1853
- return de_ListPolicyStoresCommandError(output, context);
1268
+ return de_CommandError(output, context);
1854
1269
  }
1855
1270
  const data = await parseBody(output.body, context);
1856
1271
  let contents = {};
@@ -1861,37 +1276,9 @@ var de_ListPolicyStoresCommand = /* @__PURE__ */ __name(async (output, context)
1861
1276
  };
1862
1277
  return response;
1863
1278
  }, "de_ListPolicyStoresCommand");
1864
- var de_ListPolicyStoresCommandError = /* @__PURE__ */ __name(async (output, context) => {
1865
- const parsedOutput = {
1866
- ...output,
1867
- body: await parseErrorBody(output.body, context)
1868
- };
1869
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1870
- switch (errorCode) {
1871
- case "AccessDeniedException":
1872
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1873
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1874
- case "InternalServerException":
1875
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1876
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1877
- case "ThrottlingException":
1878
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1879
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1880
- case "ValidationException":
1881
- case "com.amazonaws.verifiedpermissions#ValidationException":
1882
- throw await de_ValidationExceptionRes(parsedOutput, context);
1883
- default:
1884
- const parsedBody = parsedOutput.body;
1885
- return throwDefaultError({
1886
- output,
1887
- parsedBody,
1888
- errorCode
1889
- });
1890
- }
1891
- }, "de_ListPolicyStoresCommandError");
1892
1279
  var de_ListPolicyTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1893
1280
  if (output.statusCode >= 300) {
1894
- return de_ListPolicyTemplatesCommandError(output, context);
1281
+ return de_CommandError(output, context);
1895
1282
  }
1896
1283
  const data = await parseBody(output.body, context);
1897
1284
  let contents = {};
@@ -1902,40 +1289,9 @@ var de_ListPolicyTemplatesCommand = /* @__PURE__ */ __name(async (output, contex
1902
1289
  };
1903
1290
  return response;
1904
1291
  }, "de_ListPolicyTemplatesCommand");
1905
- var de_ListPolicyTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1906
- const parsedOutput = {
1907
- ...output,
1908
- body: await parseErrorBody(output.body, context)
1909
- };
1910
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1911
- switch (errorCode) {
1912
- case "AccessDeniedException":
1913
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1914
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1915
- case "InternalServerException":
1916
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1917
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1918
- case "ResourceNotFoundException":
1919
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1920
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1921
- case "ThrottlingException":
1922
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1923
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1924
- case "ValidationException":
1925
- case "com.amazonaws.verifiedpermissions#ValidationException":
1926
- throw await de_ValidationExceptionRes(parsedOutput, context);
1927
- default:
1928
- const parsedBody = parsedOutput.body;
1929
- return throwDefaultError({
1930
- output,
1931
- parsedBody,
1932
- errorCode
1933
- });
1934
- }
1935
- }, "de_ListPolicyTemplatesCommandError");
1936
1292
  var de_PutSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1937
1293
  if (output.statusCode >= 300) {
1938
- return de_PutSchemaCommandError(output, context);
1294
+ return de_CommandError(output, context);
1939
1295
  }
1940
1296
  const data = await parseBody(output.body, context);
1941
1297
  let contents = {};
@@ -1946,46 +1302,9 @@ var de_PutSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1946
1302
  };
1947
1303
  return response;
1948
1304
  }, "de_PutSchemaCommand");
1949
- var de_PutSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1950
- const parsedOutput = {
1951
- ...output,
1952
- body: await parseErrorBody(output.body, context)
1953
- };
1954
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1955
- switch (errorCode) {
1956
- case "AccessDeniedException":
1957
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1958
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1959
- case "ConflictException":
1960
- case "com.amazonaws.verifiedpermissions#ConflictException":
1961
- throw await de_ConflictExceptionRes(parsedOutput, context);
1962
- case "InternalServerException":
1963
- case "com.amazonaws.verifiedpermissions#InternalServerException":
1964
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1965
- case "ResourceNotFoundException":
1966
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1967
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1968
- case "ServiceQuotaExceededException":
1969
- case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
1970
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1971
- case "ThrottlingException":
1972
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
1973
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1974
- case "ValidationException":
1975
- case "com.amazonaws.verifiedpermissions#ValidationException":
1976
- throw await de_ValidationExceptionRes(parsedOutput, context);
1977
- default:
1978
- const parsedBody = parsedOutput.body;
1979
- return throwDefaultError({
1980
- output,
1981
- parsedBody,
1982
- errorCode
1983
- });
1984
- }
1985
- }, "de_PutSchemaCommandError");
1986
1305
  var de_UpdateIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1987
1306
  if (output.statusCode >= 300) {
1988
- return de_UpdateIdentitySourceCommandError(output, context);
1307
+ return de_CommandError(output, context);
1989
1308
  }
1990
1309
  const data = await parseBody(output.body, context);
1991
1310
  let contents = {};
@@ -1996,43 +1315,9 @@ var de_UpdateIdentitySourceCommand = /* @__PURE__ */ __name(async (output, conte
1996
1315
  };
1997
1316
  return response;
1998
1317
  }, "de_UpdateIdentitySourceCommand");
1999
- var de_UpdateIdentitySourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2000
- const parsedOutput = {
2001
- ...output,
2002
- body: await parseErrorBody(output.body, context)
2003
- };
2004
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2005
- switch (errorCode) {
2006
- case "AccessDeniedException":
2007
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
2008
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2009
- case "ConflictException":
2010
- case "com.amazonaws.verifiedpermissions#ConflictException":
2011
- throw await de_ConflictExceptionRes(parsedOutput, context);
2012
- case "InternalServerException":
2013
- case "com.amazonaws.verifiedpermissions#InternalServerException":
2014
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2015
- case "ResourceNotFoundException":
2016
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
2017
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2018
- case "ThrottlingException":
2019
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
2020
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2021
- case "ValidationException":
2022
- case "com.amazonaws.verifiedpermissions#ValidationException":
2023
- throw await de_ValidationExceptionRes(parsedOutput, context);
2024
- default:
2025
- const parsedBody = parsedOutput.body;
2026
- return throwDefaultError({
2027
- output,
2028
- parsedBody,
2029
- errorCode
2030
- });
2031
- }
2032
- }, "de_UpdateIdentitySourceCommandError");
2033
1318
  var de_UpdatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2034
1319
  if (output.statusCode >= 300) {
2035
- return de_UpdatePolicyCommandError(output, context);
1320
+ return de_CommandError(output, context);
2036
1321
  }
2037
1322
  const data = await parseBody(output.body, context);
2038
1323
  let contents = {};
@@ -2043,46 +1328,9 @@ var de_UpdatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2043
1328
  };
2044
1329
  return response;
2045
1330
  }, "de_UpdatePolicyCommand");
2046
- var de_UpdatePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2047
- const parsedOutput = {
2048
- ...output,
2049
- body: await parseErrorBody(output.body, context)
2050
- };
2051
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2052
- switch (errorCode) {
2053
- case "AccessDeniedException":
2054
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
2055
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2056
- case "ConflictException":
2057
- case "com.amazonaws.verifiedpermissions#ConflictException":
2058
- throw await de_ConflictExceptionRes(parsedOutput, context);
2059
- case "InternalServerException":
2060
- case "com.amazonaws.verifiedpermissions#InternalServerException":
2061
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2062
- case "ResourceNotFoundException":
2063
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
2064
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2065
- case "ServiceQuotaExceededException":
2066
- case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
2067
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2068
- case "ThrottlingException":
2069
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
2070
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2071
- case "ValidationException":
2072
- case "com.amazonaws.verifiedpermissions#ValidationException":
2073
- throw await de_ValidationExceptionRes(parsedOutput, context);
2074
- default:
2075
- const parsedBody = parsedOutput.body;
2076
- return throwDefaultError({
2077
- output,
2078
- parsedBody,
2079
- errorCode
2080
- });
2081
- }
2082
- }, "de_UpdatePolicyCommandError");
2083
1331
  var de_UpdatePolicyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
2084
1332
  if (output.statusCode >= 300) {
2085
- return de_UpdatePolicyStoreCommandError(output, context);
1333
+ return de_CommandError(output, context);
2086
1334
  }
2087
1335
  const data = await parseBody(output.body, context);
2088
1336
  let contents = {};
@@ -2093,43 +1341,9 @@ var de_UpdatePolicyStoreCommand = /* @__PURE__ */ __name(async (output, context)
2093
1341
  };
2094
1342
  return response;
2095
1343
  }, "de_UpdatePolicyStoreCommand");
2096
- var de_UpdatePolicyStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
2097
- const parsedOutput = {
2098
- ...output,
2099
- body: await parseErrorBody(output.body, context)
2100
- };
2101
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2102
- switch (errorCode) {
2103
- case "AccessDeniedException":
2104
- case "com.amazonaws.verifiedpermissions#AccessDeniedException":
2105
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2106
- case "ConflictException":
2107
- case "com.amazonaws.verifiedpermissions#ConflictException":
2108
- throw await de_ConflictExceptionRes(parsedOutput, context);
2109
- case "InternalServerException":
2110
- case "com.amazonaws.verifiedpermissions#InternalServerException":
2111
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2112
- case "ResourceNotFoundException":
2113
- case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
2114
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2115
- case "ThrottlingException":
2116
- case "com.amazonaws.verifiedpermissions#ThrottlingException":
2117
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2118
- case "ValidationException":
2119
- case "com.amazonaws.verifiedpermissions#ValidationException":
2120
- throw await de_ValidationExceptionRes(parsedOutput, context);
2121
- default:
2122
- const parsedBody = parsedOutput.body;
2123
- return throwDefaultError({
2124
- output,
2125
- parsedBody,
2126
- errorCode
2127
- });
2128
- }
2129
- }, "de_UpdatePolicyStoreCommandError");
2130
1344
  var de_UpdatePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
2131
1345
  if (output.statusCode >= 300) {
2132
- return de_UpdatePolicyTemplateCommandError(output, context);
1346
+ return de_CommandError(output, context);
2133
1347
  }
2134
1348
  const data = await parseBody(output.body, context);
2135
1349
  let contents = {};
@@ -2140,7 +1354,7 @@ var de_UpdatePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, conte
2140
1354
  };
2141
1355
  return response;
2142
1356
  }, "de_UpdatePolicyTemplateCommand");
2143
- var de_UpdatePolicyTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1357
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2144
1358
  const parsedOutput = {
2145
1359
  ...output,
2146
1360
  body: await parseErrorBody(output.body, context)
@@ -2150,9 +1364,6 @@ var de_UpdatePolicyTemplateCommandError = /* @__PURE__ */ __name(async (output,
2150
1364
  case "AccessDeniedException":
2151
1365
  case "com.amazonaws.verifiedpermissions#AccessDeniedException":
2152
1366
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2153
- case "ConflictException":
2154
- case "com.amazonaws.verifiedpermissions#ConflictException":
2155
- throw await de_ConflictExceptionRes(parsedOutput, context);
2156
1367
  case "InternalServerException":
2157
1368
  case "com.amazonaws.verifiedpermissions#InternalServerException":
2158
1369
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -2165,6 +1376,12 @@ var de_UpdatePolicyTemplateCommandError = /* @__PURE__ */ __name(async (output,
2165
1376
  case "ValidationException":
2166
1377
  case "com.amazonaws.verifiedpermissions#ValidationException":
2167
1378
  throw await de_ValidationExceptionRes(parsedOutput, context);
1379
+ case "ConflictException":
1380
+ case "com.amazonaws.verifiedpermissions#ConflictException":
1381
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1382
+ case "ServiceQuotaExceededException":
1383
+ case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
1384
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2168
1385
  default:
2169
1386
  const parsedBody = parsedOutput.body;
2170
1387
  return throwDefaultError({
@@ -2173,7 +1390,7 @@ var de_UpdatePolicyTemplateCommandError = /* @__PURE__ */ __name(async (output,
2173
1390
  errorCode
2174
1391
  });
2175
1392
  }
2176
- }, "de_UpdatePolicyTemplateCommandError");
1393
+ }, "de_CommandError");
2177
1394
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2178
1395
  const body = parsedOutput.body;
2179
1396
  const deserialized = (0, import_smithy_client._json)(body);