@aws-sdk/client-appconfig 3.118.1 → 3.121.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +165 -133
- package/dist-es/protocols/Aws_restJson1.js +165 -133
- package/package.json +3 -3
|
@@ -1239,8 +1239,7 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
1239
1239
|
body: await parseBody(output.body, context),
|
|
1240
1240
|
};
|
|
1241
1241
|
let response;
|
|
1242
|
-
|
|
1243
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
1243
|
switch (errorCode) {
|
|
1245
1244
|
case "BadRequestException":
|
|
1246
1245
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1250,10 +1249,12 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
1250
1249
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1251
1250
|
default:
|
|
1252
1251
|
const parsedBody = parsedOutput.body;
|
|
1252
|
+
const $metadata = deserializeMetadata(output);
|
|
1253
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1253
1254
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1254
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1255
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1255
1256
|
$fault: "client",
|
|
1256
|
-
$metadata
|
|
1257
|
+
$metadata,
|
|
1257
1258
|
});
|
|
1258
1259
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1259
1260
|
}
|
|
@@ -1307,8 +1308,7 @@ const deserializeAws_restJson1CreateConfigurationProfileCommandError = async (ou
|
|
|
1307
1308
|
body: await parseBody(output.body, context),
|
|
1308
1309
|
};
|
|
1309
1310
|
let response;
|
|
1310
|
-
|
|
1311
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1311
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
1312
|
switch (errorCode) {
|
|
1313
1313
|
case "BadRequestException":
|
|
1314
1314
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1321,10 +1321,12 @@ const deserializeAws_restJson1CreateConfigurationProfileCommandError = async (ou
|
|
|
1321
1321
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1322
1322
|
default:
|
|
1323
1323
|
const parsedBody = parsedOutput.body;
|
|
1324
|
+
const $metadata = deserializeMetadata(output);
|
|
1325
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1324
1326
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1327
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1326
1328
|
$fault: "client",
|
|
1327
|
-
$metadata
|
|
1329
|
+
$metadata,
|
|
1328
1330
|
});
|
|
1329
1331
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1330
1332
|
}
|
|
@@ -1378,8 +1380,7 @@ const deserializeAws_restJson1CreateDeploymentStrategyCommandError = async (outp
|
|
|
1378
1380
|
body: await parseBody(output.body, context),
|
|
1379
1381
|
};
|
|
1380
1382
|
let response;
|
|
1381
|
-
|
|
1382
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
1384
|
switch (errorCode) {
|
|
1384
1385
|
case "BadRequestException":
|
|
1385
1386
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1389,10 +1390,12 @@ const deserializeAws_restJson1CreateDeploymentStrategyCommandError = async (outp
|
|
|
1389
1390
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1390
1391
|
default:
|
|
1391
1392
|
const parsedBody = parsedOutput.body;
|
|
1393
|
+
const $metadata = deserializeMetadata(output);
|
|
1394
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1392
1395
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1393
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1396
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1394
1397
|
$fault: "client",
|
|
1395
|
-
$metadata
|
|
1398
|
+
$metadata,
|
|
1396
1399
|
});
|
|
1397
1400
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1398
1401
|
}
|
|
@@ -1438,8 +1441,7 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1438
1441
|
body: await parseBody(output.body, context),
|
|
1439
1442
|
};
|
|
1440
1443
|
let response;
|
|
1441
|
-
|
|
1442
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1444
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
1445
|
switch (errorCode) {
|
|
1444
1446
|
case "BadRequestException":
|
|
1445
1447
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1452,10 +1454,12 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1452
1454
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1453
1455
|
default:
|
|
1454
1456
|
const parsedBody = parsedOutput.body;
|
|
1457
|
+
const $metadata = deserializeMetadata(output);
|
|
1458
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1455
1459
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1456
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1460
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1457
1461
|
$fault: "client",
|
|
1458
|
-
$metadata
|
|
1462
|
+
$metadata,
|
|
1459
1463
|
});
|
|
1460
1464
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1461
1465
|
}
|
|
@@ -1499,8 +1503,7 @@ const deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = asy
|
|
|
1499
1503
|
body: await parseBody(output.body, context),
|
|
1500
1504
|
};
|
|
1501
1505
|
let response;
|
|
1502
|
-
|
|
1503
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
1507
|
switch (errorCode) {
|
|
1505
1508
|
case "BadRequestException":
|
|
1506
1509
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1522,10 +1525,12 @@ const deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = asy
|
|
|
1522
1525
|
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1523
1526
|
default:
|
|
1524
1527
|
const parsedBody = parsedOutput.body;
|
|
1528
|
+
const $metadata = deserializeMetadata(output);
|
|
1529
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1525
1530
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1526
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1531
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1527
1532
|
$fault: "client",
|
|
1528
|
-
$metadata
|
|
1533
|
+
$metadata,
|
|
1529
1534
|
});
|
|
1530
1535
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1531
1536
|
}
|
|
@@ -1547,8 +1552,7 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1547
1552
|
body: await parseBody(output.body, context),
|
|
1548
1553
|
};
|
|
1549
1554
|
let response;
|
|
1550
|
-
|
|
1551
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
1556
|
switch (errorCode) {
|
|
1553
1557
|
case "BadRequestException":
|
|
1554
1558
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1561,10 +1565,12 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1561
1565
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1562
1566
|
default:
|
|
1563
1567
|
const parsedBody = parsedOutput.body;
|
|
1568
|
+
const $metadata = deserializeMetadata(output);
|
|
1569
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1564
1570
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1565
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1566
1572
|
$fault: "client",
|
|
1567
|
-
$metadata
|
|
1573
|
+
$metadata,
|
|
1568
1574
|
});
|
|
1569
1575
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1570
1576
|
}
|
|
@@ -1586,8 +1592,7 @@ const deserializeAws_restJson1DeleteConfigurationProfileCommandError = async (ou
|
|
|
1586
1592
|
body: await parseBody(output.body, context),
|
|
1587
1593
|
};
|
|
1588
1594
|
let response;
|
|
1589
|
-
|
|
1590
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1595
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
1596
|
switch (errorCode) {
|
|
1592
1597
|
case "BadRequestException":
|
|
1593
1598
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1603,10 +1608,12 @@ const deserializeAws_restJson1DeleteConfigurationProfileCommandError = async (ou
|
|
|
1603
1608
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1604
1609
|
default:
|
|
1605
1610
|
const parsedBody = parsedOutput.body;
|
|
1611
|
+
const $metadata = deserializeMetadata(output);
|
|
1612
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1606
1613
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1607
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1614
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1608
1615
|
$fault: "client",
|
|
1609
|
-
$metadata
|
|
1616
|
+
$metadata,
|
|
1610
1617
|
});
|
|
1611
1618
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1612
1619
|
}
|
|
@@ -1628,8 +1635,7 @@ const deserializeAws_restJson1DeleteDeploymentStrategyCommandError = async (outp
|
|
|
1628
1635
|
body: await parseBody(output.body, context),
|
|
1629
1636
|
};
|
|
1630
1637
|
let response;
|
|
1631
|
-
|
|
1632
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1638
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
1639
|
switch (errorCode) {
|
|
1634
1640
|
case "BadRequestException":
|
|
1635
1641
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1642,10 +1648,12 @@ const deserializeAws_restJson1DeleteDeploymentStrategyCommandError = async (outp
|
|
|
1642
1648
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1643
1649
|
default:
|
|
1644
1650
|
const parsedBody = parsedOutput.body;
|
|
1651
|
+
const $metadata = deserializeMetadata(output);
|
|
1652
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1645
1653
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1646
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1654
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1647
1655
|
$fault: "client",
|
|
1648
|
-
$metadata
|
|
1656
|
+
$metadata,
|
|
1649
1657
|
});
|
|
1650
1658
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1651
1659
|
}
|
|
@@ -1667,8 +1675,7 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1667
1675
|
body: await parseBody(output.body, context),
|
|
1668
1676
|
};
|
|
1669
1677
|
let response;
|
|
1670
|
-
|
|
1671
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
1679
|
switch (errorCode) {
|
|
1673
1680
|
case "BadRequestException":
|
|
1674
1681
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1684,10 +1691,12 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1684
1691
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1685
1692
|
default:
|
|
1686
1693
|
const parsedBody = parsedOutput.body;
|
|
1694
|
+
const $metadata = deserializeMetadata(output);
|
|
1695
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1687
1696
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1688
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1697
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1689
1698
|
$fault: "client",
|
|
1690
|
-
$metadata
|
|
1699
|
+
$metadata,
|
|
1691
1700
|
});
|
|
1692
1701
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1693
1702
|
}
|
|
@@ -1709,8 +1718,7 @@ const deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = asy
|
|
|
1709
1718
|
body: await parseBody(output.body, context),
|
|
1710
1719
|
};
|
|
1711
1720
|
let response;
|
|
1712
|
-
|
|
1713
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1721
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1714
1722
|
switch (errorCode) {
|
|
1715
1723
|
case "BadRequestException":
|
|
1716
1724
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1723,10 +1731,12 @@ const deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = asy
|
|
|
1723
1731
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1724
1732
|
default:
|
|
1725
1733
|
const parsedBody = parsedOutput.body;
|
|
1734
|
+
const $metadata = deserializeMetadata(output);
|
|
1735
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1726
1736
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1727
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1737
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1728
1738
|
$fault: "client",
|
|
1729
|
-
$metadata
|
|
1739
|
+
$metadata,
|
|
1730
1740
|
});
|
|
1731
1741
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1732
1742
|
}
|
|
@@ -1760,8 +1770,7 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1760
1770
|
body: await parseBody(output.body, context),
|
|
1761
1771
|
};
|
|
1762
1772
|
let response;
|
|
1763
|
-
|
|
1764
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1773
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1765
1774
|
switch (errorCode) {
|
|
1766
1775
|
case "BadRequestException":
|
|
1767
1776
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1774,10 +1783,12 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1774
1783
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1775
1784
|
default:
|
|
1776
1785
|
const parsedBody = parsedOutput.body;
|
|
1786
|
+
const $metadata = deserializeMetadata(output);
|
|
1787
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1777
1788
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1778
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1789
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1779
1790
|
$fault: "client",
|
|
1780
|
-
$metadata
|
|
1791
|
+
$metadata,
|
|
1781
1792
|
});
|
|
1782
1793
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1783
1794
|
}
|
|
@@ -1809,8 +1820,7 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
1809
1820
|
body: await parseBody(output.body, context),
|
|
1810
1821
|
};
|
|
1811
1822
|
let response;
|
|
1812
|
-
|
|
1813
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1823
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1814
1824
|
switch (errorCode) {
|
|
1815
1825
|
case "BadRequestException":
|
|
1816
1826
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1823,10 +1833,12 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
1823
1833
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1824
1834
|
default:
|
|
1825
1835
|
const parsedBody = parsedOutput.body;
|
|
1836
|
+
const $metadata = deserializeMetadata(output);
|
|
1837
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1826
1838
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1827
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1839
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1828
1840
|
$fault: "client",
|
|
1829
|
-
$metadata
|
|
1841
|
+
$metadata,
|
|
1830
1842
|
});
|
|
1831
1843
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1832
1844
|
}
|
|
@@ -1880,8 +1892,7 @@ const deserializeAws_restJson1GetConfigurationProfileCommandError = async (outpu
|
|
|
1880
1892
|
body: await parseBody(output.body, context),
|
|
1881
1893
|
};
|
|
1882
1894
|
let response;
|
|
1883
|
-
|
|
1884
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
1896
|
switch (errorCode) {
|
|
1886
1897
|
case "BadRequestException":
|
|
1887
1898
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1894,10 +1905,12 @@ const deserializeAws_restJson1GetConfigurationProfileCommandError = async (outpu
|
|
|
1894
1905
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1895
1906
|
default:
|
|
1896
1907
|
const parsedBody = parsedOutput.body;
|
|
1908
|
+
const $metadata = deserializeMetadata(output);
|
|
1909
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1897
1910
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1898
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1911
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1899
1912
|
$fault: "client",
|
|
1900
|
-
$metadata
|
|
1913
|
+
$metadata,
|
|
1901
1914
|
});
|
|
1902
1915
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1903
1916
|
}
|
|
@@ -1991,8 +2004,7 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
1991
2004
|
body: await parseBody(output.body, context),
|
|
1992
2005
|
};
|
|
1993
2006
|
let response;
|
|
1994
|
-
|
|
1995
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1996
2008
|
switch (errorCode) {
|
|
1997
2009
|
case "BadRequestException":
|
|
1998
2010
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2005,10 +2017,12 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
2005
2017
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2006
2018
|
default:
|
|
2007
2019
|
const parsedBody = parsedOutput.body;
|
|
2020
|
+
const $metadata = deserializeMetadata(output);
|
|
2021
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2008
2022
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2009
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2023
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2010
2024
|
$fault: "client",
|
|
2011
|
-
$metadata
|
|
2025
|
+
$metadata,
|
|
2012
2026
|
});
|
|
2013
2027
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2014
2028
|
}
|
|
@@ -2062,8 +2076,7 @@ const deserializeAws_restJson1GetDeploymentStrategyCommandError = async (output,
|
|
|
2062
2076
|
body: await parseBody(output.body, context),
|
|
2063
2077
|
};
|
|
2064
2078
|
let response;
|
|
2065
|
-
|
|
2066
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2079
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2067
2080
|
switch (errorCode) {
|
|
2068
2081
|
case "BadRequestException":
|
|
2069
2082
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2076,10 +2089,12 @@ const deserializeAws_restJson1GetDeploymentStrategyCommandError = async (output,
|
|
|
2076
2089
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2077
2090
|
default:
|
|
2078
2091
|
const parsedBody = parsedOutput.body;
|
|
2092
|
+
const $metadata = deserializeMetadata(output);
|
|
2093
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2079
2094
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2080
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2095
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2081
2096
|
$fault: "client",
|
|
2082
|
-
$metadata
|
|
2097
|
+
$metadata,
|
|
2083
2098
|
});
|
|
2084
2099
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2085
2100
|
}
|
|
@@ -2125,8 +2140,7 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
2125
2140
|
body: await parseBody(output.body, context),
|
|
2126
2141
|
};
|
|
2127
2142
|
let response;
|
|
2128
|
-
|
|
2129
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2130
2144
|
switch (errorCode) {
|
|
2131
2145
|
case "BadRequestException":
|
|
2132
2146
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2139,10 +2153,12 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
2139
2153
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2140
2154
|
default:
|
|
2141
2155
|
const parsedBody = parsedOutput.body;
|
|
2156
|
+
const $metadata = deserializeMetadata(output);
|
|
2157
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2142
2158
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2143
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2159
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2144
2160
|
$fault: "client",
|
|
2145
|
-
$metadata
|
|
2161
|
+
$metadata,
|
|
2146
2162
|
});
|
|
2147
2163
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2148
2164
|
}
|
|
@@ -2186,8 +2202,7 @@ const deserializeAws_restJson1GetHostedConfigurationVersionCommandError = async
|
|
|
2186
2202
|
body: await parseBody(output.body, context),
|
|
2187
2203
|
};
|
|
2188
2204
|
let response;
|
|
2189
|
-
|
|
2190
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2205
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2191
2206
|
switch (errorCode) {
|
|
2192
2207
|
case "BadRequestException":
|
|
2193
2208
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2200,10 +2215,12 @@ const deserializeAws_restJson1GetHostedConfigurationVersionCommandError = async
|
|
|
2200
2215
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2201
2216
|
default:
|
|
2202
2217
|
const parsedBody = parsedOutput.body;
|
|
2218
|
+
const $metadata = deserializeMetadata(output);
|
|
2219
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2203
2220
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2204
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2221
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2205
2222
|
$fault: "client",
|
|
2206
|
-
$metadata
|
|
2223
|
+
$metadata,
|
|
2207
2224
|
});
|
|
2208
2225
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2209
2226
|
}
|
|
@@ -2233,8 +2250,7 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2233
2250
|
body: await parseBody(output.body, context),
|
|
2234
2251
|
};
|
|
2235
2252
|
let response;
|
|
2236
|
-
|
|
2237
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2253
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
2254
|
switch (errorCode) {
|
|
2239
2255
|
case "BadRequestException":
|
|
2240
2256
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2244,10 +2260,12 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2244
2260
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2245
2261
|
default:
|
|
2246
2262
|
const parsedBody = parsedOutput.body;
|
|
2263
|
+
const $metadata = deserializeMetadata(output);
|
|
2264
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2247
2265
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2248
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2266
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2249
2267
|
$fault: "client",
|
|
2250
|
-
$metadata
|
|
2268
|
+
$metadata,
|
|
2251
2269
|
});
|
|
2252
2270
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2253
2271
|
}
|
|
@@ -2277,8 +2295,7 @@ const deserializeAws_restJson1ListConfigurationProfilesCommandError = async (out
|
|
|
2277
2295
|
body: await parseBody(output.body, context),
|
|
2278
2296
|
};
|
|
2279
2297
|
let response;
|
|
2280
|
-
|
|
2281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2298
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2299
|
switch (errorCode) {
|
|
2283
2300
|
case "BadRequestException":
|
|
2284
2301
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2291,10 +2308,12 @@ const deserializeAws_restJson1ListConfigurationProfilesCommandError = async (out
|
|
|
2291
2308
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2292
2309
|
default:
|
|
2293
2310
|
const parsedBody = parsedOutput.body;
|
|
2311
|
+
const $metadata = deserializeMetadata(output);
|
|
2312
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2294
2313
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2295
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2314
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2296
2315
|
$fault: "client",
|
|
2297
|
-
$metadata
|
|
2316
|
+
$metadata,
|
|
2298
2317
|
});
|
|
2299
2318
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2300
2319
|
}
|
|
@@ -2324,8 +2343,7 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
2324
2343
|
body: await parseBody(output.body, context),
|
|
2325
2344
|
};
|
|
2326
2345
|
let response;
|
|
2327
|
-
|
|
2328
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2329
2347
|
switch (errorCode) {
|
|
2330
2348
|
case "BadRequestException":
|
|
2331
2349
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2338,10 +2356,12 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
2338
2356
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2339
2357
|
default:
|
|
2340
2358
|
const parsedBody = parsedOutput.body;
|
|
2359
|
+
const $metadata = deserializeMetadata(output);
|
|
2360
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2341
2361
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2342
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2362
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2343
2363
|
$fault: "client",
|
|
2344
|
-
$metadata
|
|
2364
|
+
$metadata,
|
|
2345
2365
|
});
|
|
2346
2366
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2347
2367
|
}
|
|
@@ -2371,8 +2391,7 @@ const deserializeAws_restJson1ListDeploymentStrategiesCommandError = async (outp
|
|
|
2371
2391
|
body: await parseBody(output.body, context),
|
|
2372
2392
|
};
|
|
2373
2393
|
let response;
|
|
2374
|
-
|
|
2375
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2394
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2376
2395
|
switch (errorCode) {
|
|
2377
2396
|
case "BadRequestException":
|
|
2378
2397
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2382,10 +2401,12 @@ const deserializeAws_restJson1ListDeploymentStrategiesCommandError = async (outp
|
|
|
2382
2401
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2383
2402
|
default:
|
|
2384
2403
|
const parsedBody = parsedOutput.body;
|
|
2404
|
+
const $metadata = deserializeMetadata(output);
|
|
2405
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2385
2406
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2386
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2407
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2387
2408
|
$fault: "client",
|
|
2388
|
-
$metadata
|
|
2409
|
+
$metadata,
|
|
2389
2410
|
});
|
|
2390
2411
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2391
2412
|
}
|
|
@@ -2415,8 +2436,7 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2415
2436
|
body: await parseBody(output.body, context),
|
|
2416
2437
|
};
|
|
2417
2438
|
let response;
|
|
2418
|
-
|
|
2419
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2439
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2420
2440
|
switch (errorCode) {
|
|
2421
2441
|
case "BadRequestException":
|
|
2422
2442
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2429,10 +2449,12 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2429
2449
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2430
2450
|
default:
|
|
2431
2451
|
const parsedBody = parsedOutput.body;
|
|
2452
|
+
const $metadata = deserializeMetadata(output);
|
|
2453
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2432
2454
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2433
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2455
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2434
2456
|
$fault: "client",
|
|
2435
|
-
$metadata
|
|
2457
|
+
$metadata,
|
|
2436
2458
|
});
|
|
2437
2459
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2438
2460
|
}
|
|
@@ -2462,8 +2484,7 @@ const deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = asyn
|
|
|
2462
2484
|
body: await parseBody(output.body, context),
|
|
2463
2485
|
};
|
|
2464
2486
|
let response;
|
|
2465
|
-
|
|
2466
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2487
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2467
2488
|
switch (errorCode) {
|
|
2468
2489
|
case "BadRequestException":
|
|
2469
2490
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2476,10 +2497,12 @@ const deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = asyn
|
|
|
2476
2497
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2477
2498
|
default:
|
|
2478
2499
|
const parsedBody = parsedOutput.body;
|
|
2500
|
+
const $metadata = deserializeMetadata(output);
|
|
2501
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2479
2502
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2480
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2503
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2481
2504
|
$fault: "client",
|
|
2482
|
-
$metadata
|
|
2505
|
+
$metadata,
|
|
2483
2506
|
});
|
|
2484
2507
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2485
2508
|
}
|
|
@@ -2505,8 +2528,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2505
2528
|
body: await parseBody(output.body, context),
|
|
2506
2529
|
};
|
|
2507
2530
|
let response;
|
|
2508
|
-
|
|
2509
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2531
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2510
2532
|
switch (errorCode) {
|
|
2511
2533
|
case "BadRequestException":
|
|
2512
2534
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2519,10 +2541,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2519
2541
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2520
2542
|
default:
|
|
2521
2543
|
const parsedBody = parsedOutput.body;
|
|
2544
|
+
const $metadata = deserializeMetadata(output);
|
|
2545
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2522
2546
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2523
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2547
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2524
2548
|
$fault: "client",
|
|
2525
|
-
$metadata
|
|
2549
|
+
$metadata,
|
|
2526
2550
|
});
|
|
2527
2551
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2528
2552
|
}
|
|
@@ -2616,8 +2640,7 @@ const deserializeAws_restJson1StartDeploymentCommandError = async (output, conte
|
|
|
2616
2640
|
body: await parseBody(output.body, context),
|
|
2617
2641
|
};
|
|
2618
2642
|
let response;
|
|
2619
|
-
|
|
2620
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2643
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2621
2644
|
switch (errorCode) {
|
|
2622
2645
|
case "BadRequestException":
|
|
2623
2646
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2633,10 +2656,12 @@ const deserializeAws_restJson1StartDeploymentCommandError = async (output, conte
|
|
|
2633
2656
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2634
2657
|
default:
|
|
2635
2658
|
const parsedBody = parsedOutput.body;
|
|
2659
|
+
const $metadata = deserializeMetadata(output);
|
|
2660
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2636
2661
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2662
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2638
2663
|
$fault: "client",
|
|
2639
|
-
$metadata
|
|
2664
|
+
$metadata,
|
|
2640
2665
|
});
|
|
2641
2666
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2642
2667
|
}
|
|
@@ -2730,8 +2755,7 @@ const deserializeAws_restJson1StopDeploymentCommandError = async (output, contex
|
|
|
2730
2755
|
body: await parseBody(output.body, context),
|
|
2731
2756
|
};
|
|
2732
2757
|
let response;
|
|
2733
|
-
|
|
2734
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2758
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2735
2759
|
switch (errorCode) {
|
|
2736
2760
|
case "BadRequestException":
|
|
2737
2761
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2744,10 +2768,12 @@ const deserializeAws_restJson1StopDeploymentCommandError = async (output, contex
|
|
|
2744
2768
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2745
2769
|
default:
|
|
2746
2770
|
const parsedBody = parsedOutput.body;
|
|
2771
|
+
const $metadata = deserializeMetadata(output);
|
|
2772
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2747
2773
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2748
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2774
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2749
2775
|
$fault: "client",
|
|
2750
|
-
$metadata
|
|
2776
|
+
$metadata,
|
|
2751
2777
|
});
|
|
2752
2778
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2753
2779
|
}
|
|
@@ -2769,8 +2795,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2769
2795
|
body: await parseBody(output.body, context),
|
|
2770
2796
|
};
|
|
2771
2797
|
let response;
|
|
2772
|
-
|
|
2773
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2774
2799
|
switch (errorCode) {
|
|
2775
2800
|
case "BadRequestException":
|
|
2776
2801
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2783,10 +2808,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2783
2808
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2784
2809
|
default:
|
|
2785
2810
|
const parsedBody = parsedOutput.body;
|
|
2811
|
+
const $metadata = deserializeMetadata(output);
|
|
2812
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2786
2813
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2787
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2814
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2788
2815
|
$fault: "client",
|
|
2789
|
-
$metadata
|
|
2816
|
+
$metadata,
|
|
2790
2817
|
});
|
|
2791
2818
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2792
2819
|
}
|
|
@@ -2808,8 +2835,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2808
2835
|
body: await parseBody(output.body, context),
|
|
2809
2836
|
};
|
|
2810
2837
|
let response;
|
|
2811
|
-
|
|
2812
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2838
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2813
2839
|
switch (errorCode) {
|
|
2814
2840
|
case "BadRequestException":
|
|
2815
2841
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2822,10 +2848,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2822
2848
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2823
2849
|
default:
|
|
2824
2850
|
const parsedBody = parsedOutput.body;
|
|
2851
|
+
const $metadata = deserializeMetadata(output);
|
|
2852
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2825
2853
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2826
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2854
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2827
2855
|
$fault: "client",
|
|
2828
|
-
$metadata
|
|
2856
|
+
$metadata,
|
|
2829
2857
|
});
|
|
2830
2858
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2831
2859
|
}
|
|
@@ -2859,8 +2887,7 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
2859
2887
|
body: await parseBody(output.body, context),
|
|
2860
2888
|
};
|
|
2861
2889
|
let response;
|
|
2862
|
-
|
|
2863
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2864
2891
|
switch (errorCode) {
|
|
2865
2892
|
case "BadRequestException":
|
|
2866
2893
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2873,10 +2900,12 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
2873
2900
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2874
2901
|
default:
|
|
2875
2902
|
const parsedBody = parsedOutput.body;
|
|
2903
|
+
const $metadata = deserializeMetadata(output);
|
|
2904
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2876
2905
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2877
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2906
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2878
2907
|
$fault: "client",
|
|
2879
|
-
$metadata
|
|
2908
|
+
$metadata,
|
|
2880
2909
|
});
|
|
2881
2910
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2882
2911
|
}
|
|
@@ -2930,8 +2959,7 @@ const deserializeAws_restJson1UpdateConfigurationProfileCommandError = async (ou
|
|
|
2930
2959
|
body: await parseBody(output.body, context),
|
|
2931
2960
|
};
|
|
2932
2961
|
let response;
|
|
2933
|
-
|
|
2934
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2962
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
2963
|
switch (errorCode) {
|
|
2936
2964
|
case "BadRequestException":
|
|
2937
2965
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2944,10 +2972,12 @@ const deserializeAws_restJson1UpdateConfigurationProfileCommandError = async (ou
|
|
|
2944
2972
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2945
2973
|
default:
|
|
2946
2974
|
const parsedBody = parsedOutput.body;
|
|
2975
|
+
const $metadata = deserializeMetadata(output);
|
|
2976
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2947
2977
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2948
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2978
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2949
2979
|
$fault: "client",
|
|
2950
|
-
$metadata
|
|
2980
|
+
$metadata,
|
|
2951
2981
|
});
|
|
2952
2982
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2953
2983
|
}
|
|
@@ -3001,8 +3031,7 @@ const deserializeAws_restJson1UpdateDeploymentStrategyCommandError = async (outp
|
|
|
3001
3031
|
body: await parseBody(output.body, context),
|
|
3002
3032
|
};
|
|
3003
3033
|
let response;
|
|
3004
|
-
|
|
3005
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3034
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3006
3035
|
switch (errorCode) {
|
|
3007
3036
|
case "BadRequestException":
|
|
3008
3037
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -3015,10 +3044,12 @@ const deserializeAws_restJson1UpdateDeploymentStrategyCommandError = async (outp
|
|
|
3015
3044
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3016
3045
|
default:
|
|
3017
3046
|
const parsedBody = parsedOutput.body;
|
|
3047
|
+
const $metadata = deserializeMetadata(output);
|
|
3048
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3018
3049
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
3019
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3020
3051
|
$fault: "client",
|
|
3021
|
-
$metadata
|
|
3052
|
+
$metadata,
|
|
3022
3053
|
});
|
|
3023
3054
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3024
3055
|
}
|
|
@@ -3064,8 +3095,7 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
3064
3095
|
body: await parseBody(output.body, context),
|
|
3065
3096
|
};
|
|
3066
3097
|
let response;
|
|
3067
|
-
|
|
3068
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3098
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3069
3099
|
switch (errorCode) {
|
|
3070
3100
|
case "BadRequestException":
|
|
3071
3101
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -3078,10 +3108,12 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
3078
3108
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3079
3109
|
default:
|
|
3080
3110
|
const parsedBody = parsedOutput.body;
|
|
3111
|
+
const $metadata = deserializeMetadata(output);
|
|
3112
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3081
3113
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
3082
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3114
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3083
3115
|
$fault: "client",
|
|
3084
|
-
$metadata
|
|
3116
|
+
$metadata,
|
|
3085
3117
|
});
|
|
3086
3118
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3087
3119
|
}
|
|
@@ -3103,8 +3135,7 @@ const deserializeAws_restJson1ValidateConfigurationCommandError = async (output,
|
|
|
3103
3135
|
body: await parseBody(output.body, context),
|
|
3104
3136
|
};
|
|
3105
3137
|
let response;
|
|
3106
|
-
|
|
3107
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3108
3139
|
switch (errorCode) {
|
|
3109
3140
|
case "BadRequestException":
|
|
3110
3141
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -3117,10 +3148,12 @@ const deserializeAws_restJson1ValidateConfigurationCommandError = async (output,
|
|
|
3117
3148
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3118
3149
|
default:
|
|
3119
3150
|
const parsedBody = parsedOutput.body;
|
|
3151
|
+
const $metadata = deserializeMetadata(output);
|
|
3152
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3120
3153
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
3121
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3154
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3122
3155
|
$fault: "client",
|
|
3123
|
-
$metadata
|
|
3156
|
+
$metadata,
|
|
3124
3157
|
});
|
|
3125
3158
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3126
3159
|
}
|
|
@@ -3548,5 +3581,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3548
3581
|
if (data["__type"] !== undefined) {
|
|
3549
3582
|
return sanitizeErrorCode(data["__type"]);
|
|
3550
3583
|
}
|
|
3551
|
-
return "";
|
|
3552
3584
|
};
|