@aws-sdk/client-apigatewayv2 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +120 -1883
- package/dist-es/protocols/Aws_restJson1.js +117 -1880
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1479,7 +1479,7 @@ var se_UpdateVpcLinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1479
1479
|
}, "se_UpdateVpcLinkCommand");
|
|
1480
1480
|
var de_CreateApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1481
1481
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1482
|
-
return
|
|
1482
|
+
return de_CommandError(output, context);
|
|
1483
1483
|
}
|
|
1484
1484
|
const contents = (0, import_smithy_client.map)({
|
|
1485
1485
|
$metadata: deserializeMetadata(output)
|
|
@@ -1506,37 +1506,9 @@ var de_CreateApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1506
1506
|
Object.assign(contents, doc);
|
|
1507
1507
|
return contents;
|
|
1508
1508
|
}, "de_CreateApiCommand");
|
|
1509
|
-
var de_CreateApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1510
|
-
const parsedOutput = {
|
|
1511
|
-
...output,
|
|
1512
|
-
body: await parseErrorBody(output.body, context)
|
|
1513
|
-
};
|
|
1514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1515
|
-
switch (errorCode) {
|
|
1516
|
-
case "BadRequestException":
|
|
1517
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1518
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "ConflictException":
|
|
1520
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1521
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "NotFoundException":
|
|
1523
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1524
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "TooManyRequestsException":
|
|
1526
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1527
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1528
|
-
default:
|
|
1529
|
-
const parsedBody = parsedOutput.body;
|
|
1530
|
-
return throwDefaultError({
|
|
1531
|
-
output,
|
|
1532
|
-
parsedBody,
|
|
1533
|
-
errorCode
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
}, "de_CreateApiCommandError");
|
|
1537
1509
|
var de_CreateApiMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1538
1510
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1539
|
-
return
|
|
1511
|
+
return de_CommandError(output, context);
|
|
1540
1512
|
}
|
|
1541
1513
|
const contents = (0, import_smithy_client.map)({
|
|
1542
1514
|
$metadata: deserializeMetadata(output)
|
|
@@ -1551,37 +1523,9 @@ var de_CreateApiMappingCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1551
1523
|
Object.assign(contents, doc);
|
|
1552
1524
|
return contents;
|
|
1553
1525
|
}, "de_CreateApiMappingCommand");
|
|
1554
|
-
var de_CreateApiMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1555
|
-
const parsedOutput = {
|
|
1556
|
-
...output,
|
|
1557
|
-
body: await parseErrorBody(output.body, context)
|
|
1558
|
-
};
|
|
1559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
|
-
switch (errorCode) {
|
|
1561
|
-
case "BadRequestException":
|
|
1562
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1563
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1564
|
-
case "ConflictException":
|
|
1565
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1566
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1567
|
-
case "NotFoundException":
|
|
1568
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1569
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "TooManyRequestsException":
|
|
1571
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1572
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1573
|
-
default:
|
|
1574
|
-
const parsedBody = parsedOutput.body;
|
|
1575
|
-
return throwDefaultError({
|
|
1576
|
-
output,
|
|
1577
|
-
parsedBody,
|
|
1578
|
-
errorCode
|
|
1579
|
-
});
|
|
1580
|
-
}
|
|
1581
|
-
}, "de_CreateApiMappingCommandError");
|
|
1582
1526
|
var de_CreateAuthorizerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1583
1527
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1584
|
-
return
|
|
1528
|
+
return de_CommandError(output, context);
|
|
1585
1529
|
}
|
|
1586
1530
|
const contents = (0, import_smithy_client.map)({
|
|
1587
1531
|
$metadata: deserializeMetadata(output)
|
|
@@ -1603,37 +1547,9 @@ var de_CreateAuthorizerCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1603
1547
|
Object.assign(contents, doc);
|
|
1604
1548
|
return contents;
|
|
1605
1549
|
}, "de_CreateAuthorizerCommand");
|
|
1606
|
-
var de_CreateAuthorizerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1607
|
-
const parsedOutput = {
|
|
1608
|
-
...output,
|
|
1609
|
-
body: await parseErrorBody(output.body, context)
|
|
1610
|
-
};
|
|
1611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
|
-
switch (errorCode) {
|
|
1613
|
-
case "BadRequestException":
|
|
1614
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1615
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1616
|
-
case "ConflictException":
|
|
1617
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1618
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1619
|
-
case "NotFoundException":
|
|
1620
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1621
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "TooManyRequestsException":
|
|
1623
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1624
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1625
|
-
default:
|
|
1626
|
-
const parsedBody = parsedOutput.body;
|
|
1627
|
-
return throwDefaultError({
|
|
1628
|
-
output,
|
|
1629
|
-
parsedBody,
|
|
1630
|
-
errorCode
|
|
1631
|
-
});
|
|
1632
|
-
}
|
|
1633
|
-
}, "de_CreateAuthorizerCommandError");
|
|
1634
1550
|
var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1635
1551
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1636
|
-
return
|
|
1552
|
+
return de_CommandError(output, context);
|
|
1637
1553
|
}
|
|
1638
1554
|
const contents = (0, import_smithy_client.map)({
|
|
1639
1555
|
$metadata: deserializeMetadata(output)
|
|
@@ -1650,37 +1566,9 @@ var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1650
1566
|
Object.assign(contents, doc);
|
|
1651
1567
|
return contents;
|
|
1652
1568
|
}, "de_CreateDeploymentCommand");
|
|
1653
|
-
var de_CreateDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1654
|
-
const parsedOutput = {
|
|
1655
|
-
...output,
|
|
1656
|
-
body: await parseErrorBody(output.body, context)
|
|
1657
|
-
};
|
|
1658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
|
-
switch (errorCode) {
|
|
1660
|
-
case "BadRequestException":
|
|
1661
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1662
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "ConflictException":
|
|
1664
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1665
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "NotFoundException":
|
|
1667
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1668
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "TooManyRequestsException":
|
|
1670
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1671
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1672
|
-
default:
|
|
1673
|
-
const parsedBody = parsedOutput.body;
|
|
1674
|
-
return throwDefaultError({
|
|
1675
|
-
output,
|
|
1676
|
-
parsedBody,
|
|
1677
|
-
errorCode
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
|
-
}, "de_CreateDeploymentCommandError");
|
|
1681
1569
|
var de_CreateDomainNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1682
1570
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1683
|
-
return
|
|
1571
|
+
return de_CommandError(output, context);
|
|
1684
1572
|
}
|
|
1685
1573
|
const contents = (0, import_smithy_client.map)({
|
|
1686
1574
|
$metadata: deserializeMetadata(output)
|
|
@@ -1696,40 +1584,9 @@ var de_CreateDomainNameCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1696
1584
|
Object.assign(contents, doc);
|
|
1697
1585
|
return contents;
|
|
1698
1586
|
}, "de_CreateDomainNameCommand");
|
|
1699
|
-
var de_CreateDomainNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1700
|
-
const parsedOutput = {
|
|
1701
|
-
...output,
|
|
1702
|
-
body: await parseErrorBody(output.body, context)
|
|
1703
|
-
};
|
|
1704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1705
|
-
switch (errorCode) {
|
|
1706
|
-
case "AccessDeniedException":
|
|
1707
|
-
case "com.amazonaws.apigatewayv2#AccessDeniedException":
|
|
1708
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "BadRequestException":
|
|
1710
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1711
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1712
|
-
case "ConflictException":
|
|
1713
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1714
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "NotFoundException":
|
|
1716
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1717
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1718
|
-
case "TooManyRequestsException":
|
|
1719
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1720
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1721
|
-
default:
|
|
1722
|
-
const parsedBody = parsedOutput.body;
|
|
1723
|
-
return throwDefaultError({
|
|
1724
|
-
output,
|
|
1725
|
-
parsedBody,
|
|
1726
|
-
errorCode
|
|
1727
|
-
});
|
|
1728
|
-
}
|
|
1729
|
-
}, "de_CreateDomainNameCommandError");
|
|
1730
1587
|
var de_CreateIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1731
1588
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1732
|
-
return
|
|
1589
|
+
return de_CommandError(output, context);
|
|
1733
1590
|
}
|
|
1734
1591
|
const contents = (0, import_smithy_client.map)({
|
|
1735
1592
|
$metadata: deserializeMetadata(output)
|
|
@@ -1760,37 +1617,9 @@ var de_CreateIntegrationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1760
1617
|
Object.assign(contents, doc);
|
|
1761
1618
|
return contents;
|
|
1762
1619
|
}, "de_CreateIntegrationCommand");
|
|
1763
|
-
var de_CreateIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1764
|
-
const parsedOutput = {
|
|
1765
|
-
...output,
|
|
1766
|
-
body: await parseErrorBody(output.body, context)
|
|
1767
|
-
};
|
|
1768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
|
-
switch (errorCode) {
|
|
1770
|
-
case "BadRequestException":
|
|
1771
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1772
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "ConflictException":
|
|
1774
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1775
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1776
|
-
case "NotFoundException":
|
|
1777
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1778
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "TooManyRequestsException":
|
|
1780
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1781
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1782
|
-
default:
|
|
1783
|
-
const parsedBody = parsedOutput.body;
|
|
1784
|
-
return throwDefaultError({
|
|
1785
|
-
output,
|
|
1786
|
-
parsedBody,
|
|
1787
|
-
errorCode
|
|
1788
|
-
});
|
|
1789
|
-
}
|
|
1790
|
-
}, "de_CreateIntegrationCommandError");
|
|
1791
1620
|
var de_CreateIntegrationResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1792
1621
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1793
|
-
return
|
|
1622
|
+
return de_CommandError(output, context);
|
|
1794
1623
|
}
|
|
1795
1624
|
const contents = (0, import_smithy_client.map)({
|
|
1796
1625
|
$metadata: deserializeMetadata(output)
|
|
@@ -1807,37 +1636,9 @@ var de_CreateIntegrationResponseCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1807
1636
|
Object.assign(contents, doc);
|
|
1808
1637
|
return contents;
|
|
1809
1638
|
}, "de_CreateIntegrationResponseCommand");
|
|
1810
|
-
var de_CreateIntegrationResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1811
|
-
const parsedOutput = {
|
|
1812
|
-
...output,
|
|
1813
|
-
body: await parseErrorBody(output.body, context)
|
|
1814
|
-
};
|
|
1815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
|
-
switch (errorCode) {
|
|
1817
|
-
case "BadRequestException":
|
|
1818
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1819
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "ConflictException":
|
|
1821
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1822
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "NotFoundException":
|
|
1824
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1825
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "TooManyRequestsException":
|
|
1827
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1828
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1829
|
-
default:
|
|
1830
|
-
const parsedBody = parsedOutput.body;
|
|
1831
|
-
return throwDefaultError({
|
|
1832
|
-
output,
|
|
1833
|
-
parsedBody,
|
|
1834
|
-
errorCode
|
|
1835
|
-
});
|
|
1836
|
-
}
|
|
1837
|
-
}, "de_CreateIntegrationResponseCommandError");
|
|
1838
1639
|
var de_CreateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1839
1640
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1840
|
-
return
|
|
1641
|
+
return de_CommandError(output, context);
|
|
1841
1642
|
}
|
|
1842
1643
|
const contents = (0, import_smithy_client.map)({
|
|
1843
1644
|
$metadata: deserializeMetadata(output)
|
|
@@ -1853,37 +1654,9 @@ var de_CreateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1853
1654
|
Object.assign(contents, doc);
|
|
1854
1655
|
return contents;
|
|
1855
1656
|
}, "de_CreateModelCommand");
|
|
1856
|
-
var de_CreateModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1857
|
-
const parsedOutput = {
|
|
1858
|
-
...output,
|
|
1859
|
-
body: await parseErrorBody(output.body, context)
|
|
1860
|
-
};
|
|
1861
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1862
|
-
switch (errorCode) {
|
|
1863
|
-
case "BadRequestException":
|
|
1864
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1865
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "ConflictException":
|
|
1867
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1868
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "NotFoundException":
|
|
1870
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1871
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "TooManyRequestsException":
|
|
1873
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1874
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1875
|
-
default:
|
|
1876
|
-
const parsedBody = parsedOutput.body;
|
|
1877
|
-
return throwDefaultError({
|
|
1878
|
-
output,
|
|
1879
|
-
parsedBody,
|
|
1880
|
-
errorCode
|
|
1881
|
-
});
|
|
1882
|
-
}
|
|
1883
|
-
}, "de_CreateModelCommandError");
|
|
1884
1657
|
var de_CreateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1885
1658
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1886
|
-
return
|
|
1659
|
+
return de_CommandError(output, context);
|
|
1887
1660
|
}
|
|
1888
1661
|
const contents = (0, import_smithy_client.map)({
|
|
1889
1662
|
$metadata: deserializeMetadata(output)
|
|
@@ -1907,37 +1680,9 @@ var de_CreateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1907
1680
|
Object.assign(contents, doc);
|
|
1908
1681
|
return contents;
|
|
1909
1682
|
}, "de_CreateRouteCommand");
|
|
1910
|
-
var de_CreateRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1911
|
-
const parsedOutput = {
|
|
1912
|
-
...output,
|
|
1913
|
-
body: await parseErrorBody(output.body, context)
|
|
1914
|
-
};
|
|
1915
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1916
|
-
switch (errorCode) {
|
|
1917
|
-
case "BadRequestException":
|
|
1918
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1919
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1920
|
-
case "ConflictException":
|
|
1921
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1922
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "NotFoundException":
|
|
1924
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1925
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1926
|
-
case "TooManyRequestsException":
|
|
1927
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1928
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1929
|
-
default:
|
|
1930
|
-
const parsedBody = parsedOutput.body;
|
|
1931
|
-
return throwDefaultError({
|
|
1932
|
-
output,
|
|
1933
|
-
parsedBody,
|
|
1934
|
-
errorCode
|
|
1935
|
-
});
|
|
1936
|
-
}
|
|
1937
|
-
}, "de_CreateRouteCommandError");
|
|
1938
1683
|
var de_CreateRouteResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1939
1684
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1940
|
-
return
|
|
1685
|
+
return de_CommandError(output, context);
|
|
1941
1686
|
}
|
|
1942
1687
|
const contents = (0, import_smithy_client.map)({
|
|
1943
1688
|
$metadata: deserializeMetadata(output)
|
|
@@ -1953,37 +1698,9 @@ var de_CreateRouteResponseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1953
1698
|
Object.assign(contents, doc);
|
|
1954
1699
|
return contents;
|
|
1955
1700
|
}, "de_CreateRouteResponseCommand");
|
|
1956
|
-
var de_CreateRouteResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1957
|
-
const parsedOutput = {
|
|
1958
|
-
...output,
|
|
1959
|
-
body: await parseErrorBody(output.body, context)
|
|
1960
|
-
};
|
|
1961
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1962
|
-
switch (errorCode) {
|
|
1963
|
-
case "BadRequestException":
|
|
1964
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1965
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1966
|
-
case "ConflictException":
|
|
1967
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1968
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "NotFoundException":
|
|
1970
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1971
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "TooManyRequestsException":
|
|
1973
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1974
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1975
|
-
default:
|
|
1976
|
-
const parsedBody = parsedOutput.body;
|
|
1977
|
-
return throwDefaultError({
|
|
1978
|
-
output,
|
|
1979
|
-
parsedBody,
|
|
1980
|
-
errorCode
|
|
1981
|
-
});
|
|
1982
|
-
}
|
|
1983
|
-
}, "de_CreateRouteResponseCommandError");
|
|
1984
1701
|
var de_CreateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1985
1702
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1986
|
-
return
|
|
1703
|
+
return de_CommandError(output, context);
|
|
1987
1704
|
}
|
|
1988
1705
|
const contents = (0, import_smithy_client.map)({
|
|
1989
1706
|
$metadata: deserializeMetadata(output)
|
|
@@ -2008,37 +1725,9 @@ var de_CreateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2008
1725
|
Object.assign(contents, doc);
|
|
2009
1726
|
return contents;
|
|
2010
1727
|
}, "de_CreateStageCommand");
|
|
2011
|
-
var de_CreateStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2012
|
-
const parsedOutput = {
|
|
2013
|
-
...output,
|
|
2014
|
-
body: await parseErrorBody(output.body, context)
|
|
2015
|
-
};
|
|
2016
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
|
-
switch (errorCode) {
|
|
2018
|
-
case "BadRequestException":
|
|
2019
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2020
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "ConflictException":
|
|
2022
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
2023
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2024
|
-
case "NotFoundException":
|
|
2025
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2026
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2027
|
-
case "TooManyRequestsException":
|
|
2028
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2029
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2030
|
-
default:
|
|
2031
|
-
const parsedBody = parsedOutput.body;
|
|
2032
|
-
return throwDefaultError({
|
|
2033
|
-
output,
|
|
2034
|
-
parsedBody,
|
|
2035
|
-
errorCode
|
|
2036
|
-
});
|
|
2037
|
-
}
|
|
2038
|
-
}, "de_CreateStageCommandError");
|
|
2039
1728
|
var de_CreateVpcLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2040
1729
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2041
|
-
return
|
|
1730
|
+
return de_CommandError(output, context);
|
|
2042
1731
|
}
|
|
2043
1732
|
const contents = (0, import_smithy_client.map)({
|
|
2044
1733
|
$metadata: deserializeMetadata(output)
|
|
@@ -2058,31 +1747,9 @@ var de_CreateVpcLinkCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2058
1747
|
Object.assign(contents, doc);
|
|
2059
1748
|
return contents;
|
|
2060
1749
|
}, "de_CreateVpcLinkCommand");
|
|
2061
|
-
var de_CreateVpcLinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2062
|
-
const parsedOutput = {
|
|
2063
|
-
...output,
|
|
2064
|
-
body: await parseErrorBody(output.body, context)
|
|
2065
|
-
};
|
|
2066
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2067
|
-
switch (errorCode) {
|
|
2068
|
-
case "BadRequestException":
|
|
2069
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2070
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "TooManyRequestsException":
|
|
2072
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2073
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2074
|
-
default:
|
|
2075
|
-
const parsedBody = parsedOutput.body;
|
|
2076
|
-
return throwDefaultError({
|
|
2077
|
-
output,
|
|
2078
|
-
parsedBody,
|
|
2079
|
-
errorCode
|
|
2080
|
-
});
|
|
2081
|
-
}
|
|
2082
|
-
}, "de_CreateVpcLinkCommandError");
|
|
2083
1750
|
var de_DeleteAccessLogSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2084
1751
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2085
|
-
return
|
|
1752
|
+
return de_CommandError(output, context);
|
|
2086
1753
|
}
|
|
2087
1754
|
const contents = (0, import_smithy_client.map)({
|
|
2088
1755
|
$metadata: deserializeMetadata(output)
|
|
@@ -2090,31 +1757,9 @@ var de_DeleteAccessLogSettingsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2090
1757
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2091
1758
|
return contents;
|
|
2092
1759
|
}, "de_DeleteAccessLogSettingsCommand");
|
|
2093
|
-
var de_DeleteAccessLogSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2094
|
-
const parsedOutput = {
|
|
2095
|
-
...output,
|
|
2096
|
-
body: await parseErrorBody(output.body, context)
|
|
2097
|
-
};
|
|
2098
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2099
|
-
switch (errorCode) {
|
|
2100
|
-
case "NotFoundException":
|
|
2101
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2102
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "TooManyRequestsException":
|
|
2104
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2105
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2106
|
-
default:
|
|
2107
|
-
const parsedBody = parsedOutput.body;
|
|
2108
|
-
return throwDefaultError({
|
|
2109
|
-
output,
|
|
2110
|
-
parsedBody,
|
|
2111
|
-
errorCode
|
|
2112
|
-
});
|
|
2113
|
-
}
|
|
2114
|
-
}, "de_DeleteAccessLogSettingsCommandError");
|
|
2115
1760
|
var de_DeleteApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2116
1761
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2117
|
-
return
|
|
1762
|
+
return de_CommandError(output, context);
|
|
2118
1763
|
}
|
|
2119
1764
|
const contents = (0, import_smithy_client.map)({
|
|
2120
1765
|
$metadata: deserializeMetadata(output)
|
|
@@ -2122,31 +1767,9 @@ var de_DeleteApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2122
1767
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2123
1768
|
return contents;
|
|
2124
1769
|
}, "de_DeleteApiCommand");
|
|
2125
|
-
var de_DeleteApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2126
|
-
const parsedOutput = {
|
|
2127
|
-
...output,
|
|
2128
|
-
body: await parseErrorBody(output.body, context)
|
|
2129
|
-
};
|
|
2130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2131
|
-
switch (errorCode) {
|
|
2132
|
-
case "NotFoundException":
|
|
2133
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2134
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2135
|
-
case "TooManyRequestsException":
|
|
2136
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2137
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2138
|
-
default:
|
|
2139
|
-
const parsedBody = parsedOutput.body;
|
|
2140
|
-
return throwDefaultError({
|
|
2141
|
-
output,
|
|
2142
|
-
parsedBody,
|
|
2143
|
-
errorCode
|
|
2144
|
-
});
|
|
2145
|
-
}
|
|
2146
|
-
}, "de_DeleteApiCommandError");
|
|
2147
1770
|
var de_DeleteApiMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2148
1771
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2149
|
-
return
|
|
1772
|
+
return de_CommandError(output, context);
|
|
2150
1773
|
}
|
|
2151
1774
|
const contents = (0, import_smithy_client.map)({
|
|
2152
1775
|
$metadata: deserializeMetadata(output)
|
|
@@ -2154,34 +1777,9 @@ var de_DeleteApiMappingCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2154
1777
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2155
1778
|
return contents;
|
|
2156
1779
|
}, "de_DeleteApiMappingCommand");
|
|
2157
|
-
var de_DeleteApiMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2158
|
-
const parsedOutput = {
|
|
2159
|
-
...output,
|
|
2160
|
-
body: await parseErrorBody(output.body, context)
|
|
2161
|
-
};
|
|
2162
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2163
|
-
switch (errorCode) {
|
|
2164
|
-
case "BadRequestException":
|
|
2165
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2166
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "NotFoundException":
|
|
2168
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2169
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2170
|
-
case "TooManyRequestsException":
|
|
2171
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2172
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2173
|
-
default:
|
|
2174
|
-
const parsedBody = parsedOutput.body;
|
|
2175
|
-
return throwDefaultError({
|
|
2176
|
-
output,
|
|
2177
|
-
parsedBody,
|
|
2178
|
-
errorCode
|
|
2179
|
-
});
|
|
2180
|
-
}
|
|
2181
|
-
}, "de_DeleteApiMappingCommandError");
|
|
2182
1780
|
var de_DeleteAuthorizerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2183
1781
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2184
|
-
return
|
|
1782
|
+
return de_CommandError(output, context);
|
|
2185
1783
|
}
|
|
2186
1784
|
const contents = (0, import_smithy_client.map)({
|
|
2187
1785
|
$metadata: deserializeMetadata(output)
|
|
@@ -2189,31 +1787,9 @@ var de_DeleteAuthorizerCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2189
1787
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2190
1788
|
return contents;
|
|
2191
1789
|
}, "de_DeleteAuthorizerCommand");
|
|
2192
|
-
var de_DeleteAuthorizerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2193
|
-
const parsedOutput = {
|
|
2194
|
-
...output,
|
|
2195
|
-
body: await parseErrorBody(output.body, context)
|
|
2196
|
-
};
|
|
2197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2198
|
-
switch (errorCode) {
|
|
2199
|
-
case "NotFoundException":
|
|
2200
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2201
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2202
|
-
case "TooManyRequestsException":
|
|
2203
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2204
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2205
|
-
default:
|
|
2206
|
-
const parsedBody = parsedOutput.body;
|
|
2207
|
-
return throwDefaultError({
|
|
2208
|
-
output,
|
|
2209
|
-
parsedBody,
|
|
2210
|
-
errorCode
|
|
2211
|
-
});
|
|
2212
|
-
}
|
|
2213
|
-
}, "de_DeleteAuthorizerCommandError");
|
|
2214
1790
|
var de_DeleteCorsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2215
1791
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2216
|
-
return
|
|
1792
|
+
return de_CommandError(output, context);
|
|
2217
1793
|
}
|
|
2218
1794
|
const contents = (0, import_smithy_client.map)({
|
|
2219
1795
|
$metadata: deserializeMetadata(output)
|
|
@@ -2221,31 +1797,9 @@ var de_DeleteCorsConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2221
1797
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2222
1798
|
return contents;
|
|
2223
1799
|
}, "de_DeleteCorsConfigurationCommand");
|
|
2224
|
-
var de_DeleteCorsConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2225
|
-
const parsedOutput = {
|
|
2226
|
-
...output,
|
|
2227
|
-
body: await parseErrorBody(output.body, context)
|
|
2228
|
-
};
|
|
2229
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2230
|
-
switch (errorCode) {
|
|
2231
|
-
case "NotFoundException":
|
|
2232
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2233
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2234
|
-
case "TooManyRequestsException":
|
|
2235
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2236
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2237
|
-
default:
|
|
2238
|
-
const parsedBody = parsedOutput.body;
|
|
2239
|
-
return throwDefaultError({
|
|
2240
|
-
output,
|
|
2241
|
-
parsedBody,
|
|
2242
|
-
errorCode
|
|
2243
|
-
});
|
|
2244
|
-
}
|
|
2245
|
-
}, "de_DeleteCorsConfigurationCommandError");
|
|
2246
1800
|
var de_DeleteDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2247
1801
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2248
|
-
return
|
|
1802
|
+
return de_CommandError(output, context);
|
|
2249
1803
|
}
|
|
2250
1804
|
const contents = (0, import_smithy_client.map)({
|
|
2251
1805
|
$metadata: deserializeMetadata(output)
|
|
@@ -2253,31 +1807,9 @@ var de_DeleteDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2253
1807
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2254
1808
|
return contents;
|
|
2255
1809
|
}, "de_DeleteDeploymentCommand");
|
|
2256
|
-
var de_DeleteDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2257
|
-
const parsedOutput = {
|
|
2258
|
-
...output,
|
|
2259
|
-
body: await parseErrorBody(output.body, context)
|
|
2260
|
-
};
|
|
2261
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2262
|
-
switch (errorCode) {
|
|
2263
|
-
case "NotFoundException":
|
|
2264
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2265
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2266
|
-
case "TooManyRequestsException":
|
|
2267
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2268
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2269
|
-
default:
|
|
2270
|
-
const parsedBody = parsedOutput.body;
|
|
2271
|
-
return throwDefaultError({
|
|
2272
|
-
output,
|
|
2273
|
-
parsedBody,
|
|
2274
|
-
errorCode
|
|
2275
|
-
});
|
|
2276
|
-
}
|
|
2277
|
-
}, "de_DeleteDeploymentCommandError");
|
|
2278
1810
|
var de_DeleteDomainNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2279
1811
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2280
|
-
return
|
|
1812
|
+
return de_CommandError(output, context);
|
|
2281
1813
|
}
|
|
2282
1814
|
const contents = (0, import_smithy_client.map)({
|
|
2283
1815
|
$metadata: deserializeMetadata(output)
|
|
@@ -2285,31 +1817,9 @@ var de_DeleteDomainNameCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2285
1817
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2286
1818
|
return contents;
|
|
2287
1819
|
}, "de_DeleteDomainNameCommand");
|
|
2288
|
-
var de_DeleteDomainNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2289
|
-
const parsedOutput = {
|
|
2290
|
-
...output,
|
|
2291
|
-
body: await parseErrorBody(output.body, context)
|
|
2292
|
-
};
|
|
2293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2294
|
-
switch (errorCode) {
|
|
2295
|
-
case "NotFoundException":
|
|
2296
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2297
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "TooManyRequestsException":
|
|
2299
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2300
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2301
|
-
default:
|
|
2302
|
-
const parsedBody = parsedOutput.body;
|
|
2303
|
-
return throwDefaultError({
|
|
2304
|
-
output,
|
|
2305
|
-
parsedBody,
|
|
2306
|
-
errorCode
|
|
2307
|
-
});
|
|
2308
|
-
}
|
|
2309
|
-
}, "de_DeleteDomainNameCommandError");
|
|
2310
1820
|
var de_DeleteIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2311
1821
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2312
|
-
return
|
|
1822
|
+
return de_CommandError(output, context);
|
|
2313
1823
|
}
|
|
2314
1824
|
const contents = (0, import_smithy_client.map)({
|
|
2315
1825
|
$metadata: deserializeMetadata(output)
|
|
@@ -2317,31 +1827,9 @@ var de_DeleteIntegrationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2317
1827
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2318
1828
|
return contents;
|
|
2319
1829
|
}, "de_DeleteIntegrationCommand");
|
|
2320
|
-
var de_DeleteIntegrationCommandError = /* @__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 "NotFoundException":
|
|
2328
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2329
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "TooManyRequestsException":
|
|
2331
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2332
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2333
|
-
default:
|
|
2334
|
-
const parsedBody = parsedOutput.body;
|
|
2335
|
-
return throwDefaultError({
|
|
2336
|
-
output,
|
|
2337
|
-
parsedBody,
|
|
2338
|
-
errorCode
|
|
2339
|
-
});
|
|
2340
|
-
}
|
|
2341
|
-
}, "de_DeleteIntegrationCommandError");
|
|
2342
1830
|
var de_DeleteIntegrationResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2343
1831
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2344
|
-
return
|
|
1832
|
+
return de_CommandError(output, context);
|
|
2345
1833
|
}
|
|
2346
1834
|
const contents = (0, import_smithy_client.map)({
|
|
2347
1835
|
$metadata: deserializeMetadata(output)
|
|
@@ -2349,31 +1837,9 @@ var de_DeleteIntegrationResponseCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2349
1837
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2350
1838
|
return contents;
|
|
2351
1839
|
}, "de_DeleteIntegrationResponseCommand");
|
|
2352
|
-
var de_DeleteIntegrationResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2353
|
-
const parsedOutput = {
|
|
2354
|
-
...output,
|
|
2355
|
-
body: await parseErrorBody(output.body, context)
|
|
2356
|
-
};
|
|
2357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2358
|
-
switch (errorCode) {
|
|
2359
|
-
case "NotFoundException":
|
|
2360
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2361
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "TooManyRequestsException":
|
|
2363
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2364
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2365
|
-
default:
|
|
2366
|
-
const parsedBody = parsedOutput.body;
|
|
2367
|
-
return throwDefaultError({
|
|
2368
|
-
output,
|
|
2369
|
-
parsedBody,
|
|
2370
|
-
errorCode
|
|
2371
|
-
});
|
|
2372
|
-
}
|
|
2373
|
-
}, "de_DeleteIntegrationResponseCommandError");
|
|
2374
1840
|
var de_DeleteModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2375
1841
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2376
|
-
return
|
|
1842
|
+
return de_CommandError(output, context);
|
|
2377
1843
|
}
|
|
2378
1844
|
const contents = (0, import_smithy_client.map)({
|
|
2379
1845
|
$metadata: deserializeMetadata(output)
|
|
@@ -2381,31 +1847,9 @@ var de_DeleteModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2381
1847
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2382
1848
|
return contents;
|
|
2383
1849
|
}, "de_DeleteModelCommand");
|
|
2384
|
-
var de_DeleteModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2385
|
-
const parsedOutput = {
|
|
2386
|
-
...output,
|
|
2387
|
-
body: await parseErrorBody(output.body, context)
|
|
2388
|
-
};
|
|
2389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2390
|
-
switch (errorCode) {
|
|
2391
|
-
case "NotFoundException":
|
|
2392
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2393
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "TooManyRequestsException":
|
|
2395
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2396
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2397
|
-
default:
|
|
2398
|
-
const parsedBody = parsedOutput.body;
|
|
2399
|
-
return throwDefaultError({
|
|
2400
|
-
output,
|
|
2401
|
-
parsedBody,
|
|
2402
|
-
errorCode
|
|
2403
|
-
});
|
|
2404
|
-
}
|
|
2405
|
-
}, "de_DeleteModelCommandError");
|
|
2406
1850
|
var de_DeleteRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2407
1851
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2408
|
-
return
|
|
1852
|
+
return de_CommandError(output, context);
|
|
2409
1853
|
}
|
|
2410
1854
|
const contents = (0, import_smithy_client.map)({
|
|
2411
1855
|
$metadata: deserializeMetadata(output)
|
|
@@ -2413,31 +1857,9 @@ var de_DeleteRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2413
1857
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2414
1858
|
return contents;
|
|
2415
1859
|
}, "de_DeleteRouteCommand");
|
|
2416
|
-
var de_DeleteRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2417
|
-
const parsedOutput = {
|
|
2418
|
-
...output,
|
|
2419
|
-
body: await parseErrorBody(output.body, context)
|
|
2420
|
-
};
|
|
2421
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2422
|
-
switch (errorCode) {
|
|
2423
|
-
case "NotFoundException":
|
|
2424
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2425
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2426
|
-
case "TooManyRequestsException":
|
|
2427
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2428
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2429
|
-
default:
|
|
2430
|
-
const parsedBody = parsedOutput.body;
|
|
2431
|
-
return throwDefaultError({
|
|
2432
|
-
output,
|
|
2433
|
-
parsedBody,
|
|
2434
|
-
errorCode
|
|
2435
|
-
});
|
|
2436
|
-
}
|
|
2437
|
-
}, "de_DeleteRouteCommandError");
|
|
2438
1860
|
var de_DeleteRouteRequestParameterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2439
1861
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2440
|
-
return
|
|
1862
|
+
return de_CommandError(output, context);
|
|
2441
1863
|
}
|
|
2442
1864
|
const contents = (0, import_smithy_client.map)({
|
|
2443
1865
|
$metadata: deserializeMetadata(output)
|
|
@@ -2445,31 +1867,9 @@ var de_DeleteRouteRequestParameterCommand = /* @__PURE__ */ __name(async (output
|
|
|
2445
1867
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2446
1868
|
return contents;
|
|
2447
1869
|
}, "de_DeleteRouteRequestParameterCommand");
|
|
2448
|
-
var de_DeleteRouteRequestParameterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2449
|
-
const parsedOutput = {
|
|
2450
|
-
...output,
|
|
2451
|
-
body: await parseErrorBody(output.body, context)
|
|
2452
|
-
};
|
|
2453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2454
|
-
switch (errorCode) {
|
|
2455
|
-
case "NotFoundException":
|
|
2456
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2457
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "TooManyRequestsException":
|
|
2459
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2460
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2461
|
-
default:
|
|
2462
|
-
const parsedBody = parsedOutput.body;
|
|
2463
|
-
return throwDefaultError({
|
|
2464
|
-
output,
|
|
2465
|
-
parsedBody,
|
|
2466
|
-
errorCode
|
|
2467
|
-
});
|
|
2468
|
-
}
|
|
2469
|
-
}, "de_DeleteRouteRequestParameterCommandError");
|
|
2470
1870
|
var de_DeleteRouteResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2471
1871
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2472
|
-
return
|
|
1872
|
+
return de_CommandError(output, context);
|
|
2473
1873
|
}
|
|
2474
1874
|
const contents = (0, import_smithy_client.map)({
|
|
2475
1875
|
$metadata: deserializeMetadata(output)
|
|
@@ -2477,31 +1877,9 @@ var de_DeleteRouteResponseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2477
1877
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2478
1878
|
return contents;
|
|
2479
1879
|
}, "de_DeleteRouteResponseCommand");
|
|
2480
|
-
var de_DeleteRouteResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2481
|
-
const parsedOutput = {
|
|
2482
|
-
...output,
|
|
2483
|
-
body: await parseErrorBody(output.body, context)
|
|
2484
|
-
};
|
|
2485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2486
|
-
switch (errorCode) {
|
|
2487
|
-
case "NotFoundException":
|
|
2488
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2489
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2490
|
-
case "TooManyRequestsException":
|
|
2491
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2492
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2493
|
-
default:
|
|
2494
|
-
const parsedBody = parsedOutput.body;
|
|
2495
|
-
return throwDefaultError({
|
|
2496
|
-
output,
|
|
2497
|
-
parsedBody,
|
|
2498
|
-
errorCode
|
|
2499
|
-
});
|
|
2500
|
-
}
|
|
2501
|
-
}, "de_DeleteRouteResponseCommandError");
|
|
2502
1880
|
var de_DeleteRouteSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2503
1881
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2504
|
-
return
|
|
1882
|
+
return de_CommandError(output, context);
|
|
2505
1883
|
}
|
|
2506
1884
|
const contents = (0, import_smithy_client.map)({
|
|
2507
1885
|
$metadata: deserializeMetadata(output)
|
|
@@ -2509,31 +1887,9 @@ var de_DeleteRouteSettingsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2509
1887
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2510
1888
|
return contents;
|
|
2511
1889
|
}, "de_DeleteRouteSettingsCommand");
|
|
2512
|
-
var de_DeleteRouteSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2513
|
-
const parsedOutput = {
|
|
2514
|
-
...output,
|
|
2515
|
-
body: await parseErrorBody(output.body, context)
|
|
2516
|
-
};
|
|
2517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2518
|
-
switch (errorCode) {
|
|
2519
|
-
case "NotFoundException":
|
|
2520
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2521
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2522
|
-
case "TooManyRequestsException":
|
|
2523
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2524
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2525
|
-
default:
|
|
2526
|
-
const parsedBody = parsedOutput.body;
|
|
2527
|
-
return throwDefaultError({
|
|
2528
|
-
output,
|
|
2529
|
-
parsedBody,
|
|
2530
|
-
errorCode
|
|
2531
|
-
});
|
|
2532
|
-
}
|
|
2533
|
-
}, "de_DeleteRouteSettingsCommandError");
|
|
2534
1890
|
var de_DeleteStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2535
1891
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2536
|
-
return
|
|
1892
|
+
return de_CommandError(output, context);
|
|
2537
1893
|
}
|
|
2538
1894
|
const contents = (0, import_smithy_client.map)({
|
|
2539
1895
|
$metadata: deserializeMetadata(output)
|
|
@@ -2541,31 +1897,9 @@ var de_DeleteStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2541
1897
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2542
1898
|
return contents;
|
|
2543
1899
|
}, "de_DeleteStageCommand");
|
|
2544
|
-
var de_DeleteStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2545
|
-
const parsedOutput = {
|
|
2546
|
-
...output,
|
|
2547
|
-
body: await parseErrorBody(output.body, context)
|
|
2548
|
-
};
|
|
2549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2550
|
-
switch (errorCode) {
|
|
2551
|
-
case "NotFoundException":
|
|
2552
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2553
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "TooManyRequestsException":
|
|
2555
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2556
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2557
|
-
default:
|
|
2558
|
-
const parsedBody = parsedOutput.body;
|
|
2559
|
-
return throwDefaultError({
|
|
2560
|
-
output,
|
|
2561
|
-
parsedBody,
|
|
2562
|
-
errorCode
|
|
2563
|
-
});
|
|
2564
|
-
}
|
|
2565
|
-
}, "de_DeleteStageCommandError");
|
|
2566
1900
|
var de_DeleteVpcLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2567
1901
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2568
|
-
return
|
|
1902
|
+
return de_CommandError(output, context);
|
|
2569
1903
|
}
|
|
2570
1904
|
const contents = (0, import_smithy_client.map)({
|
|
2571
1905
|
$metadata: deserializeMetadata(output)
|
|
@@ -2573,31 +1907,9 @@ var de_DeleteVpcLinkCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2573
1907
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2574
1908
|
return contents;
|
|
2575
1909
|
}, "de_DeleteVpcLinkCommand");
|
|
2576
|
-
var de_DeleteVpcLinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2577
|
-
const parsedOutput = {
|
|
2578
|
-
...output,
|
|
2579
|
-
body: await parseErrorBody(output.body, context)
|
|
2580
|
-
};
|
|
2581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2582
|
-
switch (errorCode) {
|
|
2583
|
-
case "NotFoundException":
|
|
2584
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2585
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2586
|
-
case "TooManyRequestsException":
|
|
2587
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2588
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2589
|
-
default:
|
|
2590
|
-
const parsedBody = parsedOutput.body;
|
|
2591
|
-
return throwDefaultError({
|
|
2592
|
-
output,
|
|
2593
|
-
parsedBody,
|
|
2594
|
-
errorCode
|
|
2595
|
-
});
|
|
2596
|
-
}
|
|
2597
|
-
}, "de_DeleteVpcLinkCommandError");
|
|
2598
1910
|
var de_ExportApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2599
1911
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2600
|
-
return
|
|
1912
|
+
return de_CommandError(output, context);
|
|
2601
1913
|
}
|
|
2602
1914
|
const contents = (0, import_smithy_client.map)({
|
|
2603
1915
|
$metadata: deserializeMetadata(output)
|
|
@@ -2606,34 +1918,9 @@ var de_ExportApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2606
1918
|
contents.body = data;
|
|
2607
1919
|
return contents;
|
|
2608
1920
|
}, "de_ExportApiCommand");
|
|
2609
|
-
var de_ExportApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2610
|
-
const parsedOutput = {
|
|
2611
|
-
...output,
|
|
2612
|
-
body: await parseErrorBody(output.body, context)
|
|
2613
|
-
};
|
|
2614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2615
|
-
switch (errorCode) {
|
|
2616
|
-
case "BadRequestException":
|
|
2617
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2618
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "NotFoundException":
|
|
2620
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2621
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "TooManyRequestsException":
|
|
2623
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2624
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2625
|
-
default:
|
|
2626
|
-
const parsedBody = parsedOutput.body;
|
|
2627
|
-
return throwDefaultError({
|
|
2628
|
-
output,
|
|
2629
|
-
parsedBody,
|
|
2630
|
-
errorCode
|
|
2631
|
-
});
|
|
2632
|
-
}
|
|
2633
|
-
}, "de_ExportApiCommandError");
|
|
2634
1921
|
var de_GetApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2635
1922
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2636
|
-
return
|
|
1923
|
+
return de_CommandError(output, context);
|
|
2637
1924
|
}
|
|
2638
1925
|
const contents = (0, import_smithy_client.map)({
|
|
2639
1926
|
$metadata: deserializeMetadata(output)
|
|
@@ -2660,31 +1947,9 @@ var de_GetApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2660
1947
|
Object.assign(contents, doc);
|
|
2661
1948
|
return contents;
|
|
2662
1949
|
}, "de_GetApiCommand");
|
|
2663
|
-
var de_GetApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2664
|
-
const parsedOutput = {
|
|
2665
|
-
...output,
|
|
2666
|
-
body: await parseErrorBody(output.body, context)
|
|
2667
|
-
};
|
|
2668
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2669
|
-
switch (errorCode) {
|
|
2670
|
-
case "NotFoundException":
|
|
2671
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2672
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2673
|
-
case "TooManyRequestsException":
|
|
2674
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2675
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2676
|
-
default:
|
|
2677
|
-
const parsedBody = parsedOutput.body;
|
|
2678
|
-
return throwDefaultError({
|
|
2679
|
-
output,
|
|
2680
|
-
parsedBody,
|
|
2681
|
-
errorCode
|
|
2682
|
-
});
|
|
2683
|
-
}
|
|
2684
|
-
}, "de_GetApiCommandError");
|
|
2685
1950
|
var de_GetApiMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2686
1951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2687
|
-
return
|
|
1952
|
+
return de_CommandError(output, context);
|
|
2688
1953
|
}
|
|
2689
1954
|
const contents = (0, import_smithy_client.map)({
|
|
2690
1955
|
$metadata: deserializeMetadata(output)
|
|
@@ -2699,34 +1964,9 @@ var de_GetApiMappingCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2699
1964
|
Object.assign(contents, doc);
|
|
2700
1965
|
return contents;
|
|
2701
1966
|
}, "de_GetApiMappingCommand");
|
|
2702
|
-
var de_GetApiMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2703
|
-
const parsedOutput = {
|
|
2704
|
-
...output,
|
|
2705
|
-
body: await parseErrorBody(output.body, context)
|
|
2706
|
-
};
|
|
2707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2708
|
-
switch (errorCode) {
|
|
2709
|
-
case "BadRequestException":
|
|
2710
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2711
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "NotFoundException":
|
|
2713
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2714
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "TooManyRequestsException":
|
|
2716
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2717
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2718
|
-
default:
|
|
2719
|
-
const parsedBody = parsedOutput.body;
|
|
2720
|
-
return throwDefaultError({
|
|
2721
|
-
output,
|
|
2722
|
-
parsedBody,
|
|
2723
|
-
errorCode
|
|
2724
|
-
});
|
|
2725
|
-
}
|
|
2726
|
-
}, "de_GetApiMappingCommandError");
|
|
2727
1967
|
var de_GetApiMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2728
1968
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2729
|
-
return
|
|
1969
|
+
return de_CommandError(output, context);
|
|
2730
1970
|
}
|
|
2731
1971
|
const contents = (0, import_smithy_client.map)({
|
|
2732
1972
|
$metadata: deserializeMetadata(output)
|
|
@@ -2739,34 +1979,9 @@ var de_GetApiMappingsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2739
1979
|
Object.assign(contents, doc);
|
|
2740
1980
|
return contents;
|
|
2741
1981
|
}, "de_GetApiMappingsCommand");
|
|
2742
|
-
var de_GetApiMappingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2743
|
-
const parsedOutput = {
|
|
2744
|
-
...output,
|
|
2745
|
-
body: await parseErrorBody(output.body, context)
|
|
2746
|
-
};
|
|
2747
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2748
|
-
switch (errorCode) {
|
|
2749
|
-
case "BadRequestException":
|
|
2750
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2751
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2752
|
-
case "NotFoundException":
|
|
2753
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2754
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2755
|
-
case "TooManyRequestsException":
|
|
2756
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2757
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2758
|
-
default:
|
|
2759
|
-
const parsedBody = parsedOutput.body;
|
|
2760
|
-
return throwDefaultError({
|
|
2761
|
-
output,
|
|
2762
|
-
parsedBody,
|
|
2763
|
-
errorCode
|
|
2764
|
-
});
|
|
2765
|
-
}
|
|
2766
|
-
}, "de_GetApiMappingsCommandError");
|
|
2767
1982
|
var de_GetApisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2768
1983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2769
|
-
return
|
|
1984
|
+
return de_CommandError(output, context);
|
|
2770
1985
|
}
|
|
2771
1986
|
const contents = (0, import_smithy_client.map)({
|
|
2772
1987
|
$metadata: deserializeMetadata(output)
|
|
@@ -2779,34 +1994,9 @@ var de_GetApisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2779
1994
|
Object.assign(contents, doc);
|
|
2780
1995
|
return contents;
|
|
2781
1996
|
}, "de_GetApisCommand");
|
|
2782
|
-
var de_GetApisCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2783
|
-
const parsedOutput = {
|
|
2784
|
-
...output,
|
|
2785
|
-
body: await parseErrorBody(output.body, context)
|
|
2786
|
-
};
|
|
2787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2788
|
-
switch (errorCode) {
|
|
2789
|
-
case "BadRequestException":
|
|
2790
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2791
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2792
|
-
case "NotFoundException":
|
|
2793
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2794
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2795
|
-
case "TooManyRequestsException":
|
|
2796
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2797
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2798
|
-
default:
|
|
2799
|
-
const parsedBody = parsedOutput.body;
|
|
2800
|
-
return throwDefaultError({
|
|
2801
|
-
output,
|
|
2802
|
-
parsedBody,
|
|
2803
|
-
errorCode
|
|
2804
|
-
});
|
|
2805
|
-
}
|
|
2806
|
-
}, "de_GetApisCommandError");
|
|
2807
1997
|
var de_GetAuthorizerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2808
1998
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2809
|
-
return
|
|
1999
|
+
return de_CommandError(output, context);
|
|
2810
2000
|
}
|
|
2811
2001
|
const contents = (0, import_smithy_client.map)({
|
|
2812
2002
|
$metadata: deserializeMetadata(output)
|
|
@@ -2828,31 +2018,9 @@ var de_GetAuthorizerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2828
2018
|
Object.assign(contents, doc);
|
|
2829
2019
|
return contents;
|
|
2830
2020
|
}, "de_GetAuthorizerCommand");
|
|
2831
|
-
var de_GetAuthorizerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2832
|
-
const parsedOutput = {
|
|
2833
|
-
...output,
|
|
2834
|
-
body: await parseErrorBody(output.body, context)
|
|
2835
|
-
};
|
|
2836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2837
|
-
switch (errorCode) {
|
|
2838
|
-
case "NotFoundException":
|
|
2839
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2840
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2841
|
-
case "TooManyRequestsException":
|
|
2842
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2843
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2844
|
-
default:
|
|
2845
|
-
const parsedBody = parsedOutput.body;
|
|
2846
|
-
return throwDefaultError({
|
|
2847
|
-
output,
|
|
2848
|
-
parsedBody,
|
|
2849
|
-
errorCode
|
|
2850
|
-
});
|
|
2851
|
-
}
|
|
2852
|
-
}, "de_GetAuthorizerCommandError");
|
|
2853
2021
|
var de_GetAuthorizersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2854
2022
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2855
|
-
return
|
|
2023
|
+
return de_CommandError(output, context);
|
|
2856
2024
|
}
|
|
2857
2025
|
const contents = (0, import_smithy_client.map)({
|
|
2858
2026
|
$metadata: deserializeMetadata(output)
|
|
@@ -2865,34 +2033,9 @@ var de_GetAuthorizersCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2865
2033
|
Object.assign(contents, doc);
|
|
2866
2034
|
return contents;
|
|
2867
2035
|
}, "de_GetAuthorizersCommand");
|
|
2868
|
-
var de_GetAuthorizersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2869
|
-
const parsedOutput = {
|
|
2870
|
-
...output,
|
|
2871
|
-
body: await parseErrorBody(output.body, context)
|
|
2872
|
-
};
|
|
2873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2874
|
-
switch (errorCode) {
|
|
2875
|
-
case "BadRequestException":
|
|
2876
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2877
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2878
|
-
case "NotFoundException":
|
|
2879
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2880
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2881
|
-
case "TooManyRequestsException":
|
|
2882
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2883
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2884
|
-
default:
|
|
2885
|
-
const parsedBody = parsedOutput.body;
|
|
2886
|
-
return throwDefaultError({
|
|
2887
|
-
output,
|
|
2888
|
-
parsedBody,
|
|
2889
|
-
errorCode
|
|
2890
|
-
});
|
|
2891
|
-
}
|
|
2892
|
-
}, "de_GetAuthorizersCommandError");
|
|
2893
2036
|
var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2894
2037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2895
|
-
return
|
|
2038
|
+
return de_CommandError(output, context);
|
|
2896
2039
|
}
|
|
2897
2040
|
const contents = (0, import_smithy_client.map)({
|
|
2898
2041
|
$metadata: deserializeMetadata(output)
|
|
@@ -2909,31 +2052,9 @@ var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2909
2052
|
Object.assign(contents, doc);
|
|
2910
2053
|
return contents;
|
|
2911
2054
|
}, "de_GetDeploymentCommand");
|
|
2912
|
-
var de_GetDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2913
|
-
const parsedOutput = {
|
|
2914
|
-
...output,
|
|
2915
|
-
body: await parseErrorBody(output.body, context)
|
|
2916
|
-
};
|
|
2917
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2918
|
-
switch (errorCode) {
|
|
2919
|
-
case "NotFoundException":
|
|
2920
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2921
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2922
|
-
case "TooManyRequestsException":
|
|
2923
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2924
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2925
|
-
default:
|
|
2926
|
-
const parsedBody = parsedOutput.body;
|
|
2927
|
-
return throwDefaultError({
|
|
2928
|
-
output,
|
|
2929
|
-
parsedBody,
|
|
2930
|
-
errorCode
|
|
2931
|
-
});
|
|
2932
|
-
}
|
|
2933
|
-
}, "de_GetDeploymentCommandError");
|
|
2934
2055
|
var de_GetDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2935
2056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2936
|
-
return
|
|
2057
|
+
return de_CommandError(output, context);
|
|
2937
2058
|
}
|
|
2938
2059
|
const contents = (0, import_smithy_client.map)({
|
|
2939
2060
|
$metadata: deserializeMetadata(output)
|
|
@@ -2946,34 +2067,9 @@ var de_GetDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2946
2067
|
Object.assign(contents, doc);
|
|
2947
2068
|
return contents;
|
|
2948
2069
|
}, "de_GetDeploymentsCommand");
|
|
2949
|
-
var de_GetDeploymentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2950
|
-
const parsedOutput = {
|
|
2951
|
-
...output,
|
|
2952
|
-
body: await parseErrorBody(output.body, context)
|
|
2953
|
-
};
|
|
2954
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2955
|
-
switch (errorCode) {
|
|
2956
|
-
case "BadRequestException":
|
|
2957
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2958
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2959
|
-
case "NotFoundException":
|
|
2960
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2961
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2962
|
-
case "TooManyRequestsException":
|
|
2963
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2964
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2965
|
-
default:
|
|
2966
|
-
const parsedBody = parsedOutput.body;
|
|
2967
|
-
return throwDefaultError({
|
|
2968
|
-
output,
|
|
2969
|
-
parsedBody,
|
|
2970
|
-
errorCode
|
|
2971
|
-
});
|
|
2972
|
-
}
|
|
2973
|
-
}, "de_GetDeploymentsCommandError");
|
|
2974
2070
|
var de_GetDomainNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2975
2071
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2976
|
-
return
|
|
2072
|
+
return de_CommandError(output, context);
|
|
2977
2073
|
}
|
|
2978
2074
|
const contents = (0, import_smithy_client.map)({
|
|
2979
2075
|
$metadata: deserializeMetadata(output)
|
|
@@ -2989,31 +2085,9 @@ var de_GetDomainNameCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2989
2085
|
Object.assign(contents, doc);
|
|
2990
2086
|
return contents;
|
|
2991
2087
|
}, "de_GetDomainNameCommand");
|
|
2992
|
-
var de_GetDomainNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2993
|
-
const parsedOutput = {
|
|
2994
|
-
...output,
|
|
2995
|
-
body: await parseErrorBody(output.body, context)
|
|
2996
|
-
};
|
|
2997
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2998
|
-
switch (errorCode) {
|
|
2999
|
-
case "NotFoundException":
|
|
3000
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3001
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3002
|
-
case "TooManyRequestsException":
|
|
3003
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3004
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3005
|
-
default:
|
|
3006
|
-
const parsedBody = parsedOutput.body;
|
|
3007
|
-
return throwDefaultError({
|
|
3008
|
-
output,
|
|
3009
|
-
parsedBody,
|
|
3010
|
-
errorCode
|
|
3011
|
-
});
|
|
3012
|
-
}
|
|
3013
|
-
}, "de_GetDomainNameCommandError");
|
|
3014
2088
|
var de_GetDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3015
2089
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3016
|
-
return
|
|
2090
|
+
return de_CommandError(output, context);
|
|
3017
2091
|
}
|
|
3018
2092
|
const contents = (0, import_smithy_client.map)({
|
|
3019
2093
|
$metadata: deserializeMetadata(output)
|
|
@@ -3026,34 +2100,9 @@ var de_GetDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3026
2100
|
Object.assign(contents, doc);
|
|
3027
2101
|
return contents;
|
|
3028
2102
|
}, "de_GetDomainNamesCommand");
|
|
3029
|
-
var de_GetDomainNamesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3030
|
-
const parsedOutput = {
|
|
3031
|
-
...output,
|
|
3032
|
-
body: await parseErrorBody(output.body, context)
|
|
3033
|
-
};
|
|
3034
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3035
|
-
switch (errorCode) {
|
|
3036
|
-
case "BadRequestException":
|
|
3037
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3038
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3039
|
-
case "NotFoundException":
|
|
3040
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3041
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3042
|
-
case "TooManyRequestsException":
|
|
3043
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3044
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3045
|
-
default:
|
|
3046
|
-
const parsedBody = parsedOutput.body;
|
|
3047
|
-
return throwDefaultError({
|
|
3048
|
-
output,
|
|
3049
|
-
parsedBody,
|
|
3050
|
-
errorCode
|
|
3051
|
-
});
|
|
3052
|
-
}
|
|
3053
|
-
}, "de_GetDomainNamesCommandError");
|
|
3054
2103
|
var de_GetIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3055
2104
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3056
|
-
return
|
|
2105
|
+
return de_CommandError(output, context);
|
|
3057
2106
|
}
|
|
3058
2107
|
const contents = (0, import_smithy_client.map)({
|
|
3059
2108
|
$metadata: deserializeMetadata(output)
|
|
@@ -3084,31 +2133,9 @@ var de_GetIntegrationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3084
2133
|
Object.assign(contents, doc);
|
|
3085
2134
|
return contents;
|
|
3086
2135
|
}, "de_GetIntegrationCommand");
|
|
3087
|
-
var de_GetIntegrationCommandError = /* @__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 "NotFoundException":
|
|
3095
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3096
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3097
|
-
case "TooManyRequestsException":
|
|
3098
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3099
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3100
|
-
default:
|
|
3101
|
-
const parsedBody = parsedOutput.body;
|
|
3102
|
-
return throwDefaultError({
|
|
3103
|
-
output,
|
|
3104
|
-
parsedBody,
|
|
3105
|
-
errorCode
|
|
3106
|
-
});
|
|
3107
|
-
}
|
|
3108
|
-
}, "de_GetIntegrationCommandError");
|
|
3109
2136
|
var de_GetIntegrationResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3110
2137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3111
|
-
return
|
|
2138
|
+
return de_CommandError(output, context);
|
|
3112
2139
|
}
|
|
3113
2140
|
const contents = (0, import_smithy_client.map)({
|
|
3114
2141
|
$metadata: deserializeMetadata(output)
|
|
@@ -3125,31 +2152,9 @@ var de_GetIntegrationResponseCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3125
2152
|
Object.assign(contents, doc);
|
|
3126
2153
|
return contents;
|
|
3127
2154
|
}, "de_GetIntegrationResponseCommand");
|
|
3128
|
-
var de_GetIntegrationResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3129
|
-
const parsedOutput = {
|
|
3130
|
-
...output,
|
|
3131
|
-
body: await parseErrorBody(output.body, context)
|
|
3132
|
-
};
|
|
3133
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3134
|
-
switch (errorCode) {
|
|
3135
|
-
case "NotFoundException":
|
|
3136
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3137
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3138
|
-
case "TooManyRequestsException":
|
|
3139
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3140
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3141
|
-
default:
|
|
3142
|
-
const parsedBody = parsedOutput.body;
|
|
3143
|
-
return throwDefaultError({
|
|
3144
|
-
output,
|
|
3145
|
-
parsedBody,
|
|
3146
|
-
errorCode
|
|
3147
|
-
});
|
|
3148
|
-
}
|
|
3149
|
-
}, "de_GetIntegrationResponseCommandError");
|
|
3150
2155
|
var de_GetIntegrationResponsesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3151
2156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3152
|
-
return
|
|
2157
|
+
return de_CommandError(output, context);
|
|
3153
2158
|
}
|
|
3154
2159
|
const contents = (0, import_smithy_client.map)({
|
|
3155
2160
|
$metadata: deserializeMetadata(output)
|
|
@@ -3162,34 +2167,9 @@ var de_GetIntegrationResponsesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3162
2167
|
Object.assign(contents, doc);
|
|
3163
2168
|
return contents;
|
|
3164
2169
|
}, "de_GetIntegrationResponsesCommand");
|
|
3165
|
-
var de_GetIntegrationResponsesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3166
|
-
const parsedOutput = {
|
|
3167
|
-
...output,
|
|
3168
|
-
body: await parseErrorBody(output.body, context)
|
|
3169
|
-
};
|
|
3170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3171
|
-
switch (errorCode) {
|
|
3172
|
-
case "BadRequestException":
|
|
3173
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3174
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3175
|
-
case "NotFoundException":
|
|
3176
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3177
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3178
|
-
case "TooManyRequestsException":
|
|
3179
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3180
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3181
|
-
default:
|
|
3182
|
-
const parsedBody = parsedOutput.body;
|
|
3183
|
-
return throwDefaultError({
|
|
3184
|
-
output,
|
|
3185
|
-
parsedBody,
|
|
3186
|
-
errorCode
|
|
3187
|
-
});
|
|
3188
|
-
}
|
|
3189
|
-
}, "de_GetIntegrationResponsesCommandError");
|
|
3190
2170
|
var de_GetIntegrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3191
2171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3192
|
-
return
|
|
2172
|
+
return de_CommandError(output, context);
|
|
3193
2173
|
}
|
|
3194
2174
|
const contents = (0, import_smithy_client.map)({
|
|
3195
2175
|
$metadata: deserializeMetadata(output)
|
|
@@ -3202,34 +2182,9 @@ var de_GetIntegrationsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3202
2182
|
Object.assign(contents, doc);
|
|
3203
2183
|
return contents;
|
|
3204
2184
|
}, "de_GetIntegrationsCommand");
|
|
3205
|
-
var de_GetIntegrationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3206
|
-
const parsedOutput = {
|
|
3207
|
-
...output,
|
|
3208
|
-
body: await parseErrorBody(output.body, context)
|
|
3209
|
-
};
|
|
3210
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3211
|
-
switch (errorCode) {
|
|
3212
|
-
case "BadRequestException":
|
|
3213
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3214
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3215
|
-
case "NotFoundException":
|
|
3216
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3217
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3218
|
-
case "TooManyRequestsException":
|
|
3219
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3220
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3221
|
-
default:
|
|
3222
|
-
const parsedBody = parsedOutput.body;
|
|
3223
|
-
return throwDefaultError({
|
|
3224
|
-
output,
|
|
3225
|
-
parsedBody,
|
|
3226
|
-
errorCode
|
|
3227
|
-
});
|
|
3228
|
-
}
|
|
3229
|
-
}, "de_GetIntegrationsCommandError");
|
|
3230
2185
|
var de_GetModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3231
2186
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3232
|
-
return
|
|
2187
|
+
return de_CommandError(output, context);
|
|
3233
2188
|
}
|
|
3234
2189
|
const contents = (0, import_smithy_client.map)({
|
|
3235
2190
|
$metadata: deserializeMetadata(output)
|
|
@@ -3245,31 +2200,9 @@ var de_GetModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3245
2200
|
Object.assign(contents, doc);
|
|
3246
2201
|
return contents;
|
|
3247
2202
|
}, "de_GetModelCommand");
|
|
3248
|
-
var de_GetModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3249
|
-
const parsedOutput = {
|
|
3250
|
-
...output,
|
|
3251
|
-
body: await parseErrorBody(output.body, context)
|
|
3252
|
-
};
|
|
3253
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3254
|
-
switch (errorCode) {
|
|
3255
|
-
case "NotFoundException":
|
|
3256
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3257
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3258
|
-
case "TooManyRequestsException":
|
|
3259
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3260
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3261
|
-
default:
|
|
3262
|
-
const parsedBody = parsedOutput.body;
|
|
3263
|
-
return throwDefaultError({
|
|
3264
|
-
output,
|
|
3265
|
-
parsedBody,
|
|
3266
|
-
errorCode
|
|
3267
|
-
});
|
|
3268
|
-
}
|
|
3269
|
-
}, "de_GetModelCommandError");
|
|
3270
2203
|
var de_GetModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3271
2204
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3272
|
-
return
|
|
2205
|
+
return de_CommandError(output, context);
|
|
3273
2206
|
}
|
|
3274
2207
|
const contents = (0, import_smithy_client.map)({
|
|
3275
2208
|
$metadata: deserializeMetadata(output)
|
|
@@ -3282,34 +2215,9 @@ var de_GetModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3282
2215
|
Object.assign(contents, doc);
|
|
3283
2216
|
return contents;
|
|
3284
2217
|
}, "de_GetModelsCommand");
|
|
3285
|
-
var de_GetModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3286
|
-
const parsedOutput = {
|
|
3287
|
-
...output,
|
|
3288
|
-
body: await parseErrorBody(output.body, context)
|
|
3289
|
-
};
|
|
3290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3291
|
-
switch (errorCode) {
|
|
3292
|
-
case "BadRequestException":
|
|
3293
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3294
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3295
|
-
case "NotFoundException":
|
|
3296
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3297
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3298
|
-
case "TooManyRequestsException":
|
|
3299
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3300
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3301
|
-
default:
|
|
3302
|
-
const parsedBody = parsedOutput.body;
|
|
3303
|
-
return throwDefaultError({
|
|
3304
|
-
output,
|
|
3305
|
-
parsedBody,
|
|
3306
|
-
errorCode
|
|
3307
|
-
});
|
|
3308
|
-
}
|
|
3309
|
-
}, "de_GetModelsCommandError");
|
|
3310
2218
|
var de_GetModelTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3311
2219
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3312
|
-
return
|
|
2220
|
+
return de_CommandError(output, context);
|
|
3313
2221
|
}
|
|
3314
2222
|
const contents = (0, import_smithy_client.map)({
|
|
3315
2223
|
$metadata: deserializeMetadata(output)
|
|
@@ -3321,31 +2229,9 @@ var de_GetModelTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3321
2229
|
Object.assign(contents, doc);
|
|
3322
2230
|
return contents;
|
|
3323
2231
|
}, "de_GetModelTemplateCommand");
|
|
3324
|
-
var de_GetModelTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3325
|
-
const parsedOutput = {
|
|
3326
|
-
...output,
|
|
3327
|
-
body: await parseErrorBody(output.body, context)
|
|
3328
|
-
};
|
|
3329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3330
|
-
switch (errorCode) {
|
|
3331
|
-
case "NotFoundException":
|
|
3332
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3333
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3334
|
-
case "TooManyRequestsException":
|
|
3335
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3336
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3337
|
-
default:
|
|
3338
|
-
const parsedBody = parsedOutput.body;
|
|
3339
|
-
return throwDefaultError({
|
|
3340
|
-
output,
|
|
3341
|
-
parsedBody,
|
|
3342
|
-
errorCode
|
|
3343
|
-
});
|
|
3344
|
-
}
|
|
3345
|
-
}, "de_GetModelTemplateCommandError");
|
|
3346
2232
|
var de_GetRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3347
2233
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3348
|
-
return
|
|
2234
|
+
return de_CommandError(output, context);
|
|
3349
2235
|
}
|
|
3350
2236
|
const contents = (0, import_smithy_client.map)({
|
|
3351
2237
|
$metadata: deserializeMetadata(output)
|
|
@@ -3369,31 +2255,9 @@ var de_GetRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3369
2255
|
Object.assign(contents, doc);
|
|
3370
2256
|
return contents;
|
|
3371
2257
|
}, "de_GetRouteCommand");
|
|
3372
|
-
var de_GetRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3373
|
-
const parsedOutput = {
|
|
3374
|
-
...output,
|
|
3375
|
-
body: await parseErrorBody(output.body, context)
|
|
3376
|
-
};
|
|
3377
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3378
|
-
switch (errorCode) {
|
|
3379
|
-
case "NotFoundException":
|
|
3380
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3381
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3382
|
-
case "TooManyRequestsException":
|
|
3383
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3384
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3385
|
-
default:
|
|
3386
|
-
const parsedBody = parsedOutput.body;
|
|
3387
|
-
return throwDefaultError({
|
|
3388
|
-
output,
|
|
3389
|
-
parsedBody,
|
|
3390
|
-
errorCode
|
|
3391
|
-
});
|
|
3392
|
-
}
|
|
3393
|
-
}, "de_GetRouteCommandError");
|
|
3394
2258
|
var de_GetRouteResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3395
2259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3396
|
-
return
|
|
2260
|
+
return de_CommandError(output, context);
|
|
3397
2261
|
}
|
|
3398
2262
|
const contents = (0, import_smithy_client.map)({
|
|
3399
2263
|
$metadata: deserializeMetadata(output)
|
|
@@ -3409,31 +2273,9 @@ var de_GetRouteResponseCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3409
2273
|
Object.assign(contents, doc);
|
|
3410
2274
|
return contents;
|
|
3411
2275
|
}, "de_GetRouteResponseCommand");
|
|
3412
|
-
var de_GetRouteResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3413
|
-
const parsedOutput = {
|
|
3414
|
-
...output,
|
|
3415
|
-
body: await parseErrorBody(output.body, context)
|
|
3416
|
-
};
|
|
3417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3418
|
-
switch (errorCode) {
|
|
3419
|
-
case "NotFoundException":
|
|
3420
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3421
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3422
|
-
case "TooManyRequestsException":
|
|
3423
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3424
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3425
|
-
default:
|
|
3426
|
-
const parsedBody = parsedOutput.body;
|
|
3427
|
-
return throwDefaultError({
|
|
3428
|
-
output,
|
|
3429
|
-
parsedBody,
|
|
3430
|
-
errorCode
|
|
3431
|
-
});
|
|
3432
|
-
}
|
|
3433
|
-
}, "de_GetRouteResponseCommandError");
|
|
3434
2276
|
var de_GetRouteResponsesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3435
2277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3436
|
-
return
|
|
2278
|
+
return de_CommandError(output, context);
|
|
3437
2279
|
}
|
|
3438
2280
|
const contents = (0, import_smithy_client.map)({
|
|
3439
2281
|
$metadata: deserializeMetadata(output)
|
|
@@ -3446,34 +2288,9 @@ var de_GetRouteResponsesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3446
2288
|
Object.assign(contents, doc);
|
|
3447
2289
|
return contents;
|
|
3448
2290
|
}, "de_GetRouteResponsesCommand");
|
|
3449
|
-
var de_GetRouteResponsesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3450
|
-
const parsedOutput = {
|
|
3451
|
-
...output,
|
|
3452
|
-
body: await parseErrorBody(output.body, context)
|
|
3453
|
-
};
|
|
3454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3455
|
-
switch (errorCode) {
|
|
3456
|
-
case "BadRequestException":
|
|
3457
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3458
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3459
|
-
case "NotFoundException":
|
|
3460
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3461
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3462
|
-
case "TooManyRequestsException":
|
|
3463
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3464
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3465
|
-
default:
|
|
3466
|
-
const parsedBody = parsedOutput.body;
|
|
3467
|
-
return throwDefaultError({
|
|
3468
|
-
output,
|
|
3469
|
-
parsedBody,
|
|
3470
|
-
errorCode
|
|
3471
|
-
});
|
|
3472
|
-
}
|
|
3473
|
-
}, "de_GetRouteResponsesCommandError");
|
|
3474
2291
|
var de_GetRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3475
2292
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3476
|
-
return
|
|
2293
|
+
return de_CommandError(output, context);
|
|
3477
2294
|
}
|
|
3478
2295
|
const contents = (0, import_smithy_client.map)({
|
|
3479
2296
|
$metadata: deserializeMetadata(output)
|
|
@@ -3486,34 +2303,9 @@ var de_GetRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3486
2303
|
Object.assign(contents, doc);
|
|
3487
2304
|
return contents;
|
|
3488
2305
|
}, "de_GetRoutesCommand");
|
|
3489
|
-
var de_GetRoutesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3490
|
-
const parsedOutput = {
|
|
3491
|
-
...output,
|
|
3492
|
-
body: await parseErrorBody(output.body, context)
|
|
3493
|
-
};
|
|
3494
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3495
|
-
switch (errorCode) {
|
|
3496
|
-
case "BadRequestException":
|
|
3497
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3498
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3499
|
-
case "NotFoundException":
|
|
3500
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3501
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3502
|
-
case "TooManyRequestsException":
|
|
3503
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3504
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3505
|
-
default:
|
|
3506
|
-
const parsedBody = parsedOutput.body;
|
|
3507
|
-
return throwDefaultError({
|
|
3508
|
-
output,
|
|
3509
|
-
parsedBody,
|
|
3510
|
-
errorCode
|
|
3511
|
-
});
|
|
3512
|
-
}
|
|
3513
|
-
}, "de_GetRoutesCommandError");
|
|
3514
2306
|
var de_GetStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3515
2307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3516
|
-
return
|
|
2308
|
+
return de_CommandError(output, context);
|
|
3517
2309
|
}
|
|
3518
2310
|
const contents = (0, import_smithy_client.map)({
|
|
3519
2311
|
$metadata: deserializeMetadata(output)
|
|
@@ -3538,113 +2330,38 @@ var de_GetStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3538
2330
|
Object.assign(contents, doc);
|
|
3539
2331
|
return contents;
|
|
3540
2332
|
}, "de_GetStageCommand");
|
|
3541
|
-
var de_GetStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3542
|
-
const parsedOutput = {
|
|
3543
|
-
...output,
|
|
3544
|
-
body: await parseErrorBody(output.body, context)
|
|
3545
|
-
};
|
|
3546
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3547
|
-
switch (errorCode) {
|
|
3548
|
-
case "NotFoundException":
|
|
3549
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3550
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3551
|
-
case "TooManyRequestsException":
|
|
3552
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3553
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3554
|
-
default:
|
|
3555
|
-
const parsedBody = parsedOutput.body;
|
|
3556
|
-
return throwDefaultError({
|
|
3557
|
-
output,
|
|
3558
|
-
parsedBody,
|
|
3559
|
-
errorCode
|
|
3560
|
-
});
|
|
3561
|
-
}
|
|
3562
|
-
}, "de_GetStageCommandError");
|
|
3563
2333
|
var de_GetStagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3564
2334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3565
|
-
return
|
|
3566
|
-
}
|
|
3567
|
-
const contents = (0, import_smithy_client.map)({
|
|
3568
|
-
$metadata: deserializeMetadata(output)
|
|
3569
|
-
});
|
|
3570
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3571
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3572
|
-
Items: [, (_) => de___listOfStage(_, context), `items`],
|
|
3573
|
-
NextToken: [, import_smithy_client.expectString, `nextToken`]
|
|
3574
|
-
});
|
|
3575
|
-
Object.assign(contents, doc);
|
|
3576
|
-
return contents;
|
|
3577
|
-
}, "de_GetStagesCommand");
|
|
3578
|
-
var de_GetStagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3579
|
-
const parsedOutput = {
|
|
3580
|
-
...output,
|
|
3581
|
-
body: await parseErrorBody(output.body, context)
|
|
3582
|
-
};
|
|
3583
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3584
|
-
switch (errorCode) {
|
|
3585
|
-
case "BadRequestException":
|
|
3586
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3587
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3588
|
-
case "NotFoundException":
|
|
3589
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3590
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3591
|
-
case "TooManyRequestsException":
|
|
3592
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3593
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3594
|
-
default:
|
|
3595
|
-
const parsedBody = parsedOutput.body;
|
|
3596
|
-
return throwDefaultError({
|
|
3597
|
-
output,
|
|
3598
|
-
parsedBody,
|
|
3599
|
-
errorCode
|
|
3600
|
-
});
|
|
3601
|
-
}
|
|
3602
|
-
}, "de_GetStagesCommandError");
|
|
3603
|
-
var de_GetTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3604
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3605
|
-
return de_GetTagsCommandError(output, context);
|
|
3606
|
-
}
|
|
3607
|
-
const contents = (0, import_smithy_client.map)({
|
|
3608
|
-
$metadata: deserializeMetadata(output)
|
|
3609
|
-
});
|
|
3610
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3611
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3612
|
-
Tags: [, import_smithy_client._json, `tags`]
|
|
3613
|
-
});
|
|
3614
|
-
Object.assign(contents, doc);
|
|
3615
|
-
return contents;
|
|
3616
|
-
}, "de_GetTagsCommand");
|
|
3617
|
-
var de_GetTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3618
|
-
const parsedOutput = {
|
|
3619
|
-
...output,
|
|
3620
|
-
body: await parseErrorBody(output.body, context)
|
|
3621
|
-
};
|
|
3622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3623
|
-
switch (errorCode) {
|
|
3624
|
-
case "BadRequestException":
|
|
3625
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3626
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3627
|
-
case "ConflictException":
|
|
3628
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3629
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3630
|
-
case "NotFoundException":
|
|
3631
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3632
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3633
|
-
case "TooManyRequestsException":
|
|
3634
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3635
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3636
|
-
default:
|
|
3637
|
-
const parsedBody = parsedOutput.body;
|
|
3638
|
-
return throwDefaultError({
|
|
3639
|
-
output,
|
|
3640
|
-
parsedBody,
|
|
3641
|
-
errorCode
|
|
3642
|
-
});
|
|
2335
|
+
return de_CommandError(output, context);
|
|
3643
2336
|
}
|
|
3644
|
-
|
|
2337
|
+
const contents = (0, import_smithy_client.map)({
|
|
2338
|
+
$metadata: deserializeMetadata(output)
|
|
2339
|
+
});
|
|
2340
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2341
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2342
|
+
Items: [, (_) => de___listOfStage(_, context), `items`],
|
|
2343
|
+
NextToken: [, import_smithy_client.expectString, `nextToken`]
|
|
2344
|
+
});
|
|
2345
|
+
Object.assign(contents, doc);
|
|
2346
|
+
return contents;
|
|
2347
|
+
}, "de_GetStagesCommand");
|
|
2348
|
+
var de_GetTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2349
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2350
|
+
return de_CommandError(output, context);
|
|
2351
|
+
}
|
|
2352
|
+
const contents = (0, import_smithy_client.map)({
|
|
2353
|
+
$metadata: deserializeMetadata(output)
|
|
2354
|
+
});
|
|
2355
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2356
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2357
|
+
Tags: [, import_smithy_client._json, `tags`]
|
|
2358
|
+
});
|
|
2359
|
+
Object.assign(contents, doc);
|
|
2360
|
+
return contents;
|
|
2361
|
+
}, "de_GetTagsCommand");
|
|
3645
2362
|
var de_GetVpcLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3646
2363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3647
|
-
return
|
|
2364
|
+
return de_CommandError(output, context);
|
|
3648
2365
|
}
|
|
3649
2366
|
const contents = (0, import_smithy_client.map)({
|
|
3650
2367
|
$metadata: deserializeMetadata(output)
|
|
@@ -3664,31 +2381,9 @@ var de_GetVpcLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3664
2381
|
Object.assign(contents, doc);
|
|
3665
2382
|
return contents;
|
|
3666
2383
|
}, "de_GetVpcLinkCommand");
|
|
3667
|
-
var de_GetVpcLinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3668
|
-
const parsedOutput = {
|
|
3669
|
-
...output,
|
|
3670
|
-
body: await parseErrorBody(output.body, context)
|
|
3671
|
-
};
|
|
3672
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3673
|
-
switch (errorCode) {
|
|
3674
|
-
case "NotFoundException":
|
|
3675
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3676
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3677
|
-
case "TooManyRequestsException":
|
|
3678
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3679
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3680
|
-
default:
|
|
3681
|
-
const parsedBody = parsedOutput.body;
|
|
3682
|
-
return throwDefaultError({
|
|
3683
|
-
output,
|
|
3684
|
-
parsedBody,
|
|
3685
|
-
errorCode
|
|
3686
|
-
});
|
|
3687
|
-
}
|
|
3688
|
-
}, "de_GetVpcLinkCommandError");
|
|
3689
2384
|
var de_GetVpcLinksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3690
2385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3691
|
-
return
|
|
2386
|
+
return de_CommandError(output, context);
|
|
3692
2387
|
}
|
|
3693
2388
|
const contents = (0, import_smithy_client.map)({
|
|
3694
2389
|
$metadata: deserializeMetadata(output)
|
|
@@ -3701,31 +2396,9 @@ var de_GetVpcLinksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3701
2396
|
Object.assign(contents, doc);
|
|
3702
2397
|
return contents;
|
|
3703
2398
|
}, "de_GetVpcLinksCommand");
|
|
3704
|
-
var de_GetVpcLinksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3705
|
-
const parsedOutput = {
|
|
3706
|
-
...output,
|
|
3707
|
-
body: await parseErrorBody(output.body, context)
|
|
3708
|
-
};
|
|
3709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3710
|
-
switch (errorCode) {
|
|
3711
|
-
case "BadRequestException":
|
|
3712
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3713
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3714
|
-
case "TooManyRequestsException":
|
|
3715
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3716
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3717
|
-
default:
|
|
3718
|
-
const parsedBody = parsedOutput.body;
|
|
3719
|
-
return throwDefaultError({
|
|
3720
|
-
output,
|
|
3721
|
-
parsedBody,
|
|
3722
|
-
errorCode
|
|
3723
|
-
});
|
|
3724
|
-
}
|
|
3725
|
-
}, "de_GetVpcLinksCommandError");
|
|
3726
2399
|
var de_ImportApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3727
2400
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3728
|
-
return
|
|
2401
|
+
return de_CommandError(output, context);
|
|
3729
2402
|
}
|
|
3730
2403
|
const contents = (0, import_smithy_client.map)({
|
|
3731
2404
|
$metadata: deserializeMetadata(output)
|
|
@@ -3752,37 +2425,9 @@ var de_ImportApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3752
2425
|
Object.assign(contents, doc);
|
|
3753
2426
|
return contents;
|
|
3754
2427
|
}, "de_ImportApiCommand");
|
|
3755
|
-
var de_ImportApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3756
|
-
const parsedOutput = {
|
|
3757
|
-
...output,
|
|
3758
|
-
body: await parseErrorBody(output.body, context)
|
|
3759
|
-
};
|
|
3760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3761
|
-
switch (errorCode) {
|
|
3762
|
-
case "BadRequestException":
|
|
3763
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3764
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3765
|
-
case "ConflictException":
|
|
3766
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3767
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3768
|
-
case "NotFoundException":
|
|
3769
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3770
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3771
|
-
case "TooManyRequestsException":
|
|
3772
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3773
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3774
|
-
default:
|
|
3775
|
-
const parsedBody = parsedOutput.body;
|
|
3776
|
-
return throwDefaultError({
|
|
3777
|
-
output,
|
|
3778
|
-
parsedBody,
|
|
3779
|
-
errorCode
|
|
3780
|
-
});
|
|
3781
|
-
}
|
|
3782
|
-
}, "de_ImportApiCommandError");
|
|
3783
2428
|
var de_ReimportApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3784
2429
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3785
|
-
return
|
|
2430
|
+
return de_CommandError(output, context);
|
|
3786
2431
|
}
|
|
3787
2432
|
const contents = (0, import_smithy_client.map)({
|
|
3788
2433
|
$metadata: deserializeMetadata(output)
|
|
@@ -3809,37 +2454,9 @@ var de_ReimportApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3809
2454
|
Object.assign(contents, doc);
|
|
3810
2455
|
return contents;
|
|
3811
2456
|
}, "de_ReimportApiCommand");
|
|
3812
|
-
var de_ReimportApiCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3813
|
-
const parsedOutput = {
|
|
3814
|
-
...output,
|
|
3815
|
-
body: await parseErrorBody(output.body, context)
|
|
3816
|
-
};
|
|
3817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3818
|
-
switch (errorCode) {
|
|
3819
|
-
case "BadRequestException":
|
|
3820
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3821
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3822
|
-
case "ConflictException":
|
|
3823
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3824
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3825
|
-
case "NotFoundException":
|
|
3826
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3827
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3828
|
-
case "TooManyRequestsException":
|
|
3829
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3830
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3831
|
-
default:
|
|
3832
|
-
const parsedBody = parsedOutput.body;
|
|
3833
|
-
return throwDefaultError({
|
|
3834
|
-
output,
|
|
3835
|
-
parsedBody,
|
|
3836
|
-
errorCode
|
|
3837
|
-
});
|
|
3838
|
-
}
|
|
3839
|
-
}, "de_ReimportApiCommandError");
|
|
3840
2457
|
var de_ResetAuthorizersCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3841
2458
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3842
|
-
return
|
|
2459
|
+
return de_CommandError(output, context);
|
|
3843
2460
|
}
|
|
3844
2461
|
const contents = (0, import_smithy_client.map)({
|
|
3845
2462
|
$metadata: deserializeMetadata(output)
|
|
@@ -3847,31 +2464,9 @@ var de_ResetAuthorizersCacheCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3847
2464
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3848
2465
|
return contents;
|
|
3849
2466
|
}, "de_ResetAuthorizersCacheCommand");
|
|
3850
|
-
var de_ResetAuthorizersCacheCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3851
|
-
const parsedOutput = {
|
|
3852
|
-
...output,
|
|
3853
|
-
body: await parseErrorBody(output.body, context)
|
|
3854
|
-
};
|
|
3855
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3856
|
-
switch (errorCode) {
|
|
3857
|
-
case "NotFoundException":
|
|
3858
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3859
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3860
|
-
case "TooManyRequestsException":
|
|
3861
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3862
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3863
|
-
default:
|
|
3864
|
-
const parsedBody = parsedOutput.body;
|
|
3865
|
-
return throwDefaultError({
|
|
3866
|
-
output,
|
|
3867
|
-
parsedBody,
|
|
3868
|
-
errorCode
|
|
3869
|
-
});
|
|
3870
|
-
}
|
|
3871
|
-
}, "de_ResetAuthorizersCacheCommandError");
|
|
3872
2467
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3873
2468
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3874
|
-
return
|
|
2469
|
+
return de_CommandError(output, context);
|
|
3875
2470
|
}
|
|
3876
2471
|
const contents = (0, import_smithy_client.map)({
|
|
3877
2472
|
$metadata: deserializeMetadata(output)
|
|
@@ -3879,37 +2474,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3879
2474
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3880
2475
|
return contents;
|
|
3881
2476
|
}, "de_TagResourceCommand");
|
|
3882
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3883
|
-
const parsedOutput = {
|
|
3884
|
-
...output,
|
|
3885
|
-
body: await parseErrorBody(output.body, context)
|
|
3886
|
-
};
|
|
3887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3888
|
-
switch (errorCode) {
|
|
3889
|
-
case "BadRequestException":
|
|
3890
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3891
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3892
|
-
case "ConflictException":
|
|
3893
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3894
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3895
|
-
case "NotFoundException":
|
|
3896
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3897
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3898
|
-
case "TooManyRequestsException":
|
|
3899
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3900
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3901
|
-
default:
|
|
3902
|
-
const parsedBody = parsedOutput.body;
|
|
3903
|
-
return throwDefaultError({
|
|
3904
|
-
output,
|
|
3905
|
-
parsedBody,
|
|
3906
|
-
errorCode
|
|
3907
|
-
});
|
|
3908
|
-
}
|
|
3909
|
-
}, "de_TagResourceCommandError");
|
|
3910
2477
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3911
2478
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3912
|
-
return
|
|
2479
|
+
return de_CommandError(output, context);
|
|
3913
2480
|
}
|
|
3914
2481
|
const contents = (0, import_smithy_client.map)({
|
|
3915
2482
|
$metadata: deserializeMetadata(output)
|
|
@@ -3917,37 +2484,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3917
2484
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3918
2485
|
return contents;
|
|
3919
2486
|
}, "de_UntagResourceCommand");
|
|
3920
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3921
|
-
const parsedOutput = {
|
|
3922
|
-
...output,
|
|
3923
|
-
body: await parseErrorBody(output.body, context)
|
|
3924
|
-
};
|
|
3925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3926
|
-
switch (errorCode) {
|
|
3927
|
-
case "BadRequestException":
|
|
3928
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3929
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3930
|
-
case "ConflictException":
|
|
3931
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3932
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3933
|
-
case "NotFoundException":
|
|
3934
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3935
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3936
|
-
case "TooManyRequestsException":
|
|
3937
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3938
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3939
|
-
default:
|
|
3940
|
-
const parsedBody = parsedOutput.body;
|
|
3941
|
-
return throwDefaultError({
|
|
3942
|
-
output,
|
|
3943
|
-
parsedBody,
|
|
3944
|
-
errorCode
|
|
3945
|
-
});
|
|
3946
|
-
}
|
|
3947
|
-
}, "de_UntagResourceCommandError");
|
|
3948
2487
|
var de_UpdateApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3949
2488
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3950
|
-
return
|
|
2489
|
+
return de_CommandError(output, context);
|
|
3951
2490
|
}
|
|
3952
2491
|
const contents = (0, import_smithy_client.map)({
|
|
3953
2492
|
$metadata: deserializeMetadata(output)
|
|
@@ -3973,83 +2512,27 @@ var de_UpdateApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3973
2512
|
});
|
|
3974
2513
|
Object.assign(contents, doc);
|
|
3975
2514
|
return contents;
|
|
3976
|
-
}, "de_UpdateApiCommand");
|
|
3977
|
-
var
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
body: await parseErrorBody(output.body, context)
|
|
3981
|
-
};
|
|
3982
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3983
|
-
switch (errorCode) {
|
|
3984
|
-
case "BadRequestException":
|
|
3985
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3986
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3987
|
-
case "ConflictException":
|
|
3988
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3989
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3990
|
-
case "NotFoundException":
|
|
3991
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3992
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3993
|
-
case "TooManyRequestsException":
|
|
3994
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3995
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3996
|
-
default:
|
|
3997
|
-
const parsedBody = parsedOutput.body;
|
|
3998
|
-
return throwDefaultError({
|
|
3999
|
-
output,
|
|
4000
|
-
parsedBody,
|
|
4001
|
-
errorCode
|
|
4002
|
-
});
|
|
4003
|
-
}
|
|
4004
|
-
}, "de_UpdateApiCommandError");
|
|
4005
|
-
var de_UpdateApiMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4006
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4007
|
-
return de_UpdateApiMappingCommandError(output, context);
|
|
4008
|
-
}
|
|
4009
|
-
const contents = (0, import_smithy_client.map)({
|
|
4010
|
-
$metadata: deserializeMetadata(output)
|
|
4011
|
-
});
|
|
4012
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
4013
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
4014
|
-
ApiId: [, import_smithy_client.expectString, `apiId`],
|
|
4015
|
-
ApiMappingId: [, import_smithy_client.expectString, `apiMappingId`],
|
|
4016
|
-
ApiMappingKey: [, import_smithy_client.expectString, `apiMappingKey`],
|
|
4017
|
-
Stage: [, import_smithy_client.expectString, `stage`]
|
|
4018
|
-
});
|
|
4019
|
-
Object.assign(contents, doc);
|
|
4020
|
-
return contents;
|
|
4021
|
-
}, "de_UpdateApiMappingCommand");
|
|
4022
|
-
var de_UpdateApiMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4023
|
-
const parsedOutput = {
|
|
4024
|
-
...output,
|
|
4025
|
-
body: await parseErrorBody(output.body, context)
|
|
4026
|
-
};
|
|
4027
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4028
|
-
switch (errorCode) {
|
|
4029
|
-
case "BadRequestException":
|
|
4030
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4031
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4032
|
-
case "ConflictException":
|
|
4033
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4034
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4035
|
-
case "NotFoundException":
|
|
4036
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4037
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4038
|
-
case "TooManyRequestsException":
|
|
4039
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4040
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4041
|
-
default:
|
|
4042
|
-
const parsedBody = parsedOutput.body;
|
|
4043
|
-
return throwDefaultError({
|
|
4044
|
-
output,
|
|
4045
|
-
parsedBody,
|
|
4046
|
-
errorCode
|
|
4047
|
-
});
|
|
2515
|
+
}, "de_UpdateApiCommand");
|
|
2516
|
+
var de_UpdateApiMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2517
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2518
|
+
return de_CommandError(output, context);
|
|
4048
2519
|
}
|
|
4049
|
-
|
|
2520
|
+
const contents = (0, import_smithy_client.map)({
|
|
2521
|
+
$metadata: deserializeMetadata(output)
|
|
2522
|
+
});
|
|
2523
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2524
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2525
|
+
ApiId: [, import_smithy_client.expectString, `apiId`],
|
|
2526
|
+
ApiMappingId: [, import_smithy_client.expectString, `apiMappingId`],
|
|
2527
|
+
ApiMappingKey: [, import_smithy_client.expectString, `apiMappingKey`],
|
|
2528
|
+
Stage: [, import_smithy_client.expectString, `stage`]
|
|
2529
|
+
});
|
|
2530
|
+
Object.assign(contents, doc);
|
|
2531
|
+
return contents;
|
|
2532
|
+
}, "de_UpdateApiMappingCommand");
|
|
4050
2533
|
var de_UpdateAuthorizerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4051
2534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4052
|
-
return
|
|
2535
|
+
return de_CommandError(output, context);
|
|
4053
2536
|
}
|
|
4054
2537
|
const contents = (0, import_smithy_client.map)({
|
|
4055
2538
|
$metadata: deserializeMetadata(output)
|
|
@@ -4071,37 +2554,9 @@ var de_UpdateAuthorizerCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4071
2554
|
Object.assign(contents, doc);
|
|
4072
2555
|
return contents;
|
|
4073
2556
|
}, "de_UpdateAuthorizerCommand");
|
|
4074
|
-
var de_UpdateAuthorizerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4075
|
-
const parsedOutput = {
|
|
4076
|
-
...output,
|
|
4077
|
-
body: await parseErrorBody(output.body, context)
|
|
4078
|
-
};
|
|
4079
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4080
|
-
switch (errorCode) {
|
|
4081
|
-
case "BadRequestException":
|
|
4082
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4083
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4084
|
-
case "ConflictException":
|
|
4085
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4086
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4087
|
-
case "NotFoundException":
|
|
4088
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4089
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4090
|
-
case "TooManyRequestsException":
|
|
4091
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4092
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4093
|
-
default:
|
|
4094
|
-
const parsedBody = parsedOutput.body;
|
|
4095
|
-
return throwDefaultError({
|
|
4096
|
-
output,
|
|
4097
|
-
parsedBody,
|
|
4098
|
-
errorCode
|
|
4099
|
-
});
|
|
4100
|
-
}
|
|
4101
|
-
}, "de_UpdateAuthorizerCommandError");
|
|
4102
2557
|
var de_UpdateDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4103
2558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4104
|
-
return
|
|
2559
|
+
return de_CommandError(output, context);
|
|
4105
2560
|
}
|
|
4106
2561
|
const contents = (0, import_smithy_client.map)({
|
|
4107
2562
|
$metadata: deserializeMetadata(output)
|
|
@@ -4118,37 +2573,9 @@ var de_UpdateDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4118
2573
|
Object.assign(contents, doc);
|
|
4119
2574
|
return contents;
|
|
4120
2575
|
}, "de_UpdateDeploymentCommand");
|
|
4121
|
-
var de_UpdateDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4122
|
-
const parsedOutput = {
|
|
4123
|
-
...output,
|
|
4124
|
-
body: await parseErrorBody(output.body, context)
|
|
4125
|
-
};
|
|
4126
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4127
|
-
switch (errorCode) {
|
|
4128
|
-
case "BadRequestException":
|
|
4129
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4130
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4131
|
-
case "ConflictException":
|
|
4132
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4133
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4134
|
-
case "NotFoundException":
|
|
4135
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4136
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4137
|
-
case "TooManyRequestsException":
|
|
4138
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4139
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4140
|
-
default:
|
|
4141
|
-
const parsedBody = parsedOutput.body;
|
|
4142
|
-
return throwDefaultError({
|
|
4143
|
-
output,
|
|
4144
|
-
parsedBody,
|
|
4145
|
-
errorCode
|
|
4146
|
-
});
|
|
4147
|
-
}
|
|
4148
|
-
}, "de_UpdateDeploymentCommandError");
|
|
4149
2576
|
var de_UpdateDomainNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4150
2577
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4151
|
-
return
|
|
2578
|
+
return de_CommandError(output, context);
|
|
4152
2579
|
}
|
|
4153
2580
|
const contents = (0, import_smithy_client.map)({
|
|
4154
2581
|
$metadata: deserializeMetadata(output)
|
|
@@ -4164,37 +2591,9 @@ var de_UpdateDomainNameCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4164
2591
|
Object.assign(contents, doc);
|
|
4165
2592
|
return contents;
|
|
4166
2593
|
}, "de_UpdateDomainNameCommand");
|
|
4167
|
-
var de_UpdateDomainNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4168
|
-
const parsedOutput = {
|
|
4169
|
-
...output,
|
|
4170
|
-
body: await parseErrorBody(output.body, context)
|
|
4171
|
-
};
|
|
4172
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4173
|
-
switch (errorCode) {
|
|
4174
|
-
case "BadRequestException":
|
|
4175
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4176
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4177
|
-
case "ConflictException":
|
|
4178
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4179
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4180
|
-
case "NotFoundException":
|
|
4181
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4182
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4183
|
-
case "TooManyRequestsException":
|
|
4184
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4185
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4186
|
-
default:
|
|
4187
|
-
const parsedBody = parsedOutput.body;
|
|
4188
|
-
return throwDefaultError({
|
|
4189
|
-
output,
|
|
4190
|
-
parsedBody,
|
|
4191
|
-
errorCode
|
|
4192
|
-
});
|
|
4193
|
-
}
|
|
4194
|
-
}, "de_UpdateDomainNameCommandError");
|
|
4195
2594
|
var de_UpdateIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4196
2595
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4197
|
-
return
|
|
2596
|
+
return de_CommandError(output, context);
|
|
4198
2597
|
}
|
|
4199
2598
|
const contents = (0, import_smithy_client.map)({
|
|
4200
2599
|
$metadata: deserializeMetadata(output)
|
|
@@ -4225,37 +2624,9 @@ var de_UpdateIntegrationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4225
2624
|
Object.assign(contents, doc);
|
|
4226
2625
|
return contents;
|
|
4227
2626
|
}, "de_UpdateIntegrationCommand");
|
|
4228
|
-
var de_UpdateIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4229
|
-
const parsedOutput = {
|
|
4230
|
-
...output,
|
|
4231
|
-
body: await parseErrorBody(output.body, context)
|
|
4232
|
-
};
|
|
4233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4234
|
-
switch (errorCode) {
|
|
4235
|
-
case "BadRequestException":
|
|
4236
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4237
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4238
|
-
case "ConflictException":
|
|
4239
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4240
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4241
|
-
case "NotFoundException":
|
|
4242
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4243
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4244
|
-
case "TooManyRequestsException":
|
|
4245
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4246
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4247
|
-
default:
|
|
4248
|
-
const parsedBody = parsedOutput.body;
|
|
4249
|
-
return throwDefaultError({
|
|
4250
|
-
output,
|
|
4251
|
-
parsedBody,
|
|
4252
|
-
errorCode
|
|
4253
|
-
});
|
|
4254
|
-
}
|
|
4255
|
-
}, "de_UpdateIntegrationCommandError");
|
|
4256
2627
|
var de_UpdateIntegrationResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4257
2628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4258
|
-
return
|
|
2629
|
+
return de_CommandError(output, context);
|
|
4259
2630
|
}
|
|
4260
2631
|
const contents = (0, import_smithy_client.map)({
|
|
4261
2632
|
$metadata: deserializeMetadata(output)
|
|
@@ -4272,37 +2643,9 @@ var de_UpdateIntegrationResponseCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4272
2643
|
Object.assign(contents, doc);
|
|
4273
2644
|
return contents;
|
|
4274
2645
|
}, "de_UpdateIntegrationResponseCommand");
|
|
4275
|
-
var de_UpdateIntegrationResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4276
|
-
const parsedOutput = {
|
|
4277
|
-
...output,
|
|
4278
|
-
body: await parseErrorBody(output.body, context)
|
|
4279
|
-
};
|
|
4280
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4281
|
-
switch (errorCode) {
|
|
4282
|
-
case "BadRequestException":
|
|
4283
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4284
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4285
|
-
case "ConflictException":
|
|
4286
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4287
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4288
|
-
case "NotFoundException":
|
|
4289
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4290
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4291
|
-
case "TooManyRequestsException":
|
|
4292
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4293
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4294
|
-
default:
|
|
4295
|
-
const parsedBody = parsedOutput.body;
|
|
4296
|
-
return throwDefaultError({
|
|
4297
|
-
output,
|
|
4298
|
-
parsedBody,
|
|
4299
|
-
errorCode
|
|
4300
|
-
});
|
|
4301
|
-
}
|
|
4302
|
-
}, "de_UpdateIntegrationResponseCommandError");
|
|
4303
2646
|
var de_UpdateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4304
2647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4305
|
-
return
|
|
2648
|
+
return de_CommandError(output, context);
|
|
4306
2649
|
}
|
|
4307
2650
|
const contents = (0, import_smithy_client.map)({
|
|
4308
2651
|
$metadata: deserializeMetadata(output)
|
|
@@ -4318,37 +2661,9 @@ var de_UpdateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4318
2661
|
Object.assign(contents, doc);
|
|
4319
2662
|
return contents;
|
|
4320
2663
|
}, "de_UpdateModelCommand");
|
|
4321
|
-
var de_UpdateModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4322
|
-
const parsedOutput = {
|
|
4323
|
-
...output,
|
|
4324
|
-
body: await parseErrorBody(output.body, context)
|
|
4325
|
-
};
|
|
4326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4327
|
-
switch (errorCode) {
|
|
4328
|
-
case "BadRequestException":
|
|
4329
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4330
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4331
|
-
case "ConflictException":
|
|
4332
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4333
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4334
|
-
case "NotFoundException":
|
|
4335
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4336
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4337
|
-
case "TooManyRequestsException":
|
|
4338
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4339
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4340
|
-
default:
|
|
4341
|
-
const parsedBody = parsedOutput.body;
|
|
4342
|
-
return throwDefaultError({
|
|
4343
|
-
output,
|
|
4344
|
-
parsedBody,
|
|
4345
|
-
errorCode
|
|
4346
|
-
});
|
|
4347
|
-
}
|
|
4348
|
-
}, "de_UpdateModelCommandError");
|
|
4349
2664
|
var de_UpdateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4350
2665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4351
|
-
return
|
|
2666
|
+
return de_CommandError(output, context);
|
|
4352
2667
|
}
|
|
4353
2668
|
const contents = (0, import_smithy_client.map)({
|
|
4354
2669
|
$metadata: deserializeMetadata(output)
|
|
@@ -4372,37 +2687,9 @@ var de_UpdateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4372
2687
|
Object.assign(contents, doc);
|
|
4373
2688
|
return contents;
|
|
4374
2689
|
}, "de_UpdateRouteCommand");
|
|
4375
|
-
var de_UpdateRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4376
|
-
const parsedOutput = {
|
|
4377
|
-
...output,
|
|
4378
|
-
body: await parseErrorBody(output.body, context)
|
|
4379
|
-
};
|
|
4380
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4381
|
-
switch (errorCode) {
|
|
4382
|
-
case "BadRequestException":
|
|
4383
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4384
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4385
|
-
case "ConflictException":
|
|
4386
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4387
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4388
|
-
case "NotFoundException":
|
|
4389
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4390
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4391
|
-
case "TooManyRequestsException":
|
|
4392
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4393
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4394
|
-
default:
|
|
4395
|
-
const parsedBody = parsedOutput.body;
|
|
4396
|
-
return throwDefaultError({
|
|
4397
|
-
output,
|
|
4398
|
-
parsedBody,
|
|
4399
|
-
errorCode
|
|
4400
|
-
});
|
|
4401
|
-
}
|
|
4402
|
-
}, "de_UpdateRouteCommandError");
|
|
4403
2690
|
var de_UpdateRouteResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4404
2691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4405
|
-
return
|
|
2692
|
+
return de_CommandError(output, context);
|
|
4406
2693
|
}
|
|
4407
2694
|
const contents = (0, import_smithy_client.map)({
|
|
4408
2695
|
$metadata: deserializeMetadata(output)
|
|
@@ -4418,37 +2705,9 @@ var de_UpdateRouteResponseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4418
2705
|
Object.assign(contents, doc);
|
|
4419
2706
|
return contents;
|
|
4420
2707
|
}, "de_UpdateRouteResponseCommand");
|
|
4421
|
-
var de_UpdateRouteResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4422
|
-
const parsedOutput = {
|
|
4423
|
-
...output,
|
|
4424
|
-
body: await parseErrorBody(output.body, context)
|
|
4425
|
-
};
|
|
4426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4427
|
-
switch (errorCode) {
|
|
4428
|
-
case "BadRequestException":
|
|
4429
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4430
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4431
|
-
case "ConflictException":
|
|
4432
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4433
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4434
|
-
case "NotFoundException":
|
|
4435
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4436
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4437
|
-
case "TooManyRequestsException":
|
|
4438
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4439
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4440
|
-
default:
|
|
4441
|
-
const parsedBody = parsedOutput.body;
|
|
4442
|
-
return throwDefaultError({
|
|
4443
|
-
output,
|
|
4444
|
-
parsedBody,
|
|
4445
|
-
errorCode
|
|
4446
|
-
});
|
|
4447
|
-
}
|
|
4448
|
-
}, "de_UpdateRouteResponseCommandError");
|
|
4449
2708
|
var de_UpdateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4450
2709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4451
|
-
return
|
|
2710
|
+
return de_CommandError(output, context);
|
|
4452
2711
|
}
|
|
4453
2712
|
const contents = (0, import_smithy_client.map)({
|
|
4454
2713
|
$metadata: deserializeMetadata(output)
|
|
@@ -4473,37 +2732,9 @@ var de_UpdateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4473
2732
|
Object.assign(contents, doc);
|
|
4474
2733
|
return contents;
|
|
4475
2734
|
}, "de_UpdateStageCommand");
|
|
4476
|
-
var de_UpdateStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4477
|
-
const parsedOutput = {
|
|
4478
|
-
...output,
|
|
4479
|
-
body: await parseErrorBody(output.body, context)
|
|
4480
|
-
};
|
|
4481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4482
|
-
switch (errorCode) {
|
|
4483
|
-
case "BadRequestException":
|
|
4484
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4485
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4486
|
-
case "ConflictException":
|
|
4487
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4488
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4489
|
-
case "NotFoundException":
|
|
4490
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4491
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4492
|
-
case "TooManyRequestsException":
|
|
4493
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4494
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4495
|
-
default:
|
|
4496
|
-
const parsedBody = parsedOutput.body;
|
|
4497
|
-
return throwDefaultError({
|
|
4498
|
-
output,
|
|
4499
|
-
parsedBody,
|
|
4500
|
-
errorCode
|
|
4501
|
-
});
|
|
4502
|
-
}
|
|
4503
|
-
}, "de_UpdateStageCommandError");
|
|
4504
2735
|
var de_UpdateVpcLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4505
2736
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4506
|
-
return
|
|
2737
|
+
return de_CommandError(output, context);
|
|
4507
2738
|
}
|
|
4508
2739
|
const contents = (0, import_smithy_client.map)({
|
|
4509
2740
|
$metadata: deserializeMetadata(output)
|
|
@@ -4523,7 +2754,7 @@ var de_UpdateVpcLinkCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4523
2754
|
Object.assign(contents, doc);
|
|
4524
2755
|
return contents;
|
|
4525
2756
|
}, "de_UpdateVpcLinkCommand");
|
|
4526
|
-
var
|
|
2757
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4527
2758
|
const parsedOutput = {
|
|
4528
2759
|
...output,
|
|
4529
2760
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4533,12 +2764,18 @@ var de_UpdateVpcLinkCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
4533
2764
|
case "BadRequestException":
|
|
4534
2765
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4535
2766
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2767
|
+
case "ConflictException":
|
|
2768
|
+
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
2769
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4536
2770
|
case "NotFoundException":
|
|
4537
2771
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4538
2772
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4539
2773
|
case "TooManyRequestsException":
|
|
4540
2774
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4541
2775
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2776
|
+
case "AccessDeniedException":
|
|
2777
|
+
case "com.amazonaws.apigatewayv2#AccessDeniedException":
|
|
2778
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4542
2779
|
default:
|
|
4543
2780
|
const parsedBody = parsedOutput.body;
|
|
4544
2781
|
return throwDefaultError({
|
|
@@ -4547,7 +2784,7 @@ var de_UpdateVpcLinkCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
4547
2784
|
errorCode
|
|
4548
2785
|
});
|
|
4549
2786
|
}
|
|
4550
|
-
}, "
|
|
2787
|
+
}, "de_CommandError");
|
|
4551
2788
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ApiGatewayV2ServiceException);
|
|
4552
2789
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4553
2790
|
const contents = (0, import_smithy_client.map)({});
|