@aws-sdk/client-workspaces-web 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 +220 -177
- package/dist-es/protocols/Aws_restJson1.js +220 -177
- package/package.json +3 -3
|
@@ -1396,8 +1396,7 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (outp
|
|
|
1396
1396
|
body: await parseBody(output.body, context),
|
|
1397
1397
|
};
|
|
1398
1398
|
let response;
|
|
1399
|
-
|
|
1400
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1401
1400
|
switch (errorCode) {
|
|
1402
1401
|
case "AccessDeniedException":
|
|
1403
1402
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1419,10 +1418,12 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (outp
|
|
|
1419
1418
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1420
1419
|
default:
|
|
1421
1420
|
const parsedBody = parsedOutput.body;
|
|
1421
|
+
const $metadata = deserializeMetadata(output);
|
|
1422
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1422
1423
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1423
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1424
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1424
1425
|
$fault: "client",
|
|
1425
|
-
$metadata
|
|
1426
|
+
$metadata,
|
|
1426
1427
|
});
|
|
1427
1428
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1428
1429
|
}
|
|
@@ -1452,8 +1453,7 @@ const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (outp
|
|
|
1452
1453
|
body: await parseBody(output.body, context),
|
|
1453
1454
|
};
|
|
1454
1455
|
let response;
|
|
1455
|
-
|
|
1456
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
1457
|
switch (errorCode) {
|
|
1458
1458
|
case "AccessDeniedException":
|
|
1459
1459
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1475,10 +1475,12 @@ const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (outp
|
|
|
1475
1475
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1476
1476
|
default:
|
|
1477
1477
|
const parsedBody = parsedOutput.body;
|
|
1478
|
+
const $metadata = deserializeMetadata(output);
|
|
1479
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1478
1480
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1479
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1481
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1480
1482
|
$fault: "client",
|
|
1481
|
-
$metadata
|
|
1483
|
+
$metadata,
|
|
1482
1484
|
});
|
|
1483
1485
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1484
1486
|
}
|
|
@@ -1508,8 +1510,7 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
|
|
|
1508
1510
|
body: await parseBody(output.body, context),
|
|
1509
1511
|
};
|
|
1510
1512
|
let response;
|
|
1511
|
-
|
|
1512
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
1514
|
switch (errorCode) {
|
|
1514
1515
|
case "AccessDeniedException":
|
|
1515
1516
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1528,10 +1529,12 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
|
|
|
1528
1529
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1529
1530
|
default:
|
|
1530
1531
|
const parsedBody = parsedOutput.body;
|
|
1532
|
+
const $metadata = deserializeMetadata(output);
|
|
1533
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1531
1534
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1532
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1535
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1533
1536
|
$fault: "client",
|
|
1534
|
-
$metadata
|
|
1537
|
+
$metadata,
|
|
1535
1538
|
});
|
|
1536
1539
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1537
1540
|
}
|
|
@@ -1561,8 +1564,7 @@ const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output,
|
|
|
1561
1564
|
body: await parseBody(output.body, context),
|
|
1562
1565
|
};
|
|
1563
1566
|
let response;
|
|
1564
|
-
|
|
1565
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
1568
|
switch (errorCode) {
|
|
1567
1569
|
case "AccessDeniedException":
|
|
1568
1570
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1584,10 +1586,12 @@ const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output,
|
|
|
1584
1586
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1585
1587
|
default:
|
|
1586
1588
|
const parsedBody = parsedOutput.body;
|
|
1589
|
+
const $metadata = deserializeMetadata(output);
|
|
1590
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1587
1591
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1588
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1592
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1589
1593
|
$fault: "client",
|
|
1590
|
-
$metadata
|
|
1594
|
+
$metadata,
|
|
1591
1595
|
});
|
|
1592
1596
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1593
1597
|
}
|
|
@@ -1613,8 +1617,7 @@ const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output,
|
|
|
1613
1617
|
body: await parseBody(output.body, context),
|
|
1614
1618
|
};
|
|
1615
1619
|
let response;
|
|
1616
|
-
|
|
1617
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1620
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
1621
|
switch (errorCode) {
|
|
1619
1622
|
case "AccessDeniedException":
|
|
1620
1623
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1639,10 +1642,12 @@ const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output,
|
|
|
1639
1642
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1640
1643
|
default:
|
|
1641
1644
|
const parsedBody = parsedOutput.body;
|
|
1645
|
+
const $metadata = deserializeMetadata(output);
|
|
1646
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1642
1647
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1643
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1648
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1644
1649
|
$fault: "client",
|
|
1645
|
-
$metadata
|
|
1650
|
+
$metadata,
|
|
1646
1651
|
});
|
|
1647
1652
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1648
1653
|
}
|
|
@@ -1668,8 +1673,7 @@ const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output
|
|
|
1668
1673
|
body: await parseBody(output.body, context),
|
|
1669
1674
|
};
|
|
1670
1675
|
let response;
|
|
1671
|
-
|
|
1672
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1676
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
1677
|
switch (errorCode) {
|
|
1674
1678
|
case "AccessDeniedException":
|
|
1675
1679
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1694,10 +1698,12 @@ const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output
|
|
|
1694
1698
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1695
1699
|
default:
|
|
1696
1700
|
const parsedBody = parsedOutput.body;
|
|
1701
|
+
const $metadata = deserializeMetadata(output);
|
|
1702
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1697
1703
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1698
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1704
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1699
1705
|
$fault: "client",
|
|
1700
|
-
$metadata
|
|
1706
|
+
$metadata,
|
|
1701
1707
|
});
|
|
1702
1708
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1703
1709
|
}
|
|
@@ -1723,8 +1729,7 @@ const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output,
|
|
|
1723
1729
|
body: await parseBody(output.body, context),
|
|
1724
1730
|
};
|
|
1725
1731
|
let response;
|
|
1726
|
-
|
|
1727
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1732
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1728
1733
|
switch (errorCode) {
|
|
1729
1734
|
case "AccessDeniedException":
|
|
1730
1735
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1746,10 +1751,12 @@ const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output,
|
|
|
1746
1751
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1747
1752
|
default:
|
|
1748
1753
|
const parsedBody = parsedOutput.body;
|
|
1754
|
+
const $metadata = deserializeMetadata(output);
|
|
1755
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1749
1756
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1750
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1757
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1751
1758
|
$fault: "client",
|
|
1752
|
-
$metadata
|
|
1759
|
+
$metadata,
|
|
1753
1760
|
});
|
|
1754
1761
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1755
1762
|
}
|
|
@@ -1779,8 +1786,7 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
1779
1786
|
body: await parseBody(output.body, context),
|
|
1780
1787
|
};
|
|
1781
1788
|
let response;
|
|
1782
|
-
|
|
1783
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1789
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1784
1790
|
switch (errorCode) {
|
|
1785
1791
|
case "AccessDeniedException":
|
|
1786
1792
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1805,10 +1811,12 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
1805
1811
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1806
1812
|
default:
|
|
1807
1813
|
const parsedBody = parsedOutput.body;
|
|
1814
|
+
const $metadata = deserializeMetadata(output);
|
|
1815
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1808
1816
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1809
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1817
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1810
1818
|
$fault: "client",
|
|
1811
|
-
$metadata
|
|
1819
|
+
$metadata,
|
|
1812
1820
|
});
|
|
1813
1821
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1814
1822
|
}
|
|
@@ -1834,8 +1842,7 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
|
|
|
1834
1842
|
body: await parseBody(output.body, context),
|
|
1835
1843
|
};
|
|
1836
1844
|
let response;
|
|
1837
|
-
|
|
1838
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
1846
|
switch (errorCode) {
|
|
1840
1847
|
case "AccessDeniedException":
|
|
1841
1848
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1857,10 +1864,12 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
|
|
|
1857
1864
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1858
1865
|
default:
|
|
1859
1866
|
const parsedBody = parsedOutput.body;
|
|
1867
|
+
const $metadata = deserializeMetadata(output);
|
|
1868
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1860
1869
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1861
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1870
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1862
1871
|
$fault: "client",
|
|
1863
|
-
$metadata
|
|
1872
|
+
$metadata,
|
|
1864
1873
|
});
|
|
1865
1874
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1866
1875
|
}
|
|
@@ -1886,8 +1895,7 @@ const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, co
|
|
|
1886
1895
|
body: await parseBody(output.body, context),
|
|
1887
1896
|
};
|
|
1888
1897
|
let response;
|
|
1889
|
-
|
|
1890
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1898
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
1899
|
switch (errorCode) {
|
|
1892
1900
|
case "AccessDeniedException":
|
|
1893
1901
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1909,10 +1917,12 @@ const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, co
|
|
|
1909
1917
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1910
1918
|
default:
|
|
1911
1919
|
const parsedBody = parsedOutput.body;
|
|
1920
|
+
const $metadata = deserializeMetadata(output);
|
|
1921
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1912
1922
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1913
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1923
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1914
1924
|
$fault: "client",
|
|
1915
|
-
$metadata
|
|
1925
|
+
$metadata,
|
|
1916
1926
|
});
|
|
1917
1927
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1918
1928
|
}
|
|
@@ -1934,8 +1944,7 @@ const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output,
|
|
|
1934
1944
|
body: await parseBody(output.body, context),
|
|
1935
1945
|
};
|
|
1936
1946
|
let response;
|
|
1937
|
-
|
|
1938
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1947
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1939
1948
|
switch (errorCode) {
|
|
1940
1949
|
case "AccessDeniedException":
|
|
1941
1950
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1954,10 +1963,12 @@ const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output,
|
|
|
1954
1963
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1955
1964
|
default:
|
|
1956
1965
|
const parsedBody = parsedOutput.body;
|
|
1966
|
+
const $metadata = deserializeMetadata(output);
|
|
1967
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1957
1968
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1958
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1969
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1959
1970
|
$fault: "client",
|
|
1960
|
-
$metadata
|
|
1971
|
+
$metadata,
|
|
1961
1972
|
});
|
|
1962
1973
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1963
1974
|
}
|
|
@@ -1979,8 +1990,7 @@ const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output
|
|
|
1979
1990
|
body: await parseBody(output.body, context),
|
|
1980
1991
|
};
|
|
1981
1992
|
let response;
|
|
1982
|
-
|
|
1983
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1993
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1984
1994
|
switch (errorCode) {
|
|
1985
1995
|
case "AccessDeniedException":
|
|
1986
1996
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1999,10 +2009,12 @@ const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output
|
|
|
1999
2009
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2000
2010
|
default:
|
|
2001
2011
|
const parsedBody = parsedOutput.body;
|
|
2012
|
+
const $metadata = deserializeMetadata(output);
|
|
2013
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2002
2014
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2003
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2015
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2004
2016
|
$fault: "client",
|
|
2005
|
-
$metadata
|
|
2017
|
+
$metadata,
|
|
2006
2018
|
});
|
|
2007
2019
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2008
2020
|
}
|
|
@@ -2024,8 +2036,7 @@ const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output,
|
|
|
2024
2036
|
body: await parseBody(output.body, context),
|
|
2025
2037
|
};
|
|
2026
2038
|
let response;
|
|
2027
|
-
|
|
2028
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2039
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
2040
|
switch (errorCode) {
|
|
2030
2041
|
case "AccessDeniedException":
|
|
2031
2042
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2044,10 +2055,12 @@ const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output,
|
|
|
2044
2055
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2045
2056
|
default:
|
|
2046
2057
|
const parsedBody = parsedOutput.body;
|
|
2058
|
+
const $metadata = deserializeMetadata(output);
|
|
2059
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2047
2060
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2048
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2061
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2049
2062
|
$fault: "client",
|
|
2050
|
-
$metadata
|
|
2063
|
+
$metadata,
|
|
2051
2064
|
});
|
|
2052
2065
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2053
2066
|
}
|
|
@@ -2069,8 +2082,7 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
2069
2082
|
body: await parseBody(output.body, context),
|
|
2070
2083
|
};
|
|
2071
2084
|
let response;
|
|
2072
|
-
|
|
2073
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2085
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
2086
|
switch (errorCode) {
|
|
2075
2087
|
case "AccessDeniedException":
|
|
2076
2088
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2089,10 +2101,12 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
2089
2101
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2090
2102
|
default:
|
|
2091
2103
|
const parsedBody = parsedOutput.body;
|
|
2104
|
+
const $metadata = deserializeMetadata(output);
|
|
2105
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2092
2106
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2093
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2107
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2094
2108
|
$fault: "client",
|
|
2095
|
-
$metadata
|
|
2109
|
+
$metadata,
|
|
2096
2110
|
});
|
|
2097
2111
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2098
2112
|
}
|
|
@@ -2114,8 +2128,7 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
|
|
|
2114
2128
|
body: await parseBody(output.body, context),
|
|
2115
2129
|
};
|
|
2116
2130
|
let response;
|
|
2117
|
-
|
|
2118
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2131
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2119
2132
|
switch (errorCode) {
|
|
2120
2133
|
case "AccessDeniedException":
|
|
2121
2134
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2134,10 +2147,12 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
|
|
|
2134
2147
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2135
2148
|
default:
|
|
2136
2149
|
const parsedBody = parsedOutput.body;
|
|
2150
|
+
const $metadata = deserializeMetadata(output);
|
|
2151
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2137
2152
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2138
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2153
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2139
2154
|
$fault: "client",
|
|
2140
|
-
$metadata
|
|
2155
|
+
$metadata,
|
|
2141
2156
|
});
|
|
2142
2157
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2143
2158
|
}
|
|
@@ -2159,8 +2174,7 @@ const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, co
|
|
|
2159
2174
|
body: await parseBody(output.body, context),
|
|
2160
2175
|
};
|
|
2161
2176
|
let response;
|
|
2162
|
-
|
|
2163
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2177
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
2178
|
switch (errorCode) {
|
|
2165
2179
|
case "AccessDeniedException":
|
|
2166
2180
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2179,10 +2193,12 @@ const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, co
|
|
|
2179
2193
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2180
2194
|
default:
|
|
2181
2195
|
const parsedBody = parsedOutput.body;
|
|
2196
|
+
const $metadata = deserializeMetadata(output);
|
|
2197
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2182
2198
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2183
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2199
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2184
2200
|
$fault: "client",
|
|
2185
|
-
$metadata
|
|
2201
|
+
$metadata,
|
|
2186
2202
|
});
|
|
2187
2203
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2188
2204
|
}
|
|
@@ -2204,8 +2220,7 @@ const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = async (o
|
|
|
2204
2220
|
body: await parseBody(output.body, context),
|
|
2205
2221
|
};
|
|
2206
2222
|
let response;
|
|
2207
|
-
|
|
2208
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2209
2224
|
switch (errorCode) {
|
|
2210
2225
|
case "AccessDeniedException":
|
|
2211
2226
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2224,10 +2239,12 @@ const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = async (o
|
|
|
2224
2239
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2225
2240
|
default:
|
|
2226
2241
|
const parsedBody = parsedOutput.body;
|
|
2242
|
+
const $metadata = deserializeMetadata(output);
|
|
2243
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2227
2244
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2228
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2245
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2229
2246
|
$fault: "client",
|
|
2230
|
-
$metadata
|
|
2247
|
+
$metadata,
|
|
2231
2248
|
});
|
|
2232
2249
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2233
2250
|
}
|
|
@@ -2249,8 +2266,7 @@ const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (o
|
|
|
2249
2266
|
body: await parseBody(output.body, context),
|
|
2250
2267
|
};
|
|
2251
2268
|
let response;
|
|
2252
|
-
|
|
2253
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2269
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2254
2270
|
switch (errorCode) {
|
|
2255
2271
|
case "AccessDeniedException":
|
|
2256
2272
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2269,10 +2285,12 @@ const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (o
|
|
|
2269
2285
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2270
2286
|
default:
|
|
2271
2287
|
const parsedBody = parsedOutput.body;
|
|
2288
|
+
const $metadata = deserializeMetadata(output);
|
|
2289
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2272
2290
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2273
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2291
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2274
2292
|
$fault: "client",
|
|
2275
|
-
$metadata
|
|
2293
|
+
$metadata,
|
|
2276
2294
|
});
|
|
2277
2295
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2278
2296
|
}
|
|
@@ -2294,8 +2312,7 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
|
|
|
2294
2312
|
body: await parseBody(output.body, context),
|
|
2295
2313
|
};
|
|
2296
2314
|
let response;
|
|
2297
|
-
|
|
2298
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2315
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
2316
|
switch (errorCode) {
|
|
2300
2317
|
case "AccessDeniedException":
|
|
2301
2318
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2314,10 +2331,12 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
|
|
|
2314
2331
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2315
2332
|
default:
|
|
2316
2333
|
const parsedBody = parsedOutput.body;
|
|
2334
|
+
const $metadata = deserializeMetadata(output);
|
|
2335
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2317
2336
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2318
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2337
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2319
2338
|
$fault: "client",
|
|
2320
|
-
$metadata
|
|
2339
|
+
$metadata,
|
|
2321
2340
|
});
|
|
2322
2341
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2323
2342
|
}
|
|
@@ -2339,8 +2358,7 @@ const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (outp
|
|
|
2339
2358
|
body: await parseBody(output.body, context),
|
|
2340
2359
|
};
|
|
2341
2360
|
let response;
|
|
2342
|
-
|
|
2343
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2361
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
2362
|
switch (errorCode) {
|
|
2345
2363
|
case "AccessDeniedException":
|
|
2346
2364
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2359,10 +2377,12 @@ const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (outp
|
|
|
2359
2377
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2360
2378
|
default:
|
|
2361
2379
|
const parsedBody = parsedOutput.body;
|
|
2380
|
+
const $metadata = deserializeMetadata(output);
|
|
2381
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2362
2382
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2363
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2383
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2364
2384
|
$fault: "client",
|
|
2365
|
-
$metadata
|
|
2385
|
+
$metadata,
|
|
2366
2386
|
});
|
|
2367
2387
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2368
2388
|
}
|
|
@@ -2388,8 +2408,7 @@ const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, co
|
|
|
2388
2408
|
body: await parseBody(output.body, context),
|
|
2389
2409
|
};
|
|
2390
2410
|
let response;
|
|
2391
|
-
|
|
2392
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2411
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2393
2412
|
switch (errorCode) {
|
|
2394
2413
|
case "AccessDeniedException":
|
|
2395
2414
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2408,10 +2427,12 @@ const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, co
|
|
|
2408
2427
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2409
2428
|
default:
|
|
2410
2429
|
const parsedBody = parsedOutput.body;
|
|
2430
|
+
const $metadata = deserializeMetadata(output);
|
|
2431
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2411
2432
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2412
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2433
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2413
2434
|
$fault: "client",
|
|
2414
|
-
$metadata
|
|
2435
|
+
$metadata,
|
|
2415
2436
|
});
|
|
2416
2437
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2417
2438
|
}
|
|
@@ -2437,8 +2458,7 @@ const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, c
|
|
|
2437
2458
|
body: await parseBody(output.body, context),
|
|
2438
2459
|
};
|
|
2439
2460
|
let response;
|
|
2440
|
-
|
|
2441
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2461
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2442
2462
|
switch (errorCode) {
|
|
2443
2463
|
case "AccessDeniedException":
|
|
2444
2464
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2457,10 +2477,12 @@ const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, c
|
|
|
2457
2477
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2458
2478
|
default:
|
|
2459
2479
|
const parsedBody = parsedOutput.body;
|
|
2480
|
+
const $metadata = deserializeMetadata(output);
|
|
2481
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2460
2482
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2461
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2483
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2462
2484
|
$fault: "client",
|
|
2463
|
-
$metadata
|
|
2485
|
+
$metadata,
|
|
2464
2486
|
});
|
|
2465
2487
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2466
2488
|
}
|
|
@@ -2486,8 +2508,7 @@ const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, co
|
|
|
2486
2508
|
body: await parseBody(output.body, context),
|
|
2487
2509
|
};
|
|
2488
2510
|
let response;
|
|
2489
|
-
|
|
2490
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2511
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2491
2512
|
switch (errorCode) {
|
|
2492
2513
|
case "AccessDeniedException":
|
|
2493
2514
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2506,10 +2527,12 @@ const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, co
|
|
|
2506
2527
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2507
2528
|
default:
|
|
2508
2529
|
const parsedBody = parsedOutput.body;
|
|
2530
|
+
const $metadata = deserializeMetadata(output);
|
|
2531
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2509
2532
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2510
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2533
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2511
2534
|
$fault: "client",
|
|
2512
|
-
$metadata
|
|
2535
|
+
$metadata,
|
|
2513
2536
|
});
|
|
2514
2537
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2515
2538
|
}
|
|
@@ -2535,8 +2558,7 @@ const deserializeAws_restJson1GetPortalCommandError = async (output, context) =>
|
|
|
2535
2558
|
body: await parseBody(output.body, context),
|
|
2536
2559
|
};
|
|
2537
2560
|
let response;
|
|
2538
|
-
|
|
2539
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2561
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2540
2562
|
switch (errorCode) {
|
|
2541
2563
|
case "AccessDeniedException":
|
|
2542
2564
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2555,10 +2577,12 @@ const deserializeAws_restJson1GetPortalCommandError = async (output, context) =>
|
|
|
2555
2577
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2556
2578
|
default:
|
|
2557
2579
|
const parsedBody = parsedOutput.body;
|
|
2580
|
+
const $metadata = deserializeMetadata(output);
|
|
2581
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2558
2582
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2559
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2583
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2560
2584
|
$fault: "client",
|
|
2561
|
-
$metadata
|
|
2585
|
+
$metadata,
|
|
2562
2586
|
});
|
|
2563
2587
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2564
2588
|
}
|
|
@@ -2588,8 +2612,7 @@ const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = asy
|
|
|
2588
2612
|
body: await parseBody(output.body, context),
|
|
2589
2613
|
};
|
|
2590
2614
|
let response;
|
|
2591
|
-
|
|
2592
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
2616
|
switch (errorCode) {
|
|
2594
2617
|
case "AccessDeniedException":
|
|
2595
2618
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2608,10 +2631,12 @@ const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = asy
|
|
|
2608
2631
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2609
2632
|
default:
|
|
2610
2633
|
const parsedBody = parsedOutput.body;
|
|
2634
|
+
const $metadata = deserializeMetadata(output);
|
|
2635
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2611
2636
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2612
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2637
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2613
2638
|
$fault: "client",
|
|
2614
|
-
$metadata
|
|
2639
|
+
$metadata,
|
|
2615
2640
|
});
|
|
2616
2641
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2617
2642
|
}
|
|
@@ -2637,8 +2662,7 @@ const deserializeAws_restJson1GetTrustStoreCommandError = async (output, context
|
|
|
2637
2662
|
body: await parseBody(output.body, context),
|
|
2638
2663
|
};
|
|
2639
2664
|
let response;
|
|
2640
|
-
|
|
2641
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2665
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2642
2666
|
switch (errorCode) {
|
|
2643
2667
|
case "AccessDeniedException":
|
|
2644
2668
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2657,10 +2681,12 @@ const deserializeAws_restJson1GetTrustStoreCommandError = async (output, context
|
|
|
2657
2681
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2658
2682
|
default:
|
|
2659
2683
|
const parsedBody = parsedOutput.body;
|
|
2684
|
+
const $metadata = deserializeMetadata(output);
|
|
2685
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2660
2686
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2661
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2687
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2662
2688
|
$fault: "client",
|
|
2663
|
-
$metadata
|
|
2689
|
+
$metadata,
|
|
2664
2690
|
});
|
|
2665
2691
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2666
2692
|
}
|
|
@@ -2690,8 +2716,7 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
|
|
|
2690
2716
|
body: await parseBody(output.body, context),
|
|
2691
2717
|
};
|
|
2692
2718
|
let response;
|
|
2693
|
-
|
|
2694
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2719
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2695
2720
|
switch (errorCode) {
|
|
2696
2721
|
case "AccessDeniedException":
|
|
2697
2722
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2710,10 +2735,12 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
|
|
|
2710
2735
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2711
2736
|
default:
|
|
2712
2737
|
const parsedBody = parsedOutput.body;
|
|
2738
|
+
const $metadata = deserializeMetadata(output);
|
|
2739
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2713
2740
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2714
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2741
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2715
2742
|
$fault: "client",
|
|
2716
|
-
$metadata
|
|
2743
|
+
$metadata,
|
|
2717
2744
|
});
|
|
2718
2745
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2719
2746
|
}
|
|
@@ -2739,8 +2766,7 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
2739
2766
|
body: await parseBody(output.body, context),
|
|
2740
2767
|
};
|
|
2741
2768
|
let response;
|
|
2742
|
-
|
|
2743
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2744
2770
|
switch (errorCode) {
|
|
2745
2771
|
case "AccessDeniedException":
|
|
2746
2772
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2759,10 +2785,12 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
2759
2785
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2760
2786
|
default:
|
|
2761
2787
|
const parsedBody = parsedOutput.body;
|
|
2788
|
+
const $metadata = deserializeMetadata(output);
|
|
2789
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2762
2790
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2763
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2791
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2764
2792
|
$fault: "client",
|
|
2765
|
-
$metadata
|
|
2793
|
+
$metadata,
|
|
2766
2794
|
});
|
|
2767
2795
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2768
2796
|
}
|
|
@@ -2792,8 +2820,7 @@ const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, c
|
|
|
2792
2820
|
body: await parseBody(output.body, context),
|
|
2793
2821
|
};
|
|
2794
2822
|
let response;
|
|
2795
|
-
|
|
2796
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2823
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
2824
|
switch (errorCode) {
|
|
2798
2825
|
case "AccessDeniedException":
|
|
2799
2826
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2809,10 +2836,12 @@ const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, c
|
|
|
2809
2836
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2810
2837
|
default:
|
|
2811
2838
|
const parsedBody = parsedOutput.body;
|
|
2839
|
+
const $metadata = deserializeMetadata(output);
|
|
2840
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2812
2841
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2813
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2842
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2814
2843
|
$fault: "client",
|
|
2815
|
-
$metadata
|
|
2844
|
+
$metadata,
|
|
2816
2845
|
});
|
|
2817
2846
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2818
2847
|
}
|
|
@@ -2842,8 +2871,7 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
2842
2871
|
body: await parseBody(output.body, context),
|
|
2843
2872
|
};
|
|
2844
2873
|
let response;
|
|
2845
|
-
|
|
2846
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2874
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2847
2875
|
switch (errorCode) {
|
|
2848
2876
|
case "AccessDeniedException":
|
|
2849
2877
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2859,10 +2887,12 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
2859
2887
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2860
2888
|
default:
|
|
2861
2889
|
const parsedBody = parsedOutput.body;
|
|
2890
|
+
const $metadata = deserializeMetadata(output);
|
|
2891
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2862
2892
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2863
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2893
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2864
2894
|
$fault: "client",
|
|
2865
|
-
$metadata
|
|
2895
|
+
$metadata,
|
|
2866
2896
|
});
|
|
2867
2897
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2868
2898
|
}
|
|
@@ -2892,8 +2922,7 @@ const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, c
|
|
|
2892
2922
|
body: await parseBody(output.body, context),
|
|
2893
2923
|
};
|
|
2894
2924
|
let response;
|
|
2895
|
-
|
|
2896
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2925
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2897
2926
|
switch (errorCode) {
|
|
2898
2927
|
case "AccessDeniedException":
|
|
2899
2928
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2909,10 +2938,12 @@ const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, c
|
|
|
2909
2938
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2910
2939
|
default:
|
|
2911
2940
|
const parsedBody = parsedOutput.body;
|
|
2941
|
+
const $metadata = deserializeMetadata(output);
|
|
2942
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2912
2943
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2913
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2944
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2914
2945
|
$fault: "client",
|
|
2915
|
-
$metadata
|
|
2946
|
+
$metadata,
|
|
2916
2947
|
});
|
|
2917
2948
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2918
2949
|
}
|
|
@@ -2942,8 +2973,7 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
2942
2973
|
body: await parseBody(output.body, context),
|
|
2943
2974
|
};
|
|
2944
2975
|
let response;
|
|
2945
|
-
|
|
2946
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2976
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2947
2977
|
switch (errorCode) {
|
|
2948
2978
|
case "AccessDeniedException":
|
|
2949
2979
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2959,10 +2989,12 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
2959
2989
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2960
2990
|
default:
|
|
2961
2991
|
const parsedBody = parsedOutput.body;
|
|
2992
|
+
const $metadata = deserializeMetadata(output);
|
|
2993
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2962
2994
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2963
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2995
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2964
2996
|
$fault: "client",
|
|
2965
|
-
$metadata
|
|
2997
|
+
$metadata,
|
|
2966
2998
|
});
|
|
2967
2999
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2968
3000
|
}
|
|
@@ -2988,8 +3020,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2988
3020
|
body: await parseBody(output.body, context),
|
|
2989
3021
|
};
|
|
2990
3022
|
let response;
|
|
2991
|
-
|
|
2992
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3023
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2993
3024
|
switch (errorCode) {
|
|
2994
3025
|
case "AccessDeniedException":
|
|
2995
3026
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3008,10 +3039,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3008
3039
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3009
3040
|
default:
|
|
3010
3041
|
const parsedBody = parsedOutput.body;
|
|
3042
|
+
const $metadata = deserializeMetadata(output);
|
|
3043
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3011
3044
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3012
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3045
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3013
3046
|
$fault: "client",
|
|
3014
|
-
$metadata
|
|
3047
|
+
$metadata,
|
|
3015
3048
|
});
|
|
3016
3049
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3017
3050
|
}
|
|
@@ -3045,8 +3078,7 @@ const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (ou
|
|
|
3045
3078
|
body: await parseBody(output.body, context),
|
|
3046
3079
|
};
|
|
3047
3080
|
let response;
|
|
3048
|
-
|
|
3049
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3081
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3050
3082
|
switch (errorCode) {
|
|
3051
3083
|
case "AccessDeniedException":
|
|
3052
3084
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3065,10 +3097,12 @@ const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (ou
|
|
|
3065
3097
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3066
3098
|
default:
|
|
3067
3099
|
const parsedBody = parsedOutput.body;
|
|
3100
|
+
const $metadata = deserializeMetadata(output);
|
|
3101
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3068
3102
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3069
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3103
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3070
3104
|
$fault: "client",
|
|
3071
|
-
$metadata
|
|
3105
|
+
$metadata,
|
|
3072
3106
|
});
|
|
3073
3107
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3074
3108
|
}
|
|
@@ -3098,8 +3132,7 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
|
|
|
3098
3132
|
body: await parseBody(output.body, context),
|
|
3099
3133
|
};
|
|
3100
3134
|
let response;
|
|
3101
|
-
|
|
3102
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3135
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3103
3136
|
switch (errorCode) {
|
|
3104
3137
|
case "AccessDeniedException":
|
|
3105
3138
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3115,10 +3148,12 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
|
|
|
3115
3148
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3116
3149
|
default:
|
|
3117
3150
|
const parsedBody = parsedOutput.body;
|
|
3151
|
+
const $metadata = deserializeMetadata(output);
|
|
3152
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3118
3153
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3119
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3154
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3120
3155
|
$fault: "client",
|
|
3121
|
-
$metadata
|
|
3156
|
+
$metadata,
|
|
3122
3157
|
});
|
|
3123
3158
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3124
3159
|
}
|
|
@@ -3148,8 +3183,7 @@ const deserializeAws_restJson1ListUserSettingsCommandError = async (output, cont
|
|
|
3148
3183
|
body: await parseBody(output.body, context),
|
|
3149
3184
|
};
|
|
3150
3185
|
let response;
|
|
3151
|
-
|
|
3152
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3186
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3153
3187
|
switch (errorCode) {
|
|
3154
3188
|
case "AccessDeniedException":
|
|
3155
3189
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3165,10 +3199,12 @@ const deserializeAws_restJson1ListUserSettingsCommandError = async (output, cont
|
|
|
3165
3199
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3166
3200
|
default:
|
|
3167
3201
|
const parsedBody = parsedOutput.body;
|
|
3202
|
+
const $metadata = deserializeMetadata(output);
|
|
3203
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3168
3204
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3169
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3205
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3170
3206
|
$fault: "client",
|
|
3171
|
-
$metadata
|
|
3207
|
+
$metadata,
|
|
3172
3208
|
});
|
|
3173
3209
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3174
3210
|
}
|
|
@@ -3190,8 +3226,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3190
3226
|
body: await parseBody(output.body, context),
|
|
3191
3227
|
};
|
|
3192
3228
|
let response;
|
|
3193
|
-
|
|
3194
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3229
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3195
3230
|
switch (errorCode) {
|
|
3196
3231
|
case "AccessDeniedException":
|
|
3197
3232
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3213,10 +3248,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3213
3248
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3214
3249
|
default:
|
|
3215
3250
|
const parsedBody = parsedOutput.body;
|
|
3251
|
+
const $metadata = deserializeMetadata(output);
|
|
3252
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3216
3253
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3217
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3254
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3218
3255
|
$fault: "client",
|
|
3219
|
-
$metadata
|
|
3256
|
+
$metadata,
|
|
3220
3257
|
});
|
|
3221
3258
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3222
3259
|
}
|
|
@@ -3238,8 +3275,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3238
3275
|
body: await parseBody(output.body, context),
|
|
3239
3276
|
};
|
|
3240
3277
|
let response;
|
|
3241
|
-
|
|
3242
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3278
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3243
3279
|
switch (errorCode) {
|
|
3244
3280
|
case "AccessDeniedException":
|
|
3245
3281
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3258,10 +3294,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3258
3294
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3259
3295
|
default:
|
|
3260
3296
|
const parsedBody = parsedOutput.body;
|
|
3297
|
+
const $metadata = deserializeMetadata(output);
|
|
3298
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3261
3299
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3262
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3300
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3263
3301
|
$fault: "client",
|
|
3264
|
-
$metadata
|
|
3302
|
+
$metadata,
|
|
3265
3303
|
});
|
|
3266
3304
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3267
3305
|
}
|
|
@@ -3287,8 +3325,7 @@ const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output,
|
|
|
3287
3325
|
body: await parseBody(output.body, context),
|
|
3288
3326
|
};
|
|
3289
3327
|
let response;
|
|
3290
|
-
|
|
3291
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3328
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3292
3329
|
switch (errorCode) {
|
|
3293
3330
|
case "AccessDeniedException":
|
|
3294
3331
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3307,10 +3344,12 @@ const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output,
|
|
|
3307
3344
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3308
3345
|
default:
|
|
3309
3346
|
const parsedBody = parsedOutput.body;
|
|
3347
|
+
const $metadata = deserializeMetadata(output);
|
|
3348
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3310
3349
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3311
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3350
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3312
3351
|
$fault: "client",
|
|
3313
|
-
$metadata
|
|
3352
|
+
$metadata,
|
|
3314
3353
|
});
|
|
3315
3354
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3316
3355
|
}
|
|
@@ -3336,8 +3375,7 @@ const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output
|
|
|
3336
3375
|
body: await parseBody(output.body, context),
|
|
3337
3376
|
};
|
|
3338
3377
|
let response;
|
|
3339
|
-
|
|
3340
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3378
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3341
3379
|
switch (errorCode) {
|
|
3342
3380
|
case "AccessDeniedException":
|
|
3343
3381
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3356,10 +3394,12 @@ const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output
|
|
|
3356
3394
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3357
3395
|
default:
|
|
3358
3396
|
const parsedBody = parsedOutput.body;
|
|
3397
|
+
const $metadata = deserializeMetadata(output);
|
|
3398
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3359
3399
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3360
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3400
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3361
3401
|
$fault: "client",
|
|
3362
|
-
$metadata
|
|
3402
|
+
$metadata,
|
|
3363
3403
|
});
|
|
3364
3404
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3365
3405
|
}
|
|
@@ -3385,8 +3425,7 @@ const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output,
|
|
|
3385
3425
|
body: await parseBody(output.body, context),
|
|
3386
3426
|
};
|
|
3387
3427
|
let response;
|
|
3388
|
-
|
|
3389
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3428
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3390
3429
|
switch (errorCode) {
|
|
3391
3430
|
case "AccessDeniedException":
|
|
3392
3431
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3405,10 +3444,12 @@ const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output,
|
|
|
3405
3444
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3406
3445
|
default:
|
|
3407
3446
|
const parsedBody = parsedOutput.body;
|
|
3447
|
+
const $metadata = deserializeMetadata(output);
|
|
3448
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3408
3449
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3409
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3450
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3410
3451
|
$fault: "client",
|
|
3411
|
-
$metadata
|
|
3452
|
+
$metadata,
|
|
3412
3453
|
});
|
|
3413
3454
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3414
3455
|
}
|
|
@@ -3434,8 +3475,7 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
3434
3475
|
body: await parseBody(output.body, context),
|
|
3435
3476
|
};
|
|
3436
3477
|
let response;
|
|
3437
|
-
|
|
3438
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3478
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3439
3479
|
switch (errorCode) {
|
|
3440
3480
|
case "AccessDeniedException":
|
|
3441
3481
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3454,10 +3494,12 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
3454
3494
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3455
3495
|
default:
|
|
3456
3496
|
const parsedBody = parsedOutput.body;
|
|
3497
|
+
const $metadata = deserializeMetadata(output);
|
|
3498
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3457
3499
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3458
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3500
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3459
3501
|
$fault: "client",
|
|
3460
|
-
$metadata
|
|
3502
|
+
$metadata,
|
|
3461
3503
|
});
|
|
3462
3504
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3463
3505
|
}
|
|
@@ -3483,8 +3525,7 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
|
|
|
3483
3525
|
body: await parseBody(output.body, context),
|
|
3484
3526
|
};
|
|
3485
3527
|
let response;
|
|
3486
|
-
|
|
3487
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3528
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3488
3529
|
switch (errorCode) {
|
|
3489
3530
|
case "AccessDeniedException":
|
|
3490
3531
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3506,10 +3547,12 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
|
|
|
3506
3547
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3507
3548
|
default:
|
|
3508
3549
|
const parsedBody = parsedOutput.body;
|
|
3550
|
+
const $metadata = deserializeMetadata(output);
|
|
3551
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3509
3552
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3510
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3553
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3511
3554
|
$fault: "client",
|
|
3512
|
-
$metadata
|
|
3555
|
+
$metadata,
|
|
3513
3556
|
});
|
|
3514
3557
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3515
3558
|
}
|
|
@@ -3535,8 +3578,7 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
3535
3578
|
body: await parseBody(output.body, context),
|
|
3536
3579
|
};
|
|
3537
3580
|
let response;
|
|
3538
|
-
|
|
3539
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3581
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3540
3582
|
switch (errorCode) {
|
|
3541
3583
|
case "AccessDeniedException":
|
|
3542
3584
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3555,10 +3597,12 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
3555
3597
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3556
3598
|
default:
|
|
3557
3599
|
const parsedBody = parsedOutput.body;
|
|
3600
|
+
const $metadata = deserializeMetadata(output);
|
|
3601
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3558
3602
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3559
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3603
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3560
3604
|
$fault: "client",
|
|
3561
|
-
$metadata
|
|
3605
|
+
$metadata,
|
|
3562
3606
|
});
|
|
3563
3607
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3564
3608
|
}
|
|
@@ -4140,5 +4184,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4140
4184
|
if (data["__type"] !== undefined) {
|
|
4141
4185
|
return sanitizeErrorCode(data["__type"]);
|
|
4142
4186
|
}
|
|
4143
|
-
return "";
|
|
4144
4187
|
};
|