@aws-sdk/client-appsync 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +111 -1918
- package/dist-es/protocols/Aws_restJson1.js +103 -1910
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1486,7 +1486,7 @@ var se_UpdateTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1486
1486
|
}, "se_UpdateTypeCommand");
|
|
1487
1487
|
var de_AssociateApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1488
1488
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1489
|
-
return
|
|
1489
|
+
return de_CommandError(output, context);
|
|
1490
1490
|
}
|
|
1491
1491
|
const contents = (0, import_smithy_client.map)({
|
|
1492
1492
|
$metadata: deserializeMetadata(output)
|
|
@@ -1498,37 +1498,9 @@ var de_AssociateApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1498
1498
|
Object.assign(contents, doc);
|
|
1499
1499
|
return contents;
|
|
1500
1500
|
}, "de_AssociateApiCommand");
|
|
1501
|
-
var de_AssociateApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1502
|
-
const parsedOutput = {
|
|
1503
|
-
...output,
|
|
1504
|
-
body: await parseErrorBody(output.body, context)
|
|
1505
|
-
};
|
|
1506
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
|
-
switch (errorCode) {
|
|
1508
|
-
case "AccessDeniedException":
|
|
1509
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
1510
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "BadRequestException":
|
|
1512
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
1513
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1514
|
-
case "InternalFailureException":
|
|
1515
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
1516
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1517
|
-
case "NotFoundException":
|
|
1518
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
1519
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1520
|
-
default:
|
|
1521
|
-
const parsedBody = parsedOutput.body;
|
|
1522
|
-
return throwDefaultError({
|
|
1523
|
-
output,
|
|
1524
|
-
parsedBody,
|
|
1525
|
-
errorCode
|
|
1526
|
-
});
|
|
1527
|
-
}
|
|
1528
|
-
}, "de_AssociateApiCommandError");
|
|
1529
1501
|
var de_AssociateMergedGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1530
1502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1531
|
-
return
|
|
1503
|
+
return de_CommandError(output, context);
|
|
1532
1504
|
}
|
|
1533
1505
|
const contents = (0, import_smithy_client.map)({
|
|
1534
1506
|
$metadata: deserializeMetadata(output)
|
|
@@ -1540,43 +1512,9 @@ var de_AssociateMergedGraphqlApiCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1540
1512
|
Object.assign(contents, doc);
|
|
1541
1513
|
return contents;
|
|
1542
1514
|
}, "de_AssociateMergedGraphqlApiCommand");
|
|
1543
|
-
var de_AssociateMergedGraphqlApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1544
|
-
const parsedOutput = {
|
|
1545
|
-
...output,
|
|
1546
|
-
body: await parseErrorBody(output.body, context)
|
|
1547
|
-
};
|
|
1548
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1549
|
-
switch (errorCode) {
|
|
1550
|
-
case "BadRequestException":
|
|
1551
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
1552
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "ConcurrentModificationException":
|
|
1554
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1555
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "InternalFailureException":
|
|
1557
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
1558
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "LimitExceededException":
|
|
1560
|
-
case "com.amazonaws.appsync#LimitExceededException":
|
|
1561
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1562
|
-
case "NotFoundException":
|
|
1563
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
1564
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "UnauthorizedException":
|
|
1566
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1567
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1568
|
-
default:
|
|
1569
|
-
const parsedBody = parsedOutput.body;
|
|
1570
|
-
return throwDefaultError({
|
|
1571
|
-
output,
|
|
1572
|
-
parsedBody,
|
|
1573
|
-
errorCode
|
|
1574
|
-
});
|
|
1575
|
-
}
|
|
1576
|
-
}, "de_AssociateMergedGraphqlApiCommandError");
|
|
1577
1515
|
var de_AssociateSourceGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1578
1516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1579
|
-
return
|
|
1517
|
+
return de_CommandError(output, context);
|
|
1580
1518
|
}
|
|
1581
1519
|
const contents = (0, import_smithy_client.map)({
|
|
1582
1520
|
$metadata: deserializeMetadata(output)
|
|
@@ -1588,43 +1526,9 @@ var de_AssociateSourceGraphqlApiCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1588
1526
|
Object.assign(contents, doc);
|
|
1589
1527
|
return contents;
|
|
1590
1528
|
}, "de_AssociateSourceGraphqlApiCommand");
|
|
1591
|
-
var de_AssociateSourceGraphqlApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1592
|
-
const parsedOutput = {
|
|
1593
|
-
...output,
|
|
1594
|
-
body: await parseErrorBody(output.body, context)
|
|
1595
|
-
};
|
|
1596
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1597
|
-
switch (errorCode) {
|
|
1598
|
-
case "BadRequestException":
|
|
1599
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
1600
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "ConcurrentModificationException":
|
|
1602
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1603
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "InternalFailureException":
|
|
1605
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
1606
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "LimitExceededException":
|
|
1608
|
-
case "com.amazonaws.appsync#LimitExceededException":
|
|
1609
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1610
|
-
case "NotFoundException":
|
|
1611
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
1612
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1613
|
-
case "UnauthorizedException":
|
|
1614
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1615
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1616
|
-
default:
|
|
1617
|
-
const parsedBody = parsedOutput.body;
|
|
1618
|
-
return throwDefaultError({
|
|
1619
|
-
output,
|
|
1620
|
-
parsedBody,
|
|
1621
|
-
errorCode
|
|
1622
|
-
});
|
|
1623
|
-
}
|
|
1624
|
-
}, "de_AssociateSourceGraphqlApiCommandError");
|
|
1625
1529
|
var de_CreateApiCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1626
1530
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1627
|
-
return
|
|
1531
|
+
return de_CommandError(output, context);
|
|
1628
1532
|
}
|
|
1629
1533
|
const contents = (0, import_smithy_client.map)({
|
|
1630
1534
|
$metadata: deserializeMetadata(output)
|
|
@@ -1636,40 +1540,9 @@ var de_CreateApiCacheCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1636
1540
|
Object.assign(contents, doc);
|
|
1637
1541
|
return contents;
|
|
1638
1542
|
}, "de_CreateApiCacheCommand");
|
|
1639
|
-
var de_CreateApiCacheCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1640
|
-
const parsedOutput = {
|
|
1641
|
-
...output,
|
|
1642
|
-
body: await parseErrorBody(output.body, context)
|
|
1643
|
-
};
|
|
1644
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1645
|
-
switch (errorCode) {
|
|
1646
|
-
case "BadRequestException":
|
|
1647
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
1648
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1649
|
-
case "ConcurrentModificationException":
|
|
1650
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1651
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1652
|
-
case "InternalFailureException":
|
|
1653
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
1654
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1655
|
-
case "NotFoundException":
|
|
1656
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
1657
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1658
|
-
case "UnauthorizedException":
|
|
1659
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1660
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1661
|
-
default:
|
|
1662
|
-
const parsedBody = parsedOutput.body;
|
|
1663
|
-
return throwDefaultError({
|
|
1664
|
-
output,
|
|
1665
|
-
parsedBody,
|
|
1666
|
-
errorCode
|
|
1667
|
-
});
|
|
1668
|
-
}
|
|
1669
|
-
}, "de_CreateApiCacheCommandError");
|
|
1670
1543
|
var de_CreateApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1671
1544
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1672
|
-
return
|
|
1545
|
+
return de_CommandError(output, context);
|
|
1673
1546
|
}
|
|
1674
1547
|
const contents = (0, import_smithy_client.map)({
|
|
1675
1548
|
$metadata: deserializeMetadata(output)
|
|
@@ -1681,46 +1554,9 @@ var de_CreateApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1681
1554
|
Object.assign(contents, doc);
|
|
1682
1555
|
return contents;
|
|
1683
1556
|
}, "de_CreateApiKeyCommand");
|
|
1684
|
-
var de_CreateApiKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1685
|
-
const parsedOutput = {
|
|
1686
|
-
...output,
|
|
1687
|
-
body: await parseErrorBody(output.body, context)
|
|
1688
|
-
};
|
|
1689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
|
-
switch (errorCode) {
|
|
1691
|
-
case "ApiKeyLimitExceededException":
|
|
1692
|
-
case "com.amazonaws.appsync#ApiKeyLimitExceededException":
|
|
1693
|
-
throw await de_ApiKeyLimitExceededExceptionRes(parsedOutput, context);
|
|
1694
|
-
case "ApiKeyValidityOutOfBoundsException":
|
|
1695
|
-
case "com.amazonaws.appsync#ApiKeyValidityOutOfBoundsException":
|
|
1696
|
-
throw await de_ApiKeyValidityOutOfBoundsExceptionRes(parsedOutput, context);
|
|
1697
|
-
case "BadRequestException":
|
|
1698
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
1699
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1700
|
-
case "InternalFailureException":
|
|
1701
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
1702
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1703
|
-
case "LimitExceededException":
|
|
1704
|
-
case "com.amazonaws.appsync#LimitExceededException":
|
|
1705
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1706
|
-
case "NotFoundException":
|
|
1707
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
1708
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "UnauthorizedException":
|
|
1710
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1711
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1712
|
-
default:
|
|
1713
|
-
const parsedBody = parsedOutput.body;
|
|
1714
|
-
return throwDefaultError({
|
|
1715
|
-
output,
|
|
1716
|
-
parsedBody,
|
|
1717
|
-
errorCode
|
|
1718
|
-
});
|
|
1719
|
-
}
|
|
1720
|
-
}, "de_CreateApiKeyCommandError");
|
|
1721
1557
|
var de_CreateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1722
1558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1723
|
-
return
|
|
1559
|
+
return de_CommandError(output, context);
|
|
1724
1560
|
}
|
|
1725
1561
|
const contents = (0, import_smithy_client.map)({
|
|
1726
1562
|
$metadata: deserializeMetadata(output)
|
|
@@ -1732,40 +1568,9 @@ var de_CreateDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1732
1568
|
Object.assign(contents, doc);
|
|
1733
1569
|
return contents;
|
|
1734
1570
|
}, "de_CreateDataSourceCommand");
|
|
1735
|
-
var de_CreateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1736
|
-
const parsedOutput = {
|
|
1737
|
-
...output,
|
|
1738
|
-
body: await parseErrorBody(output.body, context)
|
|
1739
|
-
};
|
|
1740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
|
-
switch (errorCode) {
|
|
1742
|
-
case "BadRequestException":
|
|
1743
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
1744
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "ConcurrentModificationException":
|
|
1746
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1747
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "InternalFailureException":
|
|
1749
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
1750
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "NotFoundException":
|
|
1752
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
1753
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "UnauthorizedException":
|
|
1755
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1756
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1757
|
-
default:
|
|
1758
|
-
const parsedBody = parsedOutput.body;
|
|
1759
|
-
return throwDefaultError({
|
|
1760
|
-
output,
|
|
1761
|
-
parsedBody,
|
|
1762
|
-
errorCode
|
|
1763
|
-
});
|
|
1764
|
-
}
|
|
1765
|
-
}, "de_CreateDataSourceCommandError");
|
|
1766
1571
|
var de_CreateDomainNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1767
1572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1768
|
-
return
|
|
1573
|
+
return de_CommandError(output, context);
|
|
1769
1574
|
}
|
|
1770
1575
|
const contents = (0, import_smithy_client.map)({
|
|
1771
1576
|
$metadata: deserializeMetadata(output)
|
|
@@ -1777,34 +1582,9 @@ var de_CreateDomainNameCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1777
1582
|
Object.assign(contents, doc);
|
|
1778
1583
|
return contents;
|
|
1779
1584
|
}, "de_CreateDomainNameCommand");
|
|
1780
|
-
var de_CreateDomainNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1781
|
-
const parsedOutput = {
|
|
1782
|
-
...output,
|
|
1783
|
-
body: await parseErrorBody(output.body, context)
|
|
1784
|
-
};
|
|
1785
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1786
|
-
switch (errorCode) {
|
|
1787
|
-
case "AccessDeniedException":
|
|
1788
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
1789
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1790
|
-
case "BadRequestException":
|
|
1791
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
1792
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "InternalFailureException":
|
|
1794
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
1795
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1796
|
-
default:
|
|
1797
|
-
const parsedBody = parsedOutput.body;
|
|
1798
|
-
return throwDefaultError({
|
|
1799
|
-
output,
|
|
1800
|
-
parsedBody,
|
|
1801
|
-
errorCode
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
}, "de_CreateDomainNameCommandError");
|
|
1805
1585
|
var de_CreateFunctionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1806
1586
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1807
|
-
return
|
|
1587
|
+
return de_CommandError(output, context);
|
|
1808
1588
|
}
|
|
1809
1589
|
const contents = (0, import_smithy_client.map)({
|
|
1810
1590
|
$metadata: deserializeMetadata(output)
|
|
@@ -1816,37 +1596,9 @@ var de_CreateFunctionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1816
1596
|
Object.assign(contents, doc);
|
|
1817
1597
|
return contents;
|
|
1818
1598
|
}, "de_CreateFunctionCommand");
|
|
1819
|
-
var de_CreateFunctionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1820
|
-
const parsedOutput = {
|
|
1821
|
-
...output,
|
|
1822
|
-
body: await parseErrorBody(output.body, context)
|
|
1823
|
-
};
|
|
1824
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1825
|
-
switch (errorCode) {
|
|
1826
|
-
case "ConcurrentModificationException":
|
|
1827
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1828
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "InternalFailureException":
|
|
1830
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
1831
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "NotFoundException":
|
|
1833
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
1834
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "UnauthorizedException":
|
|
1836
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1837
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1838
|
-
default:
|
|
1839
|
-
const parsedBody = parsedOutput.body;
|
|
1840
|
-
return throwDefaultError({
|
|
1841
|
-
output,
|
|
1842
|
-
parsedBody,
|
|
1843
|
-
errorCode
|
|
1844
|
-
});
|
|
1845
|
-
}
|
|
1846
|
-
}, "de_CreateFunctionCommandError");
|
|
1847
1599
|
var de_CreateGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1848
1600
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1849
|
-
return
|
|
1601
|
+
return de_CommandError(output, context);
|
|
1850
1602
|
}
|
|
1851
1603
|
const contents = (0, import_smithy_client.map)({
|
|
1852
1604
|
$metadata: deserializeMetadata(output)
|
|
@@ -1858,43 +1610,9 @@ var de_CreateGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1858
1610
|
Object.assign(contents, doc);
|
|
1859
1611
|
return contents;
|
|
1860
1612
|
}, "de_CreateGraphqlApiCommand");
|
|
1861
|
-
var de_CreateGraphqlApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1862
|
-
const parsedOutput = {
|
|
1863
|
-
...output,
|
|
1864
|
-
body: await parseErrorBody(output.body, context)
|
|
1865
|
-
};
|
|
1866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1867
|
-
switch (errorCode) {
|
|
1868
|
-
case "ApiLimitExceededException":
|
|
1869
|
-
case "com.amazonaws.appsync#ApiLimitExceededException":
|
|
1870
|
-
throw await de_ApiLimitExceededExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "BadRequestException":
|
|
1872
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
1873
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1874
|
-
case "ConcurrentModificationException":
|
|
1875
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1876
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1877
|
-
case "InternalFailureException":
|
|
1878
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
1879
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "LimitExceededException":
|
|
1881
|
-
case "com.amazonaws.appsync#LimitExceededException":
|
|
1882
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1883
|
-
case "UnauthorizedException":
|
|
1884
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1885
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1886
|
-
default:
|
|
1887
|
-
const parsedBody = parsedOutput.body;
|
|
1888
|
-
return throwDefaultError({
|
|
1889
|
-
output,
|
|
1890
|
-
parsedBody,
|
|
1891
|
-
errorCode
|
|
1892
|
-
});
|
|
1893
|
-
}
|
|
1894
|
-
}, "de_CreateGraphqlApiCommandError");
|
|
1895
1613
|
var de_CreateResolverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1896
1614
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1897
|
-
return
|
|
1615
|
+
return de_CommandError(output, context);
|
|
1898
1616
|
}
|
|
1899
1617
|
const contents = (0, import_smithy_client.map)({
|
|
1900
1618
|
$metadata: deserializeMetadata(output)
|
|
@@ -1906,40 +1624,9 @@ var de_CreateResolverCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1906
1624
|
Object.assign(contents, doc);
|
|
1907
1625
|
return contents;
|
|
1908
1626
|
}, "de_CreateResolverCommand");
|
|
1909
|
-
var de_CreateResolverCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1910
|
-
const parsedOutput = {
|
|
1911
|
-
...output,
|
|
1912
|
-
body: await parseErrorBody(output.body, context)
|
|
1913
|
-
};
|
|
1914
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
|
-
switch (errorCode) {
|
|
1916
|
-
case "BadRequestException":
|
|
1917
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
1918
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "ConcurrentModificationException":
|
|
1920
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1921
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "InternalFailureException":
|
|
1923
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
1924
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "NotFoundException":
|
|
1926
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
1927
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "UnauthorizedException":
|
|
1929
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1930
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1931
|
-
default:
|
|
1932
|
-
const parsedBody = parsedOutput.body;
|
|
1933
|
-
return throwDefaultError({
|
|
1934
|
-
output,
|
|
1935
|
-
parsedBody,
|
|
1936
|
-
errorCode
|
|
1937
|
-
});
|
|
1938
|
-
}
|
|
1939
|
-
}, "de_CreateResolverCommandError");
|
|
1940
1627
|
var de_CreateTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1941
1628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1942
|
-
return
|
|
1629
|
+
return de_CommandError(output, context);
|
|
1943
1630
|
}
|
|
1944
1631
|
const contents = (0, import_smithy_client.map)({
|
|
1945
1632
|
$metadata: deserializeMetadata(output)
|
|
@@ -1951,40 +1638,9 @@ var de_CreateTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1951
1638
|
Object.assign(contents, doc);
|
|
1952
1639
|
return contents;
|
|
1953
1640
|
}, "de_CreateTypeCommand");
|
|
1954
|
-
var de_CreateTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1955
|
-
const parsedOutput = {
|
|
1956
|
-
...output,
|
|
1957
|
-
body: await parseErrorBody(output.body, context)
|
|
1958
|
-
};
|
|
1959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
|
-
switch (errorCode) {
|
|
1961
|
-
case "BadRequestException":
|
|
1962
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
1963
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "ConcurrentModificationException":
|
|
1965
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1966
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "InternalFailureException":
|
|
1968
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
1969
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "NotFoundException":
|
|
1971
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
1972
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "UnauthorizedException":
|
|
1974
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1975
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1976
|
-
default:
|
|
1977
|
-
const parsedBody = parsedOutput.body;
|
|
1978
|
-
return throwDefaultError({
|
|
1979
|
-
output,
|
|
1980
|
-
parsedBody,
|
|
1981
|
-
errorCode
|
|
1982
|
-
});
|
|
1983
|
-
}
|
|
1984
|
-
}, "de_CreateTypeCommandError");
|
|
1985
1641
|
var de_DeleteApiCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1986
1642
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1987
|
-
return
|
|
1643
|
+
return de_CommandError(output, context);
|
|
1988
1644
|
}
|
|
1989
1645
|
const contents = (0, import_smithy_client.map)({
|
|
1990
1646
|
$metadata: deserializeMetadata(output)
|
|
@@ -1992,40 +1648,9 @@ var de_DeleteApiCacheCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1992
1648
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1993
1649
|
return contents;
|
|
1994
1650
|
}, "de_DeleteApiCacheCommand");
|
|
1995
|
-
var de_DeleteApiCacheCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1996
|
-
const parsedOutput = {
|
|
1997
|
-
...output,
|
|
1998
|
-
body: await parseErrorBody(output.body, context)
|
|
1999
|
-
};
|
|
2000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2001
|
-
switch (errorCode) {
|
|
2002
|
-
case "BadRequestException":
|
|
2003
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2004
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "ConcurrentModificationException":
|
|
2006
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2007
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "InternalFailureException":
|
|
2009
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2010
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "NotFoundException":
|
|
2012
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2013
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "UnauthorizedException":
|
|
2015
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2016
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2017
|
-
default:
|
|
2018
|
-
const parsedBody = parsedOutput.body;
|
|
2019
|
-
return throwDefaultError({
|
|
2020
|
-
output,
|
|
2021
|
-
parsedBody,
|
|
2022
|
-
errorCode
|
|
2023
|
-
});
|
|
2024
|
-
}
|
|
2025
|
-
}, "de_DeleteApiCacheCommandError");
|
|
2026
1651
|
var de_DeleteApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2027
1652
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2028
|
-
return
|
|
1653
|
+
return de_CommandError(output, context);
|
|
2029
1654
|
}
|
|
2030
1655
|
const contents = (0, import_smithy_client.map)({
|
|
2031
1656
|
$metadata: deserializeMetadata(output)
|
|
@@ -2033,37 +1658,9 @@ var de_DeleteApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2033
1658
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2034
1659
|
return contents;
|
|
2035
1660
|
}, "de_DeleteApiKeyCommand");
|
|
2036
|
-
var de_DeleteApiKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2037
|
-
const parsedOutput = {
|
|
2038
|
-
...output,
|
|
2039
|
-
body: await parseErrorBody(output.body, context)
|
|
2040
|
-
};
|
|
2041
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
|
-
switch (errorCode) {
|
|
2043
|
-
case "BadRequestException":
|
|
2044
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2045
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "InternalFailureException":
|
|
2047
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2048
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "NotFoundException":
|
|
2050
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2051
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "UnauthorizedException":
|
|
2053
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2054
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2055
|
-
default:
|
|
2056
|
-
const parsedBody = parsedOutput.body;
|
|
2057
|
-
return throwDefaultError({
|
|
2058
|
-
output,
|
|
2059
|
-
parsedBody,
|
|
2060
|
-
errorCode
|
|
2061
|
-
});
|
|
2062
|
-
}
|
|
2063
|
-
}, "de_DeleteApiKeyCommandError");
|
|
2064
1661
|
var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2065
1662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2066
|
-
return
|
|
1663
|
+
return de_CommandError(output, context);
|
|
2067
1664
|
}
|
|
2068
1665
|
const contents = (0, import_smithy_client.map)({
|
|
2069
1666
|
$metadata: deserializeMetadata(output)
|
|
@@ -2071,40 +1668,9 @@ var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2071
1668
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2072
1669
|
return contents;
|
|
2073
1670
|
}, "de_DeleteDataSourceCommand");
|
|
2074
|
-
var de_DeleteDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2075
|
-
const parsedOutput = {
|
|
2076
|
-
...output,
|
|
2077
|
-
body: await parseErrorBody(output.body, context)
|
|
2078
|
-
};
|
|
2079
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2080
|
-
switch (errorCode) {
|
|
2081
|
-
case "BadRequestException":
|
|
2082
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2083
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "ConcurrentModificationException":
|
|
2085
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2086
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "InternalFailureException":
|
|
2088
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2089
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "NotFoundException":
|
|
2091
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2092
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "UnauthorizedException":
|
|
2094
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2095
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2096
|
-
default:
|
|
2097
|
-
const parsedBody = parsedOutput.body;
|
|
2098
|
-
return throwDefaultError({
|
|
2099
|
-
output,
|
|
2100
|
-
parsedBody,
|
|
2101
|
-
errorCode
|
|
2102
|
-
});
|
|
2103
|
-
}
|
|
2104
|
-
}, "de_DeleteDataSourceCommandError");
|
|
2105
1671
|
var de_DeleteDomainNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2106
1672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2107
|
-
return
|
|
1673
|
+
return de_CommandError(output, context);
|
|
2108
1674
|
}
|
|
2109
1675
|
const contents = (0, import_smithy_client.map)({
|
|
2110
1676
|
$metadata: deserializeMetadata(output)
|
|
@@ -2112,40 +1678,9 @@ var de_DeleteDomainNameCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2112
1678
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2113
1679
|
return contents;
|
|
2114
1680
|
}, "de_DeleteDomainNameCommand");
|
|
2115
|
-
var de_DeleteDomainNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2116
|
-
const parsedOutput = {
|
|
2117
|
-
...output,
|
|
2118
|
-
body: await parseErrorBody(output.body, context)
|
|
2119
|
-
};
|
|
2120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2121
|
-
switch (errorCode) {
|
|
2122
|
-
case "AccessDeniedException":
|
|
2123
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2124
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "BadRequestException":
|
|
2126
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2127
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2128
|
-
case "ConcurrentModificationException":
|
|
2129
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2130
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2131
|
-
case "InternalFailureException":
|
|
2132
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2133
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2134
|
-
case "NotFoundException":
|
|
2135
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2136
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2137
|
-
default:
|
|
2138
|
-
const parsedBody = parsedOutput.body;
|
|
2139
|
-
return throwDefaultError({
|
|
2140
|
-
output,
|
|
2141
|
-
parsedBody,
|
|
2142
|
-
errorCode
|
|
2143
|
-
});
|
|
2144
|
-
}
|
|
2145
|
-
}, "de_DeleteDomainNameCommandError");
|
|
2146
1681
|
var de_DeleteFunctionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2147
1682
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2148
|
-
return
|
|
1683
|
+
return de_CommandError(output, context);
|
|
2149
1684
|
}
|
|
2150
1685
|
const contents = (0, import_smithy_client.map)({
|
|
2151
1686
|
$metadata: deserializeMetadata(output)
|
|
@@ -2153,37 +1688,9 @@ var de_DeleteFunctionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2153
1688
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2154
1689
|
return contents;
|
|
2155
1690
|
}, "de_DeleteFunctionCommand");
|
|
2156
|
-
var de_DeleteFunctionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2157
|
-
const parsedOutput = {
|
|
2158
|
-
...output,
|
|
2159
|
-
body: await parseErrorBody(output.body, context)
|
|
2160
|
-
};
|
|
2161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
|
-
switch (errorCode) {
|
|
2163
|
-
case "ConcurrentModificationException":
|
|
2164
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2165
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "InternalFailureException":
|
|
2167
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2168
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "NotFoundException":
|
|
2170
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2171
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "UnauthorizedException":
|
|
2173
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2174
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2175
|
-
default:
|
|
2176
|
-
const parsedBody = parsedOutput.body;
|
|
2177
|
-
return throwDefaultError({
|
|
2178
|
-
output,
|
|
2179
|
-
parsedBody,
|
|
2180
|
-
errorCode
|
|
2181
|
-
});
|
|
2182
|
-
}
|
|
2183
|
-
}, "de_DeleteFunctionCommandError");
|
|
2184
1691
|
var de_DeleteGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2185
1692
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2186
|
-
return
|
|
1693
|
+
return de_CommandError(output, context);
|
|
2187
1694
|
}
|
|
2188
1695
|
const contents = (0, import_smithy_client.map)({
|
|
2189
1696
|
$metadata: deserializeMetadata(output)
|
|
@@ -2191,43 +1698,9 @@ var de_DeleteGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2191
1698
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2192
1699
|
return contents;
|
|
2193
1700
|
}, "de_DeleteGraphqlApiCommand");
|
|
2194
|
-
var de_DeleteGraphqlApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2195
|
-
const parsedOutput = {
|
|
2196
|
-
...output,
|
|
2197
|
-
body: await parseErrorBody(output.body, context)
|
|
2198
|
-
};
|
|
2199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2200
|
-
switch (errorCode) {
|
|
2201
|
-
case "AccessDeniedException":
|
|
2202
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2203
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "BadRequestException":
|
|
2205
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2206
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "ConcurrentModificationException":
|
|
2208
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2209
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "InternalFailureException":
|
|
2211
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2212
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "NotFoundException":
|
|
2214
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2215
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "UnauthorizedException":
|
|
2217
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2218
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2219
|
-
default:
|
|
2220
|
-
const parsedBody = parsedOutput.body;
|
|
2221
|
-
return throwDefaultError({
|
|
2222
|
-
output,
|
|
2223
|
-
parsedBody,
|
|
2224
|
-
errorCode
|
|
2225
|
-
});
|
|
2226
|
-
}
|
|
2227
|
-
}, "de_DeleteGraphqlApiCommandError");
|
|
2228
1701
|
var de_DeleteResolverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2229
1702
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2230
|
-
return
|
|
1703
|
+
return de_CommandError(output, context);
|
|
2231
1704
|
}
|
|
2232
1705
|
const contents = (0, import_smithy_client.map)({
|
|
2233
1706
|
$metadata: deserializeMetadata(output)
|
|
@@ -2235,40 +1708,9 @@ var de_DeleteResolverCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2235
1708
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2236
1709
|
return contents;
|
|
2237
1710
|
}, "de_DeleteResolverCommand");
|
|
2238
|
-
var de_DeleteResolverCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2239
|
-
const parsedOutput = {
|
|
2240
|
-
...output,
|
|
2241
|
-
body: await parseErrorBody(output.body, context)
|
|
2242
|
-
};
|
|
2243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2244
|
-
switch (errorCode) {
|
|
2245
|
-
case "BadRequestException":
|
|
2246
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2247
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "ConcurrentModificationException":
|
|
2249
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2250
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "InternalFailureException":
|
|
2252
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2253
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "NotFoundException":
|
|
2255
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2256
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "UnauthorizedException":
|
|
2258
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2259
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2260
|
-
default:
|
|
2261
|
-
const parsedBody = parsedOutput.body;
|
|
2262
|
-
return throwDefaultError({
|
|
2263
|
-
output,
|
|
2264
|
-
parsedBody,
|
|
2265
|
-
errorCode
|
|
2266
|
-
});
|
|
2267
|
-
}
|
|
2268
|
-
}, "de_DeleteResolverCommandError");
|
|
2269
1711
|
var de_DeleteTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2270
1712
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2271
|
-
return
|
|
1713
|
+
return de_CommandError(output, context);
|
|
2272
1714
|
}
|
|
2273
1715
|
const contents = (0, import_smithy_client.map)({
|
|
2274
1716
|
$metadata: deserializeMetadata(output)
|
|
@@ -2276,40 +1718,9 @@ var de_DeleteTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2276
1718
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2277
1719
|
return contents;
|
|
2278
1720
|
}, "de_DeleteTypeCommand");
|
|
2279
|
-
var de_DeleteTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2280
|
-
const parsedOutput = {
|
|
2281
|
-
...output,
|
|
2282
|
-
body: await parseErrorBody(output.body, context)
|
|
2283
|
-
};
|
|
2284
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2285
|
-
switch (errorCode) {
|
|
2286
|
-
case "BadRequestException":
|
|
2287
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2288
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "ConcurrentModificationException":
|
|
2290
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2291
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "InternalFailureException":
|
|
2293
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2294
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "NotFoundException":
|
|
2296
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2297
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "UnauthorizedException":
|
|
2299
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2300
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2301
|
-
default:
|
|
2302
|
-
const parsedBody = parsedOutput.body;
|
|
2303
|
-
return throwDefaultError({
|
|
2304
|
-
output,
|
|
2305
|
-
parsedBody,
|
|
2306
|
-
errorCode
|
|
2307
|
-
});
|
|
2308
|
-
}
|
|
2309
|
-
}, "de_DeleteTypeCommandError");
|
|
2310
1721
|
var de_DisassociateApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2311
1722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2312
|
-
return
|
|
1723
|
+
return de_CommandError(output, context);
|
|
2313
1724
|
}
|
|
2314
1725
|
const contents = (0, import_smithy_client.map)({
|
|
2315
1726
|
$metadata: deserializeMetadata(output)
|
|
@@ -2317,40 +1728,9 @@ var de_DisassociateApiCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2317
1728
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2318
1729
|
return contents;
|
|
2319
1730
|
}, "de_DisassociateApiCommand");
|
|
2320
|
-
var de_DisassociateApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2321
|
-
const parsedOutput = {
|
|
2322
|
-
...output,
|
|
2323
|
-
body: await parseErrorBody(output.body, context)
|
|
2324
|
-
};
|
|
2325
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2326
|
-
switch (errorCode) {
|
|
2327
|
-
case "AccessDeniedException":
|
|
2328
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2329
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "BadRequestException":
|
|
2331
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2332
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2333
|
-
case "ConcurrentModificationException":
|
|
2334
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2335
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2336
|
-
case "InternalFailureException":
|
|
2337
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2338
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "NotFoundException":
|
|
2340
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2341
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2342
|
-
default:
|
|
2343
|
-
const parsedBody = parsedOutput.body;
|
|
2344
|
-
return throwDefaultError({
|
|
2345
|
-
output,
|
|
2346
|
-
parsedBody,
|
|
2347
|
-
errorCode
|
|
2348
|
-
});
|
|
2349
|
-
}
|
|
2350
|
-
}, "de_DisassociateApiCommandError");
|
|
2351
1731
|
var de_DisassociateMergedGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2352
1732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2353
|
-
return
|
|
1733
|
+
return de_CommandError(output, context);
|
|
2354
1734
|
}
|
|
2355
1735
|
const contents = (0, import_smithy_client.map)({
|
|
2356
1736
|
$metadata: deserializeMetadata(output)
|
|
@@ -2362,40 +1742,9 @@ var de_DisassociateMergedGraphqlApiCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2362
1742
|
Object.assign(contents, doc);
|
|
2363
1743
|
return contents;
|
|
2364
1744
|
}, "de_DisassociateMergedGraphqlApiCommand");
|
|
2365
|
-
var de_DisassociateMergedGraphqlApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2366
|
-
const parsedOutput = {
|
|
2367
|
-
...output,
|
|
2368
|
-
body: await parseErrorBody(output.body, context)
|
|
2369
|
-
};
|
|
2370
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2371
|
-
switch (errorCode) {
|
|
2372
|
-
case "BadRequestException":
|
|
2373
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2374
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2375
|
-
case "ConcurrentModificationException":
|
|
2376
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2377
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2378
|
-
case "InternalFailureException":
|
|
2379
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2380
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2381
|
-
case "NotFoundException":
|
|
2382
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2383
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2384
|
-
case "UnauthorizedException":
|
|
2385
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2386
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2387
|
-
default:
|
|
2388
|
-
const parsedBody = parsedOutput.body;
|
|
2389
|
-
return throwDefaultError({
|
|
2390
|
-
output,
|
|
2391
|
-
parsedBody,
|
|
2392
|
-
errorCode
|
|
2393
|
-
});
|
|
2394
|
-
}
|
|
2395
|
-
}, "de_DisassociateMergedGraphqlApiCommandError");
|
|
2396
1745
|
var de_DisassociateSourceGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2397
1746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2398
|
-
return
|
|
1747
|
+
return de_CommandError(output, context);
|
|
2399
1748
|
}
|
|
2400
1749
|
const contents = (0, import_smithy_client.map)({
|
|
2401
1750
|
$metadata: deserializeMetadata(output)
|
|
@@ -2407,40 +1756,9 @@ var de_DisassociateSourceGraphqlApiCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2407
1756
|
Object.assign(contents, doc);
|
|
2408
1757
|
return contents;
|
|
2409
1758
|
}, "de_DisassociateSourceGraphqlApiCommand");
|
|
2410
|
-
var de_DisassociateSourceGraphqlApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2411
|
-
const parsedOutput = {
|
|
2412
|
-
...output,
|
|
2413
|
-
body: await parseErrorBody(output.body, context)
|
|
2414
|
-
};
|
|
2415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2416
|
-
switch (errorCode) {
|
|
2417
|
-
case "BadRequestException":
|
|
2418
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2419
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "ConcurrentModificationException":
|
|
2421
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2422
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2423
|
-
case "InternalFailureException":
|
|
2424
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2425
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2426
|
-
case "NotFoundException":
|
|
2427
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2428
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2429
|
-
case "UnauthorizedException":
|
|
2430
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2431
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2432
|
-
default:
|
|
2433
|
-
const parsedBody = parsedOutput.body;
|
|
2434
|
-
return throwDefaultError({
|
|
2435
|
-
output,
|
|
2436
|
-
parsedBody,
|
|
2437
|
-
errorCode
|
|
2438
|
-
});
|
|
2439
|
-
}
|
|
2440
|
-
}, "de_DisassociateSourceGraphqlApiCommandError");
|
|
2441
1759
|
var de_EvaluateCodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2442
1760
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2443
|
-
return
|
|
1761
|
+
return de_CommandError(output, context);
|
|
2444
1762
|
}
|
|
2445
1763
|
const contents = (0, import_smithy_client.map)({
|
|
2446
1764
|
$metadata: deserializeMetadata(output)
|
|
@@ -2454,34 +1772,9 @@ var de_EvaluateCodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2454
1772
|
Object.assign(contents, doc);
|
|
2455
1773
|
return contents;
|
|
2456
1774
|
}, "de_EvaluateCodeCommand");
|
|
2457
|
-
var de_EvaluateCodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2458
|
-
const parsedOutput = {
|
|
2459
|
-
...output,
|
|
2460
|
-
body: await parseErrorBody(output.body, context)
|
|
2461
|
-
};
|
|
2462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2463
|
-
switch (errorCode) {
|
|
2464
|
-
case "AccessDeniedException":
|
|
2465
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2466
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "BadRequestException":
|
|
2468
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2469
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2470
|
-
case "InternalFailureException":
|
|
2471
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2472
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2473
|
-
default:
|
|
2474
|
-
const parsedBody = parsedOutput.body;
|
|
2475
|
-
return throwDefaultError({
|
|
2476
|
-
output,
|
|
2477
|
-
parsedBody,
|
|
2478
|
-
errorCode
|
|
2479
|
-
});
|
|
2480
|
-
}
|
|
2481
|
-
}, "de_EvaluateCodeCommandError");
|
|
2482
1775
|
var de_EvaluateMappingTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2483
1776
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2484
|
-
return
|
|
1777
|
+
return de_CommandError(output, context);
|
|
2485
1778
|
}
|
|
2486
1779
|
const contents = (0, import_smithy_client.map)({
|
|
2487
1780
|
$metadata: deserializeMetadata(output)
|
|
@@ -2495,34 +1788,9 @@ var de_EvaluateMappingTemplateCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2495
1788
|
Object.assign(contents, doc);
|
|
2496
1789
|
return contents;
|
|
2497
1790
|
}, "de_EvaluateMappingTemplateCommand");
|
|
2498
|
-
var de_EvaluateMappingTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2499
|
-
const parsedOutput = {
|
|
2500
|
-
...output,
|
|
2501
|
-
body: await parseErrorBody(output.body, context)
|
|
2502
|
-
};
|
|
2503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2504
|
-
switch (errorCode) {
|
|
2505
|
-
case "AccessDeniedException":
|
|
2506
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2507
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "BadRequestException":
|
|
2509
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2510
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2511
|
-
case "InternalFailureException":
|
|
2512
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2513
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2514
|
-
default:
|
|
2515
|
-
const parsedBody = parsedOutput.body;
|
|
2516
|
-
return throwDefaultError({
|
|
2517
|
-
output,
|
|
2518
|
-
parsedBody,
|
|
2519
|
-
errorCode
|
|
2520
|
-
});
|
|
2521
|
-
}
|
|
2522
|
-
}, "de_EvaluateMappingTemplateCommandError");
|
|
2523
1791
|
var de_FlushApiCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2524
1792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2525
|
-
return
|
|
1793
|
+
return de_CommandError(output, context);
|
|
2526
1794
|
}
|
|
2527
1795
|
const contents = (0, import_smithy_client.map)({
|
|
2528
1796
|
$metadata: deserializeMetadata(output)
|
|
@@ -2530,40 +1798,9 @@ var de_FlushApiCacheCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2530
1798
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2531
1799
|
return contents;
|
|
2532
1800
|
}, "de_FlushApiCacheCommand");
|
|
2533
|
-
var de_FlushApiCacheCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2534
|
-
const parsedOutput = {
|
|
2535
|
-
...output,
|
|
2536
|
-
body: await parseErrorBody(output.body, context)
|
|
2537
|
-
};
|
|
2538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2539
|
-
switch (errorCode) {
|
|
2540
|
-
case "BadRequestException":
|
|
2541
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2542
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2543
|
-
case "ConcurrentModificationException":
|
|
2544
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2545
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2546
|
-
case "InternalFailureException":
|
|
2547
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2548
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2549
|
-
case "NotFoundException":
|
|
2550
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2551
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2552
|
-
case "UnauthorizedException":
|
|
2553
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2554
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2555
|
-
default:
|
|
2556
|
-
const parsedBody = parsedOutput.body;
|
|
2557
|
-
return throwDefaultError({
|
|
2558
|
-
output,
|
|
2559
|
-
parsedBody,
|
|
2560
|
-
errorCode
|
|
2561
|
-
});
|
|
2562
|
-
}
|
|
2563
|
-
}, "de_FlushApiCacheCommandError");
|
|
2564
1801
|
var de_GetApiAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2565
1802
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2566
|
-
return
|
|
1803
|
+
return de_CommandError(output, context);
|
|
2567
1804
|
}
|
|
2568
1805
|
const contents = (0, import_smithy_client.map)({
|
|
2569
1806
|
$metadata: deserializeMetadata(output)
|
|
@@ -2575,37 +1812,9 @@ var de_GetApiAssociationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2575
1812
|
Object.assign(contents, doc);
|
|
2576
1813
|
return contents;
|
|
2577
1814
|
}, "de_GetApiAssociationCommand");
|
|
2578
|
-
var de_GetApiAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2579
|
-
const parsedOutput = {
|
|
2580
|
-
...output,
|
|
2581
|
-
body: await parseErrorBody(output.body, context)
|
|
2582
|
-
};
|
|
2583
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2584
|
-
switch (errorCode) {
|
|
2585
|
-
case "AccessDeniedException":
|
|
2586
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2587
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2588
|
-
case "BadRequestException":
|
|
2589
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2590
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2591
|
-
case "InternalFailureException":
|
|
2592
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2593
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2594
|
-
case "NotFoundException":
|
|
2595
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2596
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2597
|
-
default:
|
|
2598
|
-
const parsedBody = parsedOutput.body;
|
|
2599
|
-
return throwDefaultError({
|
|
2600
|
-
output,
|
|
2601
|
-
parsedBody,
|
|
2602
|
-
errorCode
|
|
2603
|
-
});
|
|
2604
|
-
}
|
|
2605
|
-
}, "de_GetApiAssociationCommandError");
|
|
2606
1815
|
var de_GetApiCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2607
1816
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2608
|
-
return
|
|
1817
|
+
return de_CommandError(output, context);
|
|
2609
1818
|
}
|
|
2610
1819
|
const contents = (0, import_smithy_client.map)({
|
|
2611
1820
|
$metadata: deserializeMetadata(output)
|
|
@@ -2617,40 +1826,9 @@ var de_GetApiCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2617
1826
|
Object.assign(contents, doc);
|
|
2618
1827
|
return contents;
|
|
2619
1828
|
}, "de_GetApiCacheCommand");
|
|
2620
|
-
var de_GetApiCacheCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2621
|
-
const parsedOutput = {
|
|
2622
|
-
...output,
|
|
2623
|
-
body: await parseErrorBody(output.body, context)
|
|
2624
|
-
};
|
|
2625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2626
|
-
switch (errorCode) {
|
|
2627
|
-
case "BadRequestException":
|
|
2628
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2629
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "ConcurrentModificationException":
|
|
2631
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2632
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2633
|
-
case "InternalFailureException":
|
|
2634
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2635
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2636
|
-
case "NotFoundException":
|
|
2637
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2638
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2639
|
-
case "UnauthorizedException":
|
|
2640
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2641
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2642
|
-
default:
|
|
2643
|
-
const parsedBody = parsedOutput.body;
|
|
2644
|
-
return throwDefaultError({
|
|
2645
|
-
output,
|
|
2646
|
-
parsedBody,
|
|
2647
|
-
errorCode
|
|
2648
|
-
});
|
|
2649
|
-
}
|
|
2650
|
-
}, "de_GetApiCacheCommandError");
|
|
2651
1829
|
var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2652
1830
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2653
|
-
return
|
|
1831
|
+
return de_CommandError(output, context);
|
|
2654
1832
|
}
|
|
2655
1833
|
const contents = (0, import_smithy_client.map)({
|
|
2656
1834
|
$metadata: deserializeMetadata(output)
|
|
@@ -2662,40 +1840,9 @@ var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2662
1840
|
Object.assign(contents, doc);
|
|
2663
1841
|
return contents;
|
|
2664
1842
|
}, "de_GetDataSourceCommand");
|
|
2665
|
-
var de_GetDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2666
|
-
const parsedOutput = {
|
|
2667
|
-
...output,
|
|
2668
|
-
body: await parseErrorBody(output.body, context)
|
|
2669
|
-
};
|
|
2670
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2671
|
-
switch (errorCode) {
|
|
2672
|
-
case "BadRequestException":
|
|
2673
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2674
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "ConcurrentModificationException":
|
|
2676
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2677
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "InternalFailureException":
|
|
2679
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2680
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2681
|
-
case "NotFoundException":
|
|
2682
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2683
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2684
|
-
case "UnauthorizedException":
|
|
2685
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2686
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2687
|
-
default:
|
|
2688
|
-
const parsedBody = parsedOutput.body;
|
|
2689
|
-
return throwDefaultError({
|
|
2690
|
-
output,
|
|
2691
|
-
parsedBody,
|
|
2692
|
-
errorCode
|
|
2693
|
-
});
|
|
2694
|
-
}
|
|
2695
|
-
}, "de_GetDataSourceCommandError");
|
|
2696
1843
|
var de_GetDataSourceIntrospectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2697
1844
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2698
|
-
return
|
|
1845
|
+
return de_CommandError(output, context);
|
|
2699
1846
|
}
|
|
2700
1847
|
const contents = (0, import_smithy_client.map)({
|
|
2701
1848
|
$metadata: deserializeMetadata(output)
|
|
@@ -2710,34 +1857,9 @@ var de_GetDataSourceIntrospectionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2710
1857
|
Object.assign(contents, doc);
|
|
2711
1858
|
return contents;
|
|
2712
1859
|
}, "de_GetDataSourceIntrospectionCommand");
|
|
2713
|
-
var de_GetDataSourceIntrospectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2714
|
-
const parsedOutput = {
|
|
2715
|
-
...output,
|
|
2716
|
-
body: await parseErrorBody(output.body, context)
|
|
2717
|
-
};
|
|
2718
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2719
|
-
switch (errorCode) {
|
|
2720
|
-
case "BadRequestException":
|
|
2721
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2722
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2723
|
-
case "InternalFailureException":
|
|
2724
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2725
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2726
|
-
case "NotFoundException":
|
|
2727
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2728
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2729
|
-
default:
|
|
2730
|
-
const parsedBody = parsedOutput.body;
|
|
2731
|
-
return throwDefaultError({
|
|
2732
|
-
output,
|
|
2733
|
-
parsedBody,
|
|
2734
|
-
errorCode
|
|
2735
|
-
});
|
|
2736
|
-
}
|
|
2737
|
-
}, "de_GetDataSourceIntrospectionCommandError");
|
|
2738
1860
|
var de_GetDomainNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2739
1861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2740
|
-
return
|
|
1862
|
+
return de_CommandError(output, context);
|
|
2741
1863
|
}
|
|
2742
1864
|
const contents = (0, import_smithy_client.map)({
|
|
2743
1865
|
$metadata: deserializeMetadata(output)
|
|
@@ -2749,37 +1871,9 @@ var de_GetDomainNameCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2749
1871
|
Object.assign(contents, doc);
|
|
2750
1872
|
return contents;
|
|
2751
1873
|
}, "de_GetDomainNameCommand");
|
|
2752
|
-
var de_GetDomainNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2753
|
-
const parsedOutput = {
|
|
2754
|
-
...output,
|
|
2755
|
-
body: await parseErrorBody(output.body, context)
|
|
2756
|
-
};
|
|
2757
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2758
|
-
switch (errorCode) {
|
|
2759
|
-
case "AccessDeniedException":
|
|
2760
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2761
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2762
|
-
case "BadRequestException":
|
|
2763
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2764
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2765
|
-
case "InternalFailureException":
|
|
2766
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2767
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2768
|
-
case "NotFoundException":
|
|
2769
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2770
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2771
|
-
default:
|
|
2772
|
-
const parsedBody = parsedOutput.body;
|
|
2773
|
-
return throwDefaultError({
|
|
2774
|
-
output,
|
|
2775
|
-
parsedBody,
|
|
2776
|
-
errorCode
|
|
2777
|
-
});
|
|
2778
|
-
}
|
|
2779
|
-
}, "de_GetDomainNameCommandError");
|
|
2780
1874
|
var de_GetFunctionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2781
1875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2782
|
-
return
|
|
1876
|
+
return de_CommandError(output, context);
|
|
2783
1877
|
}
|
|
2784
1878
|
const contents = (0, import_smithy_client.map)({
|
|
2785
1879
|
$metadata: deserializeMetadata(output)
|
|
@@ -2791,34 +1885,9 @@ var de_GetFunctionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2791
1885
|
Object.assign(contents, doc);
|
|
2792
1886
|
return contents;
|
|
2793
1887
|
}, "de_GetFunctionCommand");
|
|
2794
|
-
var de_GetFunctionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2795
|
-
const parsedOutput = {
|
|
2796
|
-
...output,
|
|
2797
|
-
body: await parseErrorBody(output.body, context)
|
|
2798
|
-
};
|
|
2799
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2800
|
-
switch (errorCode) {
|
|
2801
|
-
case "ConcurrentModificationException":
|
|
2802
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2803
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "NotFoundException":
|
|
2805
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2806
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "UnauthorizedException":
|
|
2808
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2809
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2810
|
-
default:
|
|
2811
|
-
const parsedBody = parsedOutput.body;
|
|
2812
|
-
return throwDefaultError({
|
|
2813
|
-
output,
|
|
2814
|
-
parsedBody,
|
|
2815
|
-
errorCode
|
|
2816
|
-
});
|
|
2817
|
-
}
|
|
2818
|
-
}, "de_GetFunctionCommandError");
|
|
2819
1888
|
var de_GetGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2820
1889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2821
|
-
return
|
|
1890
|
+
return de_CommandError(output, context);
|
|
2822
1891
|
}
|
|
2823
1892
|
const contents = (0, import_smithy_client.map)({
|
|
2824
1893
|
$metadata: deserializeMetadata(output)
|
|
@@ -2830,40 +1899,9 @@ var de_GetGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2830
1899
|
Object.assign(contents, doc);
|
|
2831
1900
|
return contents;
|
|
2832
1901
|
}, "de_GetGraphqlApiCommand");
|
|
2833
|
-
var de_GetGraphqlApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2834
|
-
const parsedOutput = {
|
|
2835
|
-
...output,
|
|
2836
|
-
body: await parseErrorBody(output.body, context)
|
|
2837
|
-
};
|
|
2838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2839
|
-
switch (errorCode) {
|
|
2840
|
-
case "AccessDeniedException":
|
|
2841
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2842
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "BadRequestException":
|
|
2844
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2845
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "InternalFailureException":
|
|
2847
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2848
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "NotFoundException":
|
|
2850
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2851
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "UnauthorizedException":
|
|
2853
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2854
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2855
|
-
default:
|
|
2856
|
-
const parsedBody = parsedOutput.body;
|
|
2857
|
-
return throwDefaultError({
|
|
2858
|
-
output,
|
|
2859
|
-
parsedBody,
|
|
2860
|
-
errorCode
|
|
2861
|
-
});
|
|
2862
|
-
}
|
|
2863
|
-
}, "de_GetGraphqlApiCommandError");
|
|
2864
1902
|
var de_GetIntrospectionSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2865
1903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2866
|
-
return
|
|
1904
|
+
return de_CommandError(output, context);
|
|
2867
1905
|
}
|
|
2868
1906
|
const contents = (0, import_smithy_client.map)({
|
|
2869
1907
|
$metadata: deserializeMetadata(output)
|
|
@@ -2872,37 +1910,9 @@ var de_GetIntrospectionSchemaCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2872
1910
|
contents.schema = data;
|
|
2873
1911
|
return contents;
|
|
2874
1912
|
}, "de_GetIntrospectionSchemaCommand");
|
|
2875
|
-
var de_GetIntrospectionSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2876
|
-
const parsedOutput = {
|
|
2877
|
-
...output,
|
|
2878
|
-
body: await parseErrorBody(output.body, context)
|
|
2879
|
-
};
|
|
2880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2881
|
-
switch (errorCode) {
|
|
2882
|
-
case "GraphQLSchemaException":
|
|
2883
|
-
case "com.amazonaws.appsync#GraphQLSchemaException":
|
|
2884
|
-
throw await de_GraphQLSchemaExceptionRes(parsedOutput, context);
|
|
2885
|
-
case "InternalFailureException":
|
|
2886
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2887
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "NotFoundException":
|
|
2889
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2890
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2891
|
-
case "UnauthorizedException":
|
|
2892
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2893
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2894
|
-
default:
|
|
2895
|
-
const parsedBody = parsedOutput.body;
|
|
2896
|
-
return throwDefaultError({
|
|
2897
|
-
output,
|
|
2898
|
-
parsedBody,
|
|
2899
|
-
errorCode
|
|
2900
|
-
});
|
|
2901
|
-
}
|
|
2902
|
-
}, "de_GetIntrospectionSchemaCommandError");
|
|
2903
1913
|
var de_GetResolverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2904
1914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2905
|
-
return
|
|
1915
|
+
return de_CommandError(output, context);
|
|
2906
1916
|
}
|
|
2907
1917
|
const contents = (0, import_smithy_client.map)({
|
|
2908
1918
|
$metadata: deserializeMetadata(output)
|
|
@@ -2914,34 +1924,9 @@ var de_GetResolverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2914
1924
|
Object.assign(contents, doc);
|
|
2915
1925
|
return contents;
|
|
2916
1926
|
}, "de_GetResolverCommand");
|
|
2917
|
-
var de_GetResolverCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2918
|
-
const parsedOutput = {
|
|
2919
|
-
...output,
|
|
2920
|
-
body: await parseErrorBody(output.body, context)
|
|
2921
|
-
};
|
|
2922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2923
|
-
switch (errorCode) {
|
|
2924
|
-
case "ConcurrentModificationException":
|
|
2925
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2926
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2927
|
-
case "NotFoundException":
|
|
2928
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2929
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2930
|
-
case "UnauthorizedException":
|
|
2931
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2932
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2933
|
-
default:
|
|
2934
|
-
const parsedBody = parsedOutput.body;
|
|
2935
|
-
return throwDefaultError({
|
|
2936
|
-
output,
|
|
2937
|
-
parsedBody,
|
|
2938
|
-
errorCode
|
|
2939
|
-
});
|
|
2940
|
-
}
|
|
2941
|
-
}, "de_GetResolverCommandError");
|
|
2942
1927
|
var de_GetSchemaCreationStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2943
1928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2944
|
-
return
|
|
1929
|
+
return de_CommandError(output, context);
|
|
2945
1930
|
}
|
|
2946
1931
|
const contents = (0, import_smithy_client.map)({
|
|
2947
1932
|
$metadata: deserializeMetadata(output)
|
|
@@ -2954,37 +1939,9 @@ var de_GetSchemaCreationStatusCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2954
1939
|
Object.assign(contents, doc);
|
|
2955
1940
|
return contents;
|
|
2956
1941
|
}, "de_GetSchemaCreationStatusCommand");
|
|
2957
|
-
var de_GetSchemaCreationStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2958
|
-
const parsedOutput = {
|
|
2959
|
-
...output,
|
|
2960
|
-
body: await parseErrorBody(output.body, context)
|
|
2961
|
-
};
|
|
2962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2963
|
-
switch (errorCode) {
|
|
2964
|
-
case "BadRequestException":
|
|
2965
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
2966
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2967
|
-
case "InternalFailureException":
|
|
2968
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
2969
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2970
|
-
case "NotFoundException":
|
|
2971
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
2972
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2973
|
-
case "UnauthorizedException":
|
|
2974
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2975
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2976
|
-
default:
|
|
2977
|
-
const parsedBody = parsedOutput.body;
|
|
2978
|
-
return throwDefaultError({
|
|
2979
|
-
output,
|
|
2980
|
-
parsedBody,
|
|
2981
|
-
errorCode
|
|
2982
|
-
});
|
|
2983
|
-
}
|
|
2984
|
-
}, "de_GetSchemaCreationStatusCommandError");
|
|
2985
1942
|
var de_GetSourceApiAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2986
1943
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2987
|
-
return
|
|
1944
|
+
return de_CommandError(output, context);
|
|
2988
1945
|
}
|
|
2989
1946
|
const contents = (0, import_smithy_client.map)({
|
|
2990
1947
|
$metadata: deserializeMetadata(output)
|
|
@@ -2996,37 +1953,9 @@ var de_GetSourceApiAssociationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2996
1953
|
Object.assign(contents, doc);
|
|
2997
1954
|
return contents;
|
|
2998
1955
|
}, "de_GetSourceApiAssociationCommand");
|
|
2999
|
-
var de_GetSourceApiAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3000
|
-
const parsedOutput = {
|
|
3001
|
-
...output,
|
|
3002
|
-
body: await parseErrorBody(output.body, context)
|
|
3003
|
-
};
|
|
3004
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3005
|
-
switch (errorCode) {
|
|
3006
|
-
case "BadRequestException":
|
|
3007
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3008
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "InternalFailureException":
|
|
3010
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3011
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3012
|
-
case "NotFoundException":
|
|
3013
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3014
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3015
|
-
case "UnauthorizedException":
|
|
3016
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3017
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3018
|
-
default:
|
|
3019
|
-
const parsedBody = parsedOutput.body;
|
|
3020
|
-
return throwDefaultError({
|
|
3021
|
-
output,
|
|
3022
|
-
parsedBody,
|
|
3023
|
-
errorCode
|
|
3024
|
-
});
|
|
3025
|
-
}
|
|
3026
|
-
}, "de_GetSourceApiAssociationCommandError");
|
|
3027
1956
|
var de_GetTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3028
1957
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3029
|
-
return
|
|
1958
|
+
return de_CommandError(output, context);
|
|
3030
1959
|
}
|
|
3031
1960
|
const contents = (0, import_smithy_client.map)({
|
|
3032
1961
|
$metadata: deserializeMetadata(output)
|
|
@@ -3038,40 +1967,9 @@ var de_GetTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3038
1967
|
Object.assign(contents, doc);
|
|
3039
1968
|
return contents;
|
|
3040
1969
|
}, "de_GetTypeCommand");
|
|
3041
|
-
var de_GetTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3042
|
-
const parsedOutput = {
|
|
3043
|
-
...output,
|
|
3044
|
-
body: await parseErrorBody(output.body, context)
|
|
3045
|
-
};
|
|
3046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3047
|
-
switch (errorCode) {
|
|
3048
|
-
case "BadRequestException":
|
|
3049
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3050
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3051
|
-
case "ConcurrentModificationException":
|
|
3052
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3053
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3054
|
-
case "InternalFailureException":
|
|
3055
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3056
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3057
|
-
case "NotFoundException":
|
|
3058
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3059
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3060
|
-
case "UnauthorizedException":
|
|
3061
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3062
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3063
|
-
default:
|
|
3064
|
-
const parsedBody = parsedOutput.body;
|
|
3065
|
-
return throwDefaultError({
|
|
3066
|
-
output,
|
|
3067
|
-
parsedBody,
|
|
3068
|
-
errorCode
|
|
3069
|
-
});
|
|
3070
|
-
}
|
|
3071
|
-
}, "de_GetTypeCommandError");
|
|
3072
1970
|
var de_ListApiKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3073
1971
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3074
|
-
return
|
|
1972
|
+
return de_CommandError(output, context);
|
|
3075
1973
|
}
|
|
3076
1974
|
const contents = (0, import_smithy_client.map)({
|
|
3077
1975
|
$metadata: deserializeMetadata(output)
|
|
@@ -3084,37 +1982,9 @@ var de_ListApiKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3084
1982
|
Object.assign(contents, doc);
|
|
3085
1983
|
return contents;
|
|
3086
1984
|
}, "de_ListApiKeysCommand");
|
|
3087
|
-
var de_ListApiKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3088
|
-
const parsedOutput = {
|
|
3089
|
-
...output,
|
|
3090
|
-
body: await parseErrorBody(output.body, context)
|
|
3091
|
-
};
|
|
3092
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3093
|
-
switch (errorCode) {
|
|
3094
|
-
case "BadRequestException":
|
|
3095
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3096
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3097
|
-
case "InternalFailureException":
|
|
3098
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3099
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3100
|
-
case "NotFoundException":
|
|
3101
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3102
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3103
|
-
case "UnauthorizedException":
|
|
3104
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3105
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3106
|
-
default:
|
|
3107
|
-
const parsedBody = parsedOutput.body;
|
|
3108
|
-
return throwDefaultError({
|
|
3109
|
-
output,
|
|
3110
|
-
parsedBody,
|
|
3111
|
-
errorCode
|
|
3112
|
-
});
|
|
3113
|
-
}
|
|
3114
|
-
}, "de_ListApiKeysCommandError");
|
|
3115
1985
|
var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3116
1986
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3117
|
-
return
|
|
1987
|
+
return de_CommandError(output, context);
|
|
3118
1988
|
}
|
|
3119
1989
|
const contents = (0, import_smithy_client.map)({
|
|
3120
1990
|
$metadata: deserializeMetadata(output)
|
|
@@ -3127,37 +1997,9 @@ var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3127
1997
|
Object.assign(contents, doc);
|
|
3128
1998
|
return contents;
|
|
3129
1999
|
}, "de_ListDataSourcesCommand");
|
|
3130
|
-
var de_ListDataSourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3131
|
-
const parsedOutput = {
|
|
3132
|
-
...output,
|
|
3133
|
-
body: await parseErrorBody(output.body, context)
|
|
3134
|
-
};
|
|
3135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3136
|
-
switch (errorCode) {
|
|
3137
|
-
case "BadRequestException":
|
|
3138
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3139
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3140
|
-
case "InternalFailureException":
|
|
3141
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3142
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3143
|
-
case "NotFoundException":
|
|
3144
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3145
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3146
|
-
case "UnauthorizedException":
|
|
3147
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3148
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3149
|
-
default:
|
|
3150
|
-
const parsedBody = parsedOutput.body;
|
|
3151
|
-
return throwDefaultError({
|
|
3152
|
-
output,
|
|
3153
|
-
parsedBody,
|
|
3154
|
-
errorCode
|
|
3155
|
-
});
|
|
3156
|
-
}
|
|
3157
|
-
}, "de_ListDataSourcesCommandError");
|
|
3158
2000
|
var de_ListDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3159
2001
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3160
|
-
return
|
|
2002
|
+
return de_CommandError(output, context);
|
|
3161
2003
|
}
|
|
3162
2004
|
const contents = (0, import_smithy_client.map)({
|
|
3163
2005
|
$metadata: deserializeMetadata(output)
|
|
@@ -3170,34 +2012,9 @@ var de_ListDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3170
2012
|
Object.assign(contents, doc);
|
|
3171
2013
|
return contents;
|
|
3172
2014
|
}, "de_ListDomainNamesCommand");
|
|
3173
|
-
var de_ListDomainNamesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3174
|
-
const parsedOutput = {
|
|
3175
|
-
...output,
|
|
3176
|
-
body: await parseErrorBody(output.body, context)
|
|
3177
|
-
};
|
|
3178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3179
|
-
switch (errorCode) {
|
|
3180
|
-
case "AccessDeniedException":
|
|
3181
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
3182
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3183
|
-
case "BadRequestException":
|
|
3184
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3185
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3186
|
-
case "InternalFailureException":
|
|
3187
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3188
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3189
|
-
default:
|
|
3190
|
-
const parsedBody = parsedOutput.body;
|
|
3191
|
-
return throwDefaultError({
|
|
3192
|
-
output,
|
|
3193
|
-
parsedBody,
|
|
3194
|
-
errorCode
|
|
3195
|
-
});
|
|
3196
|
-
}
|
|
3197
|
-
}, "de_ListDomainNamesCommandError");
|
|
3198
2015
|
var de_ListFunctionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3199
2016
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3200
|
-
return
|
|
2017
|
+
return de_CommandError(output, context);
|
|
3201
2018
|
}
|
|
3202
2019
|
const contents = (0, import_smithy_client.map)({
|
|
3203
2020
|
$metadata: deserializeMetadata(output)
|
|
@@ -3210,37 +2027,9 @@ var de_ListFunctionsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3210
2027
|
Object.assign(contents, doc);
|
|
3211
2028
|
return contents;
|
|
3212
2029
|
}, "de_ListFunctionsCommand");
|
|
3213
|
-
var de_ListFunctionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3214
|
-
const parsedOutput = {
|
|
3215
|
-
...output,
|
|
3216
|
-
body: await parseErrorBody(output.body, context)
|
|
3217
|
-
};
|
|
3218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3219
|
-
switch (errorCode) {
|
|
3220
|
-
case "BadRequestException":
|
|
3221
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3222
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3223
|
-
case "InternalFailureException":
|
|
3224
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3225
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3226
|
-
case "NotFoundException":
|
|
3227
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3228
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3229
|
-
case "UnauthorizedException":
|
|
3230
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3231
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3232
|
-
default:
|
|
3233
|
-
const parsedBody = parsedOutput.body;
|
|
3234
|
-
return throwDefaultError({
|
|
3235
|
-
output,
|
|
3236
|
-
parsedBody,
|
|
3237
|
-
errorCode
|
|
3238
|
-
});
|
|
3239
|
-
}
|
|
3240
|
-
}, "de_ListFunctionsCommandError");
|
|
3241
2030
|
var de_ListGraphqlApisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3242
2031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3243
|
-
return
|
|
2032
|
+
return de_CommandError(output, context);
|
|
3244
2033
|
}
|
|
3245
2034
|
const contents = (0, import_smithy_client.map)({
|
|
3246
2035
|
$metadata: deserializeMetadata(output)
|
|
@@ -3253,34 +2042,9 @@ var de_ListGraphqlApisCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3253
2042
|
Object.assign(contents, doc);
|
|
3254
2043
|
return contents;
|
|
3255
2044
|
}, "de_ListGraphqlApisCommand");
|
|
3256
|
-
var de_ListGraphqlApisCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3257
|
-
const parsedOutput = {
|
|
3258
|
-
...output,
|
|
3259
|
-
body: await parseErrorBody(output.body, context)
|
|
3260
|
-
};
|
|
3261
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3262
|
-
switch (errorCode) {
|
|
3263
|
-
case "BadRequestException":
|
|
3264
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3265
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3266
|
-
case "InternalFailureException":
|
|
3267
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3268
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3269
|
-
case "UnauthorizedException":
|
|
3270
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3271
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3272
|
-
default:
|
|
3273
|
-
const parsedBody = parsedOutput.body;
|
|
3274
|
-
return throwDefaultError({
|
|
3275
|
-
output,
|
|
3276
|
-
parsedBody,
|
|
3277
|
-
errorCode
|
|
3278
|
-
});
|
|
3279
|
-
}
|
|
3280
|
-
}, "de_ListGraphqlApisCommandError");
|
|
3281
2045
|
var de_ListResolversCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3282
2046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3283
|
-
return
|
|
2047
|
+
return de_CommandError(output, context);
|
|
3284
2048
|
}
|
|
3285
2049
|
const contents = (0, import_smithy_client.map)({
|
|
3286
2050
|
$metadata: deserializeMetadata(output)
|
|
@@ -3293,37 +2057,9 @@ var de_ListResolversCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3293
2057
|
Object.assign(contents, doc);
|
|
3294
2058
|
return contents;
|
|
3295
2059
|
}, "de_ListResolversCommand");
|
|
3296
|
-
var de_ListResolversCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3297
|
-
const parsedOutput = {
|
|
3298
|
-
...output,
|
|
3299
|
-
body: await parseErrorBody(output.body, context)
|
|
3300
|
-
};
|
|
3301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3302
|
-
switch (errorCode) {
|
|
3303
|
-
case "BadRequestException":
|
|
3304
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3305
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3306
|
-
case "InternalFailureException":
|
|
3307
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3308
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "NotFoundException":
|
|
3310
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3311
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3312
|
-
case "UnauthorizedException":
|
|
3313
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3314
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3315
|
-
default:
|
|
3316
|
-
const parsedBody = parsedOutput.body;
|
|
3317
|
-
return throwDefaultError({
|
|
3318
|
-
output,
|
|
3319
|
-
parsedBody,
|
|
3320
|
-
errorCode
|
|
3321
|
-
});
|
|
3322
|
-
}
|
|
3323
|
-
}, "de_ListResolversCommandError");
|
|
3324
2060
|
var de_ListResolversByFunctionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3325
2061
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3326
|
-
return
|
|
2062
|
+
return de_CommandError(output, context);
|
|
3327
2063
|
}
|
|
3328
2064
|
const contents = (0, import_smithy_client.map)({
|
|
3329
2065
|
$metadata: deserializeMetadata(output)
|
|
@@ -3336,37 +2072,9 @@ var de_ListResolversByFunctionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3336
2072
|
Object.assign(contents, doc);
|
|
3337
2073
|
return contents;
|
|
3338
2074
|
}, "de_ListResolversByFunctionCommand");
|
|
3339
|
-
var de_ListResolversByFunctionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3340
|
-
const parsedOutput = {
|
|
3341
|
-
...output,
|
|
3342
|
-
body: await parseErrorBody(output.body, context)
|
|
3343
|
-
};
|
|
3344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3345
|
-
switch (errorCode) {
|
|
3346
|
-
case "BadRequestException":
|
|
3347
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3348
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3349
|
-
case "InternalFailureException":
|
|
3350
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3351
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3352
|
-
case "NotFoundException":
|
|
3353
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3354
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3355
|
-
case "UnauthorizedException":
|
|
3356
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3357
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3358
|
-
default:
|
|
3359
|
-
const parsedBody = parsedOutput.body;
|
|
3360
|
-
return throwDefaultError({
|
|
3361
|
-
output,
|
|
3362
|
-
parsedBody,
|
|
3363
|
-
errorCode
|
|
3364
|
-
});
|
|
3365
|
-
}
|
|
3366
|
-
}, "de_ListResolversByFunctionCommandError");
|
|
3367
2075
|
var de_ListSourceApiAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3368
2076
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3369
|
-
return
|
|
2077
|
+
return de_CommandError(output, context);
|
|
3370
2078
|
}
|
|
3371
2079
|
const contents = (0, import_smithy_client.map)({
|
|
3372
2080
|
$metadata: deserializeMetadata(output)
|
|
@@ -3379,37 +2087,9 @@ var de_ListSourceApiAssociationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3379
2087
|
Object.assign(contents, doc);
|
|
3380
2088
|
return contents;
|
|
3381
2089
|
}, "de_ListSourceApiAssociationsCommand");
|
|
3382
|
-
var de_ListSourceApiAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3383
|
-
const parsedOutput = {
|
|
3384
|
-
...output,
|
|
3385
|
-
body: await parseErrorBody(output.body, context)
|
|
3386
|
-
};
|
|
3387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3388
|
-
switch (errorCode) {
|
|
3389
|
-
case "BadRequestException":
|
|
3390
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3391
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3392
|
-
case "InternalFailureException":
|
|
3393
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3394
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3395
|
-
case "NotFoundException":
|
|
3396
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3397
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3398
|
-
case "UnauthorizedException":
|
|
3399
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3400
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3401
|
-
default:
|
|
3402
|
-
const parsedBody = parsedOutput.body;
|
|
3403
|
-
return throwDefaultError({
|
|
3404
|
-
output,
|
|
3405
|
-
parsedBody,
|
|
3406
|
-
errorCode
|
|
3407
|
-
});
|
|
3408
|
-
}
|
|
3409
|
-
}, "de_ListSourceApiAssociationsCommandError");
|
|
3410
2090
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3411
2091
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3412
|
-
return
|
|
2092
|
+
return de_CommandError(output, context);
|
|
3413
2093
|
}
|
|
3414
2094
|
const contents = (0, import_smithy_client.map)({
|
|
3415
2095
|
$metadata: deserializeMetadata(output)
|
|
@@ -3421,43 +2101,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3421
2101
|
Object.assign(contents, doc);
|
|
3422
2102
|
return contents;
|
|
3423
2103
|
}, "de_ListTagsForResourceCommand");
|
|
3424
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3425
|
-
const parsedOutput = {
|
|
3426
|
-
...output,
|
|
3427
|
-
body: await parseErrorBody(output.body, context)
|
|
3428
|
-
};
|
|
3429
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3430
|
-
switch (errorCode) {
|
|
3431
|
-
case "AccessDeniedException":
|
|
3432
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
3433
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3434
|
-
case "BadRequestException":
|
|
3435
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3436
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3437
|
-
case "InternalFailureException":
|
|
3438
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3439
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3440
|
-
case "LimitExceededException":
|
|
3441
|
-
case "com.amazonaws.appsync#LimitExceededException":
|
|
3442
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3443
|
-
case "NotFoundException":
|
|
3444
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3445
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3446
|
-
case "UnauthorizedException":
|
|
3447
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3448
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3449
|
-
default:
|
|
3450
|
-
const parsedBody = parsedOutput.body;
|
|
3451
|
-
return throwDefaultError({
|
|
3452
|
-
output,
|
|
3453
|
-
parsedBody,
|
|
3454
|
-
errorCode
|
|
3455
|
-
});
|
|
3456
|
-
}
|
|
3457
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3458
2104
|
var de_ListTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3459
2105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3460
|
-
return
|
|
2106
|
+
return de_CommandError(output, context);
|
|
3461
2107
|
}
|
|
3462
2108
|
const contents = (0, import_smithy_client.map)({
|
|
3463
2109
|
$metadata: deserializeMetadata(output)
|
|
@@ -3470,40 +2116,9 @@ var de_ListTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3470
2116
|
Object.assign(contents, doc);
|
|
3471
2117
|
return contents;
|
|
3472
2118
|
}, "de_ListTypesCommand");
|
|
3473
|
-
var de_ListTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3474
|
-
const parsedOutput = {
|
|
3475
|
-
...output,
|
|
3476
|
-
body: await parseErrorBody(output.body, context)
|
|
3477
|
-
};
|
|
3478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3479
|
-
switch (errorCode) {
|
|
3480
|
-
case "BadRequestException":
|
|
3481
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3482
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3483
|
-
case "ConcurrentModificationException":
|
|
3484
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3485
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3486
|
-
case "InternalFailureException":
|
|
3487
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3488
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3489
|
-
case "NotFoundException":
|
|
3490
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3491
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3492
|
-
case "UnauthorizedException":
|
|
3493
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3494
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3495
|
-
default:
|
|
3496
|
-
const parsedBody = parsedOutput.body;
|
|
3497
|
-
return throwDefaultError({
|
|
3498
|
-
output,
|
|
3499
|
-
parsedBody,
|
|
3500
|
-
errorCode
|
|
3501
|
-
});
|
|
3502
|
-
}
|
|
3503
|
-
}, "de_ListTypesCommandError");
|
|
3504
2119
|
var de_ListTypesByAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3505
2120
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3506
|
-
return
|
|
2121
|
+
return de_CommandError(output, context);
|
|
3507
2122
|
}
|
|
3508
2123
|
const contents = (0, import_smithy_client.map)({
|
|
3509
2124
|
$metadata: deserializeMetadata(output)
|
|
@@ -3516,40 +2131,9 @@ var de_ListTypesByAssociationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3516
2131
|
Object.assign(contents, doc);
|
|
3517
2132
|
return contents;
|
|
3518
2133
|
}, "de_ListTypesByAssociationCommand");
|
|
3519
|
-
var de_ListTypesByAssociationCommandError = /* @__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 "BadRequestException":
|
|
3527
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3528
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3529
|
-
case "ConcurrentModificationException":
|
|
3530
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3531
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3532
|
-
case "InternalFailureException":
|
|
3533
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3534
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3535
|
-
case "NotFoundException":
|
|
3536
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3537
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3538
|
-
case "UnauthorizedException":
|
|
3539
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3540
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3541
|
-
default:
|
|
3542
|
-
const parsedBody = parsedOutput.body;
|
|
3543
|
-
return throwDefaultError({
|
|
3544
|
-
output,
|
|
3545
|
-
parsedBody,
|
|
3546
|
-
errorCode
|
|
3547
|
-
});
|
|
3548
|
-
}
|
|
3549
|
-
}, "de_ListTypesByAssociationCommandError");
|
|
3550
2134
|
var de_StartDataSourceIntrospectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3551
2135
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3552
|
-
return
|
|
2136
|
+
return de_CommandError(output, context);
|
|
3553
2137
|
}
|
|
3554
2138
|
const contents = (0, import_smithy_client.map)({
|
|
3555
2139
|
$metadata: deserializeMetadata(output)
|
|
@@ -3563,37 +2147,9 @@ var de_StartDataSourceIntrospectionCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3563
2147
|
Object.assign(contents, doc);
|
|
3564
2148
|
return contents;
|
|
3565
2149
|
}, "de_StartDataSourceIntrospectionCommand");
|
|
3566
|
-
var de_StartDataSourceIntrospectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3567
|
-
const parsedOutput = {
|
|
3568
|
-
...output,
|
|
3569
|
-
body: await parseErrorBody(output.body, context)
|
|
3570
|
-
};
|
|
3571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3572
|
-
switch (errorCode) {
|
|
3573
|
-
case "BadRequestException":
|
|
3574
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3575
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3576
|
-
case "InternalFailureException":
|
|
3577
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3578
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3579
|
-
case "NotFoundException":
|
|
3580
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3581
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3582
|
-
case "UnauthorizedException":
|
|
3583
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3584
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3585
|
-
default:
|
|
3586
|
-
const parsedBody = parsedOutput.body;
|
|
3587
|
-
return throwDefaultError({
|
|
3588
|
-
output,
|
|
3589
|
-
parsedBody,
|
|
3590
|
-
errorCode
|
|
3591
|
-
});
|
|
3592
|
-
}
|
|
3593
|
-
}, "de_StartDataSourceIntrospectionCommandError");
|
|
3594
2150
|
var de_StartSchemaCreationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3595
2151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3596
|
-
return
|
|
2152
|
+
return de_CommandError(output, context);
|
|
3597
2153
|
}
|
|
3598
2154
|
const contents = (0, import_smithy_client.map)({
|
|
3599
2155
|
$metadata: deserializeMetadata(output)
|
|
@@ -3605,40 +2161,9 @@ var de_StartSchemaCreationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3605
2161
|
Object.assign(contents, doc);
|
|
3606
2162
|
return contents;
|
|
3607
2163
|
}, "de_StartSchemaCreationCommand");
|
|
3608
|
-
var de_StartSchemaCreationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3609
|
-
const parsedOutput = {
|
|
3610
|
-
...output,
|
|
3611
|
-
body: await parseErrorBody(output.body, context)
|
|
3612
|
-
};
|
|
3613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3614
|
-
switch (errorCode) {
|
|
3615
|
-
case "BadRequestException":
|
|
3616
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3617
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3618
|
-
case "ConcurrentModificationException":
|
|
3619
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3620
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3621
|
-
case "InternalFailureException":
|
|
3622
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3623
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3624
|
-
case "NotFoundException":
|
|
3625
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3626
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3627
|
-
case "UnauthorizedException":
|
|
3628
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3629
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3630
|
-
default:
|
|
3631
|
-
const parsedBody = parsedOutput.body;
|
|
3632
|
-
return throwDefaultError({
|
|
3633
|
-
output,
|
|
3634
|
-
parsedBody,
|
|
3635
|
-
errorCode
|
|
3636
|
-
});
|
|
3637
|
-
}
|
|
3638
|
-
}, "de_StartSchemaCreationCommandError");
|
|
3639
2164
|
var de_StartSchemaMergeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3640
2165
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3641
|
-
return
|
|
2166
|
+
return de_CommandError(output, context);
|
|
3642
2167
|
}
|
|
3643
2168
|
const contents = (0, import_smithy_client.map)({
|
|
3644
2169
|
$metadata: deserializeMetadata(output)
|
|
@@ -3650,173 +2175,43 @@ var de_StartSchemaMergeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3650
2175
|
Object.assign(contents, doc);
|
|
3651
2176
|
return contents;
|
|
3652
2177
|
}, "de_StartSchemaMergeCommand");
|
|
3653
|
-
var de_StartSchemaMergeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3654
|
-
const parsedOutput = {
|
|
3655
|
-
...output,
|
|
3656
|
-
body: await parseErrorBody(output.body, context)
|
|
3657
|
-
};
|
|
3658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3659
|
-
switch (errorCode) {
|
|
3660
|
-
case "BadRequestException":
|
|
3661
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3662
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3663
|
-
case "ConcurrentModificationException":
|
|
3664
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3665
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3666
|
-
case "InternalFailureException":
|
|
3667
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3668
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3669
|
-
case "NotFoundException":
|
|
3670
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3671
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3672
|
-
case "UnauthorizedException":
|
|
3673
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3674
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3675
|
-
default:
|
|
3676
|
-
const parsedBody = parsedOutput.body;
|
|
3677
|
-
return throwDefaultError({
|
|
3678
|
-
output,
|
|
3679
|
-
parsedBody,
|
|
3680
|
-
errorCode
|
|
3681
|
-
});
|
|
3682
|
-
}
|
|
3683
|
-
}, "de_StartSchemaMergeCommandError");
|
|
3684
2178
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3685
2179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3686
|
-
return
|
|
3687
|
-
}
|
|
3688
|
-
const contents = (0, import_smithy_client.map)({
|
|
3689
|
-
$metadata: deserializeMetadata(output)
|
|
3690
|
-
});
|
|
3691
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3692
|
-
return contents;
|
|
3693
|
-
}, "de_TagResourceCommand");
|
|
3694
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3695
|
-
const parsedOutput = {
|
|
3696
|
-
...output,
|
|
3697
|
-
body: await parseErrorBody(output.body, context)
|
|
3698
|
-
};
|
|
3699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3700
|
-
switch (errorCode) {
|
|
3701
|
-
case "AccessDeniedException":
|
|
3702
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
3703
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3704
|
-
case "BadRequestException":
|
|
3705
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3706
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3707
|
-
case "InternalFailureException":
|
|
3708
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3709
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3710
|
-
case "LimitExceededException":
|
|
3711
|
-
case "com.amazonaws.appsync#LimitExceededException":
|
|
3712
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3713
|
-
case "NotFoundException":
|
|
3714
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3715
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3716
|
-
case "UnauthorizedException":
|
|
3717
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3718
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3719
|
-
default:
|
|
3720
|
-
const parsedBody = parsedOutput.body;
|
|
3721
|
-
return throwDefaultError({
|
|
3722
|
-
output,
|
|
3723
|
-
parsedBody,
|
|
3724
|
-
errorCode
|
|
3725
|
-
});
|
|
3726
|
-
}
|
|
3727
|
-
}, "de_TagResourceCommandError");
|
|
3728
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3729
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3730
|
-
return de_UntagResourceCommandError(output, context);
|
|
3731
|
-
}
|
|
3732
|
-
const contents = (0, import_smithy_client.map)({
|
|
3733
|
-
$metadata: deserializeMetadata(output)
|
|
3734
|
-
});
|
|
3735
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3736
|
-
return contents;
|
|
3737
|
-
}, "de_UntagResourceCommand");
|
|
3738
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3739
|
-
const parsedOutput = {
|
|
3740
|
-
...output,
|
|
3741
|
-
body: await parseErrorBody(output.body, context)
|
|
3742
|
-
};
|
|
3743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3744
|
-
switch (errorCode) {
|
|
3745
|
-
case "AccessDeniedException":
|
|
3746
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
3747
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3748
|
-
case "BadRequestException":
|
|
3749
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3750
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3751
|
-
case "InternalFailureException":
|
|
3752
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3753
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3754
|
-
case "LimitExceededException":
|
|
3755
|
-
case "com.amazonaws.appsync#LimitExceededException":
|
|
3756
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3757
|
-
case "NotFoundException":
|
|
3758
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3759
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3760
|
-
case "UnauthorizedException":
|
|
3761
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3762
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3763
|
-
default:
|
|
3764
|
-
const parsedBody = parsedOutput.body;
|
|
3765
|
-
return throwDefaultError({
|
|
3766
|
-
output,
|
|
3767
|
-
parsedBody,
|
|
3768
|
-
errorCode
|
|
3769
|
-
});
|
|
3770
|
-
}
|
|
3771
|
-
}, "de_UntagResourceCommandError");
|
|
3772
|
-
var de_UpdateApiCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3773
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3774
|
-
return de_UpdateApiCacheCommandError(output, context);
|
|
2180
|
+
return de_CommandError(output, context);
|
|
3775
2181
|
}
|
|
3776
2182
|
const contents = (0, import_smithy_client.map)({
|
|
3777
|
-
$metadata: deserializeMetadata(output)
|
|
3778
|
-
});
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
}
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3796
|
-
case "ConcurrentModificationException":
|
|
3797
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3798
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3799
|
-
case "InternalFailureException":
|
|
3800
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3801
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3802
|
-
case "NotFoundException":
|
|
3803
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3804
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3805
|
-
case "UnauthorizedException":
|
|
3806
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3807
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3808
|
-
default:
|
|
3809
|
-
const parsedBody = parsedOutput.body;
|
|
3810
|
-
return throwDefaultError({
|
|
3811
|
-
output,
|
|
3812
|
-
parsedBody,
|
|
3813
|
-
errorCode
|
|
3814
|
-
});
|
|
2183
|
+
$metadata: deserializeMetadata(output)
|
|
2184
|
+
});
|
|
2185
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2186
|
+
return contents;
|
|
2187
|
+
}, "de_TagResourceCommand");
|
|
2188
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2189
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2190
|
+
return de_CommandError(output, context);
|
|
2191
|
+
}
|
|
2192
|
+
const contents = (0, import_smithy_client.map)({
|
|
2193
|
+
$metadata: deserializeMetadata(output)
|
|
2194
|
+
});
|
|
2195
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2196
|
+
return contents;
|
|
2197
|
+
}, "de_UntagResourceCommand");
|
|
2198
|
+
var de_UpdateApiCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2199
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2200
|
+
return de_CommandError(output, context);
|
|
3815
2201
|
}
|
|
3816
|
-
|
|
2202
|
+
const contents = (0, import_smithy_client.map)({
|
|
2203
|
+
$metadata: deserializeMetadata(output)
|
|
2204
|
+
});
|
|
2205
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2206
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2207
|
+
apiCache: import_smithy_client._json
|
|
2208
|
+
});
|
|
2209
|
+
Object.assign(contents, doc);
|
|
2210
|
+
return contents;
|
|
2211
|
+
}, "de_UpdateApiCacheCommand");
|
|
3817
2212
|
var de_UpdateApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3818
2213
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3819
|
-
return
|
|
2214
|
+
return de_CommandError(output, context);
|
|
3820
2215
|
}
|
|
3821
2216
|
const contents = (0, import_smithy_client.map)({
|
|
3822
2217
|
$metadata: deserializeMetadata(output)
|
|
@@ -3828,43 +2223,9 @@ var de_UpdateApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3828
2223
|
Object.assign(contents, doc);
|
|
3829
2224
|
return contents;
|
|
3830
2225
|
}, "de_UpdateApiKeyCommand");
|
|
3831
|
-
var de_UpdateApiKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3832
|
-
const parsedOutput = {
|
|
3833
|
-
...output,
|
|
3834
|
-
body: await parseErrorBody(output.body, context)
|
|
3835
|
-
};
|
|
3836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3837
|
-
switch (errorCode) {
|
|
3838
|
-
case "ApiKeyValidityOutOfBoundsException":
|
|
3839
|
-
case "com.amazonaws.appsync#ApiKeyValidityOutOfBoundsException":
|
|
3840
|
-
throw await de_ApiKeyValidityOutOfBoundsExceptionRes(parsedOutput, context);
|
|
3841
|
-
case "BadRequestException":
|
|
3842
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3843
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3844
|
-
case "InternalFailureException":
|
|
3845
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3846
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3847
|
-
case "LimitExceededException":
|
|
3848
|
-
case "com.amazonaws.appsync#LimitExceededException":
|
|
3849
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3850
|
-
case "NotFoundException":
|
|
3851
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3852
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3853
|
-
case "UnauthorizedException":
|
|
3854
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3855
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3856
|
-
default:
|
|
3857
|
-
const parsedBody = parsedOutput.body;
|
|
3858
|
-
return throwDefaultError({
|
|
3859
|
-
output,
|
|
3860
|
-
parsedBody,
|
|
3861
|
-
errorCode
|
|
3862
|
-
});
|
|
3863
|
-
}
|
|
3864
|
-
}, "de_UpdateApiKeyCommandError");
|
|
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)
|
|
@@ -3876,40 +2237,9 @@ var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3876
2237
|
Object.assign(contents, doc);
|
|
3877
2238
|
return contents;
|
|
3878
2239
|
}, "de_UpdateDataSourceCommand");
|
|
3879
|
-
var de_UpdateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3880
|
-
const parsedOutput = {
|
|
3881
|
-
...output,
|
|
3882
|
-
body: await parseErrorBody(output.body, context)
|
|
3883
|
-
};
|
|
3884
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3885
|
-
switch (errorCode) {
|
|
3886
|
-
case "BadRequestException":
|
|
3887
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3888
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3889
|
-
case "ConcurrentModificationException":
|
|
3890
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3891
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3892
|
-
case "InternalFailureException":
|
|
3893
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3894
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3895
|
-
case "NotFoundException":
|
|
3896
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3897
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3898
|
-
case "UnauthorizedException":
|
|
3899
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3900
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3901
|
-
default:
|
|
3902
|
-
const parsedBody = parsedOutput.body;
|
|
3903
|
-
return throwDefaultError({
|
|
3904
|
-
output,
|
|
3905
|
-
parsedBody,
|
|
3906
|
-
errorCode
|
|
3907
|
-
});
|
|
3908
|
-
}
|
|
3909
|
-
}, "de_UpdateDataSourceCommandError");
|
|
3910
2240
|
var de_UpdateDomainNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3911
2241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3912
|
-
return
|
|
2242
|
+
return de_CommandError(output, context);
|
|
3913
2243
|
}
|
|
3914
2244
|
const contents = (0, import_smithy_client.map)({
|
|
3915
2245
|
$metadata: deserializeMetadata(output)
|
|
@@ -3921,40 +2251,9 @@ var de_UpdateDomainNameCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3921
2251
|
Object.assign(contents, doc);
|
|
3922
2252
|
return contents;
|
|
3923
2253
|
}, "de_UpdateDomainNameCommand");
|
|
3924
|
-
var de_UpdateDomainNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3925
|
-
const parsedOutput = {
|
|
3926
|
-
...output,
|
|
3927
|
-
body: await parseErrorBody(output.body, context)
|
|
3928
|
-
};
|
|
3929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3930
|
-
switch (errorCode) {
|
|
3931
|
-
case "AccessDeniedException":
|
|
3932
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
3933
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3934
|
-
case "BadRequestException":
|
|
3935
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
3936
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3937
|
-
case "ConcurrentModificationException":
|
|
3938
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3939
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3940
|
-
case "InternalFailureException":
|
|
3941
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3942
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3943
|
-
case "NotFoundException":
|
|
3944
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3945
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3946
|
-
default:
|
|
3947
|
-
const parsedBody = parsedOutput.body;
|
|
3948
|
-
return throwDefaultError({
|
|
3949
|
-
output,
|
|
3950
|
-
parsedBody,
|
|
3951
|
-
errorCode
|
|
3952
|
-
});
|
|
3953
|
-
}
|
|
3954
|
-
}, "de_UpdateDomainNameCommandError");
|
|
3955
2254
|
var de_UpdateFunctionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3956
2255
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3957
|
-
return
|
|
2256
|
+
return de_CommandError(output, context);
|
|
3958
2257
|
}
|
|
3959
2258
|
const contents = (0, import_smithy_client.map)({
|
|
3960
2259
|
$metadata: deserializeMetadata(output)
|
|
@@ -3966,37 +2265,9 @@ var de_UpdateFunctionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3966
2265
|
Object.assign(contents, doc);
|
|
3967
2266
|
return contents;
|
|
3968
2267
|
}, "de_UpdateFunctionCommand");
|
|
3969
|
-
var de_UpdateFunctionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3970
|
-
const parsedOutput = {
|
|
3971
|
-
...output,
|
|
3972
|
-
body: await parseErrorBody(output.body, context)
|
|
3973
|
-
};
|
|
3974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3975
|
-
switch (errorCode) {
|
|
3976
|
-
case "ConcurrentModificationException":
|
|
3977
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3978
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3979
|
-
case "InternalFailureException":
|
|
3980
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
3981
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3982
|
-
case "NotFoundException":
|
|
3983
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
3984
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3985
|
-
case "UnauthorizedException":
|
|
3986
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3987
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3988
|
-
default:
|
|
3989
|
-
const parsedBody = parsedOutput.body;
|
|
3990
|
-
return throwDefaultError({
|
|
3991
|
-
output,
|
|
3992
|
-
parsedBody,
|
|
3993
|
-
errorCode
|
|
3994
|
-
});
|
|
3995
|
-
}
|
|
3996
|
-
}, "de_UpdateFunctionCommandError");
|
|
3997
2268
|
var de_UpdateGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3998
2269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3999
|
-
return
|
|
2270
|
+
return de_CommandError(output, context);
|
|
4000
2271
|
}
|
|
4001
2272
|
const contents = (0, import_smithy_client.map)({
|
|
4002
2273
|
$metadata: deserializeMetadata(output)
|
|
@@ -4008,43 +2279,9 @@ var de_UpdateGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4008
2279
|
Object.assign(contents, doc);
|
|
4009
2280
|
return contents;
|
|
4010
2281
|
}, "de_UpdateGraphqlApiCommand");
|
|
4011
|
-
var de_UpdateGraphqlApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4012
|
-
const parsedOutput = {
|
|
4013
|
-
...output,
|
|
4014
|
-
body: await parseErrorBody(output.body, context)
|
|
4015
|
-
};
|
|
4016
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4017
|
-
switch (errorCode) {
|
|
4018
|
-
case "AccessDeniedException":
|
|
4019
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
4020
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4021
|
-
case "BadRequestException":
|
|
4022
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
4023
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4024
|
-
case "ConcurrentModificationException":
|
|
4025
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
4026
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4027
|
-
case "InternalFailureException":
|
|
4028
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
4029
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
4030
|
-
case "NotFoundException":
|
|
4031
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
4032
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4033
|
-
case "UnauthorizedException":
|
|
4034
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
4035
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4036
|
-
default:
|
|
4037
|
-
const parsedBody = parsedOutput.body;
|
|
4038
|
-
return throwDefaultError({
|
|
4039
|
-
output,
|
|
4040
|
-
parsedBody,
|
|
4041
|
-
errorCode
|
|
4042
|
-
});
|
|
4043
|
-
}
|
|
4044
|
-
}, "de_UpdateGraphqlApiCommandError");
|
|
4045
2282
|
var de_UpdateResolverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4046
2283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4047
|
-
return
|
|
2284
|
+
return de_CommandError(output, context);
|
|
4048
2285
|
}
|
|
4049
2286
|
const contents = (0, import_smithy_client.map)({
|
|
4050
2287
|
$metadata: deserializeMetadata(output)
|
|
@@ -4056,40 +2293,9 @@ var de_UpdateResolverCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4056
2293
|
Object.assign(contents, doc);
|
|
4057
2294
|
return contents;
|
|
4058
2295
|
}, "de_UpdateResolverCommand");
|
|
4059
|
-
var de_UpdateResolverCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4060
|
-
const parsedOutput = {
|
|
4061
|
-
...output,
|
|
4062
|
-
body: await parseErrorBody(output.body, context)
|
|
4063
|
-
};
|
|
4064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4065
|
-
switch (errorCode) {
|
|
4066
|
-
case "BadRequestException":
|
|
4067
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
4068
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4069
|
-
case "ConcurrentModificationException":
|
|
4070
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
4071
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4072
|
-
case "InternalFailureException":
|
|
4073
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
4074
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
4075
|
-
case "NotFoundException":
|
|
4076
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
4077
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4078
|
-
case "UnauthorizedException":
|
|
4079
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
4080
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4081
|
-
default:
|
|
4082
|
-
const parsedBody = parsedOutput.body;
|
|
4083
|
-
return throwDefaultError({
|
|
4084
|
-
output,
|
|
4085
|
-
parsedBody,
|
|
4086
|
-
errorCode
|
|
4087
|
-
});
|
|
4088
|
-
}
|
|
4089
|
-
}, "de_UpdateResolverCommandError");
|
|
4090
2296
|
var de_UpdateSourceApiAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4091
2297
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4092
|
-
return
|
|
2298
|
+
return de_CommandError(output, context);
|
|
4093
2299
|
}
|
|
4094
2300
|
const contents = (0, import_smithy_client.map)({
|
|
4095
2301
|
$metadata: deserializeMetadata(output)
|
|
@@ -4101,40 +2307,9 @@ var de_UpdateSourceApiAssociationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4101
2307
|
Object.assign(contents, doc);
|
|
4102
2308
|
return contents;
|
|
4103
2309
|
}, "de_UpdateSourceApiAssociationCommand");
|
|
4104
|
-
var de_UpdateSourceApiAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4105
|
-
const parsedOutput = {
|
|
4106
|
-
...output,
|
|
4107
|
-
body: await parseErrorBody(output.body, context)
|
|
4108
|
-
};
|
|
4109
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4110
|
-
switch (errorCode) {
|
|
4111
|
-
case "BadRequestException":
|
|
4112
|
-
case "com.amazonaws.appsync#BadRequestException":
|
|
4113
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4114
|
-
case "ConcurrentModificationException":
|
|
4115
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
4116
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4117
|
-
case "InternalFailureException":
|
|
4118
|
-
case "com.amazonaws.appsync#InternalFailureException":
|
|
4119
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
4120
|
-
case "NotFoundException":
|
|
4121
|
-
case "com.amazonaws.appsync#NotFoundException":
|
|
4122
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4123
|
-
case "UnauthorizedException":
|
|
4124
|
-
case "com.amazonaws.appsync#UnauthorizedException":
|
|
4125
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4126
|
-
default:
|
|
4127
|
-
const parsedBody = parsedOutput.body;
|
|
4128
|
-
return throwDefaultError({
|
|
4129
|
-
output,
|
|
4130
|
-
parsedBody,
|
|
4131
|
-
errorCode
|
|
4132
|
-
});
|
|
4133
|
-
}
|
|
4134
|
-
}, "de_UpdateSourceApiAssociationCommandError");
|
|
4135
2310
|
var de_UpdateTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4136
2311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4137
|
-
return
|
|
2312
|
+
return de_CommandError(output, context);
|
|
4138
2313
|
}
|
|
4139
2314
|
const contents = (0, import_smithy_client.map)({
|
|
4140
2315
|
$metadata: deserializeMetadata(output)
|
|
@@ -4146,28 +2321,46 @@ var de_UpdateTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4146
2321
|
Object.assign(contents, doc);
|
|
4147
2322
|
return contents;
|
|
4148
2323
|
}, "de_UpdateTypeCommand");
|
|
4149
|
-
var
|
|
2324
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4150
2325
|
const parsedOutput = {
|
|
4151
2326
|
...output,
|
|
4152
2327
|
body: await parseErrorBody(output.body, context)
|
|
4153
2328
|
};
|
|
4154
2329
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4155
2330
|
switch (errorCode) {
|
|
2331
|
+
case "AccessDeniedException":
|
|
2332
|
+
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2333
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4156
2334
|
case "BadRequestException":
|
|
4157
2335
|
case "com.amazonaws.appsync#BadRequestException":
|
|
4158
2336
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4159
|
-
case "ConcurrentModificationException":
|
|
4160
|
-
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
4161
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4162
2337
|
case "InternalFailureException":
|
|
4163
2338
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
4164
2339
|
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
4165
2340
|
case "NotFoundException":
|
|
4166
2341
|
case "com.amazonaws.appsync#NotFoundException":
|
|
4167
2342
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2343
|
+
case "ConcurrentModificationException":
|
|
2344
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2345
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2346
|
+
case "LimitExceededException":
|
|
2347
|
+
case "com.amazonaws.appsync#LimitExceededException":
|
|
2348
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4168
2349
|
case "UnauthorizedException":
|
|
4169
2350
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
4170
2351
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2352
|
+
case "ApiKeyLimitExceededException":
|
|
2353
|
+
case "com.amazonaws.appsync#ApiKeyLimitExceededException":
|
|
2354
|
+
throw await de_ApiKeyLimitExceededExceptionRes(parsedOutput, context);
|
|
2355
|
+
case "ApiKeyValidityOutOfBoundsException":
|
|
2356
|
+
case "com.amazonaws.appsync#ApiKeyValidityOutOfBoundsException":
|
|
2357
|
+
throw await de_ApiKeyValidityOutOfBoundsExceptionRes(parsedOutput, context);
|
|
2358
|
+
case "ApiLimitExceededException":
|
|
2359
|
+
case "com.amazonaws.appsync#ApiLimitExceededException":
|
|
2360
|
+
throw await de_ApiLimitExceededExceptionRes(parsedOutput, context);
|
|
2361
|
+
case "GraphQLSchemaException":
|
|
2362
|
+
case "com.amazonaws.appsync#GraphQLSchemaException":
|
|
2363
|
+
throw await de_GraphQLSchemaExceptionRes(parsedOutput, context);
|
|
4171
2364
|
default:
|
|
4172
2365
|
const parsedBody = parsedOutput.body;
|
|
4173
2366
|
return throwDefaultError({
|
|
@@ -4176,7 +2369,7 @@ var de_UpdateTypeCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4176
2369
|
errorCode
|
|
4177
2370
|
});
|
|
4178
2371
|
}
|
|
4179
|
-
}, "
|
|
2372
|
+
}, "de_CommandError");
|
|
4180
2373
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(AppSyncServiceException);
|
|
4181
2374
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4182
2375
|
const contents = (0, import_smithy_client.map)({});
|