@aws-sdk/client-qbusiness 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +77 -1889
- package/dist-es/protocols/Aws_restJson1.js +147 -1959
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1518,7 +1518,7 @@ var se_UpdateWebExperienceCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
1518
1518
|
}, "se_UpdateWebExperienceCommand");
|
|
1519
1519
|
var de_BatchDeleteDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1520
1520
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1521
|
-
return
|
|
1521
|
+
return de_CommandError(output, context);
|
|
1522
1522
|
}
|
|
1523
1523
|
const contents = (0, import_smithy_client.map)({
|
|
1524
1524
|
$metadata: deserializeMetadata(output)
|
|
@@ -1530,43 +1530,9 @@ var de_BatchDeleteDocumentCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1530
1530
|
Object.assign(contents, doc);
|
|
1531
1531
|
return contents;
|
|
1532
1532
|
}, "de_BatchDeleteDocumentCommand");
|
|
1533
|
-
var de_BatchDeleteDocumentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1534
|
-
const parsedOutput = {
|
|
1535
|
-
...output,
|
|
1536
|
-
body: await parseErrorBody(output.body, context)
|
|
1537
|
-
};
|
|
1538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
|
-
switch (errorCode) {
|
|
1540
|
-
case "AccessDeniedException":
|
|
1541
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1542
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "ConflictException":
|
|
1544
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
1545
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "InternalServerException":
|
|
1547
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1548
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ResourceNotFoundException":
|
|
1550
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1551
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "ThrottlingException":
|
|
1553
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1554
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ValidationException":
|
|
1556
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
1557
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1558
|
-
default:
|
|
1559
|
-
const parsedBody = parsedOutput.body;
|
|
1560
|
-
return throwDefaultError({
|
|
1561
|
-
output,
|
|
1562
|
-
parsedBody,
|
|
1563
|
-
errorCode
|
|
1564
|
-
});
|
|
1565
|
-
}
|
|
1566
|
-
}, "de_BatchDeleteDocumentCommandError");
|
|
1567
1533
|
var de_BatchPutDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1568
1534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1569
|
-
return
|
|
1535
|
+
return de_CommandError(output, context);
|
|
1570
1536
|
}
|
|
1571
1537
|
const contents = (0, import_smithy_client.map)({
|
|
1572
1538
|
$metadata: deserializeMetadata(output)
|
|
@@ -1578,46 +1544,9 @@ var de_BatchPutDocumentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1578
1544
|
Object.assign(contents, doc);
|
|
1579
1545
|
return contents;
|
|
1580
1546
|
}, "de_BatchPutDocumentCommand");
|
|
1581
|
-
var de_BatchPutDocumentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1582
|
-
const parsedOutput = {
|
|
1583
|
-
...output,
|
|
1584
|
-
body: await parseErrorBody(output.body, context)
|
|
1585
|
-
};
|
|
1586
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
|
-
switch (errorCode) {
|
|
1588
|
-
case "AccessDeniedException":
|
|
1589
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1590
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "ConflictException":
|
|
1592
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
1593
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "InternalServerException":
|
|
1595
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1596
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1597
|
-
case "ResourceNotFoundException":
|
|
1598
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1599
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "ServiceQuotaExceededException":
|
|
1601
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1602
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "ThrottlingException":
|
|
1604
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1605
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "ValidationException":
|
|
1607
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
1608
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1609
|
-
default:
|
|
1610
|
-
const parsedBody = parsedOutput.body;
|
|
1611
|
-
return throwDefaultError({
|
|
1612
|
-
output,
|
|
1613
|
-
parsedBody,
|
|
1614
|
-
errorCode
|
|
1615
|
-
});
|
|
1616
|
-
}
|
|
1617
|
-
}, "de_BatchPutDocumentCommandError");
|
|
1618
1547
|
var de_ChatSyncCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1619
1548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1620
|
-
return
|
|
1549
|
+
return de_CommandError(output, context);
|
|
1621
1550
|
}
|
|
1622
1551
|
const contents = (0, import_smithy_client.map)({
|
|
1623
1552
|
$metadata: deserializeMetadata(output)
|
|
@@ -1635,46 +1564,9 @@ var de_ChatSyncCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1635
1564
|
Object.assign(contents, doc);
|
|
1636
1565
|
return contents;
|
|
1637
1566
|
}, "de_ChatSyncCommand");
|
|
1638
|
-
var de_ChatSyncCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1639
|
-
const parsedOutput = {
|
|
1640
|
-
...output,
|
|
1641
|
-
body: await parseErrorBody(output.body, context)
|
|
1642
|
-
};
|
|
1643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1644
|
-
switch (errorCode) {
|
|
1645
|
-
case "AccessDeniedException":
|
|
1646
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1647
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "ConflictException":
|
|
1649
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
1650
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "InternalServerException":
|
|
1652
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1653
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "LicenseNotFoundException":
|
|
1655
|
-
case "com.amazonaws.qbusiness#LicenseNotFoundException":
|
|
1656
|
-
throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "ResourceNotFoundException":
|
|
1658
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1659
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "ThrottlingException":
|
|
1661
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1662
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "ValidationException":
|
|
1664
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
1665
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1666
|
-
default:
|
|
1667
|
-
const parsedBody = parsedOutput.body;
|
|
1668
|
-
return throwDefaultError({
|
|
1669
|
-
output,
|
|
1670
|
-
parsedBody,
|
|
1671
|
-
errorCode
|
|
1672
|
-
});
|
|
1673
|
-
}
|
|
1674
|
-
}, "de_ChatSyncCommandError");
|
|
1675
1567
|
var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1676
1568
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1677
|
-
return
|
|
1569
|
+
return de_CommandError(output, context);
|
|
1678
1570
|
}
|
|
1679
1571
|
const contents = (0, import_smithy_client.map)({
|
|
1680
1572
|
$metadata: deserializeMetadata(output)
|
|
@@ -1687,46 +1579,9 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1687
1579
|
Object.assign(contents, doc);
|
|
1688
1580
|
return contents;
|
|
1689
1581
|
}, "de_CreateApplicationCommand");
|
|
1690
|
-
var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1691
|
-
const parsedOutput = {
|
|
1692
|
-
...output,
|
|
1693
|
-
body: await parseErrorBody(output.body, context)
|
|
1694
|
-
};
|
|
1695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1696
|
-
switch (errorCode) {
|
|
1697
|
-
case "AccessDeniedException":
|
|
1698
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1699
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1700
|
-
case "ConflictException":
|
|
1701
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
1702
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1703
|
-
case "InternalServerException":
|
|
1704
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1705
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1706
|
-
case "ResourceNotFoundException":
|
|
1707
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1708
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "ServiceQuotaExceededException":
|
|
1710
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1711
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1712
|
-
case "ThrottlingException":
|
|
1713
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1714
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "ValidationException":
|
|
1716
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
1717
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1718
|
-
default:
|
|
1719
|
-
const parsedBody = parsedOutput.body;
|
|
1720
|
-
return throwDefaultError({
|
|
1721
|
-
output,
|
|
1722
|
-
parsedBody,
|
|
1723
|
-
errorCode
|
|
1724
|
-
});
|
|
1725
|
-
}
|
|
1726
|
-
}, "de_CreateApplicationCommandError");
|
|
1727
1582
|
var de_CreateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1728
1583
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1729
|
-
return
|
|
1584
|
+
return de_CommandError(output, context);
|
|
1730
1585
|
}
|
|
1731
1586
|
const contents = (0, import_smithy_client.map)({
|
|
1732
1587
|
$metadata: deserializeMetadata(output)
|
|
@@ -1739,46 +1594,9 @@ var de_CreateDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1739
1594
|
Object.assign(contents, doc);
|
|
1740
1595
|
return contents;
|
|
1741
1596
|
}, "de_CreateDataSourceCommand");
|
|
1742
|
-
var de_CreateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1743
|
-
const parsedOutput = {
|
|
1744
|
-
...output,
|
|
1745
|
-
body: await parseErrorBody(output.body, context)
|
|
1746
|
-
};
|
|
1747
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
|
-
switch (errorCode) {
|
|
1749
|
-
case "AccessDeniedException":
|
|
1750
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1751
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "ConflictException":
|
|
1753
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
1754
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "InternalServerException":
|
|
1756
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1757
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "ResourceNotFoundException":
|
|
1759
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1760
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1761
|
-
case "ServiceQuotaExceededException":
|
|
1762
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1763
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1764
|
-
case "ThrottlingException":
|
|
1765
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1766
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1767
|
-
case "ValidationException":
|
|
1768
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
1769
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1770
|
-
default:
|
|
1771
|
-
const parsedBody = parsedOutput.body;
|
|
1772
|
-
return throwDefaultError({
|
|
1773
|
-
output,
|
|
1774
|
-
parsedBody,
|
|
1775
|
-
errorCode
|
|
1776
|
-
});
|
|
1777
|
-
}
|
|
1778
|
-
}, "de_CreateDataSourceCommandError");
|
|
1779
1597
|
var de_CreateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1780
1598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1781
|
-
return
|
|
1599
|
+
return de_CommandError(output, context);
|
|
1782
1600
|
}
|
|
1783
1601
|
const contents = (0, import_smithy_client.map)({
|
|
1784
1602
|
$metadata: deserializeMetadata(output)
|
|
@@ -1791,46 +1609,9 @@ var de_CreateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1791
1609
|
Object.assign(contents, doc);
|
|
1792
1610
|
return contents;
|
|
1793
1611
|
}, "de_CreateIndexCommand");
|
|
1794
|
-
var de_CreateIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1795
|
-
const parsedOutput = {
|
|
1796
|
-
...output,
|
|
1797
|
-
body: await parseErrorBody(output.body, context)
|
|
1798
|
-
};
|
|
1799
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1800
|
-
switch (errorCode) {
|
|
1801
|
-
case "AccessDeniedException":
|
|
1802
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1803
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "ConflictException":
|
|
1805
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
1806
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "InternalServerException":
|
|
1808
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1809
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "ResourceNotFoundException":
|
|
1811
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1812
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1813
|
-
case "ServiceQuotaExceededException":
|
|
1814
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1815
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1816
|
-
case "ThrottlingException":
|
|
1817
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1818
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1819
|
-
case "ValidationException":
|
|
1820
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
1821
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1822
|
-
default:
|
|
1823
|
-
const parsedBody = parsedOutput.body;
|
|
1824
|
-
return throwDefaultError({
|
|
1825
|
-
output,
|
|
1826
|
-
parsedBody,
|
|
1827
|
-
errorCode
|
|
1828
|
-
});
|
|
1829
|
-
}
|
|
1830
|
-
}, "de_CreateIndexCommandError");
|
|
1831
1612
|
var de_CreatePluginCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1832
1613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1833
|
-
return
|
|
1614
|
+
return de_CommandError(output, context);
|
|
1834
1615
|
}
|
|
1835
1616
|
const contents = (0, import_smithy_client.map)({
|
|
1836
1617
|
$metadata: deserializeMetadata(output)
|
|
@@ -1843,46 +1624,9 @@ var de_CreatePluginCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1843
1624
|
Object.assign(contents, doc);
|
|
1844
1625
|
return contents;
|
|
1845
1626
|
}, "de_CreatePluginCommand");
|
|
1846
|
-
var de_CreatePluginCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1847
|
-
const parsedOutput = {
|
|
1848
|
-
...output,
|
|
1849
|
-
body: await parseErrorBody(output.body, context)
|
|
1850
|
-
};
|
|
1851
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
|
-
switch (errorCode) {
|
|
1853
|
-
case "AccessDeniedException":
|
|
1854
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1855
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1856
|
-
case "ConflictException":
|
|
1857
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
1858
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1859
|
-
case "InternalServerException":
|
|
1860
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1861
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1862
|
-
case "ResourceNotFoundException":
|
|
1863
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1864
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1865
|
-
case "ServiceQuotaExceededException":
|
|
1866
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1867
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1868
|
-
case "ThrottlingException":
|
|
1869
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1870
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "ValidationException":
|
|
1872
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
1873
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1874
|
-
default:
|
|
1875
|
-
const parsedBody = parsedOutput.body;
|
|
1876
|
-
return throwDefaultError({
|
|
1877
|
-
output,
|
|
1878
|
-
parsedBody,
|
|
1879
|
-
errorCode
|
|
1880
|
-
});
|
|
1881
|
-
}
|
|
1882
|
-
}, "de_CreatePluginCommandError");
|
|
1883
1627
|
var de_CreateRetrieverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1884
1628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1885
|
-
return
|
|
1629
|
+
return de_CommandError(output, context);
|
|
1886
1630
|
}
|
|
1887
1631
|
const contents = (0, import_smithy_client.map)({
|
|
1888
1632
|
$metadata: deserializeMetadata(output)
|
|
@@ -1895,46 +1639,9 @@ var de_CreateRetrieverCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1895
1639
|
Object.assign(contents, doc);
|
|
1896
1640
|
return contents;
|
|
1897
1641
|
}, "de_CreateRetrieverCommand");
|
|
1898
|
-
var de_CreateRetrieverCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1899
|
-
const parsedOutput = {
|
|
1900
|
-
...output,
|
|
1901
|
-
body: await parseErrorBody(output.body, context)
|
|
1902
|
-
};
|
|
1903
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1904
|
-
switch (errorCode) {
|
|
1905
|
-
case "AccessDeniedException":
|
|
1906
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1907
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "ConflictException":
|
|
1909
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
1910
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1911
|
-
case "InternalServerException":
|
|
1912
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1913
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1914
|
-
case "ResourceNotFoundException":
|
|
1915
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1916
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1917
|
-
case "ServiceQuotaExceededException":
|
|
1918
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1919
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1920
|
-
case "ThrottlingException":
|
|
1921
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1922
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "ValidationException":
|
|
1924
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
1925
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1926
|
-
default:
|
|
1927
|
-
const parsedBody = parsedOutput.body;
|
|
1928
|
-
return throwDefaultError({
|
|
1929
|
-
output,
|
|
1930
|
-
parsedBody,
|
|
1931
|
-
errorCode
|
|
1932
|
-
});
|
|
1933
|
-
}
|
|
1934
|
-
}, "de_CreateRetrieverCommandError");
|
|
1935
1642
|
var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1936
1643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1937
|
-
return
|
|
1644
|
+
return de_CommandError(output, context);
|
|
1938
1645
|
}
|
|
1939
1646
|
const contents = (0, import_smithy_client.map)({
|
|
1940
1647
|
$metadata: deserializeMetadata(output)
|
|
@@ -1942,46 +1649,9 @@ var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1942
1649
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1943
1650
|
return contents;
|
|
1944
1651
|
}, "de_CreateUserCommand");
|
|
1945
|
-
var de_CreateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1946
|
-
const parsedOutput = {
|
|
1947
|
-
...output,
|
|
1948
|
-
body: await parseErrorBody(output.body, context)
|
|
1949
|
-
};
|
|
1950
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1951
|
-
switch (errorCode) {
|
|
1952
|
-
case "AccessDeniedException":
|
|
1953
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1954
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "ConflictException":
|
|
1956
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
1957
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "InternalServerException":
|
|
1959
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1960
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "ResourceNotFoundException":
|
|
1962
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1963
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "ServiceQuotaExceededException":
|
|
1965
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1966
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "ThrottlingException":
|
|
1968
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1969
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "ValidationException":
|
|
1971
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
1972
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1973
|
-
default:
|
|
1974
|
-
const parsedBody = parsedOutput.body;
|
|
1975
|
-
return throwDefaultError({
|
|
1976
|
-
output,
|
|
1977
|
-
parsedBody,
|
|
1978
|
-
errorCode
|
|
1979
|
-
});
|
|
1980
|
-
}
|
|
1981
|
-
}, "de_CreateUserCommandError");
|
|
1982
1652
|
var de_CreateWebExperienceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1983
1653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1984
|
-
return
|
|
1654
|
+
return de_CommandError(output, context);
|
|
1985
1655
|
}
|
|
1986
1656
|
const contents = (0, import_smithy_client.map)({
|
|
1987
1657
|
$metadata: deserializeMetadata(output)
|
|
@@ -1994,46 +1664,9 @@ var de_CreateWebExperienceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1994
1664
|
Object.assign(contents, doc);
|
|
1995
1665
|
return contents;
|
|
1996
1666
|
}, "de_CreateWebExperienceCommand");
|
|
1997
|
-
var de_CreateWebExperienceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1998
|
-
const parsedOutput = {
|
|
1999
|
-
...output,
|
|
2000
|
-
body: await parseErrorBody(output.body, context)
|
|
2001
|
-
};
|
|
2002
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2003
|
-
switch (errorCode) {
|
|
2004
|
-
case "AccessDeniedException":
|
|
2005
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2006
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2007
|
-
case "ConflictException":
|
|
2008
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
2009
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2010
|
-
case "InternalServerException":
|
|
2011
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2012
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2013
|
-
case "ResourceNotFoundException":
|
|
2014
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2015
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2016
|
-
case "ServiceQuotaExceededException":
|
|
2017
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
2018
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2019
|
-
case "ThrottlingException":
|
|
2020
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2021
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2022
|
-
case "ValidationException":
|
|
2023
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2024
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2025
|
-
default:
|
|
2026
|
-
const parsedBody = parsedOutput.body;
|
|
2027
|
-
return throwDefaultError({
|
|
2028
|
-
output,
|
|
2029
|
-
parsedBody,
|
|
2030
|
-
errorCode
|
|
2031
|
-
});
|
|
2032
|
-
}
|
|
2033
|
-
}, "de_CreateWebExperienceCommandError");
|
|
2034
1667
|
var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2035
1668
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2036
|
-
return
|
|
1669
|
+
return de_CommandError(output, context);
|
|
2037
1670
|
}
|
|
2038
1671
|
const contents = (0, import_smithy_client.map)({
|
|
2039
1672
|
$metadata: deserializeMetadata(output)
|
|
@@ -2041,43 +1674,9 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2041
1674
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2042
1675
|
return contents;
|
|
2043
1676
|
}, "de_DeleteApplicationCommand");
|
|
2044
|
-
var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2045
|
-
const parsedOutput = {
|
|
2046
|
-
...output,
|
|
2047
|
-
body: await parseErrorBody(output.body, context)
|
|
2048
|
-
};
|
|
2049
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2050
|
-
switch (errorCode) {
|
|
2051
|
-
case "AccessDeniedException":
|
|
2052
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2053
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2054
|
-
case "ConflictException":
|
|
2055
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
2056
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2057
|
-
case "InternalServerException":
|
|
2058
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2059
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "ResourceNotFoundException":
|
|
2061
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "ThrottlingException":
|
|
2064
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2065
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "ValidationException":
|
|
2067
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2068
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2069
|
-
default:
|
|
2070
|
-
const parsedBody = parsedOutput.body;
|
|
2071
|
-
return throwDefaultError({
|
|
2072
|
-
output,
|
|
2073
|
-
parsedBody,
|
|
2074
|
-
errorCode
|
|
2075
|
-
});
|
|
2076
|
-
}
|
|
2077
|
-
}, "de_DeleteApplicationCommandError");
|
|
2078
1677
|
var de_DeleteChatControlsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2079
1678
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2080
|
-
return
|
|
1679
|
+
return de_CommandError(output, context);
|
|
2081
1680
|
}
|
|
2082
1681
|
const contents = (0, import_smithy_client.map)({
|
|
2083
1682
|
$metadata: deserializeMetadata(output)
|
|
@@ -2085,40 +1684,9 @@ var de_DeleteChatControlsConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2085
1684
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2086
1685
|
return contents;
|
|
2087
1686
|
}, "de_DeleteChatControlsConfigurationCommand");
|
|
2088
|
-
var de_DeleteChatControlsConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2089
|
-
const parsedOutput = {
|
|
2090
|
-
...output,
|
|
2091
|
-
body: await parseErrorBody(output.body, context)
|
|
2092
|
-
};
|
|
2093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2094
|
-
switch (errorCode) {
|
|
2095
|
-
case "AccessDeniedException":
|
|
2096
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2097
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2098
|
-
case "InternalServerException":
|
|
2099
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2100
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "ResourceNotFoundException":
|
|
2102
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2103
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "ThrottlingException":
|
|
2105
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2106
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "ValidationException":
|
|
2108
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2109
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2110
|
-
default:
|
|
2111
|
-
const parsedBody = parsedOutput.body;
|
|
2112
|
-
return throwDefaultError({
|
|
2113
|
-
output,
|
|
2114
|
-
parsedBody,
|
|
2115
|
-
errorCode
|
|
2116
|
-
});
|
|
2117
|
-
}
|
|
2118
|
-
}, "de_DeleteChatControlsConfigurationCommandError");
|
|
2119
1687
|
var de_DeleteConversationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2120
1688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2121
|
-
return
|
|
1689
|
+
return de_CommandError(output, context);
|
|
2122
1690
|
}
|
|
2123
1691
|
const contents = (0, import_smithy_client.map)({
|
|
2124
1692
|
$metadata: deserializeMetadata(output)
|
|
@@ -2126,43 +1694,9 @@ var de_DeleteConversationCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2126
1694
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2127
1695
|
return contents;
|
|
2128
1696
|
}, "de_DeleteConversationCommand");
|
|
2129
|
-
var de_DeleteConversationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2130
|
-
const parsedOutput = {
|
|
2131
|
-
...output,
|
|
2132
|
-
body: await parseErrorBody(output.body, context)
|
|
2133
|
-
};
|
|
2134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
|
-
switch (errorCode) {
|
|
2136
|
-
case "AccessDeniedException":
|
|
2137
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2138
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "InternalServerException":
|
|
2140
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2141
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "LicenseNotFoundException":
|
|
2143
|
-
case "com.amazonaws.qbusiness#LicenseNotFoundException":
|
|
2144
|
-
throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "ResourceNotFoundException":
|
|
2146
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2147
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2148
|
-
case "ThrottlingException":
|
|
2149
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2150
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "ValidationException":
|
|
2152
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2153
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2154
|
-
default:
|
|
2155
|
-
const parsedBody = parsedOutput.body;
|
|
2156
|
-
return throwDefaultError({
|
|
2157
|
-
output,
|
|
2158
|
-
parsedBody,
|
|
2159
|
-
errorCode
|
|
2160
|
-
});
|
|
2161
|
-
}
|
|
2162
|
-
}, "de_DeleteConversationCommandError");
|
|
2163
1697
|
var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2164
1698
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2165
|
-
return
|
|
1699
|
+
return de_CommandError(output, context);
|
|
2166
1700
|
}
|
|
2167
1701
|
const contents = (0, import_smithy_client.map)({
|
|
2168
1702
|
$metadata: deserializeMetadata(output)
|
|
@@ -2170,43 +1704,9 @@ var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2170
1704
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2171
1705
|
return contents;
|
|
2172
1706
|
}, "de_DeleteDataSourceCommand");
|
|
2173
|
-
var de_DeleteDataSourceCommandError = /* @__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.qbusiness#AccessDeniedException":
|
|
2182
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2183
|
-
case "ConflictException":
|
|
2184
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
2185
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2186
|
-
case "InternalServerException":
|
|
2187
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2188
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2189
|
-
case "ResourceNotFoundException":
|
|
2190
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2191
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "ThrottlingException":
|
|
2193
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2194
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "ValidationException":
|
|
2196
|
-
case "com.amazonaws.qbusiness#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_DeleteDataSourceCommandError");
|
|
2207
1707
|
var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2208
1708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2209
|
-
return
|
|
1709
|
+
return de_CommandError(output, context);
|
|
2210
1710
|
}
|
|
2211
1711
|
const contents = (0, import_smithy_client.map)({
|
|
2212
1712
|
$metadata: deserializeMetadata(output)
|
|
@@ -2214,43 +1714,9 @@ var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2214
1714
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2215
1715
|
return contents;
|
|
2216
1716
|
}, "de_DeleteGroupCommand");
|
|
2217
|
-
var de_DeleteGroupCommandError = /* @__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.qbusiness#AccessDeniedException":
|
|
2226
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "ConflictException":
|
|
2228
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
2229
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2230
|
-
case "InternalServerException":
|
|
2231
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2232
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2233
|
-
case "ResourceNotFoundException":
|
|
2234
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2235
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2236
|
-
case "ThrottlingException":
|
|
2237
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2238
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2239
|
-
case "ValidationException":
|
|
2240
|
-
case "com.amazonaws.qbusiness#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_DeleteGroupCommandError");
|
|
2251
1717
|
var de_DeleteIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2252
1718
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2253
|
-
return
|
|
1719
|
+
return de_CommandError(output, context);
|
|
2254
1720
|
}
|
|
2255
1721
|
const contents = (0, import_smithy_client.map)({
|
|
2256
1722
|
$metadata: deserializeMetadata(output)
|
|
@@ -2258,43 +1724,9 @@ var de_DeleteIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2258
1724
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2259
1725
|
return contents;
|
|
2260
1726
|
}, "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.qbusiness#AccessDeniedException":
|
|
2270
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "ConflictException":
|
|
2272
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
2273
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2274
|
-
case "InternalServerException":
|
|
2275
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2276
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2277
|
-
case "ResourceNotFoundException":
|
|
2278
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2279
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2280
|
-
case "ThrottlingException":
|
|
2281
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2282
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2283
|
-
case "ValidationException":
|
|
2284
|
-
case "com.amazonaws.qbusiness#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
1727
|
var de_DeletePluginCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2296
1728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2297
|
-
return
|
|
1729
|
+
return de_CommandError(output, context);
|
|
2298
1730
|
}
|
|
2299
1731
|
const contents = (0, import_smithy_client.map)({
|
|
2300
1732
|
$metadata: deserializeMetadata(output)
|
|
@@ -2302,43 +1734,9 @@ var de_DeletePluginCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2302
1734
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2303
1735
|
return contents;
|
|
2304
1736
|
}, "de_DeletePluginCommand");
|
|
2305
|
-
var de_DeletePluginCommandError = /* @__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.qbusiness#AccessDeniedException":
|
|
2314
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "ConflictException":
|
|
2316
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
2317
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "InternalServerException":
|
|
2319
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2320
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "ResourceNotFoundException":
|
|
2322
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2323
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "ThrottlingException":
|
|
2325
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2326
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "ValidationException":
|
|
2328
|
-
case "com.amazonaws.qbusiness#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_DeletePluginCommandError");
|
|
2339
1737
|
var de_DeleteRetrieverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2340
1738
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2341
|
-
return
|
|
1739
|
+
return de_CommandError(output, context);
|
|
2342
1740
|
}
|
|
2343
1741
|
const contents = (0, import_smithy_client.map)({
|
|
2344
1742
|
$metadata: deserializeMetadata(output)
|
|
@@ -2346,43 +1744,9 @@ var de_DeleteRetrieverCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2346
1744
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2347
1745
|
return contents;
|
|
2348
1746
|
}, "de_DeleteRetrieverCommand");
|
|
2349
|
-
var de_DeleteRetrieverCommandError = /* @__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.qbusiness#AccessDeniedException":
|
|
2358
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "ConflictException":
|
|
2360
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
2361
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "InternalServerException":
|
|
2363
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2364
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "ResourceNotFoundException":
|
|
2366
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2367
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "ThrottlingException":
|
|
2369
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2370
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "ValidationException":
|
|
2372
|
-
case "com.amazonaws.qbusiness#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_DeleteRetrieverCommandError");
|
|
2383
1747
|
var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2384
1748
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2385
|
-
return
|
|
1749
|
+
return de_CommandError(output, context);
|
|
2386
1750
|
}
|
|
2387
1751
|
const contents = (0, import_smithy_client.map)({
|
|
2388
1752
|
$metadata: deserializeMetadata(output)
|
|
@@ -2390,43 +1754,9 @@ var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2390
1754
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2391
1755
|
return contents;
|
|
2392
1756
|
}, "de_DeleteUserCommand");
|
|
2393
|
-
var de_DeleteUserCommandError = /* @__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.qbusiness#AccessDeniedException":
|
|
2402
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "ConflictException":
|
|
2404
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
2405
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2406
|
-
case "InternalServerException":
|
|
2407
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2408
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "ResourceNotFoundException":
|
|
2410
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2411
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "ThrottlingException":
|
|
2413
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2414
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "ValidationException":
|
|
2416
|
-
case "com.amazonaws.qbusiness#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_DeleteUserCommandError");
|
|
2427
1757
|
var de_DeleteWebExperienceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2428
1758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2429
|
-
return
|
|
1759
|
+
return de_CommandError(output, context);
|
|
2430
1760
|
}
|
|
2431
1761
|
const contents = (0, import_smithy_client.map)({
|
|
2432
1762
|
$metadata: deserializeMetadata(output)
|
|
@@ -2434,43 +1764,9 @@ var de_DeleteWebExperienceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2434
1764
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2435
1765
|
return contents;
|
|
2436
1766
|
}, "de_DeleteWebExperienceCommand");
|
|
2437
|
-
var de_DeleteWebExperienceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2438
|
-
const parsedOutput = {
|
|
2439
|
-
...output,
|
|
2440
|
-
body: await parseErrorBody(output.body, context)
|
|
2441
|
-
};
|
|
2442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2443
|
-
switch (errorCode) {
|
|
2444
|
-
case "AccessDeniedException":
|
|
2445
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2446
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2447
|
-
case "ConflictException":
|
|
2448
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
2449
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2450
|
-
case "InternalServerException":
|
|
2451
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2452
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2453
|
-
case "ResourceNotFoundException":
|
|
2454
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2455
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2456
|
-
case "ThrottlingException":
|
|
2457
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2458
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2459
|
-
case "ValidationException":
|
|
2460
|
-
case "com.amazonaws.qbusiness#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_DeleteWebExperienceCommandError");
|
|
2471
1767
|
var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2472
1768
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2473
|
-
return
|
|
1769
|
+
return de_CommandError(output, context);
|
|
2474
1770
|
}
|
|
2475
1771
|
const contents = (0, import_smithy_client.map)({
|
|
2476
1772
|
$metadata: deserializeMetadata(output)
|
|
@@ -2492,40 +1788,9 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2492
1788
|
Object.assign(contents, doc);
|
|
2493
1789
|
return contents;
|
|
2494
1790
|
}, "de_GetApplicationCommand");
|
|
2495
|
-
var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2496
|
-
const parsedOutput = {
|
|
2497
|
-
...output,
|
|
2498
|
-
body: await parseErrorBody(output.body, context)
|
|
2499
|
-
};
|
|
2500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2501
|
-
switch (errorCode) {
|
|
2502
|
-
case "AccessDeniedException":
|
|
2503
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2504
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2505
|
-
case "InternalServerException":
|
|
2506
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2507
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "ResourceNotFoundException":
|
|
2509
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2510
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2511
|
-
case "ThrottlingException":
|
|
2512
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2513
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2514
|
-
case "ValidationException":
|
|
2515
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2516
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2517
|
-
default:
|
|
2518
|
-
const parsedBody = parsedOutput.body;
|
|
2519
|
-
return throwDefaultError({
|
|
2520
|
-
output,
|
|
2521
|
-
parsedBody,
|
|
2522
|
-
errorCode
|
|
2523
|
-
});
|
|
2524
|
-
}
|
|
2525
|
-
}, "de_GetApplicationCommandError");
|
|
2526
1791
|
var de_GetChatControlsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2527
1792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2528
|
-
return
|
|
1793
|
+
return de_CommandError(output, context);
|
|
2529
1794
|
}
|
|
2530
1795
|
const contents = (0, import_smithy_client.map)({
|
|
2531
1796
|
$metadata: deserializeMetadata(output)
|
|
@@ -2540,40 +1805,9 @@ var de_GetChatControlsConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2540
1805
|
Object.assign(contents, doc);
|
|
2541
1806
|
return contents;
|
|
2542
1807
|
}, "de_GetChatControlsConfigurationCommand");
|
|
2543
|
-
var de_GetChatControlsConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2544
|
-
const parsedOutput = {
|
|
2545
|
-
...output,
|
|
2546
|
-
body: await parseErrorBody(output.body, context)
|
|
2547
|
-
};
|
|
2548
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2549
|
-
switch (errorCode) {
|
|
2550
|
-
case "AccessDeniedException":
|
|
2551
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2552
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2553
|
-
case "InternalServerException":
|
|
2554
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2555
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2556
|
-
case "ResourceNotFoundException":
|
|
2557
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2558
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2559
|
-
case "ThrottlingException":
|
|
2560
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2561
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2562
|
-
case "ValidationException":
|
|
2563
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2564
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2565
|
-
default:
|
|
2566
|
-
const parsedBody = parsedOutput.body;
|
|
2567
|
-
return throwDefaultError({
|
|
2568
|
-
output,
|
|
2569
|
-
parsedBody,
|
|
2570
|
-
errorCode
|
|
2571
|
-
});
|
|
2572
|
-
}
|
|
2573
|
-
}, "de_GetChatControlsConfigurationCommandError");
|
|
2574
1808
|
var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2575
1809
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2576
|
-
return
|
|
1810
|
+
return de_CommandError(output, context);
|
|
2577
1811
|
}
|
|
2578
1812
|
const contents = (0, import_smithy_client.map)({
|
|
2579
1813
|
$metadata: deserializeMetadata(output)
|
|
@@ -2600,40 +1834,9 @@ var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2600
1834
|
Object.assign(contents, doc);
|
|
2601
1835
|
return contents;
|
|
2602
1836
|
}, "de_GetDataSourceCommand");
|
|
2603
|
-
var de_GetDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2604
|
-
const parsedOutput = {
|
|
2605
|
-
...output,
|
|
2606
|
-
body: await parseErrorBody(output.body, context)
|
|
2607
|
-
};
|
|
2608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2609
|
-
switch (errorCode) {
|
|
2610
|
-
case "AccessDeniedException":
|
|
2611
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2612
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "InternalServerException":
|
|
2614
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2615
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "ResourceNotFoundException":
|
|
2617
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2618
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "ThrottlingException":
|
|
2620
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2621
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "ValidationException":
|
|
2623
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2624
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2625
|
-
default:
|
|
2626
|
-
const parsedBody = parsedOutput.body;
|
|
2627
|
-
return throwDefaultError({
|
|
2628
|
-
output,
|
|
2629
|
-
parsedBody,
|
|
2630
|
-
errorCode
|
|
2631
|
-
});
|
|
2632
|
-
}
|
|
2633
|
-
}, "de_GetDataSourceCommandError");
|
|
2634
1837
|
var de_GetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2635
1838
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2636
|
-
return
|
|
1839
|
+
return de_CommandError(output, context);
|
|
2637
1840
|
}
|
|
2638
1841
|
const contents = (0, import_smithy_client.map)({
|
|
2639
1842
|
$metadata: deserializeMetadata(output)
|
|
@@ -2646,43 +1849,9 @@ var de_GetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2646
1849
|
Object.assign(contents, doc);
|
|
2647
1850
|
return contents;
|
|
2648
1851
|
}, "de_GetGroupCommand");
|
|
2649
|
-
var de_GetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2650
|
-
const parsedOutput = {
|
|
2651
|
-
...output,
|
|
2652
|
-
body: await parseErrorBody(output.body, context)
|
|
2653
|
-
};
|
|
2654
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2655
|
-
switch (errorCode) {
|
|
2656
|
-
case "AccessDeniedException":
|
|
2657
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2658
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2659
|
-
case "ConflictException":
|
|
2660
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
2661
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2662
|
-
case "InternalServerException":
|
|
2663
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2664
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2665
|
-
case "ResourceNotFoundException":
|
|
2666
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2667
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2668
|
-
case "ThrottlingException":
|
|
2669
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2670
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "ValidationException":
|
|
2672
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2673
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2674
|
-
default:
|
|
2675
|
-
const parsedBody = parsedOutput.body;
|
|
2676
|
-
return throwDefaultError({
|
|
2677
|
-
output,
|
|
2678
|
-
parsedBody,
|
|
2679
|
-
errorCode
|
|
2680
|
-
});
|
|
2681
|
-
}
|
|
2682
|
-
}, "de_GetGroupCommandError");
|
|
2683
1852
|
var de_GetIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2684
1853
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2685
|
-
return
|
|
1854
|
+
return de_CommandError(output, context);
|
|
2686
1855
|
}
|
|
2687
1856
|
const contents = (0, import_smithy_client.map)({
|
|
2688
1857
|
$metadata: deserializeMetadata(output)
|
|
@@ -2705,40 +1874,9 @@ var de_GetIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2705
1874
|
Object.assign(contents, doc);
|
|
2706
1875
|
return contents;
|
|
2707
1876
|
}, "de_GetIndexCommand");
|
|
2708
|
-
var de_GetIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2709
|
-
const parsedOutput = {
|
|
2710
|
-
...output,
|
|
2711
|
-
body: await parseErrorBody(output.body, context)
|
|
2712
|
-
};
|
|
2713
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2714
|
-
switch (errorCode) {
|
|
2715
|
-
case "AccessDeniedException":
|
|
2716
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2717
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "InternalServerException":
|
|
2719
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2720
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "ResourceNotFoundException":
|
|
2722
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2723
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2724
|
-
case "ThrottlingException":
|
|
2725
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2726
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2727
|
-
case "ValidationException":
|
|
2728
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2729
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2730
|
-
default:
|
|
2731
|
-
const parsedBody = parsedOutput.body;
|
|
2732
|
-
return throwDefaultError({
|
|
2733
|
-
output,
|
|
2734
|
-
parsedBody,
|
|
2735
|
-
errorCode
|
|
2736
|
-
});
|
|
2737
|
-
}
|
|
2738
|
-
}, "de_GetIndexCommandError");
|
|
2739
1877
|
var de_GetPluginCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2740
1878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2741
|
-
return
|
|
1879
|
+
return de_CommandError(output, context);
|
|
2742
1880
|
}
|
|
2743
1881
|
const contents = (0, import_smithy_client.map)({
|
|
2744
1882
|
$metadata: deserializeMetadata(output)
|
|
@@ -2759,40 +1897,9 @@ var de_GetPluginCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2759
1897
|
Object.assign(contents, doc);
|
|
2760
1898
|
return contents;
|
|
2761
1899
|
}, "de_GetPluginCommand");
|
|
2762
|
-
var de_GetPluginCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2763
|
-
const parsedOutput = {
|
|
2764
|
-
...output,
|
|
2765
|
-
body: await parseErrorBody(output.body, context)
|
|
2766
|
-
};
|
|
2767
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2768
|
-
switch (errorCode) {
|
|
2769
|
-
case "AccessDeniedException":
|
|
2770
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2771
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2772
|
-
case "InternalServerException":
|
|
2773
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2774
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2775
|
-
case "ResourceNotFoundException":
|
|
2776
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2777
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "ThrottlingException":
|
|
2779
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2780
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "ValidationException":
|
|
2782
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2783
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2784
|
-
default:
|
|
2785
|
-
const parsedBody = parsedOutput.body;
|
|
2786
|
-
return throwDefaultError({
|
|
2787
|
-
output,
|
|
2788
|
-
parsedBody,
|
|
2789
|
-
errorCode
|
|
2790
|
-
});
|
|
2791
|
-
}
|
|
2792
|
-
}, "de_GetPluginCommandError");
|
|
2793
1900
|
var de_GetRetrieverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2794
1901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2795
|
-
return
|
|
1902
|
+
return de_CommandError(output, context);
|
|
2796
1903
|
}
|
|
2797
1904
|
const contents = (0, import_smithy_client.map)({
|
|
2798
1905
|
$metadata: deserializeMetadata(output)
|
|
@@ -2813,40 +1920,9 @@ var de_GetRetrieverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2813
1920
|
Object.assign(contents, doc);
|
|
2814
1921
|
return contents;
|
|
2815
1922
|
}, "de_GetRetrieverCommand");
|
|
2816
|
-
var de_GetRetrieverCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2817
|
-
const parsedOutput = {
|
|
2818
|
-
...output,
|
|
2819
|
-
body: await parseErrorBody(output.body, context)
|
|
2820
|
-
};
|
|
2821
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2822
|
-
switch (errorCode) {
|
|
2823
|
-
case "AccessDeniedException":
|
|
2824
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2825
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2826
|
-
case "InternalServerException":
|
|
2827
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2828
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2829
|
-
case "ResourceNotFoundException":
|
|
2830
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2831
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2832
|
-
case "ThrottlingException":
|
|
2833
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2834
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2835
|
-
case "ValidationException":
|
|
2836
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2837
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2838
|
-
default:
|
|
2839
|
-
const parsedBody = parsedOutput.body;
|
|
2840
|
-
return throwDefaultError({
|
|
2841
|
-
output,
|
|
2842
|
-
parsedBody,
|
|
2843
|
-
errorCode
|
|
2844
|
-
});
|
|
2845
|
-
}
|
|
2846
|
-
}, "de_GetRetrieverCommandError");
|
|
2847
1923
|
var de_GetUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2848
1924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2849
|
-
return
|
|
1925
|
+
return de_CommandError(output, context);
|
|
2850
1926
|
}
|
|
2851
1927
|
const contents = (0, import_smithy_client.map)({
|
|
2852
1928
|
$metadata: deserializeMetadata(output)
|
|
@@ -2858,43 +1934,9 @@ var de_GetUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2858
1934
|
Object.assign(contents, doc);
|
|
2859
1935
|
return contents;
|
|
2860
1936
|
}, "de_GetUserCommand");
|
|
2861
|
-
var de_GetUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2862
|
-
const parsedOutput = {
|
|
2863
|
-
...output,
|
|
2864
|
-
body: await parseErrorBody(output.body, context)
|
|
2865
|
-
};
|
|
2866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2867
|
-
switch (errorCode) {
|
|
2868
|
-
case "AccessDeniedException":
|
|
2869
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2870
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2871
|
-
case "ConflictException":
|
|
2872
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
2873
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2874
|
-
case "InternalServerException":
|
|
2875
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2876
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2877
|
-
case "ResourceNotFoundException":
|
|
2878
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2879
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2880
|
-
case "ThrottlingException":
|
|
2881
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2882
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2883
|
-
case "ValidationException":
|
|
2884
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2885
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2886
|
-
default:
|
|
2887
|
-
const parsedBody = parsedOutput.body;
|
|
2888
|
-
return throwDefaultError({
|
|
2889
|
-
output,
|
|
2890
|
-
parsedBody,
|
|
2891
|
-
errorCode
|
|
2892
|
-
});
|
|
2893
|
-
}
|
|
2894
|
-
}, "de_GetUserCommandError");
|
|
2895
1937
|
var de_GetWebExperienceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2896
1938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2897
|
-
return
|
|
1939
|
+
return de_CommandError(output, context);
|
|
2898
1940
|
}
|
|
2899
1941
|
const contents = (0, import_smithy_client.map)({
|
|
2900
1942
|
$metadata: deserializeMetadata(output)
|
|
@@ -2918,40 +1960,9 @@ var de_GetWebExperienceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2918
1960
|
Object.assign(contents, doc);
|
|
2919
1961
|
return contents;
|
|
2920
1962
|
}, "de_GetWebExperienceCommand");
|
|
2921
|
-
var de_GetWebExperienceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2922
|
-
const parsedOutput = {
|
|
2923
|
-
...output,
|
|
2924
|
-
body: await parseErrorBody(output.body, context)
|
|
2925
|
-
};
|
|
2926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2927
|
-
switch (errorCode) {
|
|
2928
|
-
case "AccessDeniedException":
|
|
2929
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2930
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2931
|
-
case "InternalServerException":
|
|
2932
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2933
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "ResourceNotFoundException":
|
|
2935
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "ThrottlingException":
|
|
2938
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2939
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "ValidationException":
|
|
2941
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2942
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2943
|
-
default:
|
|
2944
|
-
const parsedBody = parsedOutput.body;
|
|
2945
|
-
return throwDefaultError({
|
|
2946
|
-
output,
|
|
2947
|
-
parsedBody,
|
|
2948
|
-
errorCode
|
|
2949
|
-
});
|
|
2950
|
-
}
|
|
2951
|
-
}, "de_GetWebExperienceCommandError");
|
|
2952
1963
|
var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2953
1964
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2954
|
-
return
|
|
1965
|
+
return de_CommandError(output, context);
|
|
2955
1966
|
}
|
|
2956
1967
|
const contents = (0, import_smithy_client.map)({
|
|
2957
1968
|
$metadata: deserializeMetadata(output)
|
|
@@ -2964,37 +1975,9 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2964
1975
|
Object.assign(contents, doc);
|
|
2965
1976
|
return contents;
|
|
2966
1977
|
}, "de_ListApplicationsCommand");
|
|
2967
|
-
var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2968
|
-
const parsedOutput = {
|
|
2969
|
-
...output,
|
|
2970
|
-
body: await parseErrorBody(output.body, context)
|
|
2971
|
-
};
|
|
2972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2973
|
-
switch (errorCode) {
|
|
2974
|
-
case "AccessDeniedException":
|
|
2975
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2976
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2977
|
-
case "InternalServerException":
|
|
2978
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2979
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2980
|
-
case "ThrottlingException":
|
|
2981
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2982
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2983
|
-
case "ValidationException":
|
|
2984
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
2985
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2986
|
-
default:
|
|
2987
|
-
const parsedBody = parsedOutput.body;
|
|
2988
|
-
return throwDefaultError({
|
|
2989
|
-
output,
|
|
2990
|
-
parsedBody,
|
|
2991
|
-
errorCode
|
|
2992
|
-
});
|
|
2993
|
-
}
|
|
2994
|
-
}, "de_ListApplicationsCommandError");
|
|
2995
1978
|
var de_ListConversationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2996
1979
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2997
|
-
return
|
|
1980
|
+
return de_CommandError(output, context);
|
|
2998
1981
|
}
|
|
2999
1982
|
const contents = (0, import_smithy_client.map)({
|
|
3000
1983
|
$metadata: deserializeMetadata(output)
|
|
@@ -3007,43 +1990,9 @@ var de_ListConversationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3007
1990
|
Object.assign(contents, doc);
|
|
3008
1991
|
return contents;
|
|
3009
1992
|
}, "de_ListConversationsCommand");
|
|
3010
|
-
var de_ListConversationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3011
|
-
const parsedOutput = {
|
|
3012
|
-
...output,
|
|
3013
|
-
body: await parseErrorBody(output.body, context)
|
|
3014
|
-
};
|
|
3015
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3016
|
-
switch (errorCode) {
|
|
3017
|
-
case "AccessDeniedException":
|
|
3018
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3019
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3020
|
-
case "InternalServerException":
|
|
3021
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3022
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3023
|
-
case "LicenseNotFoundException":
|
|
3024
|
-
case "com.amazonaws.qbusiness#LicenseNotFoundException":
|
|
3025
|
-
throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
|
|
3026
|
-
case "ResourceNotFoundException":
|
|
3027
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3028
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3029
|
-
case "ThrottlingException":
|
|
3030
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3031
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3032
|
-
case "ValidationException":
|
|
3033
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3034
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3035
|
-
default:
|
|
3036
|
-
const parsedBody = parsedOutput.body;
|
|
3037
|
-
return throwDefaultError({
|
|
3038
|
-
output,
|
|
3039
|
-
parsedBody,
|
|
3040
|
-
errorCode
|
|
3041
|
-
});
|
|
3042
|
-
}
|
|
3043
|
-
}, "de_ListConversationsCommandError");
|
|
3044
1993
|
var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3045
1994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3046
|
-
return
|
|
1995
|
+
return de_CommandError(output, context);
|
|
3047
1996
|
}
|
|
3048
1997
|
const contents = (0, import_smithy_client.map)({
|
|
3049
1998
|
$metadata: deserializeMetadata(output)
|
|
@@ -3056,40 +2005,9 @@ var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3056
2005
|
Object.assign(contents, doc);
|
|
3057
2006
|
return contents;
|
|
3058
2007
|
}, "de_ListDataSourcesCommand");
|
|
3059
|
-
var de_ListDataSourcesCommandError = /* @__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.qbusiness#AccessDeniedException":
|
|
3068
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3069
|
-
case "InternalServerException":
|
|
3070
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3071
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3072
|
-
case "ResourceNotFoundException":
|
|
3073
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3074
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "ThrottlingException":
|
|
3076
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3077
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "ValidationException":
|
|
3079
|
-
case "com.amazonaws.qbusiness#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_ListDataSourcesCommandError");
|
|
3090
2008
|
var de_ListDataSourceSyncJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3091
2009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3092
|
-
return
|
|
2010
|
+
return de_CommandError(output, context);
|
|
3093
2011
|
}
|
|
3094
2012
|
const contents = (0, import_smithy_client.map)({
|
|
3095
2013
|
$metadata: deserializeMetadata(output)
|
|
@@ -3102,40 +2020,9 @@ var de_ListDataSourceSyncJobsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3102
2020
|
Object.assign(contents, doc);
|
|
3103
2021
|
return contents;
|
|
3104
2022
|
}, "de_ListDataSourceSyncJobsCommand");
|
|
3105
|
-
var de_ListDataSourceSyncJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3106
|
-
const parsedOutput = {
|
|
3107
|
-
...output,
|
|
3108
|
-
body: await parseErrorBody(output.body, context)
|
|
3109
|
-
};
|
|
3110
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3111
|
-
switch (errorCode) {
|
|
3112
|
-
case "AccessDeniedException":
|
|
3113
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3114
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3115
|
-
case "InternalServerException":
|
|
3116
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3117
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3118
|
-
case "ResourceNotFoundException":
|
|
3119
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3120
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3121
|
-
case "ThrottlingException":
|
|
3122
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3123
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3124
|
-
case "ValidationException":
|
|
3125
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3126
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3127
|
-
default:
|
|
3128
|
-
const parsedBody = parsedOutput.body;
|
|
3129
|
-
return throwDefaultError({
|
|
3130
|
-
output,
|
|
3131
|
-
parsedBody,
|
|
3132
|
-
errorCode
|
|
3133
|
-
});
|
|
3134
|
-
}
|
|
3135
|
-
}, "de_ListDataSourceSyncJobsCommandError");
|
|
3136
2023
|
var de_ListDocumentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3137
2024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3138
|
-
return
|
|
2025
|
+
return de_CommandError(output, context);
|
|
3139
2026
|
}
|
|
3140
2027
|
const contents = (0, import_smithy_client.map)({
|
|
3141
2028
|
$metadata: deserializeMetadata(output)
|
|
@@ -3148,40 +2035,9 @@ var de_ListDocumentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3148
2035
|
Object.assign(contents, doc);
|
|
3149
2036
|
return contents;
|
|
3150
2037
|
}, "de_ListDocumentsCommand");
|
|
3151
|
-
var de_ListDocumentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3152
|
-
const parsedOutput = {
|
|
3153
|
-
...output,
|
|
3154
|
-
body: await parseErrorBody(output.body, context)
|
|
3155
|
-
};
|
|
3156
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3157
|
-
switch (errorCode) {
|
|
3158
|
-
case "AccessDeniedException":
|
|
3159
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3160
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3161
|
-
case "InternalServerException":
|
|
3162
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3163
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3164
|
-
case "ResourceNotFoundException":
|
|
3165
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3166
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3167
|
-
case "ThrottlingException":
|
|
3168
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3169
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3170
|
-
case "ValidationException":
|
|
3171
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3172
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3173
|
-
default:
|
|
3174
|
-
const parsedBody = parsedOutput.body;
|
|
3175
|
-
return throwDefaultError({
|
|
3176
|
-
output,
|
|
3177
|
-
parsedBody,
|
|
3178
|
-
errorCode
|
|
3179
|
-
});
|
|
3180
|
-
}
|
|
3181
|
-
}, "de_ListDocumentsCommandError");
|
|
3182
2038
|
var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3183
2039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3184
|
-
return
|
|
2040
|
+
return de_CommandError(output, context);
|
|
3185
2041
|
}
|
|
3186
2042
|
const contents = (0, import_smithy_client.map)({
|
|
3187
2043
|
$metadata: deserializeMetadata(output)
|
|
@@ -3194,43 +2050,9 @@ var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3194
2050
|
Object.assign(contents, doc);
|
|
3195
2051
|
return contents;
|
|
3196
2052
|
}, "de_ListGroupsCommand");
|
|
3197
|
-
var de_ListGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3198
|
-
const parsedOutput = {
|
|
3199
|
-
...output,
|
|
3200
|
-
body: await parseErrorBody(output.body, context)
|
|
3201
|
-
};
|
|
3202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3203
|
-
switch (errorCode) {
|
|
3204
|
-
case "AccessDeniedException":
|
|
3205
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3206
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3207
|
-
case "ConflictException":
|
|
3208
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
3209
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3210
|
-
case "InternalServerException":
|
|
3211
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3212
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3213
|
-
case "ResourceNotFoundException":
|
|
3214
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3215
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3216
|
-
case "ThrottlingException":
|
|
3217
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3218
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3219
|
-
case "ValidationException":
|
|
3220
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3221
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3222
|
-
default:
|
|
3223
|
-
const parsedBody = parsedOutput.body;
|
|
3224
|
-
return throwDefaultError({
|
|
3225
|
-
output,
|
|
3226
|
-
parsedBody,
|
|
3227
|
-
errorCode
|
|
3228
|
-
});
|
|
3229
|
-
}
|
|
3230
|
-
}, "de_ListGroupsCommandError");
|
|
3231
2053
|
var de_ListIndicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3232
2054
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3233
|
-
return
|
|
2055
|
+
return de_CommandError(output, context);
|
|
3234
2056
|
}
|
|
3235
2057
|
const contents = (0, import_smithy_client.map)({
|
|
3236
2058
|
$metadata: deserializeMetadata(output)
|
|
@@ -3243,40 +2065,9 @@ var de_ListIndicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3243
2065
|
Object.assign(contents, doc);
|
|
3244
2066
|
return contents;
|
|
3245
2067
|
}, "de_ListIndicesCommand");
|
|
3246
|
-
var de_ListIndicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3247
|
-
const parsedOutput = {
|
|
3248
|
-
...output,
|
|
3249
|
-
body: await parseErrorBody(output.body, context)
|
|
3250
|
-
};
|
|
3251
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3252
|
-
switch (errorCode) {
|
|
3253
|
-
case "AccessDeniedException":
|
|
3254
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3255
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3256
|
-
case "InternalServerException":
|
|
3257
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3258
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3259
|
-
case "ResourceNotFoundException":
|
|
3260
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3261
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3262
|
-
case "ThrottlingException":
|
|
3263
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3264
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3265
|
-
case "ValidationException":
|
|
3266
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3267
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3268
|
-
default:
|
|
3269
|
-
const parsedBody = parsedOutput.body;
|
|
3270
|
-
return throwDefaultError({
|
|
3271
|
-
output,
|
|
3272
|
-
parsedBody,
|
|
3273
|
-
errorCode
|
|
3274
|
-
});
|
|
3275
|
-
}
|
|
3276
|
-
}, "de_ListIndicesCommandError");
|
|
3277
2068
|
var de_ListMessagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3278
2069
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3279
|
-
return
|
|
2070
|
+
return de_CommandError(output, context);
|
|
3280
2071
|
}
|
|
3281
2072
|
const contents = (0, import_smithy_client.map)({
|
|
3282
2073
|
$metadata: deserializeMetadata(output)
|
|
@@ -3289,43 +2080,9 @@ var de_ListMessagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3289
2080
|
Object.assign(contents, doc);
|
|
3290
2081
|
return contents;
|
|
3291
2082
|
}, "de_ListMessagesCommand");
|
|
3292
|
-
var de_ListMessagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3293
|
-
const parsedOutput = {
|
|
3294
|
-
...output,
|
|
3295
|
-
body: await parseErrorBody(output.body, context)
|
|
3296
|
-
};
|
|
3297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3298
|
-
switch (errorCode) {
|
|
3299
|
-
case "AccessDeniedException":
|
|
3300
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3301
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3302
|
-
case "InternalServerException":
|
|
3303
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3304
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3305
|
-
case "LicenseNotFoundException":
|
|
3306
|
-
case "com.amazonaws.qbusiness#LicenseNotFoundException":
|
|
3307
|
-
throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
|
|
3308
|
-
case "ResourceNotFoundException":
|
|
3309
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3310
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3311
|
-
case "ThrottlingException":
|
|
3312
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3313
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3314
|
-
case "ValidationException":
|
|
3315
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3316
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3317
|
-
default:
|
|
3318
|
-
const parsedBody = parsedOutput.body;
|
|
3319
|
-
return throwDefaultError({
|
|
3320
|
-
output,
|
|
3321
|
-
parsedBody,
|
|
3322
|
-
errorCode
|
|
3323
|
-
});
|
|
3324
|
-
}
|
|
3325
|
-
}, "de_ListMessagesCommandError");
|
|
3326
2083
|
var de_ListPluginsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3327
2084
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3328
|
-
return
|
|
2085
|
+
return de_CommandError(output, context);
|
|
3329
2086
|
}
|
|
3330
2087
|
const contents = (0, import_smithy_client.map)({
|
|
3331
2088
|
$metadata: deserializeMetadata(output)
|
|
@@ -3338,40 +2095,9 @@ var de_ListPluginsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3338
2095
|
Object.assign(contents, doc);
|
|
3339
2096
|
return contents;
|
|
3340
2097
|
}, "de_ListPluginsCommand");
|
|
3341
|
-
var de_ListPluginsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3342
|
-
const parsedOutput = {
|
|
3343
|
-
...output,
|
|
3344
|
-
body: await parseErrorBody(output.body, context)
|
|
3345
|
-
};
|
|
3346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3347
|
-
switch (errorCode) {
|
|
3348
|
-
case "AccessDeniedException":
|
|
3349
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3350
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3351
|
-
case "InternalServerException":
|
|
3352
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3353
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3354
|
-
case "ResourceNotFoundException":
|
|
3355
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3356
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3357
|
-
case "ThrottlingException":
|
|
3358
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3359
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3360
|
-
case "ValidationException":
|
|
3361
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3362
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3363
|
-
default:
|
|
3364
|
-
const parsedBody = parsedOutput.body;
|
|
3365
|
-
return throwDefaultError({
|
|
3366
|
-
output,
|
|
3367
|
-
parsedBody,
|
|
3368
|
-
errorCode
|
|
3369
|
-
});
|
|
3370
|
-
}
|
|
3371
|
-
}, "de_ListPluginsCommandError");
|
|
3372
2098
|
var de_ListRetrieversCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3373
2099
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3374
|
-
return
|
|
2100
|
+
return de_CommandError(output, context);
|
|
3375
2101
|
}
|
|
3376
2102
|
const contents = (0, import_smithy_client.map)({
|
|
3377
2103
|
$metadata: deserializeMetadata(output)
|
|
@@ -3384,40 +2110,9 @@ var de_ListRetrieversCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3384
2110
|
Object.assign(contents, doc);
|
|
3385
2111
|
return contents;
|
|
3386
2112
|
}, "de_ListRetrieversCommand");
|
|
3387
|
-
var de_ListRetrieversCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3388
|
-
const parsedOutput = {
|
|
3389
|
-
...output,
|
|
3390
|
-
body: await parseErrorBody(output.body, context)
|
|
3391
|
-
};
|
|
3392
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3393
|
-
switch (errorCode) {
|
|
3394
|
-
case "AccessDeniedException":
|
|
3395
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3396
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3397
|
-
case "InternalServerException":
|
|
3398
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3399
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3400
|
-
case "ResourceNotFoundException":
|
|
3401
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3403
|
-
case "ThrottlingException":
|
|
3404
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3405
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3406
|
-
case "ValidationException":
|
|
3407
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3408
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3409
|
-
default:
|
|
3410
|
-
const parsedBody = parsedOutput.body;
|
|
3411
|
-
return throwDefaultError({
|
|
3412
|
-
output,
|
|
3413
|
-
parsedBody,
|
|
3414
|
-
errorCode
|
|
3415
|
-
});
|
|
3416
|
-
}
|
|
3417
|
-
}, "de_ListRetrieversCommandError");
|
|
3418
2113
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3419
2114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3420
|
-
return
|
|
2115
|
+
return de_CommandError(output, context);
|
|
3421
2116
|
}
|
|
3422
2117
|
const contents = (0, import_smithy_client.map)({
|
|
3423
2118
|
$metadata: deserializeMetadata(output)
|
|
@@ -3429,40 +2124,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3429
2124
|
Object.assign(contents, doc);
|
|
3430
2125
|
return contents;
|
|
3431
2126
|
}, "de_ListTagsForResourceCommand");
|
|
3432
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3433
|
-
const parsedOutput = {
|
|
3434
|
-
...output,
|
|
3435
|
-
body: await parseErrorBody(output.body, context)
|
|
3436
|
-
};
|
|
3437
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3438
|
-
switch (errorCode) {
|
|
3439
|
-
case "AccessDeniedException":
|
|
3440
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3441
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3442
|
-
case "InternalServerException":
|
|
3443
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3444
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3445
|
-
case "ResourceNotFoundException":
|
|
3446
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3447
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3448
|
-
case "ThrottlingException":
|
|
3449
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3450
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3451
|
-
case "ValidationException":
|
|
3452
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3453
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3454
|
-
default:
|
|
3455
|
-
const parsedBody = parsedOutput.body;
|
|
3456
|
-
return throwDefaultError({
|
|
3457
|
-
output,
|
|
3458
|
-
parsedBody,
|
|
3459
|
-
errorCode
|
|
3460
|
-
});
|
|
3461
|
-
}
|
|
3462
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3463
2127
|
var de_ListWebExperiencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3464
2128
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3465
|
-
return
|
|
2129
|
+
return de_CommandError(output, context);
|
|
3466
2130
|
}
|
|
3467
2131
|
const contents = (0, import_smithy_client.map)({
|
|
3468
2132
|
$metadata: deserializeMetadata(output)
|
|
@@ -3475,40 +2139,9 @@ var de_ListWebExperiencesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3475
2139
|
Object.assign(contents, doc);
|
|
3476
2140
|
return contents;
|
|
3477
2141
|
}, "de_ListWebExperiencesCommand");
|
|
3478
|
-
var de_ListWebExperiencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3479
|
-
const parsedOutput = {
|
|
3480
|
-
...output,
|
|
3481
|
-
body: await parseErrorBody(output.body, context)
|
|
3482
|
-
};
|
|
3483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3484
|
-
switch (errorCode) {
|
|
3485
|
-
case "AccessDeniedException":
|
|
3486
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3487
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3488
|
-
case "InternalServerException":
|
|
3489
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3490
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3491
|
-
case "ResourceNotFoundException":
|
|
3492
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3493
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3494
|
-
case "ThrottlingException":
|
|
3495
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3496
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3497
|
-
case "ValidationException":
|
|
3498
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3499
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3500
|
-
default:
|
|
3501
|
-
const parsedBody = parsedOutput.body;
|
|
3502
|
-
return throwDefaultError({
|
|
3503
|
-
output,
|
|
3504
|
-
parsedBody,
|
|
3505
|
-
errorCode
|
|
3506
|
-
});
|
|
3507
|
-
}
|
|
3508
|
-
}, "de_ListWebExperiencesCommandError");
|
|
3509
2142
|
var de_PutFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3510
2143
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3511
|
-
return
|
|
2144
|
+
return de_CommandError(output, context);
|
|
3512
2145
|
}
|
|
3513
2146
|
const contents = (0, import_smithy_client.map)({
|
|
3514
2147
|
$metadata: deserializeMetadata(output)
|
|
@@ -3516,40 +2149,9 @@ var de_PutFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3516
2149
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3517
2150
|
return contents;
|
|
3518
2151
|
}, "de_PutFeedbackCommand");
|
|
3519
|
-
var de_PutFeedbackCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3520
|
-
const parsedOutput = {
|
|
3521
|
-
...output,
|
|
3522
|
-
body: await parseErrorBody(output.body, context)
|
|
3523
|
-
};
|
|
3524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3525
|
-
switch (errorCode) {
|
|
3526
|
-
case "AccessDeniedException":
|
|
3527
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3528
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3529
|
-
case "InternalServerException":
|
|
3530
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3531
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3532
|
-
case "ResourceNotFoundException":
|
|
3533
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3534
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3535
|
-
case "ThrottlingException":
|
|
3536
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3537
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3538
|
-
case "ValidationException":
|
|
3539
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3540
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3541
|
-
default:
|
|
3542
|
-
const parsedBody = parsedOutput.body;
|
|
3543
|
-
return throwDefaultError({
|
|
3544
|
-
output,
|
|
3545
|
-
parsedBody,
|
|
3546
|
-
errorCode
|
|
3547
|
-
});
|
|
3548
|
-
}
|
|
3549
|
-
}, "de_PutFeedbackCommandError");
|
|
3550
2152
|
var de_PutGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3551
2153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3552
|
-
return
|
|
2154
|
+
return de_CommandError(output, context);
|
|
3553
2155
|
}
|
|
3554
2156
|
const contents = (0, import_smithy_client.map)({
|
|
3555
2157
|
$metadata: deserializeMetadata(output)
|
|
@@ -3557,46 +2159,9 @@ var de_PutGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3557
2159
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3558
2160
|
return contents;
|
|
3559
2161
|
}, "de_PutGroupCommand");
|
|
3560
|
-
var de_PutGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3561
|
-
const parsedOutput = {
|
|
3562
|
-
...output,
|
|
3563
|
-
body: await parseErrorBody(output.body, context)
|
|
3564
|
-
};
|
|
3565
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3566
|
-
switch (errorCode) {
|
|
3567
|
-
case "AccessDeniedException":
|
|
3568
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3569
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3570
|
-
case "ConflictException":
|
|
3571
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
3572
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3573
|
-
case "InternalServerException":
|
|
3574
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3575
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3576
|
-
case "ResourceNotFoundException":
|
|
3577
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3578
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3579
|
-
case "ServiceQuotaExceededException":
|
|
3580
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
3581
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3582
|
-
case "ThrottlingException":
|
|
3583
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3584
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3585
|
-
case "ValidationException":
|
|
3586
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3587
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3588
|
-
default:
|
|
3589
|
-
const parsedBody = parsedOutput.body;
|
|
3590
|
-
return throwDefaultError({
|
|
3591
|
-
output,
|
|
3592
|
-
parsedBody,
|
|
3593
|
-
errorCode
|
|
3594
|
-
});
|
|
3595
|
-
}
|
|
3596
|
-
}, "de_PutGroupCommandError");
|
|
3597
2162
|
var de_StartDataSourceSyncJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3598
2163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3599
|
-
return
|
|
2164
|
+
return de_CommandError(output, context);
|
|
3600
2165
|
}
|
|
3601
2166
|
const contents = (0, import_smithy_client.map)({
|
|
3602
2167
|
$metadata: deserializeMetadata(output)
|
|
@@ -3608,46 +2173,9 @@ var de_StartDataSourceSyncJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3608
2173
|
Object.assign(contents, doc);
|
|
3609
2174
|
return contents;
|
|
3610
2175
|
}, "de_StartDataSourceSyncJobCommand");
|
|
3611
|
-
var de_StartDataSourceSyncJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3612
|
-
const parsedOutput = {
|
|
3613
|
-
...output,
|
|
3614
|
-
body: await parseErrorBody(output.body, context)
|
|
3615
|
-
};
|
|
3616
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3617
|
-
switch (errorCode) {
|
|
3618
|
-
case "AccessDeniedException":
|
|
3619
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3620
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3621
|
-
case "ConflictException":
|
|
3622
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
3623
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3624
|
-
case "InternalServerException":
|
|
3625
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3626
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3627
|
-
case "ResourceNotFoundException":
|
|
3628
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3629
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3630
|
-
case "ServiceQuotaExceededException":
|
|
3631
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
3632
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3633
|
-
case "ThrottlingException":
|
|
3634
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3635
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3636
|
-
case "ValidationException":
|
|
3637
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3638
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3639
|
-
default:
|
|
3640
|
-
const parsedBody = parsedOutput.body;
|
|
3641
|
-
return throwDefaultError({
|
|
3642
|
-
output,
|
|
3643
|
-
parsedBody,
|
|
3644
|
-
errorCode
|
|
3645
|
-
});
|
|
3646
|
-
}
|
|
3647
|
-
}, "de_StartDataSourceSyncJobCommandError");
|
|
3648
2176
|
var de_StopDataSourceSyncJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3649
2177
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3650
|
-
return
|
|
2178
|
+
return de_CommandError(output, context);
|
|
3651
2179
|
}
|
|
3652
2180
|
const contents = (0, import_smithy_client.map)({
|
|
3653
2181
|
$metadata: deserializeMetadata(output)
|
|
@@ -3655,125 +2183,29 @@ var de_StopDataSourceSyncJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3655
2183
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3656
2184
|
return contents;
|
|
3657
2185
|
}, "de_StopDataSourceSyncJobCommand");
|
|
3658
|
-
var de_StopDataSourceSyncJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3659
|
-
const parsedOutput = {
|
|
3660
|
-
...output,
|
|
3661
|
-
body: await parseErrorBody(output.body, context)
|
|
3662
|
-
};
|
|
3663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3664
|
-
switch (errorCode) {
|
|
3665
|
-
case "AccessDeniedException":
|
|
3666
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3667
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3668
|
-
case "InternalServerException":
|
|
3669
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3670
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3671
|
-
case "ResourceNotFoundException":
|
|
3672
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3673
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3674
|
-
case "ThrottlingException":
|
|
3675
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3676
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3677
|
-
case "ValidationException":
|
|
3678
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3679
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3680
|
-
default:
|
|
3681
|
-
const parsedBody = parsedOutput.body;
|
|
3682
|
-
return throwDefaultError({
|
|
3683
|
-
output,
|
|
3684
|
-
parsedBody,
|
|
3685
|
-
errorCode
|
|
3686
|
-
});
|
|
3687
|
-
}
|
|
3688
|
-
}, "de_StopDataSourceSyncJobCommandError");
|
|
3689
2186
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3690
2187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3691
|
-
return
|
|
3692
|
-
}
|
|
3693
|
-
const contents = (0, import_smithy_client.map)({
|
|
3694
|
-
$metadata: deserializeMetadata(output)
|
|
3695
|
-
});
|
|
3696
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3697
|
-
return contents;
|
|
3698
|
-
}, "de_TagResourceCommand");
|
|
3699
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3700
|
-
const parsedOutput = {
|
|
3701
|
-
...output,
|
|
3702
|
-
body: await parseErrorBody(output.body, context)
|
|
3703
|
-
};
|
|
3704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3705
|
-
switch (errorCode) {
|
|
3706
|
-
case "AccessDeniedException":
|
|
3707
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3708
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3709
|
-
case "ConflictException":
|
|
3710
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
3711
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3712
|
-
case "InternalServerException":
|
|
3713
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3714
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3715
|
-
case "ResourceNotFoundException":
|
|
3716
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3717
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3718
|
-
case "ThrottlingException":
|
|
3719
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3720
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3721
|
-
case "ValidationException":
|
|
3722
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3723
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3724
|
-
default:
|
|
3725
|
-
const parsedBody = parsedOutput.body;
|
|
3726
|
-
return throwDefaultError({
|
|
3727
|
-
output,
|
|
3728
|
-
parsedBody,
|
|
3729
|
-
errorCode
|
|
3730
|
-
});
|
|
3731
|
-
}
|
|
3732
|
-
}, "de_TagResourceCommandError");
|
|
3733
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3734
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3735
|
-
return de_UntagResourceCommandError(output, context);
|
|
2188
|
+
return de_CommandError(output, context);
|
|
3736
2189
|
}
|
|
3737
|
-
const contents = (0, import_smithy_client.map)({
|
|
3738
|
-
$metadata: deserializeMetadata(output)
|
|
3739
|
-
});
|
|
3740
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3741
|
-
return contents;
|
|
3742
|
-
}, "
|
|
3743
|
-
var
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
body: await parseErrorBody(output.body, context)
|
|
3747
|
-
};
|
|
3748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3749
|
-
switch (errorCode) {
|
|
3750
|
-
case "AccessDeniedException":
|
|
3751
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3752
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3753
|
-
case "InternalServerException":
|
|
3754
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3755
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3756
|
-
case "ResourceNotFoundException":
|
|
3757
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3758
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3759
|
-
case "ThrottlingException":
|
|
3760
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3761
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3762
|
-
case "ValidationException":
|
|
3763
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3764
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3765
|
-
default:
|
|
3766
|
-
const parsedBody = parsedOutput.body;
|
|
3767
|
-
return throwDefaultError({
|
|
3768
|
-
output,
|
|
3769
|
-
parsedBody,
|
|
3770
|
-
errorCode
|
|
3771
|
-
});
|
|
2190
|
+
const contents = (0, import_smithy_client.map)({
|
|
2191
|
+
$metadata: deserializeMetadata(output)
|
|
2192
|
+
});
|
|
2193
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2194
|
+
return contents;
|
|
2195
|
+
}, "de_TagResourceCommand");
|
|
2196
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2197
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2198
|
+
return de_CommandError(output, context);
|
|
3772
2199
|
}
|
|
3773
|
-
|
|
2200
|
+
const contents = (0, import_smithy_client.map)({
|
|
2201
|
+
$metadata: deserializeMetadata(output)
|
|
2202
|
+
});
|
|
2203
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2204
|
+
return contents;
|
|
2205
|
+
}, "de_UntagResourceCommand");
|
|
3774
2206
|
var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3775
2207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3776
|
-
return
|
|
2208
|
+
return de_CommandError(output, context);
|
|
3777
2209
|
}
|
|
3778
2210
|
const contents = (0, import_smithy_client.map)({
|
|
3779
2211
|
$metadata: deserializeMetadata(output)
|
|
@@ -3781,43 +2213,9 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3781
2213
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3782
2214
|
return contents;
|
|
3783
2215
|
}, "de_UpdateApplicationCommand");
|
|
3784
|
-
var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3785
|
-
const parsedOutput = {
|
|
3786
|
-
...output,
|
|
3787
|
-
body: await parseErrorBody(output.body, context)
|
|
3788
|
-
};
|
|
3789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3790
|
-
switch (errorCode) {
|
|
3791
|
-
case "AccessDeniedException":
|
|
3792
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3793
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3794
|
-
case "ConflictException":
|
|
3795
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
3796
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3797
|
-
case "InternalServerException":
|
|
3798
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3799
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3800
|
-
case "ResourceNotFoundException":
|
|
3801
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3802
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3803
|
-
case "ThrottlingException":
|
|
3804
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3805
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3806
|
-
case "ValidationException":
|
|
3807
|
-
case "com.amazonaws.qbusiness#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_UpdateApplicationCommandError");
|
|
3818
2216
|
var de_UpdateChatControlsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3819
2217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3820
|
-
return
|
|
2218
|
+
return de_CommandError(output, context);
|
|
3821
2219
|
}
|
|
3822
2220
|
const contents = (0, import_smithy_client.map)({
|
|
3823
2221
|
$metadata: deserializeMetadata(output)
|
|
@@ -3825,46 +2223,9 @@ var de_UpdateChatControlsConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3825
2223
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3826
2224
|
return contents;
|
|
3827
2225
|
}, "de_UpdateChatControlsConfigurationCommand");
|
|
3828
|
-
var de_UpdateChatControlsConfigurationCommandError = /* @__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.qbusiness#AccessDeniedException":
|
|
3837
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3838
|
-
case "ConflictException":
|
|
3839
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
3840
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3841
|
-
case "InternalServerException":
|
|
3842
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3843
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3844
|
-
case "ResourceNotFoundException":
|
|
3845
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3846
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3847
|
-
case "ServiceQuotaExceededException":
|
|
3848
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
3849
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3850
|
-
case "ThrottlingException":
|
|
3851
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3852
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3853
|
-
case "ValidationException":
|
|
3854
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3855
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3856
|
-
default:
|
|
3857
|
-
const parsedBody = parsedOutput.body;
|
|
3858
|
-
return throwDefaultError({
|
|
3859
|
-
output,
|
|
3860
|
-
parsedBody,
|
|
3861
|
-
errorCode
|
|
3862
|
-
});
|
|
3863
|
-
}
|
|
3864
|
-
}, "de_UpdateChatControlsConfigurationCommandError");
|
|
3865
2226
|
var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3866
2227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3867
|
-
return
|
|
2228
|
+
return de_CommandError(output, context);
|
|
3868
2229
|
}
|
|
3869
2230
|
const contents = (0, import_smithy_client.map)({
|
|
3870
2231
|
$metadata: deserializeMetadata(output)
|
|
@@ -3872,43 +2233,9 @@ var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3872
2233
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3873
2234
|
return contents;
|
|
3874
2235
|
}, "de_UpdateDataSourceCommand");
|
|
3875
|
-
var de_UpdateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3876
|
-
const parsedOutput = {
|
|
3877
|
-
...output,
|
|
3878
|
-
body: await parseErrorBody(output.body, context)
|
|
3879
|
-
};
|
|
3880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3881
|
-
switch (errorCode) {
|
|
3882
|
-
case "AccessDeniedException":
|
|
3883
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3884
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3885
|
-
case "ConflictException":
|
|
3886
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
3887
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3888
|
-
case "InternalServerException":
|
|
3889
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3890
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3891
|
-
case "ResourceNotFoundException":
|
|
3892
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3893
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3894
|
-
case "ThrottlingException":
|
|
3895
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3896
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3897
|
-
case "ValidationException":
|
|
3898
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3899
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3900
|
-
default:
|
|
3901
|
-
const parsedBody = parsedOutput.body;
|
|
3902
|
-
return throwDefaultError({
|
|
3903
|
-
output,
|
|
3904
|
-
parsedBody,
|
|
3905
|
-
errorCode
|
|
3906
|
-
});
|
|
3907
|
-
}
|
|
3908
|
-
}, "de_UpdateDataSourceCommandError");
|
|
3909
2236
|
var de_UpdateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3910
2237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3911
|
-
return
|
|
2238
|
+
return de_CommandError(output, context);
|
|
3912
2239
|
}
|
|
3913
2240
|
const contents = (0, import_smithy_client.map)({
|
|
3914
2241
|
$metadata: deserializeMetadata(output)
|
|
@@ -3916,46 +2243,9 @@ var de_UpdateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3916
2243
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3917
2244
|
return contents;
|
|
3918
2245
|
}, "de_UpdateIndexCommand");
|
|
3919
|
-
var de_UpdateIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3920
|
-
const parsedOutput = {
|
|
3921
|
-
...output,
|
|
3922
|
-
body: await parseErrorBody(output.body, context)
|
|
3923
|
-
};
|
|
3924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3925
|
-
switch (errorCode) {
|
|
3926
|
-
case "AccessDeniedException":
|
|
3927
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3928
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3929
|
-
case "ConflictException":
|
|
3930
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
3931
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3932
|
-
case "InternalServerException":
|
|
3933
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3934
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3935
|
-
case "ResourceNotFoundException":
|
|
3936
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3937
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3938
|
-
case "ServiceQuotaExceededException":
|
|
3939
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
3940
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3941
|
-
case "ThrottlingException":
|
|
3942
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3943
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3944
|
-
case "ValidationException":
|
|
3945
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3946
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3947
|
-
default:
|
|
3948
|
-
const parsedBody = parsedOutput.body;
|
|
3949
|
-
return throwDefaultError({
|
|
3950
|
-
output,
|
|
3951
|
-
parsedBody,
|
|
3952
|
-
errorCode
|
|
3953
|
-
});
|
|
3954
|
-
}
|
|
3955
|
-
}, "de_UpdateIndexCommandError");
|
|
3956
2246
|
var de_UpdatePluginCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3957
2247
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3958
|
-
return
|
|
2248
|
+
return de_CommandError(output, context);
|
|
3959
2249
|
}
|
|
3960
2250
|
const contents = (0, import_smithy_client.map)({
|
|
3961
2251
|
$metadata: deserializeMetadata(output)
|
|
@@ -3963,46 +2253,9 @@ var de_UpdatePluginCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3963
2253
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3964
2254
|
return contents;
|
|
3965
2255
|
}, "de_UpdatePluginCommand");
|
|
3966
|
-
var de_UpdatePluginCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3967
|
-
const parsedOutput = {
|
|
3968
|
-
...output,
|
|
3969
|
-
body: await parseErrorBody(output.body, context)
|
|
3970
|
-
};
|
|
3971
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3972
|
-
switch (errorCode) {
|
|
3973
|
-
case "AccessDeniedException":
|
|
3974
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3975
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3976
|
-
case "ConflictException":
|
|
3977
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
3978
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3979
|
-
case "InternalServerException":
|
|
3980
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3981
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3982
|
-
case "ResourceNotFoundException":
|
|
3983
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3985
|
-
case "ServiceQuotaExceededException":
|
|
3986
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
3987
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3988
|
-
case "ThrottlingException":
|
|
3989
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3990
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3991
|
-
case "ValidationException":
|
|
3992
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
3993
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3994
|
-
default:
|
|
3995
|
-
const parsedBody = parsedOutput.body;
|
|
3996
|
-
return throwDefaultError({
|
|
3997
|
-
output,
|
|
3998
|
-
parsedBody,
|
|
3999
|
-
errorCode
|
|
4000
|
-
});
|
|
4001
|
-
}
|
|
4002
|
-
}, "de_UpdatePluginCommandError");
|
|
4003
2256
|
var de_UpdateRetrieverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4004
2257
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4005
|
-
return
|
|
2258
|
+
return de_CommandError(output, context);
|
|
4006
2259
|
}
|
|
4007
2260
|
const contents = (0, import_smithy_client.map)({
|
|
4008
2261
|
$metadata: deserializeMetadata(output)
|
|
@@ -4010,46 +2263,9 @@ var de_UpdateRetrieverCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4010
2263
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4011
2264
|
return contents;
|
|
4012
2265
|
}, "de_UpdateRetrieverCommand");
|
|
4013
|
-
var de_UpdateRetrieverCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4014
|
-
const parsedOutput = {
|
|
4015
|
-
...output,
|
|
4016
|
-
body: await parseErrorBody(output.body, context)
|
|
4017
|
-
};
|
|
4018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4019
|
-
switch (errorCode) {
|
|
4020
|
-
case "AccessDeniedException":
|
|
4021
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
4022
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4023
|
-
case "ConflictException":
|
|
4024
|
-
case "com.amazonaws.qbusiness#ConflictException":
|
|
4025
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4026
|
-
case "InternalServerException":
|
|
4027
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
4028
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4029
|
-
case "ResourceNotFoundException":
|
|
4030
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
4031
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4032
|
-
case "ServiceQuotaExceededException":
|
|
4033
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
4034
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4035
|
-
case "ThrottlingException":
|
|
4036
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
4037
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4038
|
-
case "ValidationException":
|
|
4039
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
4040
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4041
|
-
default:
|
|
4042
|
-
const parsedBody = parsedOutput.body;
|
|
4043
|
-
return throwDefaultError({
|
|
4044
|
-
output,
|
|
4045
|
-
parsedBody,
|
|
4046
|
-
errorCode
|
|
4047
|
-
});
|
|
4048
|
-
}
|
|
4049
|
-
}, "de_UpdateRetrieverCommandError");
|
|
4050
2266
|
var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4051
2267
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4052
|
-
return
|
|
2268
|
+
return de_CommandError(output, context);
|
|
4053
2269
|
}
|
|
4054
2270
|
const contents = (0, import_smithy_client.map)({
|
|
4055
2271
|
$metadata: deserializeMetadata(output)
|
|
@@ -4063,43 +2279,9 @@ var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4063
2279
|
Object.assign(contents, doc);
|
|
4064
2280
|
return contents;
|
|
4065
2281
|
}, "de_UpdateUserCommand");
|
|
4066
|
-
var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4067
|
-
const parsedOutput = {
|
|
4068
|
-
...output,
|
|
4069
|
-
body: await parseErrorBody(output.body, context)
|
|
4070
|
-
};
|
|
4071
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4072
|
-
switch (errorCode) {
|
|
4073
|
-
case "AccessDeniedException":
|
|
4074
|
-
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
4075
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4076
|
-
case "InternalServerException":
|
|
4077
|
-
case "com.amazonaws.qbusiness#InternalServerException":
|
|
4078
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4079
|
-
case "ResourceNotFoundException":
|
|
4080
|
-
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
4081
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4082
|
-
case "ServiceQuotaExceededException":
|
|
4083
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
4084
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4085
|
-
case "ThrottlingException":
|
|
4086
|
-
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
4087
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4088
|
-
case "ValidationException":
|
|
4089
|
-
case "com.amazonaws.qbusiness#ValidationException":
|
|
4090
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4091
|
-
default:
|
|
4092
|
-
const parsedBody = parsedOutput.body;
|
|
4093
|
-
return throwDefaultError({
|
|
4094
|
-
output,
|
|
4095
|
-
parsedBody,
|
|
4096
|
-
errorCode
|
|
4097
|
-
});
|
|
4098
|
-
}
|
|
4099
|
-
}, "de_UpdateUserCommandError");
|
|
4100
2282
|
var de_UpdateWebExperienceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4101
2283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4102
|
-
return
|
|
2284
|
+
return de_CommandError(output, context);
|
|
4103
2285
|
}
|
|
4104
2286
|
const contents = (0, import_smithy_client.map)({
|
|
4105
2287
|
$metadata: deserializeMetadata(output)
|
|
@@ -4107,7 +2289,7 @@ var de_UpdateWebExperienceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4107
2289
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4108
2290
|
return contents;
|
|
4109
2291
|
}, "de_UpdateWebExperienceCommand");
|
|
4110
|
-
var
|
|
2292
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4111
2293
|
const parsedOutput = {
|
|
4112
2294
|
...output,
|
|
4113
2295
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4132,6 +2314,12 @@ var de_UpdateWebExperienceCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
4132
2314
|
case "ValidationException":
|
|
4133
2315
|
case "com.amazonaws.qbusiness#ValidationException":
|
|
4134
2316
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2317
|
+
case "ServiceQuotaExceededException":
|
|
2318
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
2319
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2320
|
+
case "LicenseNotFoundException":
|
|
2321
|
+
case "com.amazonaws.qbusiness#LicenseNotFoundException":
|
|
2322
|
+
throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
|
|
4135
2323
|
default:
|
|
4136
2324
|
const parsedBody = parsedOutput.body;
|
|
4137
2325
|
return throwDefaultError({
|
|
@@ -4140,7 +2328,7 @@ var de_UpdateWebExperienceCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
4140
2328
|
errorCode
|
|
4141
2329
|
});
|
|
4142
2330
|
}
|
|
4143
|
-
}, "
|
|
2331
|
+
}, "de_CommandError");
|
|
4144
2332
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(QBusinessServiceException);
|
|
4145
2333
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4146
2334
|
const contents = (0, import_smithy_client.map)({});
|