@aws-sdk/client-kendra 3.504.0 → 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 +157 -2310
- package/dist-es/protocols/Aws_json1_1.js +339 -2492
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1339,7 +1339,7 @@ var se_UpdateThesaurusCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1339
1339
|
}, "se_UpdateThesaurusCommand");
|
|
1340
1340
|
var de_AssociateEntitiesToExperienceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1341
1341
|
if (output.statusCode >= 300) {
|
|
1342
|
-
return
|
|
1342
|
+
return de_CommandError(output, context);
|
|
1343
1343
|
}
|
|
1344
1344
|
const data = await parseBody(output.body, context);
|
|
1345
1345
|
let contents = {};
|
|
@@ -1350,43 +1350,9 @@ var de_AssociateEntitiesToExperienceCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1350
1350
|
};
|
|
1351
1351
|
return response;
|
|
1352
1352
|
}, "de_AssociateEntitiesToExperienceCommand");
|
|
1353
|
-
var de_AssociateEntitiesToExperienceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1354
|
-
const parsedOutput = {
|
|
1355
|
-
...output,
|
|
1356
|
-
body: await parseErrorBody(output.body, context)
|
|
1357
|
-
};
|
|
1358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
-
switch (errorCode) {
|
|
1360
|
-
case "AccessDeniedException":
|
|
1361
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1362
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "InternalServerException":
|
|
1364
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1365
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "ResourceAlreadyExistException":
|
|
1367
|
-
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
1368
|
-
throw await de_ResourceAlreadyExistExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "ResourceNotFoundException":
|
|
1370
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1371
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "ThrottlingException":
|
|
1373
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1374
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "ValidationException":
|
|
1376
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1377
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1378
|
-
default:
|
|
1379
|
-
const parsedBody = parsedOutput.body;
|
|
1380
|
-
return throwDefaultError({
|
|
1381
|
-
output,
|
|
1382
|
-
parsedBody,
|
|
1383
|
-
errorCode
|
|
1384
|
-
});
|
|
1385
|
-
}
|
|
1386
|
-
}, "de_AssociateEntitiesToExperienceCommandError");
|
|
1387
1353
|
var de_AssociatePersonasToEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1388
1354
|
if (output.statusCode >= 300) {
|
|
1389
|
-
return
|
|
1355
|
+
return de_CommandError(output, context);
|
|
1390
1356
|
}
|
|
1391
1357
|
const data = await parseBody(output.body, context);
|
|
1392
1358
|
let contents = {};
|
|
@@ -1397,43 +1363,9 @@ var de_AssociatePersonasToEntitiesCommand = /* @__PURE__ */ __name(async (output
|
|
|
1397
1363
|
};
|
|
1398
1364
|
return response;
|
|
1399
1365
|
}, "de_AssociatePersonasToEntitiesCommand");
|
|
1400
|
-
var de_AssociatePersonasToEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1401
|
-
const parsedOutput = {
|
|
1402
|
-
...output,
|
|
1403
|
-
body: await parseErrorBody(output.body, context)
|
|
1404
|
-
};
|
|
1405
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
|
-
switch (errorCode) {
|
|
1407
|
-
case "AccessDeniedException":
|
|
1408
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1409
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1410
|
-
case "InternalServerException":
|
|
1411
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1412
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "ResourceAlreadyExistException":
|
|
1414
|
-
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
1415
|
-
throw await de_ResourceAlreadyExistExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ResourceNotFoundException":
|
|
1417
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "ThrottlingException":
|
|
1420
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1421
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ValidationException":
|
|
1423
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1424
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1425
|
-
default:
|
|
1426
|
-
const parsedBody = parsedOutput.body;
|
|
1427
|
-
return throwDefaultError({
|
|
1428
|
-
output,
|
|
1429
|
-
parsedBody,
|
|
1430
|
-
errorCode
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
}, "de_AssociatePersonasToEntitiesCommandError");
|
|
1434
1366
|
var de_BatchDeleteDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1435
1367
|
if (output.statusCode >= 300) {
|
|
1436
|
-
return
|
|
1368
|
+
return de_CommandError(output, context);
|
|
1437
1369
|
}
|
|
1438
1370
|
const data = await parseBody(output.body, context);
|
|
1439
1371
|
let contents = {};
|
|
@@ -1444,43 +1376,9 @@ var de_BatchDeleteDocumentCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1444
1376
|
};
|
|
1445
1377
|
return response;
|
|
1446
1378
|
}, "de_BatchDeleteDocumentCommand");
|
|
1447
|
-
var de_BatchDeleteDocumentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1448
|
-
const parsedOutput = {
|
|
1449
|
-
...output,
|
|
1450
|
-
body: await parseErrorBody(output.body, context)
|
|
1451
|
-
};
|
|
1452
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1453
|
-
switch (errorCode) {
|
|
1454
|
-
case "AccessDeniedException":
|
|
1455
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1456
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "ConflictException":
|
|
1458
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1459
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1460
|
-
case "InternalServerException":
|
|
1461
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1462
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1463
|
-
case "ResourceNotFoundException":
|
|
1464
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1465
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1466
|
-
case "ThrottlingException":
|
|
1467
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1468
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "ValidationException":
|
|
1470
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1471
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1472
|
-
default:
|
|
1473
|
-
const parsedBody = parsedOutput.body;
|
|
1474
|
-
return throwDefaultError({
|
|
1475
|
-
output,
|
|
1476
|
-
parsedBody,
|
|
1477
|
-
errorCode
|
|
1478
|
-
});
|
|
1479
|
-
}
|
|
1480
|
-
}, "de_BatchDeleteDocumentCommandError");
|
|
1481
1379
|
var de_BatchDeleteFeaturedResultsSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1482
1380
|
if (output.statusCode >= 300) {
|
|
1483
|
-
return
|
|
1381
|
+
return de_CommandError(output, context);
|
|
1484
1382
|
}
|
|
1485
1383
|
const data = await parseBody(output.body, context);
|
|
1486
1384
|
let contents = {};
|
|
@@ -1491,40 +1389,9 @@ var de_BatchDeleteFeaturedResultsSetCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1491
1389
|
};
|
|
1492
1390
|
return response;
|
|
1493
1391
|
}, "de_BatchDeleteFeaturedResultsSetCommand");
|
|
1494
|
-
var de_BatchDeleteFeaturedResultsSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1495
|
-
const parsedOutput = {
|
|
1496
|
-
...output,
|
|
1497
|
-
body: await parseErrorBody(output.body, context)
|
|
1498
|
-
};
|
|
1499
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
|
-
switch (errorCode) {
|
|
1501
|
-
case "AccessDeniedException":
|
|
1502
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1503
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "InternalServerException":
|
|
1505
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1506
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "ResourceNotFoundException":
|
|
1508
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1509
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "ThrottlingException":
|
|
1511
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1512
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "ValidationException":
|
|
1514
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1515
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1516
|
-
default:
|
|
1517
|
-
const parsedBody = parsedOutput.body;
|
|
1518
|
-
return throwDefaultError({
|
|
1519
|
-
output,
|
|
1520
|
-
parsedBody,
|
|
1521
|
-
errorCode
|
|
1522
|
-
});
|
|
1523
|
-
}
|
|
1524
|
-
}, "de_BatchDeleteFeaturedResultsSetCommandError");
|
|
1525
1392
|
var de_BatchGetDocumentStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1526
1393
|
if (output.statusCode >= 300) {
|
|
1527
|
-
return
|
|
1394
|
+
return de_CommandError(output, context);
|
|
1528
1395
|
}
|
|
1529
1396
|
const data = await parseBody(output.body, context);
|
|
1530
1397
|
let contents = {};
|
|
@@ -1535,43 +1402,9 @@ var de_BatchGetDocumentStatusCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1535
1402
|
};
|
|
1536
1403
|
return response;
|
|
1537
1404
|
}, "de_BatchGetDocumentStatusCommand");
|
|
1538
|
-
var de_BatchGetDocumentStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1539
|
-
const parsedOutput = {
|
|
1540
|
-
...output,
|
|
1541
|
-
body: await parseErrorBody(output.body, context)
|
|
1542
|
-
};
|
|
1543
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1544
|
-
switch (errorCode) {
|
|
1545
|
-
case "AccessDeniedException":
|
|
1546
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1547
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1548
|
-
case "ConflictException":
|
|
1549
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1550
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1551
|
-
case "InternalServerException":
|
|
1552
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1553
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "ResourceNotFoundException":
|
|
1555
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1556
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "ThrottlingException":
|
|
1558
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1559
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ValidationException":
|
|
1561
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1562
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1563
|
-
default:
|
|
1564
|
-
const parsedBody = parsedOutput.body;
|
|
1565
|
-
return throwDefaultError({
|
|
1566
|
-
output,
|
|
1567
|
-
parsedBody,
|
|
1568
|
-
errorCode
|
|
1569
|
-
});
|
|
1570
|
-
}
|
|
1571
|
-
}, "de_BatchGetDocumentStatusCommandError");
|
|
1572
1405
|
var de_BatchPutDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1573
1406
|
if (output.statusCode >= 300) {
|
|
1574
|
-
return
|
|
1407
|
+
return de_CommandError(output, context);
|
|
1575
1408
|
}
|
|
1576
1409
|
const data = await parseBody(output.body, context);
|
|
1577
1410
|
let contents = {};
|
|
@@ -1582,46 +1415,9 @@ var de_BatchPutDocumentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1582
1415
|
};
|
|
1583
1416
|
return response;
|
|
1584
1417
|
}, "de_BatchPutDocumentCommand");
|
|
1585
|
-
var de_BatchPutDocumentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1586
|
-
const parsedOutput = {
|
|
1587
|
-
...output,
|
|
1588
|
-
body: await parseErrorBody(output.body, context)
|
|
1589
|
-
};
|
|
1590
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
|
-
switch (errorCode) {
|
|
1592
|
-
case "AccessDeniedException":
|
|
1593
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1594
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ConflictException":
|
|
1596
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1597
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "InternalServerException":
|
|
1599
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1600
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "ResourceNotFoundException":
|
|
1602
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1603
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "ServiceQuotaExceededException":
|
|
1605
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1606
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ThrottlingException":
|
|
1608
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1609
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1610
|
-
case "ValidationException":
|
|
1611
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1612
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1613
|
-
default:
|
|
1614
|
-
const parsedBody = parsedOutput.body;
|
|
1615
|
-
return throwDefaultError({
|
|
1616
|
-
output,
|
|
1617
|
-
parsedBody,
|
|
1618
|
-
errorCode
|
|
1619
|
-
});
|
|
1620
|
-
}
|
|
1621
|
-
}, "de_BatchPutDocumentCommandError");
|
|
1622
1418
|
var de_ClearQuerySuggestionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1623
1419
|
if (output.statusCode >= 300) {
|
|
1624
|
-
return
|
|
1420
|
+
return de_CommandError(output, context);
|
|
1625
1421
|
}
|
|
1626
1422
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1627
1423
|
const response = {
|
|
@@ -1629,43 +1425,9 @@ var de_ClearQuerySuggestionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1629
1425
|
};
|
|
1630
1426
|
return response;
|
|
1631
1427
|
}, "de_ClearQuerySuggestionsCommand");
|
|
1632
|
-
var de_ClearQuerySuggestionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1633
|
-
const parsedOutput = {
|
|
1634
|
-
...output,
|
|
1635
|
-
body: await parseErrorBody(output.body, context)
|
|
1636
|
-
};
|
|
1637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1638
|
-
switch (errorCode) {
|
|
1639
|
-
case "AccessDeniedException":
|
|
1640
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1641
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "ConflictException":
|
|
1643
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1644
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "InternalServerException":
|
|
1646
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1647
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "ResourceNotFoundException":
|
|
1649
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1650
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "ThrottlingException":
|
|
1652
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1653
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "ValidationException":
|
|
1655
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1656
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1657
|
-
default:
|
|
1658
|
-
const parsedBody = parsedOutput.body;
|
|
1659
|
-
return throwDefaultError({
|
|
1660
|
-
output,
|
|
1661
|
-
parsedBody,
|
|
1662
|
-
errorCode
|
|
1663
|
-
});
|
|
1664
|
-
}
|
|
1665
|
-
}, "de_ClearQuerySuggestionsCommandError");
|
|
1666
1428
|
var de_CreateAccessControlConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1667
1429
|
if (output.statusCode >= 300) {
|
|
1668
|
-
return
|
|
1430
|
+
return de_CommandError(output, context);
|
|
1669
1431
|
}
|
|
1670
1432
|
const data = await parseBody(output.body, context);
|
|
1671
1433
|
let contents = {};
|
|
@@ -1676,99 +1438,22 @@ var de_CreateAccessControlConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
1676
1438
|
};
|
|
1677
1439
|
return response;
|
|
1678
1440
|
}, "de_CreateAccessControlConfigurationCommand");
|
|
1679
|
-
var
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
case "ConflictException":
|
|
1690
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1691
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "InternalServerException":
|
|
1693
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1694
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "ResourceNotFoundException":
|
|
1696
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1697
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "ServiceQuotaExceededException":
|
|
1699
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1700
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "ThrottlingException":
|
|
1702
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1703
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "ValidationException":
|
|
1705
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1706
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1707
|
-
default:
|
|
1708
|
-
const parsedBody = parsedOutput.body;
|
|
1709
|
-
return throwDefaultError({
|
|
1710
|
-
output,
|
|
1711
|
-
parsedBody,
|
|
1712
|
-
errorCode
|
|
1713
|
-
});
|
|
1714
|
-
}
|
|
1715
|
-
}, "de_CreateAccessControlConfigurationCommandError");
|
|
1716
|
-
var de_CreateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1717
|
-
if (output.statusCode >= 300) {
|
|
1718
|
-
return de_CreateDataSourceCommandError(output, context);
|
|
1719
|
-
}
|
|
1720
|
-
const data = await parseBody(output.body, context);
|
|
1721
|
-
let contents = {};
|
|
1722
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1723
|
-
const response = {
|
|
1724
|
-
$metadata: deserializeMetadata(output),
|
|
1725
|
-
...contents
|
|
1441
|
+
var de_CreateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1442
|
+
if (output.statusCode >= 300) {
|
|
1443
|
+
return de_CommandError(output, context);
|
|
1444
|
+
}
|
|
1445
|
+
const data = await parseBody(output.body, context);
|
|
1446
|
+
let contents = {};
|
|
1447
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1448
|
+
const response = {
|
|
1449
|
+
$metadata: deserializeMetadata(output),
|
|
1450
|
+
...contents
|
|
1726
1451
|
};
|
|
1727
1452
|
return response;
|
|
1728
1453
|
}, "de_CreateDataSourceCommand");
|
|
1729
|
-
var de_CreateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1730
|
-
const parsedOutput = {
|
|
1731
|
-
...output,
|
|
1732
|
-
body: await parseErrorBody(output.body, context)
|
|
1733
|
-
};
|
|
1734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
|
-
switch (errorCode) {
|
|
1736
|
-
case "AccessDeniedException":
|
|
1737
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1738
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "ConflictException":
|
|
1740
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1741
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "InternalServerException":
|
|
1743
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1744
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "ResourceAlreadyExistException":
|
|
1746
|
-
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
1747
|
-
throw await de_ResourceAlreadyExistExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "ResourceNotFoundException":
|
|
1749
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1750
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "ServiceQuotaExceededException":
|
|
1752
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1753
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "ThrottlingException":
|
|
1755
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1756
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "ValidationException":
|
|
1758
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1759
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1760
|
-
default:
|
|
1761
|
-
const parsedBody = parsedOutput.body;
|
|
1762
|
-
return throwDefaultError({
|
|
1763
|
-
output,
|
|
1764
|
-
parsedBody,
|
|
1765
|
-
errorCode
|
|
1766
|
-
});
|
|
1767
|
-
}
|
|
1768
|
-
}, "de_CreateDataSourceCommandError");
|
|
1769
1454
|
var de_CreateExperienceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1770
1455
|
if (output.statusCode >= 300) {
|
|
1771
|
-
return
|
|
1456
|
+
return de_CommandError(output, context);
|
|
1772
1457
|
}
|
|
1773
1458
|
const data = await parseBody(output.body, context);
|
|
1774
1459
|
let contents = {};
|
|
@@ -1779,46 +1464,9 @@ var de_CreateExperienceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1779
1464
|
};
|
|
1780
1465
|
return response;
|
|
1781
1466
|
}, "de_CreateExperienceCommand");
|
|
1782
|
-
var de_CreateExperienceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1783
|
-
const parsedOutput = {
|
|
1784
|
-
...output,
|
|
1785
|
-
body: await parseErrorBody(output.body, context)
|
|
1786
|
-
};
|
|
1787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1788
|
-
switch (errorCode) {
|
|
1789
|
-
case "AccessDeniedException":
|
|
1790
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1791
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1792
|
-
case "ConflictException":
|
|
1793
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1794
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "InternalServerException":
|
|
1796
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1797
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "ResourceNotFoundException":
|
|
1799
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1800
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "ServiceQuotaExceededException":
|
|
1802
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1803
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "ThrottlingException":
|
|
1805
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1806
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "ValidationException":
|
|
1808
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1809
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1810
|
-
default:
|
|
1811
|
-
const parsedBody = parsedOutput.body;
|
|
1812
|
-
return throwDefaultError({
|
|
1813
|
-
output,
|
|
1814
|
-
parsedBody,
|
|
1815
|
-
errorCode
|
|
1816
|
-
});
|
|
1817
|
-
}
|
|
1818
|
-
}, "de_CreateExperienceCommandError");
|
|
1819
1467
|
var de_CreateFaqCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1820
1468
|
if (output.statusCode >= 300) {
|
|
1821
|
-
return
|
|
1469
|
+
return de_CommandError(output, context);
|
|
1822
1470
|
}
|
|
1823
1471
|
const data = await parseBody(output.body, context);
|
|
1824
1472
|
let contents = {};
|
|
@@ -1829,46 +1477,9 @@ var de_CreateFaqCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1829
1477
|
};
|
|
1830
1478
|
return response;
|
|
1831
1479
|
}, "de_CreateFaqCommand");
|
|
1832
|
-
var de_CreateFaqCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1833
|
-
const parsedOutput = {
|
|
1834
|
-
...output,
|
|
1835
|
-
body: await parseErrorBody(output.body, context)
|
|
1836
|
-
};
|
|
1837
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
|
-
switch (errorCode) {
|
|
1839
|
-
case "AccessDeniedException":
|
|
1840
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1841
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1842
|
-
case "ConflictException":
|
|
1843
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1844
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1845
|
-
case "InternalServerException":
|
|
1846
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1847
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1848
|
-
case "ResourceNotFoundException":
|
|
1849
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1850
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1851
|
-
case "ServiceQuotaExceededException":
|
|
1852
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1853
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "ThrottlingException":
|
|
1855
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1856
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1857
|
-
case "ValidationException":
|
|
1858
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1859
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1860
|
-
default:
|
|
1861
|
-
const parsedBody = parsedOutput.body;
|
|
1862
|
-
return throwDefaultError({
|
|
1863
|
-
output,
|
|
1864
|
-
parsedBody,
|
|
1865
|
-
errorCode
|
|
1866
|
-
});
|
|
1867
|
-
}
|
|
1868
|
-
}, "de_CreateFaqCommandError");
|
|
1869
1480
|
var de_CreateFeaturedResultsSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1870
1481
|
if (output.statusCode >= 300) {
|
|
1871
|
-
return
|
|
1482
|
+
return de_CommandError(output, context);
|
|
1872
1483
|
}
|
|
1873
1484
|
const data = await parseBody(output.body, context);
|
|
1874
1485
|
let contents = {};
|
|
@@ -1879,46 +1490,9 @@ var de_CreateFeaturedResultsSetCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1879
1490
|
};
|
|
1880
1491
|
return response;
|
|
1881
1492
|
}, "de_CreateFeaturedResultsSetCommand");
|
|
1882
|
-
var de_CreateFeaturedResultsSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1883
|
-
const parsedOutput = {
|
|
1884
|
-
...output,
|
|
1885
|
-
body: await parseErrorBody(output.body, context)
|
|
1886
|
-
};
|
|
1887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
|
-
switch (errorCode) {
|
|
1889
|
-
case "AccessDeniedException":
|
|
1890
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1891
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1892
|
-
case "ConflictException":
|
|
1893
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1894
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1895
|
-
case "FeaturedResultsConflictException":
|
|
1896
|
-
case "com.amazonaws.kendra#FeaturedResultsConflictException":
|
|
1897
|
-
throw await de_FeaturedResultsConflictExceptionRes(parsedOutput, context);
|
|
1898
|
-
case "InternalServerException":
|
|
1899
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1900
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1901
|
-
case "ResourceNotFoundException":
|
|
1902
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1903
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1904
|
-
case "ThrottlingException":
|
|
1905
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1906
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1907
|
-
case "ValidationException":
|
|
1908
|
-
case "com.amazonaws.kendra#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_CreateFeaturedResultsSetCommandError");
|
|
1919
1493
|
var de_CreateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1920
1494
|
if (output.statusCode >= 300) {
|
|
1921
|
-
return
|
|
1495
|
+
return de_CommandError(output, context);
|
|
1922
1496
|
}
|
|
1923
1497
|
const data = await parseBody(output.body, context);
|
|
1924
1498
|
let contents = {};
|
|
@@ -1929,46 +1503,9 @@ var de_CreateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1929
1503
|
};
|
|
1930
1504
|
return response;
|
|
1931
1505
|
}, "de_CreateIndexCommand");
|
|
1932
|
-
var de_CreateIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1933
|
-
const parsedOutput = {
|
|
1934
|
-
...output,
|
|
1935
|
-
body: await parseErrorBody(output.body, context)
|
|
1936
|
-
};
|
|
1937
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1938
|
-
switch (errorCode) {
|
|
1939
|
-
case "AccessDeniedException":
|
|
1940
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1941
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1942
|
-
case "ConflictException":
|
|
1943
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1944
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1945
|
-
case "InternalServerException":
|
|
1946
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1947
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "ResourceAlreadyExistException":
|
|
1949
|
-
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
1950
|
-
throw await de_ResourceAlreadyExistExceptionRes(parsedOutput, context);
|
|
1951
|
-
case "ServiceQuotaExceededException":
|
|
1952
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1953
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1954
|
-
case "ThrottlingException":
|
|
1955
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1956
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "ValidationException":
|
|
1958
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1959
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1960
|
-
default:
|
|
1961
|
-
const parsedBody = parsedOutput.body;
|
|
1962
|
-
return throwDefaultError({
|
|
1963
|
-
output,
|
|
1964
|
-
parsedBody,
|
|
1965
|
-
errorCode
|
|
1966
|
-
});
|
|
1967
|
-
}
|
|
1968
|
-
}, "de_CreateIndexCommandError");
|
|
1969
1506
|
var de_CreateQuerySuggestionsBlockListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1970
1507
|
if (output.statusCode >= 300) {
|
|
1971
|
-
return
|
|
1508
|
+
return de_CommandError(output, context);
|
|
1972
1509
|
}
|
|
1973
1510
|
const data = await parseBody(output.body, context);
|
|
1974
1511
|
let contents = {};
|
|
@@ -1979,46 +1516,9 @@ var de_CreateQuerySuggestionsBlockListCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1979
1516
|
};
|
|
1980
1517
|
return response;
|
|
1981
1518
|
}, "de_CreateQuerySuggestionsBlockListCommand");
|
|
1982
|
-
var de_CreateQuerySuggestionsBlockListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1983
|
-
const parsedOutput = {
|
|
1984
|
-
...output,
|
|
1985
|
-
body: await parseErrorBody(output.body, context)
|
|
1986
|
-
};
|
|
1987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
|
-
switch (errorCode) {
|
|
1989
|
-
case "AccessDeniedException":
|
|
1990
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1991
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "ConflictException":
|
|
1993
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1994
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "InternalServerException":
|
|
1996
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1997
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1998
|
-
case "ResourceNotFoundException":
|
|
1999
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2000
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2001
|
-
case "ServiceQuotaExceededException":
|
|
2002
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
2003
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2004
|
-
case "ThrottlingException":
|
|
2005
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2006
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2007
|
-
case "ValidationException":
|
|
2008
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2009
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2010
|
-
default:
|
|
2011
|
-
const parsedBody = parsedOutput.body;
|
|
2012
|
-
return throwDefaultError({
|
|
2013
|
-
output,
|
|
2014
|
-
parsedBody,
|
|
2015
|
-
errorCode
|
|
2016
|
-
});
|
|
2017
|
-
}
|
|
2018
|
-
}, "de_CreateQuerySuggestionsBlockListCommandError");
|
|
2019
1519
|
var de_CreateThesaurusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2020
1520
|
if (output.statusCode >= 300) {
|
|
2021
|
-
return
|
|
1521
|
+
return de_CommandError(output, context);
|
|
2022
1522
|
}
|
|
2023
1523
|
const data = await parseBody(output.body, context);
|
|
2024
1524
|
let contents = {};
|
|
@@ -2029,93 +1529,22 @@ var de_CreateThesaurusCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2029
1529
|
};
|
|
2030
1530
|
return response;
|
|
2031
1531
|
}, "de_CreateThesaurusCommand");
|
|
2032
|
-
var
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
case "ConflictException":
|
|
2043
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2044
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "InternalServerException":
|
|
2046
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2047
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2048
|
-
case "ResourceNotFoundException":
|
|
2049
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2050
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "ServiceQuotaExceededException":
|
|
2052
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
2053
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2054
|
-
case "ThrottlingException":
|
|
2055
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2056
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2057
|
-
case "ValidationException":
|
|
2058
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2059
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2060
|
-
default:
|
|
2061
|
-
const parsedBody = parsedOutput.body;
|
|
2062
|
-
return throwDefaultError({
|
|
2063
|
-
output,
|
|
2064
|
-
parsedBody,
|
|
2065
|
-
errorCode
|
|
2066
|
-
});
|
|
2067
|
-
}
|
|
2068
|
-
}, "de_CreateThesaurusCommandError");
|
|
2069
|
-
var de_DeleteAccessControlConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2070
|
-
if (output.statusCode >= 300) {
|
|
2071
|
-
return de_DeleteAccessControlConfigurationCommandError(output, context);
|
|
2072
|
-
}
|
|
2073
|
-
const data = await parseBody(output.body, context);
|
|
2074
|
-
let contents = {};
|
|
2075
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2076
|
-
const response = {
|
|
2077
|
-
$metadata: deserializeMetadata(output),
|
|
2078
|
-
...contents
|
|
1532
|
+
var de_DeleteAccessControlConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1533
|
+
if (output.statusCode >= 300) {
|
|
1534
|
+
return de_CommandError(output, context);
|
|
1535
|
+
}
|
|
1536
|
+
const data = await parseBody(output.body, context);
|
|
1537
|
+
let contents = {};
|
|
1538
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1539
|
+
const response = {
|
|
1540
|
+
$metadata: deserializeMetadata(output),
|
|
1541
|
+
...contents
|
|
2079
1542
|
};
|
|
2080
1543
|
return response;
|
|
2081
1544
|
}, "de_DeleteAccessControlConfigurationCommand");
|
|
2082
|
-
var de_DeleteAccessControlConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2083
|
-
const parsedOutput = {
|
|
2084
|
-
...output,
|
|
2085
|
-
body: await parseErrorBody(output.body, context)
|
|
2086
|
-
};
|
|
2087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2088
|
-
switch (errorCode) {
|
|
2089
|
-
case "AccessDeniedException":
|
|
2090
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2091
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2092
|
-
case "ConflictException":
|
|
2093
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2094
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2095
|
-
case "InternalServerException":
|
|
2096
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2097
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2098
|
-
case "ResourceNotFoundException":
|
|
2099
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "ThrottlingException":
|
|
2102
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2103
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "ValidationException":
|
|
2105
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2107
|
-
default:
|
|
2108
|
-
const parsedBody = parsedOutput.body;
|
|
2109
|
-
return throwDefaultError({
|
|
2110
|
-
output,
|
|
2111
|
-
parsedBody,
|
|
2112
|
-
errorCode
|
|
2113
|
-
});
|
|
2114
|
-
}
|
|
2115
|
-
}, "de_DeleteAccessControlConfigurationCommandError");
|
|
2116
1545
|
var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2117
1546
|
if (output.statusCode >= 300) {
|
|
2118
|
-
return
|
|
1547
|
+
return de_CommandError(output, context);
|
|
2119
1548
|
}
|
|
2120
1549
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2121
1550
|
const response = {
|
|
@@ -2123,43 +1552,9 @@ var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2123
1552
|
};
|
|
2124
1553
|
return response;
|
|
2125
1554
|
}, "de_DeleteDataSourceCommand");
|
|
2126
|
-
var de_DeleteDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2127
|
-
const parsedOutput = {
|
|
2128
|
-
...output,
|
|
2129
|
-
body: await parseErrorBody(output.body, context)
|
|
2130
|
-
};
|
|
2131
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2132
|
-
switch (errorCode) {
|
|
2133
|
-
case "AccessDeniedException":
|
|
2134
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2135
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2136
|
-
case "ConflictException":
|
|
2137
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2138
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "InternalServerException":
|
|
2140
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2141
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "ResourceNotFoundException":
|
|
2143
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2144
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "ThrottlingException":
|
|
2146
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2147
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2148
|
-
case "ValidationException":
|
|
2149
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2150
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2151
|
-
default:
|
|
2152
|
-
const parsedBody = parsedOutput.body;
|
|
2153
|
-
return throwDefaultError({
|
|
2154
|
-
output,
|
|
2155
|
-
parsedBody,
|
|
2156
|
-
errorCode
|
|
2157
|
-
});
|
|
2158
|
-
}
|
|
2159
|
-
}, "de_DeleteDataSourceCommandError");
|
|
2160
1555
|
var de_DeleteExperienceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2161
1556
|
if (output.statusCode >= 300) {
|
|
2162
|
-
return
|
|
1557
|
+
return de_CommandError(output, context);
|
|
2163
1558
|
}
|
|
2164
1559
|
const data = await parseBody(output.body, context);
|
|
2165
1560
|
let contents = {};
|
|
@@ -2170,43 +1565,9 @@ var de_DeleteExperienceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2170
1565
|
};
|
|
2171
1566
|
return response;
|
|
2172
1567
|
}, "de_DeleteExperienceCommand");
|
|
2173
|
-
var de_DeleteExperienceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2174
|
-
const parsedOutput = {
|
|
2175
|
-
...output,
|
|
2176
|
-
body: await parseErrorBody(output.body, context)
|
|
2177
|
-
};
|
|
2178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
|
-
switch (errorCode) {
|
|
2180
|
-
case "AccessDeniedException":
|
|
2181
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2182
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2183
|
-
case "ConflictException":
|
|
2184
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2185
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2186
|
-
case "InternalServerException":
|
|
2187
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2188
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2189
|
-
case "ResourceNotFoundException":
|
|
2190
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2191
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "ThrottlingException":
|
|
2193
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2194
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "ValidationException":
|
|
2196
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2197
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2198
|
-
default:
|
|
2199
|
-
const parsedBody = parsedOutput.body;
|
|
2200
|
-
return throwDefaultError({
|
|
2201
|
-
output,
|
|
2202
|
-
parsedBody,
|
|
2203
|
-
errorCode
|
|
2204
|
-
});
|
|
2205
|
-
}
|
|
2206
|
-
}, "de_DeleteExperienceCommandError");
|
|
2207
1568
|
var de_DeleteFaqCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2208
1569
|
if (output.statusCode >= 300) {
|
|
2209
|
-
return
|
|
1570
|
+
return de_CommandError(output, context);
|
|
2210
1571
|
}
|
|
2211
1572
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2212
1573
|
const response = {
|
|
@@ -2214,43 +1575,9 @@ var de_DeleteFaqCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2214
1575
|
};
|
|
2215
1576
|
return response;
|
|
2216
1577
|
}, "de_DeleteFaqCommand");
|
|
2217
|
-
var de_DeleteFaqCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2218
|
-
const parsedOutput = {
|
|
2219
|
-
...output,
|
|
2220
|
-
body: await parseErrorBody(output.body, context)
|
|
2221
|
-
};
|
|
2222
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
|
-
switch (errorCode) {
|
|
2224
|
-
case "AccessDeniedException":
|
|
2225
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2226
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "ConflictException":
|
|
2228
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2229
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2230
|
-
case "InternalServerException":
|
|
2231
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2232
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2233
|
-
case "ResourceNotFoundException":
|
|
2234
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2235
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2236
|
-
case "ThrottlingException":
|
|
2237
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2238
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2239
|
-
case "ValidationException":
|
|
2240
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2241
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2242
|
-
default:
|
|
2243
|
-
const parsedBody = parsedOutput.body;
|
|
2244
|
-
return throwDefaultError({
|
|
2245
|
-
output,
|
|
2246
|
-
parsedBody,
|
|
2247
|
-
errorCode
|
|
2248
|
-
});
|
|
2249
|
-
}
|
|
2250
|
-
}, "de_DeleteFaqCommandError");
|
|
2251
1578
|
var de_DeleteIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2252
1579
|
if (output.statusCode >= 300) {
|
|
2253
|
-
return
|
|
1580
|
+
return de_CommandError(output, context);
|
|
2254
1581
|
}
|
|
2255
1582
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2256
1583
|
const response = {
|
|
@@ -2258,43 +1585,9 @@ var de_DeleteIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2258
1585
|
};
|
|
2259
1586
|
return response;
|
|
2260
1587
|
}, "de_DeleteIndexCommand");
|
|
2261
|
-
var de_DeleteIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2262
|
-
const parsedOutput = {
|
|
2263
|
-
...output,
|
|
2264
|
-
body: await parseErrorBody(output.body, context)
|
|
2265
|
-
};
|
|
2266
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2267
|
-
switch (errorCode) {
|
|
2268
|
-
case "AccessDeniedException":
|
|
2269
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2270
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "ConflictException":
|
|
2272
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2273
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2274
|
-
case "InternalServerException":
|
|
2275
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2276
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2277
|
-
case "ResourceNotFoundException":
|
|
2278
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2279
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2280
|
-
case "ThrottlingException":
|
|
2281
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2282
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2283
|
-
case "ValidationException":
|
|
2284
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2285
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2286
|
-
default:
|
|
2287
|
-
const parsedBody = parsedOutput.body;
|
|
2288
|
-
return throwDefaultError({
|
|
2289
|
-
output,
|
|
2290
|
-
parsedBody,
|
|
2291
|
-
errorCode
|
|
2292
|
-
});
|
|
2293
|
-
}
|
|
2294
|
-
}, "de_DeleteIndexCommandError");
|
|
2295
1588
|
var de_DeletePrincipalMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2296
1589
|
if (output.statusCode >= 300) {
|
|
2297
|
-
return
|
|
1590
|
+
return de_CommandError(output, context);
|
|
2298
1591
|
}
|
|
2299
1592
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2300
1593
|
const response = {
|
|
@@ -2302,43 +1595,9 @@ var de_DeletePrincipalMappingCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2302
1595
|
};
|
|
2303
1596
|
return response;
|
|
2304
1597
|
}, "de_DeletePrincipalMappingCommand");
|
|
2305
|
-
var de_DeletePrincipalMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2306
|
-
const parsedOutput = {
|
|
2307
|
-
...output,
|
|
2308
|
-
body: await parseErrorBody(output.body, context)
|
|
2309
|
-
};
|
|
2310
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2311
|
-
switch (errorCode) {
|
|
2312
|
-
case "AccessDeniedException":
|
|
2313
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2314
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "ConflictException":
|
|
2316
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2317
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "InternalServerException":
|
|
2319
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2320
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "ResourceNotFoundException":
|
|
2322
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2323
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "ThrottlingException":
|
|
2325
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2326
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "ValidationException":
|
|
2328
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2329
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2330
|
-
default:
|
|
2331
|
-
const parsedBody = parsedOutput.body;
|
|
2332
|
-
return throwDefaultError({
|
|
2333
|
-
output,
|
|
2334
|
-
parsedBody,
|
|
2335
|
-
errorCode
|
|
2336
|
-
});
|
|
2337
|
-
}
|
|
2338
|
-
}, "de_DeletePrincipalMappingCommandError");
|
|
2339
1598
|
var de_DeleteQuerySuggestionsBlockListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2340
1599
|
if (output.statusCode >= 300) {
|
|
2341
|
-
return
|
|
1600
|
+
return de_CommandError(output, context);
|
|
2342
1601
|
}
|
|
2343
1602
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2344
1603
|
const response = {
|
|
@@ -2346,43 +1605,9 @@ var de_DeleteQuerySuggestionsBlockListCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2346
1605
|
};
|
|
2347
1606
|
return response;
|
|
2348
1607
|
}, "de_DeleteQuerySuggestionsBlockListCommand");
|
|
2349
|
-
var de_DeleteQuerySuggestionsBlockListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2350
|
-
const parsedOutput = {
|
|
2351
|
-
...output,
|
|
2352
|
-
body: await parseErrorBody(output.body, context)
|
|
2353
|
-
};
|
|
2354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
|
-
switch (errorCode) {
|
|
2356
|
-
case "AccessDeniedException":
|
|
2357
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2358
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "ConflictException":
|
|
2360
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2361
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "InternalServerException":
|
|
2363
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2364
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "ResourceNotFoundException":
|
|
2366
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2367
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "ThrottlingException":
|
|
2369
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2370
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "ValidationException":
|
|
2372
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2373
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2374
|
-
default:
|
|
2375
|
-
const parsedBody = parsedOutput.body;
|
|
2376
|
-
return throwDefaultError({
|
|
2377
|
-
output,
|
|
2378
|
-
parsedBody,
|
|
2379
|
-
errorCode
|
|
2380
|
-
});
|
|
2381
|
-
}
|
|
2382
|
-
}, "de_DeleteQuerySuggestionsBlockListCommandError");
|
|
2383
1608
|
var de_DeleteThesaurusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2384
1609
|
if (output.statusCode >= 300) {
|
|
2385
|
-
return
|
|
1610
|
+
return de_CommandError(output, context);
|
|
2386
1611
|
}
|
|
2387
1612
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2388
1613
|
const response = {
|
|
@@ -2390,43 +1615,9 @@ var de_DeleteThesaurusCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2390
1615
|
};
|
|
2391
1616
|
return response;
|
|
2392
1617
|
}, "de_DeleteThesaurusCommand");
|
|
2393
|
-
var de_DeleteThesaurusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2394
|
-
const parsedOutput = {
|
|
2395
|
-
...output,
|
|
2396
|
-
body: await parseErrorBody(output.body, context)
|
|
2397
|
-
};
|
|
2398
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2399
|
-
switch (errorCode) {
|
|
2400
|
-
case "AccessDeniedException":
|
|
2401
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2402
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "ConflictException":
|
|
2404
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2405
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2406
|
-
case "InternalServerException":
|
|
2407
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2408
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "ResourceNotFoundException":
|
|
2410
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2411
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "ThrottlingException":
|
|
2413
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2414
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "ValidationException":
|
|
2416
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2417
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2418
|
-
default:
|
|
2419
|
-
const parsedBody = parsedOutput.body;
|
|
2420
|
-
return throwDefaultError({
|
|
2421
|
-
output,
|
|
2422
|
-
parsedBody,
|
|
2423
|
-
errorCode
|
|
2424
|
-
});
|
|
2425
|
-
}
|
|
2426
|
-
}, "de_DeleteThesaurusCommandError");
|
|
2427
1618
|
var de_DescribeAccessControlConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2428
1619
|
if (output.statusCode >= 300) {
|
|
2429
|
-
return
|
|
1620
|
+
return de_CommandError(output, context);
|
|
2430
1621
|
}
|
|
2431
1622
|
const data = await parseBody(output.body, context);
|
|
2432
1623
|
let contents = {};
|
|
@@ -2437,40 +1628,9 @@ var de_DescribeAccessControlConfigurationCommand = /* @__PURE__ */ __name(async
|
|
|
2437
1628
|
};
|
|
2438
1629
|
return response;
|
|
2439
1630
|
}, "de_DescribeAccessControlConfigurationCommand");
|
|
2440
|
-
var de_DescribeAccessControlConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2441
|
-
const parsedOutput = {
|
|
2442
|
-
...output,
|
|
2443
|
-
body: await parseErrorBody(output.body, context)
|
|
2444
|
-
};
|
|
2445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2446
|
-
switch (errorCode) {
|
|
2447
|
-
case "AccessDeniedException":
|
|
2448
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2449
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2450
|
-
case "InternalServerException":
|
|
2451
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2452
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2453
|
-
case "ResourceNotFoundException":
|
|
2454
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2455
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2456
|
-
case "ThrottlingException":
|
|
2457
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2458
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2459
|
-
case "ValidationException":
|
|
2460
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2461
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2462
|
-
default:
|
|
2463
|
-
const parsedBody = parsedOutput.body;
|
|
2464
|
-
return throwDefaultError({
|
|
2465
|
-
output,
|
|
2466
|
-
parsedBody,
|
|
2467
|
-
errorCode
|
|
2468
|
-
});
|
|
2469
|
-
}
|
|
2470
|
-
}, "de_DescribeAccessControlConfigurationCommandError");
|
|
2471
1631
|
var de_DescribeDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2472
1632
|
if (output.statusCode >= 300) {
|
|
2473
|
-
return
|
|
1633
|
+
return de_CommandError(output, context);
|
|
2474
1634
|
}
|
|
2475
1635
|
const data = await parseBody(output.body, context);
|
|
2476
1636
|
let contents = {};
|
|
@@ -2481,40 +1641,9 @@ var de_DescribeDataSourceCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2481
1641
|
};
|
|
2482
1642
|
return response;
|
|
2483
1643
|
}, "de_DescribeDataSourceCommand");
|
|
2484
|
-
var de_DescribeDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2485
|
-
const parsedOutput = {
|
|
2486
|
-
...output,
|
|
2487
|
-
body: await parseErrorBody(output.body, context)
|
|
2488
|
-
};
|
|
2489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2490
|
-
switch (errorCode) {
|
|
2491
|
-
case "AccessDeniedException":
|
|
2492
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2493
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2494
|
-
case "InternalServerException":
|
|
2495
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2496
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2497
|
-
case "ResourceNotFoundException":
|
|
2498
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2499
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2500
|
-
case "ThrottlingException":
|
|
2501
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2502
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2503
|
-
case "ValidationException":
|
|
2504
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2505
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2506
|
-
default:
|
|
2507
|
-
const parsedBody = parsedOutput.body;
|
|
2508
|
-
return throwDefaultError({
|
|
2509
|
-
output,
|
|
2510
|
-
parsedBody,
|
|
2511
|
-
errorCode
|
|
2512
|
-
});
|
|
2513
|
-
}
|
|
2514
|
-
}, "de_DescribeDataSourceCommandError");
|
|
2515
1644
|
var de_DescribeExperienceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2516
1645
|
if (output.statusCode >= 300) {
|
|
2517
|
-
return
|
|
1646
|
+
return de_CommandError(output, context);
|
|
2518
1647
|
}
|
|
2519
1648
|
const data = await parseBody(output.body, context);
|
|
2520
1649
|
let contents = {};
|
|
@@ -2525,40 +1654,9 @@ var de_DescribeExperienceCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2525
1654
|
};
|
|
2526
1655
|
return response;
|
|
2527
1656
|
}, "de_DescribeExperienceCommand");
|
|
2528
|
-
var de_DescribeExperienceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2529
|
-
const parsedOutput = {
|
|
2530
|
-
...output,
|
|
2531
|
-
body: await parseErrorBody(output.body, context)
|
|
2532
|
-
};
|
|
2533
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2534
|
-
switch (errorCode) {
|
|
2535
|
-
case "AccessDeniedException":
|
|
2536
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2537
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2538
|
-
case "InternalServerException":
|
|
2539
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2540
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2541
|
-
case "ResourceNotFoundException":
|
|
2542
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2543
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2544
|
-
case "ThrottlingException":
|
|
2545
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2546
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2547
|
-
case "ValidationException":
|
|
2548
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2549
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2550
|
-
default:
|
|
2551
|
-
const parsedBody = parsedOutput.body;
|
|
2552
|
-
return throwDefaultError({
|
|
2553
|
-
output,
|
|
2554
|
-
parsedBody,
|
|
2555
|
-
errorCode
|
|
2556
|
-
});
|
|
2557
|
-
}
|
|
2558
|
-
}, "de_DescribeExperienceCommandError");
|
|
2559
1657
|
var de_DescribeFaqCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2560
1658
|
if (output.statusCode >= 300) {
|
|
2561
|
-
return
|
|
1659
|
+
return de_CommandError(output, context);
|
|
2562
1660
|
}
|
|
2563
1661
|
const data = await parseBody(output.body, context);
|
|
2564
1662
|
let contents = {};
|
|
@@ -2569,40 +1667,9 @@ var de_DescribeFaqCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2569
1667
|
};
|
|
2570
1668
|
return response;
|
|
2571
1669
|
}, "de_DescribeFaqCommand");
|
|
2572
|
-
var de_DescribeFaqCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2573
|
-
const parsedOutput = {
|
|
2574
|
-
...output,
|
|
2575
|
-
body: await parseErrorBody(output.body, context)
|
|
2576
|
-
};
|
|
2577
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2578
|
-
switch (errorCode) {
|
|
2579
|
-
case "AccessDeniedException":
|
|
2580
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2581
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2582
|
-
case "InternalServerException":
|
|
2583
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2584
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2585
|
-
case "ResourceNotFoundException":
|
|
2586
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2587
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2588
|
-
case "ThrottlingException":
|
|
2589
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2590
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2591
|
-
case "ValidationException":
|
|
2592
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2593
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2594
|
-
default:
|
|
2595
|
-
const parsedBody = parsedOutput.body;
|
|
2596
|
-
return throwDefaultError({
|
|
2597
|
-
output,
|
|
2598
|
-
parsedBody,
|
|
2599
|
-
errorCode
|
|
2600
|
-
});
|
|
2601
|
-
}
|
|
2602
|
-
}, "de_DescribeFaqCommandError");
|
|
2603
1670
|
var de_DescribeFeaturedResultsSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2604
1671
|
if (output.statusCode >= 300) {
|
|
2605
|
-
return
|
|
1672
|
+
return de_CommandError(output, context);
|
|
2606
1673
|
}
|
|
2607
1674
|
const data = await parseBody(output.body, context);
|
|
2608
1675
|
let contents = {};
|
|
@@ -2613,40 +1680,9 @@ var de_DescribeFeaturedResultsSetCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2613
1680
|
};
|
|
2614
1681
|
return response;
|
|
2615
1682
|
}, "de_DescribeFeaturedResultsSetCommand");
|
|
2616
|
-
var de_DescribeFeaturedResultsSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2617
|
-
const parsedOutput = {
|
|
2618
|
-
...output,
|
|
2619
|
-
body: await parseErrorBody(output.body, context)
|
|
2620
|
-
};
|
|
2621
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2622
|
-
switch (errorCode) {
|
|
2623
|
-
case "AccessDeniedException":
|
|
2624
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2625
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2626
|
-
case "InternalServerException":
|
|
2627
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2628
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2629
|
-
case "ResourceNotFoundException":
|
|
2630
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2631
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2632
|
-
case "ThrottlingException":
|
|
2633
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2634
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2635
|
-
case "ValidationException":
|
|
2636
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2637
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2638
|
-
default:
|
|
2639
|
-
const parsedBody = parsedOutput.body;
|
|
2640
|
-
return throwDefaultError({
|
|
2641
|
-
output,
|
|
2642
|
-
parsedBody,
|
|
2643
|
-
errorCode
|
|
2644
|
-
});
|
|
2645
|
-
}
|
|
2646
|
-
}, "de_DescribeFeaturedResultsSetCommandError");
|
|
2647
1683
|
var de_DescribeIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2648
1684
|
if (output.statusCode >= 300) {
|
|
2649
|
-
return
|
|
1685
|
+
return de_CommandError(output, context);
|
|
2650
1686
|
}
|
|
2651
1687
|
const data = await parseBody(output.body, context);
|
|
2652
1688
|
let contents = {};
|
|
@@ -2657,40 +1693,9 @@ var de_DescribeIndexCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2657
1693
|
};
|
|
2658
1694
|
return response;
|
|
2659
1695
|
}, "de_DescribeIndexCommand");
|
|
2660
|
-
var de_DescribeIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2661
|
-
const parsedOutput = {
|
|
2662
|
-
...output,
|
|
2663
|
-
body: await parseErrorBody(output.body, context)
|
|
2664
|
-
};
|
|
2665
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
|
-
switch (errorCode) {
|
|
2667
|
-
case "AccessDeniedException":
|
|
2668
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2669
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "InternalServerException":
|
|
2671
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2672
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2673
|
-
case "ResourceNotFoundException":
|
|
2674
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2675
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2676
|
-
case "ThrottlingException":
|
|
2677
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2678
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2679
|
-
case "ValidationException":
|
|
2680
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2681
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2682
|
-
default:
|
|
2683
|
-
const parsedBody = parsedOutput.body;
|
|
2684
|
-
return throwDefaultError({
|
|
2685
|
-
output,
|
|
2686
|
-
parsedBody,
|
|
2687
|
-
errorCode
|
|
2688
|
-
});
|
|
2689
|
-
}
|
|
2690
|
-
}, "de_DescribeIndexCommandError");
|
|
2691
1696
|
var de_DescribePrincipalMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2692
1697
|
if (output.statusCode >= 300) {
|
|
2693
|
-
return
|
|
1698
|
+
return de_CommandError(output, context);
|
|
2694
1699
|
}
|
|
2695
1700
|
const data = await parseBody(output.body, context);
|
|
2696
1701
|
let contents = {};
|
|
@@ -2701,40 +1706,9 @@ var de_DescribePrincipalMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2701
1706
|
};
|
|
2702
1707
|
return response;
|
|
2703
1708
|
}, "de_DescribePrincipalMappingCommand");
|
|
2704
|
-
var de_DescribePrincipalMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2705
|
-
const parsedOutput = {
|
|
2706
|
-
...output,
|
|
2707
|
-
body: await parseErrorBody(output.body, context)
|
|
2708
|
-
};
|
|
2709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2710
|
-
switch (errorCode) {
|
|
2711
|
-
case "AccessDeniedException":
|
|
2712
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2713
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2714
|
-
case "InternalServerException":
|
|
2715
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2716
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2717
|
-
case "ResourceNotFoundException":
|
|
2718
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2719
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2720
|
-
case "ThrottlingException":
|
|
2721
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2722
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2723
|
-
case "ValidationException":
|
|
2724
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2725
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2726
|
-
default:
|
|
2727
|
-
const parsedBody = parsedOutput.body;
|
|
2728
|
-
return throwDefaultError({
|
|
2729
|
-
output,
|
|
2730
|
-
parsedBody,
|
|
2731
|
-
errorCode
|
|
2732
|
-
});
|
|
2733
|
-
}
|
|
2734
|
-
}, "de_DescribePrincipalMappingCommandError");
|
|
2735
1709
|
var de_DescribeQuerySuggestionsBlockListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2736
1710
|
if (output.statusCode >= 300) {
|
|
2737
|
-
return
|
|
1711
|
+
return de_CommandError(output, context);
|
|
2738
1712
|
}
|
|
2739
1713
|
const data = await parseBody(output.body, context);
|
|
2740
1714
|
let contents = {};
|
|
@@ -2745,84 +1719,22 @@ var de_DescribeQuerySuggestionsBlockListCommand = /* @__PURE__ */ __name(async (
|
|
|
2745
1719
|
};
|
|
2746
1720
|
return response;
|
|
2747
1721
|
}, "de_DescribeQuerySuggestionsBlockListCommand");
|
|
2748
|
-
var
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
case "InternalServerException":
|
|
2759
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2760
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2761
|
-
case "ResourceNotFoundException":
|
|
2762
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2763
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2764
|
-
case "ThrottlingException":
|
|
2765
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2766
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2767
|
-
case "ValidationException":
|
|
2768
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2769
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2770
|
-
default:
|
|
2771
|
-
const parsedBody = parsedOutput.body;
|
|
2772
|
-
return throwDefaultError({
|
|
2773
|
-
output,
|
|
2774
|
-
parsedBody,
|
|
2775
|
-
errorCode
|
|
2776
|
-
});
|
|
2777
|
-
}
|
|
2778
|
-
}, "de_DescribeQuerySuggestionsBlockListCommandError");
|
|
2779
|
-
var de_DescribeQuerySuggestionsConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2780
|
-
if (output.statusCode >= 300) {
|
|
2781
|
-
return de_DescribeQuerySuggestionsConfigCommandError(output, context);
|
|
2782
|
-
}
|
|
2783
|
-
const data = await parseBody(output.body, context);
|
|
2784
|
-
let contents = {};
|
|
2785
|
-
contents = de_DescribeQuerySuggestionsConfigResponse(data, context);
|
|
2786
|
-
const response = {
|
|
2787
|
-
$metadata: deserializeMetadata(output),
|
|
2788
|
-
...contents
|
|
1722
|
+
var de_DescribeQuerySuggestionsConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1723
|
+
if (output.statusCode >= 300) {
|
|
1724
|
+
return de_CommandError(output, context);
|
|
1725
|
+
}
|
|
1726
|
+
const data = await parseBody(output.body, context);
|
|
1727
|
+
let contents = {};
|
|
1728
|
+
contents = de_DescribeQuerySuggestionsConfigResponse(data, context);
|
|
1729
|
+
const response = {
|
|
1730
|
+
$metadata: deserializeMetadata(output),
|
|
1731
|
+
...contents
|
|
2789
1732
|
};
|
|
2790
1733
|
return response;
|
|
2791
1734
|
}, "de_DescribeQuerySuggestionsConfigCommand");
|
|
2792
|
-
var de_DescribeQuerySuggestionsConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2793
|
-
const parsedOutput = {
|
|
2794
|
-
...output,
|
|
2795
|
-
body: await parseErrorBody(output.body, context)
|
|
2796
|
-
};
|
|
2797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
|
-
switch (errorCode) {
|
|
2799
|
-
case "AccessDeniedException":
|
|
2800
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2801
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2802
|
-
case "InternalServerException":
|
|
2803
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2804
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2805
|
-
case "ResourceNotFoundException":
|
|
2806
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2807
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2808
|
-
case "ThrottlingException":
|
|
2809
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2810
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2811
|
-
case "ValidationException":
|
|
2812
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2813
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2814
|
-
default:
|
|
2815
|
-
const parsedBody = parsedOutput.body;
|
|
2816
|
-
return throwDefaultError({
|
|
2817
|
-
output,
|
|
2818
|
-
parsedBody,
|
|
2819
|
-
errorCode
|
|
2820
|
-
});
|
|
2821
|
-
}
|
|
2822
|
-
}, "de_DescribeQuerySuggestionsConfigCommandError");
|
|
2823
1735
|
var de_DescribeThesaurusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2824
1736
|
if (output.statusCode >= 300) {
|
|
2825
|
-
return
|
|
1737
|
+
return de_CommandError(output, context);
|
|
2826
1738
|
}
|
|
2827
1739
|
const data = await parseBody(output.body, context);
|
|
2828
1740
|
let contents = {};
|
|
@@ -2833,40 +1745,9 @@ var de_DescribeThesaurusCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2833
1745
|
};
|
|
2834
1746
|
return response;
|
|
2835
1747
|
}, "de_DescribeThesaurusCommand");
|
|
2836
|
-
var de_DescribeThesaurusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2837
|
-
const parsedOutput = {
|
|
2838
|
-
...output,
|
|
2839
|
-
body: await parseErrorBody(output.body, context)
|
|
2840
|
-
};
|
|
2841
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2842
|
-
switch (errorCode) {
|
|
2843
|
-
case "AccessDeniedException":
|
|
2844
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2845
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "InternalServerException":
|
|
2847
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2848
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "ResourceNotFoundException":
|
|
2850
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2851
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "ThrottlingException":
|
|
2853
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2854
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2855
|
-
case "ValidationException":
|
|
2856
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2857
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2858
|
-
default:
|
|
2859
|
-
const parsedBody = parsedOutput.body;
|
|
2860
|
-
return throwDefaultError({
|
|
2861
|
-
output,
|
|
2862
|
-
parsedBody,
|
|
2863
|
-
errorCode
|
|
2864
|
-
});
|
|
2865
|
-
}
|
|
2866
|
-
}, "de_DescribeThesaurusCommandError");
|
|
2867
1748
|
var de_DisassociateEntitiesFromExperienceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2868
1749
|
if (output.statusCode >= 300) {
|
|
2869
|
-
return
|
|
1750
|
+
return de_CommandError(output, context);
|
|
2870
1751
|
}
|
|
2871
1752
|
const data = await parseBody(output.body, context);
|
|
2872
1753
|
let contents = {};
|
|
@@ -2877,40 +1758,9 @@ var de_DisassociateEntitiesFromExperienceCommand = /* @__PURE__ */ __name(async
|
|
|
2877
1758
|
};
|
|
2878
1759
|
return response;
|
|
2879
1760
|
}, "de_DisassociateEntitiesFromExperienceCommand");
|
|
2880
|
-
var de_DisassociateEntitiesFromExperienceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2881
|
-
const parsedOutput = {
|
|
2882
|
-
...output,
|
|
2883
|
-
body: await parseErrorBody(output.body, context)
|
|
2884
|
-
};
|
|
2885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2886
|
-
switch (errorCode) {
|
|
2887
|
-
case "AccessDeniedException":
|
|
2888
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2889
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "InternalServerException":
|
|
2891
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2892
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "ResourceNotFoundException":
|
|
2894
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2895
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "ThrottlingException":
|
|
2897
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2898
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2899
|
-
case "ValidationException":
|
|
2900
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2901
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2902
|
-
default:
|
|
2903
|
-
const parsedBody = parsedOutput.body;
|
|
2904
|
-
return throwDefaultError({
|
|
2905
|
-
output,
|
|
2906
|
-
parsedBody,
|
|
2907
|
-
errorCode
|
|
2908
|
-
});
|
|
2909
|
-
}
|
|
2910
|
-
}, "de_DisassociateEntitiesFromExperienceCommandError");
|
|
2911
1761
|
var de_DisassociatePersonasFromEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2912
1762
|
if (output.statusCode >= 300) {
|
|
2913
|
-
return
|
|
1763
|
+
return de_CommandError(output, context);
|
|
2914
1764
|
}
|
|
2915
1765
|
const data = await parseBody(output.body, context);
|
|
2916
1766
|
let contents = {};
|
|
@@ -2921,40 +1771,9 @@ var de_DisassociatePersonasFromEntitiesCommand = /* @__PURE__ */ __name(async (o
|
|
|
2921
1771
|
};
|
|
2922
1772
|
return response;
|
|
2923
1773
|
}, "de_DisassociatePersonasFromEntitiesCommand");
|
|
2924
|
-
var de_DisassociatePersonasFromEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2925
|
-
const parsedOutput = {
|
|
2926
|
-
...output,
|
|
2927
|
-
body: await parseErrorBody(output.body, context)
|
|
2928
|
-
};
|
|
2929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2930
|
-
switch (errorCode) {
|
|
2931
|
-
case "AccessDeniedException":
|
|
2932
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2933
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "InternalServerException":
|
|
2935
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2936
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "ResourceNotFoundException":
|
|
2938
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2939
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "ThrottlingException":
|
|
2941
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2942
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2943
|
-
case "ValidationException":
|
|
2944
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2945
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2946
|
-
default:
|
|
2947
|
-
const parsedBody = parsedOutput.body;
|
|
2948
|
-
return throwDefaultError({
|
|
2949
|
-
output,
|
|
2950
|
-
parsedBody,
|
|
2951
|
-
errorCode
|
|
2952
|
-
});
|
|
2953
|
-
}
|
|
2954
|
-
}, "de_DisassociatePersonasFromEntitiesCommandError");
|
|
2955
1774
|
var de_GetQuerySuggestionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2956
1775
|
if (output.statusCode >= 300) {
|
|
2957
|
-
return
|
|
1776
|
+
return de_CommandError(output, context);
|
|
2958
1777
|
}
|
|
2959
1778
|
const data = await parseBody(output.body, context);
|
|
2960
1779
|
let contents = {};
|
|
@@ -2965,46 +1784,9 @@ var de_GetQuerySuggestionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2965
1784
|
};
|
|
2966
1785
|
return response;
|
|
2967
1786
|
}, "de_GetQuerySuggestionsCommand");
|
|
2968
|
-
var de_GetQuerySuggestionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2969
|
-
const parsedOutput = {
|
|
2970
|
-
...output,
|
|
2971
|
-
body: await parseErrorBody(output.body, context)
|
|
2972
|
-
};
|
|
2973
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2974
|
-
switch (errorCode) {
|
|
2975
|
-
case "AccessDeniedException":
|
|
2976
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2977
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2978
|
-
case "ConflictException":
|
|
2979
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2980
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2981
|
-
case "InternalServerException":
|
|
2982
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2983
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "ResourceNotFoundException":
|
|
2985
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2986
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2987
|
-
case "ServiceQuotaExceededException":
|
|
2988
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
2989
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2990
|
-
case "ThrottlingException":
|
|
2991
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2992
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2993
|
-
case "ValidationException":
|
|
2994
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2995
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2996
|
-
default:
|
|
2997
|
-
const parsedBody = parsedOutput.body;
|
|
2998
|
-
return throwDefaultError({
|
|
2999
|
-
output,
|
|
3000
|
-
parsedBody,
|
|
3001
|
-
errorCode
|
|
3002
|
-
});
|
|
3003
|
-
}
|
|
3004
|
-
}, "de_GetQuerySuggestionsCommandError");
|
|
3005
1787
|
var de_GetSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3006
1788
|
if (output.statusCode >= 300) {
|
|
3007
|
-
return
|
|
1789
|
+
return de_CommandError(output, context);
|
|
3008
1790
|
}
|
|
3009
1791
|
const data = await parseBody(output.body, context);
|
|
3010
1792
|
let contents = {};
|
|
@@ -3015,37 +1797,9 @@ var de_GetSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3015
1797
|
};
|
|
3016
1798
|
return response;
|
|
3017
1799
|
}, "de_GetSnapshotsCommand");
|
|
3018
|
-
var de_GetSnapshotsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3019
|
-
const parsedOutput = {
|
|
3020
|
-
...output,
|
|
3021
|
-
body: await parseErrorBody(output.body, context)
|
|
3022
|
-
};
|
|
3023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3024
|
-
switch (errorCode) {
|
|
3025
|
-
case "AccessDeniedException":
|
|
3026
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3027
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3028
|
-
case "InternalServerException":
|
|
3029
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3030
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3031
|
-
case "InvalidRequestException":
|
|
3032
|
-
case "com.amazonaws.kendra#InvalidRequestException":
|
|
3033
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3034
|
-
case "ResourceNotFoundException":
|
|
3035
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3036
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3037
|
-
default:
|
|
3038
|
-
const parsedBody = parsedOutput.body;
|
|
3039
|
-
return throwDefaultError({
|
|
3040
|
-
output,
|
|
3041
|
-
parsedBody,
|
|
3042
|
-
errorCode
|
|
3043
|
-
});
|
|
3044
|
-
}
|
|
3045
|
-
}, "de_GetSnapshotsCommandError");
|
|
3046
1800
|
var de_ListAccessControlConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3047
1801
|
if (output.statusCode >= 300) {
|
|
3048
|
-
return
|
|
1802
|
+
return de_CommandError(output, context);
|
|
3049
1803
|
}
|
|
3050
1804
|
const data = await parseBody(output.body, context);
|
|
3051
1805
|
let contents = {};
|
|
@@ -3056,40 +1810,9 @@ var de_ListAccessControlConfigurationsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3056
1810
|
};
|
|
3057
1811
|
return response;
|
|
3058
1812
|
}, "de_ListAccessControlConfigurationsCommand");
|
|
3059
|
-
var de_ListAccessControlConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3060
|
-
const parsedOutput = {
|
|
3061
|
-
...output,
|
|
3062
|
-
body: await parseErrorBody(output.body, context)
|
|
3063
|
-
};
|
|
3064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3065
|
-
switch (errorCode) {
|
|
3066
|
-
case "AccessDeniedException":
|
|
3067
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3068
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3069
|
-
case "InternalServerException":
|
|
3070
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3071
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3072
|
-
case "ResourceNotFoundException":
|
|
3073
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3074
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "ThrottlingException":
|
|
3076
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3077
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "ValidationException":
|
|
3079
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3080
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3081
|
-
default:
|
|
3082
|
-
const parsedBody = parsedOutput.body;
|
|
3083
|
-
return throwDefaultError({
|
|
3084
|
-
output,
|
|
3085
|
-
parsedBody,
|
|
3086
|
-
errorCode
|
|
3087
|
-
});
|
|
3088
|
-
}
|
|
3089
|
-
}, "de_ListAccessControlConfigurationsCommandError");
|
|
3090
1813
|
var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3091
1814
|
if (output.statusCode >= 300) {
|
|
3092
|
-
return
|
|
1815
|
+
return de_CommandError(output, context);
|
|
3093
1816
|
}
|
|
3094
1817
|
const data = await parseBody(output.body, context);
|
|
3095
1818
|
let contents = {};
|
|
@@ -3100,87 +1823,22 @@ var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3100
1823
|
};
|
|
3101
1824
|
return response;
|
|
3102
1825
|
}, "de_ListDataSourcesCommand");
|
|
3103
|
-
var
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
case "InternalServerException":
|
|
3114
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3115
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3116
|
-
case "ResourceNotFoundException":
|
|
3117
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3118
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3119
|
-
case "ThrottlingException":
|
|
3120
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3121
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3122
|
-
case "ValidationException":
|
|
3123
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3124
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3125
|
-
default:
|
|
3126
|
-
const parsedBody = parsedOutput.body;
|
|
3127
|
-
return throwDefaultError({
|
|
3128
|
-
output,
|
|
3129
|
-
parsedBody,
|
|
3130
|
-
errorCode
|
|
3131
|
-
});
|
|
3132
|
-
}
|
|
3133
|
-
}, "de_ListDataSourcesCommandError");
|
|
3134
|
-
var de_ListDataSourceSyncJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3135
|
-
if (output.statusCode >= 300) {
|
|
3136
|
-
return de_ListDataSourceSyncJobsCommandError(output, context);
|
|
3137
|
-
}
|
|
3138
|
-
const data = await parseBody(output.body, context);
|
|
3139
|
-
let contents = {};
|
|
3140
|
-
contents = de_ListDataSourceSyncJobsResponse(data, context);
|
|
3141
|
-
const response = {
|
|
3142
|
-
$metadata: deserializeMetadata(output),
|
|
3143
|
-
...contents
|
|
1826
|
+
var de_ListDataSourceSyncJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1827
|
+
if (output.statusCode >= 300) {
|
|
1828
|
+
return de_CommandError(output, context);
|
|
1829
|
+
}
|
|
1830
|
+
const data = await parseBody(output.body, context);
|
|
1831
|
+
let contents = {};
|
|
1832
|
+
contents = de_ListDataSourceSyncJobsResponse(data, context);
|
|
1833
|
+
const response = {
|
|
1834
|
+
$metadata: deserializeMetadata(output),
|
|
1835
|
+
...contents
|
|
3144
1836
|
};
|
|
3145
1837
|
return response;
|
|
3146
1838
|
}, "de_ListDataSourceSyncJobsCommand");
|
|
3147
|
-
var de_ListDataSourceSyncJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3148
|
-
const parsedOutput = {
|
|
3149
|
-
...output,
|
|
3150
|
-
body: await parseErrorBody(output.body, context)
|
|
3151
|
-
};
|
|
3152
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3153
|
-
switch (errorCode) {
|
|
3154
|
-
case "AccessDeniedException":
|
|
3155
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3156
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3157
|
-
case "ConflictException":
|
|
3158
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3159
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3160
|
-
case "InternalServerException":
|
|
3161
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3162
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3163
|
-
case "ResourceNotFoundException":
|
|
3164
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3165
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3166
|
-
case "ThrottlingException":
|
|
3167
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3168
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3169
|
-
case "ValidationException":
|
|
3170
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3171
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3172
|
-
default:
|
|
3173
|
-
const parsedBody = parsedOutput.body;
|
|
3174
|
-
return throwDefaultError({
|
|
3175
|
-
output,
|
|
3176
|
-
parsedBody,
|
|
3177
|
-
errorCode
|
|
3178
|
-
});
|
|
3179
|
-
}
|
|
3180
|
-
}, "de_ListDataSourceSyncJobsCommandError");
|
|
3181
1839
|
var de_ListEntityPersonasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3182
1840
|
if (output.statusCode >= 300) {
|
|
3183
|
-
return
|
|
1841
|
+
return de_CommandError(output, context);
|
|
3184
1842
|
}
|
|
3185
1843
|
const data = await parseBody(output.body, context);
|
|
3186
1844
|
let contents = {};
|
|
@@ -3191,40 +1849,9 @@ var de_ListEntityPersonasCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3191
1849
|
};
|
|
3192
1850
|
return response;
|
|
3193
1851
|
}, "de_ListEntityPersonasCommand");
|
|
3194
|
-
var de_ListEntityPersonasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3195
|
-
const parsedOutput = {
|
|
3196
|
-
...output,
|
|
3197
|
-
body: await parseErrorBody(output.body, context)
|
|
3198
|
-
};
|
|
3199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3200
|
-
switch (errorCode) {
|
|
3201
|
-
case "AccessDeniedException":
|
|
3202
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3203
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3204
|
-
case "InternalServerException":
|
|
3205
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3206
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3207
|
-
case "ResourceNotFoundException":
|
|
3208
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3209
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3210
|
-
case "ThrottlingException":
|
|
3211
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3212
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3213
|
-
case "ValidationException":
|
|
3214
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3215
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3216
|
-
default:
|
|
3217
|
-
const parsedBody = parsedOutput.body;
|
|
3218
|
-
return throwDefaultError({
|
|
3219
|
-
output,
|
|
3220
|
-
parsedBody,
|
|
3221
|
-
errorCode
|
|
3222
|
-
});
|
|
3223
|
-
}
|
|
3224
|
-
}, "de_ListEntityPersonasCommandError");
|
|
3225
1852
|
var de_ListExperienceEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3226
1853
|
if (output.statusCode >= 300) {
|
|
3227
|
-
return
|
|
1854
|
+
return de_CommandError(output, context);
|
|
3228
1855
|
}
|
|
3229
1856
|
const data = await parseBody(output.body, context);
|
|
3230
1857
|
let contents = {};
|
|
@@ -3235,40 +1862,9 @@ var de_ListExperienceEntitiesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3235
1862
|
};
|
|
3236
1863
|
return response;
|
|
3237
1864
|
}, "de_ListExperienceEntitiesCommand");
|
|
3238
|
-
var de_ListExperienceEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3239
|
-
const parsedOutput = {
|
|
3240
|
-
...output,
|
|
3241
|
-
body: await parseErrorBody(output.body, context)
|
|
3242
|
-
};
|
|
3243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3244
|
-
switch (errorCode) {
|
|
3245
|
-
case "AccessDeniedException":
|
|
3246
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3247
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3248
|
-
case "InternalServerException":
|
|
3249
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3250
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3251
|
-
case "ResourceNotFoundException":
|
|
3252
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3253
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3254
|
-
case "ThrottlingException":
|
|
3255
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3256
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3257
|
-
case "ValidationException":
|
|
3258
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3259
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3260
|
-
default:
|
|
3261
|
-
const parsedBody = parsedOutput.body;
|
|
3262
|
-
return throwDefaultError({
|
|
3263
|
-
output,
|
|
3264
|
-
parsedBody,
|
|
3265
|
-
errorCode
|
|
3266
|
-
});
|
|
3267
|
-
}
|
|
3268
|
-
}, "de_ListExperienceEntitiesCommandError");
|
|
3269
1865
|
var de_ListExperiencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3270
1866
|
if (output.statusCode >= 300) {
|
|
3271
|
-
return
|
|
1867
|
+
return de_CommandError(output, context);
|
|
3272
1868
|
}
|
|
3273
1869
|
const data = await parseBody(output.body, context);
|
|
3274
1870
|
let contents = {};
|
|
@@ -3279,40 +1875,9 @@ var de_ListExperiencesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3279
1875
|
};
|
|
3280
1876
|
return response;
|
|
3281
1877
|
}, "de_ListExperiencesCommand");
|
|
3282
|
-
var de_ListExperiencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3283
|
-
const parsedOutput = {
|
|
3284
|
-
...output,
|
|
3285
|
-
body: await parseErrorBody(output.body, context)
|
|
3286
|
-
};
|
|
3287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3288
|
-
switch (errorCode) {
|
|
3289
|
-
case "AccessDeniedException":
|
|
3290
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3291
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3292
|
-
case "InternalServerException":
|
|
3293
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3294
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3295
|
-
case "ResourceNotFoundException":
|
|
3296
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3297
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3298
|
-
case "ThrottlingException":
|
|
3299
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3300
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3301
|
-
case "ValidationException":
|
|
3302
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3303
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3304
|
-
default:
|
|
3305
|
-
const parsedBody = parsedOutput.body;
|
|
3306
|
-
return throwDefaultError({
|
|
3307
|
-
output,
|
|
3308
|
-
parsedBody,
|
|
3309
|
-
errorCode
|
|
3310
|
-
});
|
|
3311
|
-
}
|
|
3312
|
-
}, "de_ListExperiencesCommandError");
|
|
3313
1878
|
var de_ListFaqsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3314
1879
|
if (output.statusCode >= 300) {
|
|
3315
|
-
return
|
|
1880
|
+
return de_CommandError(output, context);
|
|
3316
1881
|
}
|
|
3317
1882
|
const data = await parseBody(output.body, context);
|
|
3318
1883
|
let contents = {};
|
|
@@ -3323,40 +1888,9 @@ var de_ListFaqsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3323
1888
|
};
|
|
3324
1889
|
return response;
|
|
3325
1890
|
}, "de_ListFaqsCommand");
|
|
3326
|
-
var de_ListFaqsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3327
|
-
const parsedOutput = {
|
|
3328
|
-
...output,
|
|
3329
|
-
body: await parseErrorBody(output.body, context)
|
|
3330
|
-
};
|
|
3331
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3332
|
-
switch (errorCode) {
|
|
3333
|
-
case "AccessDeniedException":
|
|
3334
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3335
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3336
|
-
case "InternalServerException":
|
|
3337
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3338
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3339
|
-
case "ResourceNotFoundException":
|
|
3340
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3341
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3342
|
-
case "ThrottlingException":
|
|
3343
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3344
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3345
|
-
case "ValidationException":
|
|
3346
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3347
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3348
|
-
default:
|
|
3349
|
-
const parsedBody = parsedOutput.body;
|
|
3350
|
-
return throwDefaultError({
|
|
3351
|
-
output,
|
|
3352
|
-
parsedBody,
|
|
3353
|
-
errorCode
|
|
3354
|
-
});
|
|
3355
|
-
}
|
|
3356
|
-
}, "de_ListFaqsCommandError");
|
|
3357
1891
|
var de_ListFeaturedResultsSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3358
1892
|
if (output.statusCode >= 300) {
|
|
3359
|
-
return
|
|
1893
|
+
return de_CommandError(output, context);
|
|
3360
1894
|
}
|
|
3361
1895
|
const data = await parseBody(output.body, context);
|
|
3362
1896
|
let contents = {};
|
|
@@ -3367,40 +1901,9 @@ var de_ListFeaturedResultsSetsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3367
1901
|
};
|
|
3368
1902
|
return response;
|
|
3369
1903
|
}, "de_ListFeaturedResultsSetsCommand");
|
|
3370
|
-
var de_ListFeaturedResultsSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3371
|
-
const parsedOutput = {
|
|
3372
|
-
...output,
|
|
3373
|
-
body: await parseErrorBody(output.body, context)
|
|
3374
|
-
};
|
|
3375
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3376
|
-
switch (errorCode) {
|
|
3377
|
-
case "AccessDeniedException":
|
|
3378
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3379
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3380
|
-
case "InternalServerException":
|
|
3381
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3382
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3383
|
-
case "ResourceNotFoundException":
|
|
3384
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3385
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3386
|
-
case "ThrottlingException":
|
|
3387
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3388
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3389
|
-
case "ValidationException":
|
|
3390
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3391
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3392
|
-
default:
|
|
3393
|
-
const parsedBody = parsedOutput.body;
|
|
3394
|
-
return throwDefaultError({
|
|
3395
|
-
output,
|
|
3396
|
-
parsedBody,
|
|
3397
|
-
errorCode
|
|
3398
|
-
});
|
|
3399
|
-
}
|
|
3400
|
-
}, "de_ListFeaturedResultsSetsCommandError");
|
|
3401
1904
|
var de_ListGroupsOlderThanOrderingIdCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3402
1905
|
if (output.statusCode >= 300) {
|
|
3403
|
-
return
|
|
1906
|
+
return de_CommandError(output, context);
|
|
3404
1907
|
}
|
|
3405
1908
|
const data = await parseBody(output.body, context);
|
|
3406
1909
|
let contents = {};
|
|
@@ -3411,43 +1914,9 @@ var de_ListGroupsOlderThanOrderingIdCommand = /* @__PURE__ */ __name(async (outp
|
|
|
3411
1914
|
};
|
|
3412
1915
|
return response;
|
|
3413
1916
|
}, "de_ListGroupsOlderThanOrderingIdCommand");
|
|
3414
|
-
var de_ListGroupsOlderThanOrderingIdCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3415
|
-
const parsedOutput = {
|
|
3416
|
-
...output,
|
|
3417
|
-
body: await parseErrorBody(output.body, context)
|
|
3418
|
-
};
|
|
3419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3420
|
-
switch (errorCode) {
|
|
3421
|
-
case "AccessDeniedException":
|
|
3422
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3423
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3424
|
-
case "ConflictException":
|
|
3425
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3426
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3427
|
-
case "InternalServerException":
|
|
3428
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3429
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3430
|
-
case "ResourceNotFoundException":
|
|
3431
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3432
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3433
|
-
case "ThrottlingException":
|
|
3434
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3435
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3436
|
-
case "ValidationException":
|
|
3437
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3438
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3439
|
-
default:
|
|
3440
|
-
const parsedBody = parsedOutput.body;
|
|
3441
|
-
return throwDefaultError({
|
|
3442
|
-
output,
|
|
3443
|
-
parsedBody,
|
|
3444
|
-
errorCode
|
|
3445
|
-
});
|
|
3446
|
-
}
|
|
3447
|
-
}, "de_ListGroupsOlderThanOrderingIdCommandError");
|
|
3448
1917
|
var de_ListIndicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3449
1918
|
if (output.statusCode >= 300) {
|
|
3450
|
-
return
|
|
1919
|
+
return de_CommandError(output, context);
|
|
3451
1920
|
}
|
|
3452
1921
|
const data = await parseBody(output.body, context);
|
|
3453
1922
|
let contents = {};
|
|
@@ -3458,37 +1927,9 @@ var de_ListIndicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3458
1927
|
};
|
|
3459
1928
|
return response;
|
|
3460
1929
|
}, "de_ListIndicesCommand");
|
|
3461
|
-
var de_ListIndicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3462
|
-
const parsedOutput = {
|
|
3463
|
-
...output,
|
|
3464
|
-
body: await parseErrorBody(output.body, context)
|
|
3465
|
-
};
|
|
3466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3467
|
-
switch (errorCode) {
|
|
3468
|
-
case "AccessDeniedException":
|
|
3469
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3470
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3471
|
-
case "InternalServerException":
|
|
3472
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3473
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3474
|
-
case "ThrottlingException":
|
|
3475
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3476
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3477
|
-
case "ValidationException":
|
|
3478
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3479
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3480
|
-
default:
|
|
3481
|
-
const parsedBody = parsedOutput.body;
|
|
3482
|
-
return throwDefaultError({
|
|
3483
|
-
output,
|
|
3484
|
-
parsedBody,
|
|
3485
|
-
errorCode
|
|
3486
|
-
});
|
|
3487
|
-
}
|
|
3488
|
-
}, "de_ListIndicesCommandError");
|
|
3489
1930
|
var de_ListQuerySuggestionsBlockListsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3490
1931
|
if (output.statusCode >= 300) {
|
|
3491
|
-
return
|
|
1932
|
+
return de_CommandError(output, context);
|
|
3492
1933
|
}
|
|
3493
1934
|
const data = await parseBody(output.body, context);
|
|
3494
1935
|
let contents = {};
|
|
@@ -3499,175 +1940,45 @@ var de_ListQuerySuggestionsBlockListsCommand = /* @__PURE__ */ __name(async (out
|
|
|
3499
1940
|
};
|
|
3500
1941
|
return response;
|
|
3501
1942
|
}, "de_ListQuerySuggestionsBlockListsCommand");
|
|
3502
|
-
var de_ListQuerySuggestionsBlockListsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3503
|
-
const parsedOutput = {
|
|
3504
|
-
...output,
|
|
3505
|
-
body: await parseErrorBody(output.body, context)
|
|
3506
|
-
};
|
|
3507
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3508
|
-
switch (errorCode) {
|
|
3509
|
-
case "AccessDeniedException":
|
|
3510
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3511
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3512
|
-
case "InternalServerException":
|
|
3513
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3514
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3515
|
-
case "ResourceNotFoundException":
|
|
3516
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3517
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3518
|
-
case "ThrottlingException":
|
|
3519
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3520
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3521
|
-
case "ValidationException":
|
|
3522
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3523
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3524
|
-
default:
|
|
3525
|
-
const parsedBody = parsedOutput.body;
|
|
3526
|
-
return throwDefaultError({
|
|
3527
|
-
output,
|
|
3528
|
-
parsedBody,
|
|
3529
|
-
errorCode
|
|
3530
|
-
});
|
|
3531
|
-
}
|
|
3532
|
-
}, "de_ListQuerySuggestionsBlockListsCommandError");
|
|
3533
1943
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3534
1944
|
if (output.statusCode >= 300) {
|
|
3535
|
-
return
|
|
3536
|
-
}
|
|
3537
|
-
const data = await parseBody(output.body, context);
|
|
3538
|
-
let contents = {};
|
|
3539
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3540
|
-
const response = {
|
|
3541
|
-
$metadata: deserializeMetadata(output),
|
|
3542
|
-
...contents
|
|
3543
|
-
};
|
|
3544
|
-
return response;
|
|
3545
|
-
}, "de_ListTagsForResourceCommand");
|
|
3546
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3547
|
-
const parsedOutput = {
|
|
3548
|
-
...output,
|
|
3549
|
-
body: await parseErrorBody(output.body, context)
|
|
3550
|
-
};
|
|
3551
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3552
|
-
switch (errorCode) {
|
|
3553
|
-
case "AccessDeniedException":
|
|
3554
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3555
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3556
|
-
case "InternalServerException":
|
|
3557
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3558
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3559
|
-
case "ResourceUnavailableException":
|
|
3560
|
-
case "com.amazonaws.kendra#ResourceUnavailableException":
|
|
3561
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3562
|
-
case "ThrottlingException":
|
|
3563
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3564
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3565
|
-
case "ValidationException":
|
|
3566
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3567
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3568
|
-
default:
|
|
3569
|
-
const parsedBody = parsedOutput.body;
|
|
3570
|
-
return throwDefaultError({
|
|
3571
|
-
output,
|
|
3572
|
-
parsedBody,
|
|
3573
|
-
errorCode
|
|
3574
|
-
});
|
|
3575
|
-
}
|
|
3576
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3577
|
-
var de_ListThesauriCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3578
|
-
if (output.statusCode >= 300) {
|
|
3579
|
-
return de_ListThesauriCommandError(output, context);
|
|
3580
|
-
}
|
|
3581
|
-
const data = await parseBody(output.body, context);
|
|
3582
|
-
let contents = {};
|
|
3583
|
-
contents = de_ListThesauriResponse(data, context);
|
|
3584
|
-
const response = {
|
|
3585
|
-
$metadata: deserializeMetadata(output),
|
|
3586
|
-
...contents
|
|
3587
|
-
};
|
|
3588
|
-
return response;
|
|
3589
|
-
}, "de_ListThesauriCommand");
|
|
3590
|
-
var de_ListThesauriCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3591
|
-
const parsedOutput = {
|
|
3592
|
-
...output,
|
|
3593
|
-
body: await parseErrorBody(output.body, context)
|
|
3594
|
-
};
|
|
3595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3596
|
-
switch (errorCode) {
|
|
3597
|
-
case "AccessDeniedException":
|
|
3598
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3599
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3600
|
-
case "InternalServerException":
|
|
3601
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3602
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3603
|
-
case "ResourceNotFoundException":
|
|
3604
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3605
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3606
|
-
case "ThrottlingException":
|
|
3607
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3608
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3609
|
-
case "ValidationException":
|
|
3610
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3611
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3612
|
-
default:
|
|
3613
|
-
const parsedBody = parsedOutput.body;
|
|
3614
|
-
return throwDefaultError({
|
|
3615
|
-
output,
|
|
3616
|
-
parsedBody,
|
|
3617
|
-
errorCode
|
|
3618
|
-
});
|
|
3619
|
-
}
|
|
3620
|
-
}, "de_ListThesauriCommandError");
|
|
3621
|
-
var de_PutPrincipalMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3622
|
-
if (output.statusCode >= 300) {
|
|
3623
|
-
return de_PutPrincipalMappingCommandError(output, context);
|
|
3624
|
-
}
|
|
3625
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3626
|
-
const response = {
|
|
3627
|
-
$metadata: deserializeMetadata(output)
|
|
3628
|
-
};
|
|
3629
|
-
return response;
|
|
3630
|
-
}, "de_PutPrincipalMappingCommand");
|
|
3631
|
-
var de_PutPrincipalMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3632
|
-
const parsedOutput = {
|
|
3633
|
-
...output,
|
|
3634
|
-
body: await parseErrorBody(output.body, context)
|
|
3635
|
-
};
|
|
3636
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3637
|
-
switch (errorCode) {
|
|
3638
|
-
case "AccessDeniedException":
|
|
3639
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3640
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3641
|
-
case "ConflictException":
|
|
3642
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3643
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3644
|
-
case "InternalServerException":
|
|
3645
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3646
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3647
|
-
case "ResourceNotFoundException":
|
|
3648
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3649
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3650
|
-
case "ServiceQuotaExceededException":
|
|
3651
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
3652
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3653
|
-
case "ThrottlingException":
|
|
3654
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3655
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3656
|
-
case "ValidationException":
|
|
3657
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3658
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3659
|
-
default:
|
|
3660
|
-
const parsedBody = parsedOutput.body;
|
|
3661
|
-
return throwDefaultError({
|
|
3662
|
-
output,
|
|
3663
|
-
parsedBody,
|
|
3664
|
-
errorCode
|
|
3665
|
-
});
|
|
1945
|
+
return de_CommandError(output, context);
|
|
3666
1946
|
}
|
|
3667
|
-
|
|
1947
|
+
const data = await parseBody(output.body, context);
|
|
1948
|
+
let contents = {};
|
|
1949
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1950
|
+
const response = {
|
|
1951
|
+
$metadata: deserializeMetadata(output),
|
|
1952
|
+
...contents
|
|
1953
|
+
};
|
|
1954
|
+
return response;
|
|
1955
|
+
}, "de_ListTagsForResourceCommand");
|
|
1956
|
+
var de_ListThesauriCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1957
|
+
if (output.statusCode >= 300) {
|
|
1958
|
+
return de_CommandError(output, context);
|
|
1959
|
+
}
|
|
1960
|
+
const data = await parseBody(output.body, context);
|
|
1961
|
+
let contents = {};
|
|
1962
|
+
contents = de_ListThesauriResponse(data, context);
|
|
1963
|
+
const response = {
|
|
1964
|
+
$metadata: deserializeMetadata(output),
|
|
1965
|
+
...contents
|
|
1966
|
+
};
|
|
1967
|
+
return response;
|
|
1968
|
+
}, "de_ListThesauriCommand");
|
|
1969
|
+
var de_PutPrincipalMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1970
|
+
if (output.statusCode >= 300) {
|
|
1971
|
+
return de_CommandError(output, context);
|
|
1972
|
+
}
|
|
1973
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1974
|
+
const response = {
|
|
1975
|
+
$metadata: deserializeMetadata(output)
|
|
1976
|
+
};
|
|
1977
|
+
return response;
|
|
1978
|
+
}, "de_PutPrincipalMappingCommand");
|
|
3668
1979
|
var de_QueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3669
1980
|
if (output.statusCode >= 300) {
|
|
3670
|
-
return
|
|
1981
|
+
return de_CommandError(output, context);
|
|
3671
1982
|
}
|
|
3672
1983
|
const data = await parseBody(output.body, context);
|
|
3673
1984
|
let contents = {};
|
|
@@ -3678,46 +1989,9 @@ var de_QueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3678
1989
|
};
|
|
3679
1990
|
return response;
|
|
3680
1991
|
}, "de_QueryCommand");
|
|
3681
|
-
var de_QueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3682
|
-
const parsedOutput = {
|
|
3683
|
-
...output,
|
|
3684
|
-
body: await parseErrorBody(output.body, context)
|
|
3685
|
-
};
|
|
3686
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3687
|
-
switch (errorCode) {
|
|
3688
|
-
case "AccessDeniedException":
|
|
3689
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3690
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3691
|
-
case "ConflictException":
|
|
3692
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3693
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3694
|
-
case "InternalServerException":
|
|
3695
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3696
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3697
|
-
case "ResourceNotFoundException":
|
|
3698
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3699
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3700
|
-
case "ServiceQuotaExceededException":
|
|
3701
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
3702
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3703
|
-
case "ThrottlingException":
|
|
3704
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3705
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3706
|
-
case "ValidationException":
|
|
3707
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3708
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3709
|
-
default:
|
|
3710
|
-
const parsedBody = parsedOutput.body;
|
|
3711
|
-
return throwDefaultError({
|
|
3712
|
-
output,
|
|
3713
|
-
parsedBody,
|
|
3714
|
-
errorCode
|
|
3715
|
-
});
|
|
3716
|
-
}
|
|
3717
|
-
}, "de_QueryCommandError");
|
|
3718
1992
|
var de_RetrieveCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3719
1993
|
if (output.statusCode >= 300) {
|
|
3720
|
-
return
|
|
1994
|
+
return de_CommandError(output, context);
|
|
3721
1995
|
}
|
|
3722
1996
|
const data = await parseBody(output.body, context);
|
|
3723
1997
|
let contents = {};
|
|
@@ -3728,46 +2002,9 @@ var de_RetrieveCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3728
2002
|
};
|
|
3729
2003
|
return response;
|
|
3730
2004
|
}, "de_RetrieveCommand");
|
|
3731
|
-
var de_RetrieveCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3732
|
-
const parsedOutput = {
|
|
3733
|
-
...output,
|
|
3734
|
-
body: await parseErrorBody(output.body, context)
|
|
3735
|
-
};
|
|
3736
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3737
|
-
switch (errorCode) {
|
|
3738
|
-
case "AccessDeniedException":
|
|
3739
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3740
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3741
|
-
case "ConflictException":
|
|
3742
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3743
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3744
|
-
case "InternalServerException":
|
|
3745
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3746
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3747
|
-
case "ResourceNotFoundException":
|
|
3748
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3749
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3750
|
-
case "ServiceQuotaExceededException":
|
|
3751
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
3752
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3753
|
-
case "ThrottlingException":
|
|
3754
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3755
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3756
|
-
case "ValidationException":
|
|
3757
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3758
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3759
|
-
default:
|
|
3760
|
-
const parsedBody = parsedOutput.body;
|
|
3761
|
-
return throwDefaultError({
|
|
3762
|
-
output,
|
|
3763
|
-
parsedBody,
|
|
3764
|
-
errorCode
|
|
3765
|
-
});
|
|
3766
|
-
}
|
|
3767
|
-
}, "de_RetrieveCommandError");
|
|
3768
2005
|
var de_StartDataSourceSyncJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3769
2006
|
if (output.statusCode >= 300) {
|
|
3770
|
-
return
|
|
2007
|
+
return de_CommandError(output, context);
|
|
3771
2008
|
}
|
|
3772
2009
|
const data = await parseBody(output.body, context);
|
|
3773
2010
|
let contents = {};
|
|
@@ -3778,46 +2015,9 @@ var de_StartDataSourceSyncJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3778
2015
|
};
|
|
3779
2016
|
return response;
|
|
3780
2017
|
}, "de_StartDataSourceSyncJobCommand");
|
|
3781
|
-
var de_StartDataSourceSyncJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3782
|
-
const parsedOutput = {
|
|
3783
|
-
...output,
|
|
3784
|
-
body: await parseErrorBody(output.body, context)
|
|
3785
|
-
};
|
|
3786
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3787
|
-
switch (errorCode) {
|
|
3788
|
-
case "AccessDeniedException":
|
|
3789
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3790
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3791
|
-
case "ConflictException":
|
|
3792
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3793
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3794
|
-
case "InternalServerException":
|
|
3795
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3796
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3797
|
-
case "ResourceInUseException":
|
|
3798
|
-
case "com.amazonaws.kendra#ResourceInUseException":
|
|
3799
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3800
|
-
case "ResourceNotFoundException":
|
|
3801
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3802
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3803
|
-
case "ThrottlingException":
|
|
3804
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3805
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3806
|
-
case "ValidationException":
|
|
3807
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3808
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3809
|
-
default:
|
|
3810
|
-
const parsedBody = parsedOutput.body;
|
|
3811
|
-
return throwDefaultError({
|
|
3812
|
-
output,
|
|
3813
|
-
parsedBody,
|
|
3814
|
-
errorCode
|
|
3815
|
-
});
|
|
3816
|
-
}
|
|
3817
|
-
}, "de_StartDataSourceSyncJobCommandError");
|
|
3818
2018
|
var de_StopDataSourceSyncJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3819
2019
|
if (output.statusCode >= 300) {
|
|
3820
|
-
return
|
|
2020
|
+
return de_CommandError(output, context);
|
|
3821
2021
|
}
|
|
3822
2022
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3823
2023
|
const response = {
|
|
@@ -3825,40 +2025,9 @@ var de_StopDataSourceSyncJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3825
2025
|
};
|
|
3826
2026
|
return response;
|
|
3827
2027
|
}, "de_StopDataSourceSyncJobCommand");
|
|
3828
|
-
var de_StopDataSourceSyncJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3829
|
-
const parsedOutput = {
|
|
3830
|
-
...output,
|
|
3831
|
-
body: await parseErrorBody(output.body, context)
|
|
3832
|
-
};
|
|
3833
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3834
|
-
switch (errorCode) {
|
|
3835
|
-
case "AccessDeniedException":
|
|
3836
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3837
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3838
|
-
case "InternalServerException":
|
|
3839
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3840
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3841
|
-
case "ResourceNotFoundException":
|
|
3842
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3843
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3844
|
-
case "ThrottlingException":
|
|
3845
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3846
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3847
|
-
case "ValidationException":
|
|
3848
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3849
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3850
|
-
default:
|
|
3851
|
-
const parsedBody = parsedOutput.body;
|
|
3852
|
-
return throwDefaultError({
|
|
3853
|
-
output,
|
|
3854
|
-
parsedBody,
|
|
3855
|
-
errorCode
|
|
3856
|
-
});
|
|
3857
|
-
}
|
|
3858
|
-
}, "de_StopDataSourceSyncJobCommandError");
|
|
3859
2028
|
var de_SubmitFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3860
2029
|
if (output.statusCode >= 300) {
|
|
3861
|
-
return
|
|
2030
|
+
return de_CommandError(output, context);
|
|
3862
2031
|
}
|
|
3863
2032
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3864
2033
|
const response = {
|
|
@@ -3866,43 +2035,9 @@ var de_SubmitFeedbackCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3866
2035
|
};
|
|
3867
2036
|
return response;
|
|
3868
2037
|
}, "de_SubmitFeedbackCommand");
|
|
3869
|
-
var de_SubmitFeedbackCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3870
|
-
const parsedOutput = {
|
|
3871
|
-
...output,
|
|
3872
|
-
body: await parseErrorBody(output.body, context)
|
|
3873
|
-
};
|
|
3874
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3875
|
-
switch (errorCode) {
|
|
3876
|
-
case "AccessDeniedException":
|
|
3877
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3878
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3879
|
-
case "InternalServerException":
|
|
3880
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3881
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3882
|
-
case "ResourceNotFoundException":
|
|
3883
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3884
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3885
|
-
case "ResourceUnavailableException":
|
|
3886
|
-
case "com.amazonaws.kendra#ResourceUnavailableException":
|
|
3887
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3888
|
-
case "ThrottlingException":
|
|
3889
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3890
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3891
|
-
case "ValidationException":
|
|
3892
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3893
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3894
|
-
default:
|
|
3895
|
-
const parsedBody = parsedOutput.body;
|
|
3896
|
-
return throwDefaultError({
|
|
3897
|
-
output,
|
|
3898
|
-
parsedBody,
|
|
3899
|
-
errorCode
|
|
3900
|
-
});
|
|
3901
|
-
}
|
|
3902
|
-
}, "de_SubmitFeedbackCommandError");
|
|
3903
2038
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3904
2039
|
if (output.statusCode >= 300) {
|
|
3905
|
-
return
|
|
2040
|
+
return de_CommandError(output, context);
|
|
3906
2041
|
}
|
|
3907
2042
|
const data = await parseBody(output.body, context);
|
|
3908
2043
|
let contents = {};
|
|
@@ -3913,40 +2048,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3913
2048
|
};
|
|
3914
2049
|
return response;
|
|
3915
2050
|
}, "de_TagResourceCommand");
|
|
3916
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3917
|
-
const parsedOutput = {
|
|
3918
|
-
...output,
|
|
3919
|
-
body: await parseErrorBody(output.body, context)
|
|
3920
|
-
};
|
|
3921
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3922
|
-
switch (errorCode) {
|
|
3923
|
-
case "AccessDeniedException":
|
|
3924
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3925
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3926
|
-
case "InternalServerException":
|
|
3927
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3928
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3929
|
-
case "ResourceUnavailableException":
|
|
3930
|
-
case "com.amazonaws.kendra#ResourceUnavailableException":
|
|
3931
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3932
|
-
case "ThrottlingException":
|
|
3933
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3934
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3935
|
-
case "ValidationException":
|
|
3936
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3937
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3938
|
-
default:
|
|
3939
|
-
const parsedBody = parsedOutput.body;
|
|
3940
|
-
return throwDefaultError({
|
|
3941
|
-
output,
|
|
3942
|
-
parsedBody,
|
|
3943
|
-
errorCode
|
|
3944
|
-
});
|
|
3945
|
-
}
|
|
3946
|
-
}, "de_TagResourceCommandError");
|
|
3947
2051
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3948
2052
|
if (output.statusCode >= 300) {
|
|
3949
|
-
return
|
|
2053
|
+
return de_CommandError(output, context);
|
|
3950
2054
|
}
|
|
3951
2055
|
const data = await parseBody(output.body, context);
|
|
3952
2056
|
let contents = {};
|
|
@@ -3955,42 +2059,11 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3955
2059
|
$metadata: deserializeMetadata(output),
|
|
3956
2060
|
...contents
|
|
3957
2061
|
};
|
|
3958
|
-
return response;
|
|
3959
|
-
}, "de_UntagResourceCommand");
|
|
3960
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3961
|
-
const parsedOutput = {
|
|
3962
|
-
...output,
|
|
3963
|
-
body: await parseErrorBody(output.body, context)
|
|
3964
|
-
};
|
|
3965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3966
|
-
switch (errorCode) {
|
|
3967
|
-
case "AccessDeniedException":
|
|
3968
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3969
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3970
|
-
case "InternalServerException":
|
|
3971
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3972
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3973
|
-
case "ResourceUnavailableException":
|
|
3974
|
-
case "com.amazonaws.kendra#ResourceUnavailableException":
|
|
3975
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3976
|
-
case "ThrottlingException":
|
|
3977
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3978
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3979
|
-
case "ValidationException":
|
|
3980
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3981
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3982
|
-
default:
|
|
3983
|
-
const parsedBody = parsedOutput.body;
|
|
3984
|
-
return throwDefaultError({
|
|
3985
|
-
output,
|
|
3986
|
-
parsedBody,
|
|
3987
|
-
errorCode
|
|
3988
|
-
});
|
|
3989
|
-
}
|
|
3990
|
-
}, "de_UntagResourceCommandError");
|
|
2062
|
+
return response;
|
|
2063
|
+
}, "de_UntagResourceCommand");
|
|
3991
2064
|
var de_UpdateAccessControlConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3992
2065
|
if (output.statusCode >= 300) {
|
|
3993
|
-
return
|
|
2066
|
+
return de_CommandError(output, context);
|
|
3994
2067
|
}
|
|
3995
2068
|
const data = await parseBody(output.body, context);
|
|
3996
2069
|
let contents = {};
|
|
@@ -4001,46 +2074,9 @@ var de_UpdateAccessControlConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
4001
2074
|
};
|
|
4002
2075
|
return response;
|
|
4003
2076
|
}, "de_UpdateAccessControlConfigurationCommand");
|
|
4004
|
-
var de_UpdateAccessControlConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4005
|
-
const parsedOutput = {
|
|
4006
|
-
...output,
|
|
4007
|
-
body: await parseErrorBody(output.body, context)
|
|
4008
|
-
};
|
|
4009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4010
|
-
switch (errorCode) {
|
|
4011
|
-
case "AccessDeniedException":
|
|
4012
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
4013
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4014
|
-
case "ConflictException":
|
|
4015
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
4016
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4017
|
-
case "InternalServerException":
|
|
4018
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
4019
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4020
|
-
case "ResourceNotFoundException":
|
|
4021
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
4022
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4023
|
-
case "ServiceQuotaExceededException":
|
|
4024
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
4025
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4026
|
-
case "ThrottlingException":
|
|
4027
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
4028
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4029
|
-
case "ValidationException":
|
|
4030
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
4031
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4032
|
-
default:
|
|
4033
|
-
const parsedBody = parsedOutput.body;
|
|
4034
|
-
return throwDefaultError({
|
|
4035
|
-
output,
|
|
4036
|
-
parsedBody,
|
|
4037
|
-
errorCode
|
|
4038
|
-
});
|
|
4039
|
-
}
|
|
4040
|
-
}, "de_UpdateAccessControlConfigurationCommandError");
|
|
4041
2077
|
var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4042
2078
|
if (output.statusCode >= 300) {
|
|
4043
|
-
return
|
|
2079
|
+
return de_CommandError(output, context);
|
|
4044
2080
|
}
|
|
4045
2081
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4046
2082
|
const response = {
|
|
@@ -4048,43 +2084,9 @@ var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4048
2084
|
};
|
|
4049
2085
|
return response;
|
|
4050
2086
|
}, "de_UpdateDataSourceCommand");
|
|
4051
|
-
var de_UpdateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4052
|
-
const parsedOutput = {
|
|
4053
|
-
...output,
|
|
4054
|
-
body: await parseErrorBody(output.body, context)
|
|
4055
|
-
};
|
|
4056
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4057
|
-
switch (errorCode) {
|
|
4058
|
-
case "AccessDeniedException":
|
|
4059
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
4060
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4061
|
-
case "ConflictException":
|
|
4062
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
4063
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4064
|
-
case "InternalServerException":
|
|
4065
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
4066
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4067
|
-
case "ResourceNotFoundException":
|
|
4068
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
4069
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4070
|
-
case "ThrottlingException":
|
|
4071
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
4072
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4073
|
-
case "ValidationException":
|
|
4074
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
4075
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4076
|
-
default:
|
|
4077
|
-
const parsedBody = parsedOutput.body;
|
|
4078
|
-
return throwDefaultError({
|
|
4079
|
-
output,
|
|
4080
|
-
parsedBody,
|
|
4081
|
-
errorCode
|
|
4082
|
-
});
|
|
4083
|
-
}
|
|
4084
|
-
}, "de_UpdateDataSourceCommandError");
|
|
4085
2087
|
var de_UpdateExperienceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4086
2088
|
if (output.statusCode >= 300) {
|
|
4087
|
-
return
|
|
2089
|
+
return de_CommandError(output, context);
|
|
4088
2090
|
}
|
|
4089
2091
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4090
2092
|
const response = {
|
|
@@ -4092,43 +2094,9 @@ var de_UpdateExperienceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4092
2094
|
};
|
|
4093
2095
|
return response;
|
|
4094
2096
|
}, "de_UpdateExperienceCommand");
|
|
4095
|
-
var de_UpdateExperienceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4096
|
-
const parsedOutput = {
|
|
4097
|
-
...output,
|
|
4098
|
-
body: await parseErrorBody(output.body, context)
|
|
4099
|
-
};
|
|
4100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4101
|
-
switch (errorCode) {
|
|
4102
|
-
case "AccessDeniedException":
|
|
4103
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
4104
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4105
|
-
case "ConflictException":
|
|
4106
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
4107
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4108
|
-
case "InternalServerException":
|
|
4109
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
4110
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4111
|
-
case "ResourceNotFoundException":
|
|
4112
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
4113
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4114
|
-
case "ThrottlingException":
|
|
4115
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
4116
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4117
|
-
case "ValidationException":
|
|
4118
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
4119
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4120
|
-
default:
|
|
4121
|
-
const parsedBody = parsedOutput.body;
|
|
4122
|
-
return throwDefaultError({
|
|
4123
|
-
output,
|
|
4124
|
-
parsedBody,
|
|
4125
|
-
errorCode
|
|
4126
|
-
});
|
|
4127
|
-
}
|
|
4128
|
-
}, "de_UpdateExperienceCommandError");
|
|
4129
2097
|
var de_UpdateFeaturedResultsSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4130
2098
|
if (output.statusCode >= 300) {
|
|
4131
|
-
return
|
|
2099
|
+
return de_CommandError(output, context);
|
|
4132
2100
|
}
|
|
4133
2101
|
const data = await parseBody(output.body, context);
|
|
4134
2102
|
let contents = {};
|
|
@@ -4139,43 +2107,9 @@ var de_UpdateFeaturedResultsSetCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4139
2107
|
};
|
|
4140
2108
|
return response;
|
|
4141
2109
|
}, "de_UpdateFeaturedResultsSetCommand");
|
|
4142
|
-
var de_UpdateFeaturedResultsSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4143
|
-
const parsedOutput = {
|
|
4144
|
-
...output,
|
|
4145
|
-
body: await parseErrorBody(output.body, context)
|
|
4146
|
-
};
|
|
4147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4148
|
-
switch (errorCode) {
|
|
4149
|
-
case "AccessDeniedException":
|
|
4150
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
4151
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4152
|
-
case "FeaturedResultsConflictException":
|
|
4153
|
-
case "com.amazonaws.kendra#FeaturedResultsConflictException":
|
|
4154
|
-
throw await de_FeaturedResultsConflictExceptionRes(parsedOutput, context);
|
|
4155
|
-
case "InternalServerException":
|
|
4156
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
4157
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4158
|
-
case "ResourceNotFoundException":
|
|
4159
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
4160
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4161
|
-
case "ThrottlingException":
|
|
4162
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
4163
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4164
|
-
case "ValidationException":
|
|
4165
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
4166
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4167
|
-
default:
|
|
4168
|
-
const parsedBody = parsedOutput.body;
|
|
4169
|
-
return throwDefaultError({
|
|
4170
|
-
output,
|
|
4171
|
-
parsedBody,
|
|
4172
|
-
errorCode
|
|
4173
|
-
});
|
|
4174
|
-
}
|
|
4175
|
-
}, "de_UpdateFeaturedResultsSetCommandError");
|
|
4176
2110
|
var de_UpdateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4177
2111
|
if (output.statusCode >= 300) {
|
|
4178
|
-
return
|
|
2112
|
+
return de_CommandError(output, context);
|
|
4179
2113
|
}
|
|
4180
2114
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4181
2115
|
const response = {
|
|
@@ -4183,46 +2117,9 @@ var de_UpdateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4183
2117
|
};
|
|
4184
2118
|
return response;
|
|
4185
2119
|
}, "de_UpdateIndexCommand");
|
|
4186
|
-
var de_UpdateIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4187
|
-
const parsedOutput = {
|
|
4188
|
-
...output,
|
|
4189
|
-
body: await parseErrorBody(output.body, context)
|
|
4190
|
-
};
|
|
4191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4192
|
-
switch (errorCode) {
|
|
4193
|
-
case "AccessDeniedException":
|
|
4194
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
4195
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4196
|
-
case "ConflictException":
|
|
4197
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
4198
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4199
|
-
case "InternalServerException":
|
|
4200
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
4201
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4202
|
-
case "ResourceNotFoundException":
|
|
4203
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
4204
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4205
|
-
case "ServiceQuotaExceededException":
|
|
4206
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
4207
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4208
|
-
case "ThrottlingException":
|
|
4209
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
4210
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4211
|
-
case "ValidationException":
|
|
4212
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
4213
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4214
|
-
default:
|
|
4215
|
-
const parsedBody = parsedOutput.body;
|
|
4216
|
-
return throwDefaultError({
|
|
4217
|
-
output,
|
|
4218
|
-
parsedBody,
|
|
4219
|
-
errorCode
|
|
4220
|
-
});
|
|
4221
|
-
}
|
|
4222
|
-
}, "de_UpdateIndexCommandError");
|
|
4223
2120
|
var de_UpdateQuerySuggestionsBlockListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4224
2121
|
if (output.statusCode >= 300) {
|
|
4225
|
-
return
|
|
2122
|
+
return de_CommandError(output, context);
|
|
4226
2123
|
}
|
|
4227
2124
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4228
2125
|
const response = {
|
|
@@ -4230,43 +2127,9 @@ var de_UpdateQuerySuggestionsBlockListCommand = /* @__PURE__ */ __name(async (ou
|
|
|
4230
2127
|
};
|
|
4231
2128
|
return response;
|
|
4232
2129
|
}, "de_UpdateQuerySuggestionsBlockListCommand");
|
|
4233
|
-
var de_UpdateQuerySuggestionsBlockListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4234
|
-
const parsedOutput = {
|
|
4235
|
-
...output,
|
|
4236
|
-
body: await parseErrorBody(output.body, context)
|
|
4237
|
-
};
|
|
4238
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4239
|
-
switch (errorCode) {
|
|
4240
|
-
case "AccessDeniedException":
|
|
4241
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
4242
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4243
|
-
case "ConflictException":
|
|
4244
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
4245
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4246
|
-
case "InternalServerException":
|
|
4247
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
4248
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4249
|
-
case "ResourceNotFoundException":
|
|
4250
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
4251
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4252
|
-
case "ThrottlingException":
|
|
4253
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
4254
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4255
|
-
case "ValidationException":
|
|
4256
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
4257
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4258
|
-
default:
|
|
4259
|
-
const parsedBody = parsedOutput.body;
|
|
4260
|
-
return throwDefaultError({
|
|
4261
|
-
output,
|
|
4262
|
-
parsedBody,
|
|
4263
|
-
errorCode
|
|
4264
|
-
});
|
|
4265
|
-
}
|
|
4266
|
-
}, "de_UpdateQuerySuggestionsBlockListCommandError");
|
|
4267
2130
|
var de_UpdateQuerySuggestionsConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4268
2131
|
if (output.statusCode >= 300) {
|
|
4269
|
-
return
|
|
2132
|
+
return de_CommandError(output, context);
|
|
4270
2133
|
}
|
|
4271
2134
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4272
2135
|
const response = {
|
|
@@ -4274,43 +2137,9 @@ var de_UpdateQuerySuggestionsConfigCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4274
2137
|
};
|
|
4275
2138
|
return response;
|
|
4276
2139
|
}, "de_UpdateQuerySuggestionsConfigCommand");
|
|
4277
|
-
var de_UpdateQuerySuggestionsConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4278
|
-
const parsedOutput = {
|
|
4279
|
-
...output,
|
|
4280
|
-
body: await parseErrorBody(output.body, context)
|
|
4281
|
-
};
|
|
4282
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4283
|
-
switch (errorCode) {
|
|
4284
|
-
case "AccessDeniedException":
|
|
4285
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
4286
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4287
|
-
case "ConflictException":
|
|
4288
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
4289
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4290
|
-
case "InternalServerException":
|
|
4291
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
4292
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4293
|
-
case "ResourceNotFoundException":
|
|
4294
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
4295
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4296
|
-
case "ThrottlingException":
|
|
4297
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
4298
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4299
|
-
case "ValidationException":
|
|
4300
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
4301
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4302
|
-
default:
|
|
4303
|
-
const parsedBody = parsedOutput.body;
|
|
4304
|
-
return throwDefaultError({
|
|
4305
|
-
output,
|
|
4306
|
-
parsedBody,
|
|
4307
|
-
errorCode
|
|
4308
|
-
});
|
|
4309
|
-
}
|
|
4310
|
-
}, "de_UpdateQuerySuggestionsConfigCommandError");
|
|
4311
2140
|
var de_UpdateThesaurusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4312
2141
|
if (output.statusCode >= 300) {
|
|
4313
|
-
return
|
|
2142
|
+
return de_CommandError(output, context);
|
|
4314
2143
|
}
|
|
4315
2144
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4316
2145
|
const response = {
|
|
@@ -4318,7 +2147,7 @@ var de_UpdateThesaurusCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4318
2147
|
};
|
|
4319
2148
|
return response;
|
|
4320
2149
|
}, "de_UpdateThesaurusCommand");
|
|
4321
|
-
var
|
|
2150
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4322
2151
|
const parsedOutput = {
|
|
4323
2152
|
...output,
|
|
4324
2153
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4328,12 +2157,12 @@ var de_UpdateThesaurusCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
4328
2157
|
case "AccessDeniedException":
|
|
4329
2158
|
case "com.amazonaws.kendra#AccessDeniedException":
|
|
4330
2159
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4331
|
-
case "ConflictException":
|
|
4332
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
4333
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4334
2160
|
case "InternalServerException":
|
|
4335
2161
|
case "com.amazonaws.kendra#InternalServerException":
|
|
4336
2162
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2163
|
+
case "ResourceAlreadyExistException":
|
|
2164
|
+
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
2165
|
+
throw await de_ResourceAlreadyExistExceptionRes(parsedOutput, context);
|
|
4337
2166
|
case "ResourceNotFoundException":
|
|
4338
2167
|
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
4339
2168
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -4343,6 +2172,24 @@ var de_UpdateThesaurusCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
4343
2172
|
case "ValidationException":
|
|
4344
2173
|
case "com.amazonaws.kendra#ValidationException":
|
|
4345
2174
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2175
|
+
case "ConflictException":
|
|
2176
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
2177
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2178
|
+
case "ServiceQuotaExceededException":
|
|
2179
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
2180
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2181
|
+
case "FeaturedResultsConflictException":
|
|
2182
|
+
case "com.amazonaws.kendra#FeaturedResultsConflictException":
|
|
2183
|
+
throw await de_FeaturedResultsConflictExceptionRes(parsedOutput, context);
|
|
2184
|
+
case "InvalidRequestException":
|
|
2185
|
+
case "com.amazonaws.kendra#InvalidRequestException":
|
|
2186
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2187
|
+
case "ResourceUnavailableException":
|
|
2188
|
+
case "com.amazonaws.kendra#ResourceUnavailableException":
|
|
2189
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2190
|
+
case "ResourceInUseException":
|
|
2191
|
+
case "com.amazonaws.kendra#ResourceInUseException":
|
|
2192
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4346
2193
|
default:
|
|
4347
2194
|
const parsedBody = parsedOutput.body;
|
|
4348
2195
|
return throwDefaultError({
|
|
@@ -4351,7 +2198,7 @@ var de_UpdateThesaurusCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
4351
2198
|
errorCode
|
|
4352
2199
|
});
|
|
4353
2200
|
}
|
|
4354
|
-
}, "
|
|
2201
|
+
}, "de_CommandError");
|
|
4355
2202
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4356
2203
|
const body = parsedOutput.body;
|
|
4357
2204
|
const deserialized = (0, import_smithy_client._json)(body);
|