@aws-sdk/client-macie2 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 +285 -229
- package/dist-es/protocols/Aws_restJson1.js +285 -229
- package/package.json +3 -3
|
@@ -1453,8 +1453,7 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
1453
1453
|
body: await parseBody(output.body, context),
|
|
1454
1454
|
};
|
|
1455
1455
|
let response;
|
|
1456
|
-
|
|
1457
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
1457
|
switch (errorCode) {
|
|
1459
1458
|
case "AccessDeniedException":
|
|
1460
1459
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1479,10 +1478,12 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
1479
1478
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1480
1479
|
default:
|
|
1481
1480
|
const parsedBody = parsedOutput.body;
|
|
1481
|
+
const $metadata = deserializeMetadata(output);
|
|
1482
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1482
1483
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1483
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1484
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1484
1485
|
$fault: "client",
|
|
1485
|
-
$metadata
|
|
1486
|
+
$metadata,
|
|
1486
1487
|
});
|
|
1487
1488
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1488
1489
|
}
|
|
@@ -1512,8 +1513,7 @@ const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = async
|
|
|
1512
1513
|
body: await parseBody(output.body, context),
|
|
1513
1514
|
};
|
|
1514
1515
|
let response;
|
|
1515
|
-
|
|
1516
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1517
1517
|
switch (errorCode) {
|
|
1518
1518
|
case "AccessDeniedException":
|
|
1519
1519
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1538,10 +1538,12 @@ const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = async
|
|
|
1538
1538
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1539
1539
|
default:
|
|
1540
1540
|
const parsedBody = parsedOutput.body;
|
|
1541
|
+
const $metadata = deserializeMetadata(output);
|
|
1542
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1541
1543
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1542
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1544
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1543
1545
|
$fault: "client",
|
|
1544
|
-
$metadata
|
|
1546
|
+
$metadata,
|
|
1545
1547
|
});
|
|
1546
1548
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1547
1549
|
}
|
|
@@ -1571,8 +1573,7 @@ const deserializeAws_restJson1CreateClassificationJobCommandError = async (outpu
|
|
|
1571
1573
|
body: await parseBody(output.body, context),
|
|
1572
1574
|
};
|
|
1573
1575
|
let response;
|
|
1574
|
-
|
|
1575
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
1577
|
switch (errorCode) {
|
|
1577
1578
|
case "AccessDeniedException":
|
|
1578
1579
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1597,10 +1598,12 @@ const deserializeAws_restJson1CreateClassificationJobCommandError = async (outpu
|
|
|
1597
1598
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1598
1599
|
default:
|
|
1599
1600
|
const parsedBody = parsedOutput.body;
|
|
1601
|
+
const $metadata = deserializeMetadata(output);
|
|
1602
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1600
1603
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1601
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1604
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1602
1605
|
$fault: "client",
|
|
1603
|
-
$metadata
|
|
1606
|
+
$metadata,
|
|
1604
1607
|
});
|
|
1605
1608
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1606
1609
|
}
|
|
@@ -1626,8 +1629,7 @@ const deserializeAws_restJson1CreateCustomDataIdentifierCommandError = async (ou
|
|
|
1626
1629
|
body: await parseBody(output.body, context),
|
|
1627
1630
|
};
|
|
1628
1631
|
let response;
|
|
1629
|
-
|
|
1630
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
1633
|
switch (errorCode) {
|
|
1632
1634
|
case "AccessDeniedException":
|
|
1633
1635
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1652,10 +1654,12 @@ const deserializeAws_restJson1CreateCustomDataIdentifierCommandError = async (ou
|
|
|
1652
1654
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1653
1655
|
default:
|
|
1654
1656
|
const parsedBody = parsedOutput.body;
|
|
1657
|
+
const $metadata = deserializeMetadata(output);
|
|
1658
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1655
1659
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1656
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1660
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1657
1661
|
$fault: "client",
|
|
1658
|
-
$metadata
|
|
1662
|
+
$metadata,
|
|
1659
1663
|
});
|
|
1660
1664
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1661
1665
|
}
|
|
@@ -1685,8 +1689,7 @@ const deserializeAws_restJson1CreateFindingsFilterCommandError = async (output,
|
|
|
1685
1689
|
body: await parseBody(output.body, context),
|
|
1686
1690
|
};
|
|
1687
1691
|
let response;
|
|
1688
|
-
|
|
1689
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
1693
|
switch (errorCode) {
|
|
1691
1694
|
case "AccessDeniedException":
|
|
1692
1695
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1711,10 +1714,12 @@ const deserializeAws_restJson1CreateFindingsFilterCommandError = async (output,
|
|
|
1711
1714
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1712
1715
|
default:
|
|
1713
1716
|
const parsedBody = parsedOutput.body;
|
|
1717
|
+
const $metadata = deserializeMetadata(output);
|
|
1718
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1714
1719
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1720
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1716
1721
|
$fault: "client",
|
|
1717
|
-
$metadata
|
|
1722
|
+
$metadata,
|
|
1718
1723
|
});
|
|
1719
1724
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1720
1725
|
}
|
|
@@ -1740,8 +1745,7 @@ const deserializeAws_restJson1CreateInvitationsCommandError = async (output, con
|
|
|
1740
1745
|
body: await parseBody(output.body, context),
|
|
1741
1746
|
};
|
|
1742
1747
|
let response;
|
|
1743
|
-
|
|
1744
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
1749
|
switch (errorCode) {
|
|
1746
1750
|
case "AccessDeniedException":
|
|
1747
1751
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1766,10 +1770,12 @@ const deserializeAws_restJson1CreateInvitationsCommandError = async (output, con
|
|
|
1766
1770
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1767
1771
|
default:
|
|
1768
1772
|
const parsedBody = parsedOutput.body;
|
|
1773
|
+
const $metadata = deserializeMetadata(output);
|
|
1774
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1769
1775
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1770
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1776
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1771
1777
|
$fault: "client",
|
|
1772
|
-
$metadata
|
|
1778
|
+
$metadata,
|
|
1773
1779
|
});
|
|
1774
1780
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1775
1781
|
}
|
|
@@ -1795,8 +1801,7 @@ const deserializeAws_restJson1CreateMemberCommandError = async (output, context)
|
|
|
1795
1801
|
body: await parseBody(output.body, context),
|
|
1796
1802
|
};
|
|
1797
1803
|
let response;
|
|
1798
|
-
|
|
1799
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1804
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1800
1805
|
switch (errorCode) {
|
|
1801
1806
|
case "AccessDeniedException":
|
|
1802
1807
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1821,10 +1826,12 @@ const deserializeAws_restJson1CreateMemberCommandError = async (output, context)
|
|
|
1821
1826
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1822
1827
|
default:
|
|
1823
1828
|
const parsedBody = parsedOutput.body;
|
|
1829
|
+
const $metadata = deserializeMetadata(output);
|
|
1830
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1824
1831
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1832
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1826
1833
|
$fault: "client",
|
|
1827
|
-
$metadata
|
|
1834
|
+
$metadata,
|
|
1828
1835
|
});
|
|
1829
1836
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1830
1837
|
}
|
|
@@ -1846,8 +1853,7 @@ const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output,
|
|
|
1846
1853
|
body: await parseBody(output.body, context),
|
|
1847
1854
|
};
|
|
1848
1855
|
let response;
|
|
1849
|
-
|
|
1850
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1856
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1851
1857
|
switch (errorCode) {
|
|
1852
1858
|
case "AccessDeniedException":
|
|
1853
1859
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1872,10 +1878,12 @@ const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output,
|
|
|
1872
1878
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1873
1879
|
default:
|
|
1874
1880
|
const parsedBody = parsedOutput.body;
|
|
1881
|
+
const $metadata = deserializeMetadata(output);
|
|
1882
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1875
1883
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1876
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1884
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1877
1885
|
$fault: "client",
|
|
1878
|
-
$metadata
|
|
1886
|
+
$metadata,
|
|
1879
1887
|
});
|
|
1880
1888
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1881
1889
|
}
|
|
@@ -1901,8 +1909,7 @@ const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, co
|
|
|
1901
1909
|
body: await parseBody(output.body, context),
|
|
1902
1910
|
};
|
|
1903
1911
|
let response;
|
|
1904
|
-
|
|
1905
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1906
1913
|
switch (errorCode) {
|
|
1907
1914
|
case "AccessDeniedException":
|
|
1908
1915
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1927,10 +1934,12 @@ const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, co
|
|
|
1927
1934
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1928
1935
|
default:
|
|
1929
1936
|
const parsedBody = parsedOutput.body;
|
|
1937
|
+
const $metadata = deserializeMetadata(output);
|
|
1938
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1930
1939
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1931
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1940
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1932
1941
|
$fault: "client",
|
|
1933
|
-
$metadata
|
|
1942
|
+
$metadata,
|
|
1934
1943
|
});
|
|
1935
1944
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1936
1945
|
}
|
|
@@ -1952,8 +1961,7 @@ const deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = async (ou
|
|
|
1952
1961
|
body: await parseBody(output.body, context),
|
|
1953
1962
|
};
|
|
1954
1963
|
let response;
|
|
1955
|
-
|
|
1956
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1964
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
1965
|
switch (errorCode) {
|
|
1958
1966
|
case "AccessDeniedException":
|
|
1959
1967
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1978,10 +1986,12 @@ const deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = async (ou
|
|
|
1978
1986
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1979
1987
|
default:
|
|
1980
1988
|
const parsedBody = parsedOutput.body;
|
|
1989
|
+
const $metadata = deserializeMetadata(output);
|
|
1990
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1981
1991
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1982
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1992
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1983
1993
|
$fault: "client",
|
|
1984
|
-
$metadata
|
|
1994
|
+
$metadata,
|
|
1985
1995
|
});
|
|
1986
1996
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1987
1997
|
}
|
|
@@ -2003,8 +2013,7 @@ const deserializeAws_restJson1DeleteFindingsFilterCommandError = async (output,
|
|
|
2003
2013
|
body: await parseBody(output.body, context),
|
|
2004
2014
|
};
|
|
2005
2015
|
let response;
|
|
2006
|
-
|
|
2007
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2016
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2008
2017
|
switch (errorCode) {
|
|
2009
2018
|
case "AccessDeniedException":
|
|
2010
2019
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2029,10 +2038,12 @@ const deserializeAws_restJson1DeleteFindingsFilterCommandError = async (output,
|
|
|
2029
2038
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2030
2039
|
default:
|
|
2031
2040
|
const parsedBody = parsedOutput.body;
|
|
2041
|
+
const $metadata = deserializeMetadata(output);
|
|
2042
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2032
2043
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2033
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2044
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2034
2045
|
$fault: "client",
|
|
2035
|
-
$metadata
|
|
2046
|
+
$metadata,
|
|
2036
2047
|
});
|
|
2037
2048
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2038
2049
|
}
|
|
@@ -2058,8 +2069,7 @@ const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, con
|
|
|
2058
2069
|
body: await parseBody(output.body, context),
|
|
2059
2070
|
};
|
|
2060
2071
|
let response;
|
|
2061
|
-
|
|
2062
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2072
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2063
2073
|
switch (errorCode) {
|
|
2064
2074
|
case "AccessDeniedException":
|
|
2065
2075
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2084,10 +2094,12 @@ const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, con
|
|
|
2084
2094
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2085
2095
|
default:
|
|
2086
2096
|
const parsedBody = parsedOutput.body;
|
|
2097
|
+
const $metadata = deserializeMetadata(output);
|
|
2098
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2087
2099
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2088
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2100
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2089
2101
|
$fault: "client",
|
|
2090
|
-
$metadata
|
|
2102
|
+
$metadata,
|
|
2091
2103
|
});
|
|
2092
2104
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2093
2105
|
}
|
|
@@ -2109,8 +2121,7 @@ const deserializeAws_restJson1DeleteMemberCommandError = async (output, context)
|
|
|
2109
2121
|
body: await parseBody(output.body, context),
|
|
2110
2122
|
};
|
|
2111
2123
|
let response;
|
|
2112
|
-
|
|
2113
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2124
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2114
2125
|
switch (errorCode) {
|
|
2115
2126
|
case "AccessDeniedException":
|
|
2116
2127
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2135,10 +2146,12 @@ const deserializeAws_restJson1DeleteMemberCommandError = async (output, context)
|
|
|
2135
2146
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2136
2147
|
default:
|
|
2137
2148
|
const parsedBody = parsedOutput.body;
|
|
2149
|
+
const $metadata = deserializeMetadata(output);
|
|
2150
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2138
2151
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2139
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2152
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2140
2153
|
$fault: "client",
|
|
2141
|
-
$metadata
|
|
2154
|
+
$metadata,
|
|
2142
2155
|
});
|
|
2143
2156
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2144
2157
|
}
|
|
@@ -2168,8 +2181,7 @@ const deserializeAws_restJson1DescribeBucketsCommandError = async (output, conte
|
|
|
2168
2181
|
body: await parseBody(output.body, context),
|
|
2169
2182
|
};
|
|
2170
2183
|
let response;
|
|
2171
|
-
|
|
2172
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2184
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
2185
|
switch (errorCode) {
|
|
2174
2186
|
case "AccessDeniedException":
|
|
2175
2187
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2194,10 +2206,12 @@ const deserializeAws_restJson1DescribeBucketsCommandError = async (output, conte
|
|
|
2194
2206
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2195
2207
|
default:
|
|
2196
2208
|
const parsedBody = parsedOutput.body;
|
|
2209
|
+
const $metadata = deserializeMetadata(output);
|
|
2210
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2197
2211
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2198
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2212
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2199
2213
|
$fault: "client",
|
|
2200
|
-
$metadata
|
|
2214
|
+
$metadata,
|
|
2201
2215
|
});
|
|
2202
2216
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2203
2217
|
}
|
|
@@ -2299,8 +2313,7 @@ const deserializeAws_restJson1DescribeClassificationJobCommandError = async (out
|
|
|
2299
2313
|
body: await parseBody(output.body, context),
|
|
2300
2314
|
};
|
|
2301
2315
|
let response;
|
|
2302
|
-
|
|
2303
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2316
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2304
2317
|
switch (errorCode) {
|
|
2305
2318
|
case "AccessDeniedException":
|
|
2306
2319
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2325,10 +2338,12 @@ const deserializeAws_restJson1DescribeClassificationJobCommandError = async (out
|
|
|
2325
2338
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2326
2339
|
default:
|
|
2327
2340
|
const parsedBody = parsedOutput.body;
|
|
2341
|
+
const $metadata = deserializeMetadata(output);
|
|
2342
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2328
2343
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2329
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2344
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2330
2345
|
$fault: "client",
|
|
2331
|
-
$metadata
|
|
2346
|
+
$metadata,
|
|
2332
2347
|
});
|
|
2333
2348
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2334
2349
|
}
|
|
@@ -2358,8 +2373,7 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
2358
2373
|
body: await parseBody(output.body, context),
|
|
2359
2374
|
};
|
|
2360
2375
|
let response;
|
|
2361
|
-
|
|
2362
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2376
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2363
2377
|
switch (errorCode) {
|
|
2364
2378
|
case "AccessDeniedException":
|
|
2365
2379
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2384,10 +2398,12 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
2384
2398
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2385
2399
|
default:
|
|
2386
2400
|
const parsedBody = parsedOutput.body;
|
|
2401
|
+
const $metadata = deserializeMetadata(output);
|
|
2402
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2387
2403
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2388
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2404
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2389
2405
|
$fault: "client",
|
|
2390
|
-
$metadata
|
|
2406
|
+
$metadata,
|
|
2391
2407
|
});
|
|
2392
2408
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2393
2409
|
}
|
|
@@ -2409,8 +2425,7 @@ const deserializeAws_restJson1DisableMacieCommandError = async (output, context)
|
|
|
2409
2425
|
body: await parseBody(output.body, context),
|
|
2410
2426
|
};
|
|
2411
2427
|
let response;
|
|
2412
|
-
|
|
2413
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2414
2429
|
switch (errorCode) {
|
|
2415
2430
|
case "AccessDeniedException":
|
|
2416
2431
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2435,10 +2450,12 @@ const deserializeAws_restJson1DisableMacieCommandError = async (output, context)
|
|
|
2435
2450
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2436
2451
|
default:
|
|
2437
2452
|
const parsedBody = parsedOutput.body;
|
|
2453
|
+
const $metadata = deserializeMetadata(output);
|
|
2454
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2438
2455
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2439
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2456
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2440
2457
|
$fault: "client",
|
|
2441
|
-
$metadata
|
|
2458
|
+
$metadata,
|
|
2442
2459
|
});
|
|
2443
2460
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2444
2461
|
}
|
|
@@ -2460,8 +2477,7 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
2460
2477
|
body: await parseBody(output.body, context),
|
|
2461
2478
|
};
|
|
2462
2479
|
let response;
|
|
2463
|
-
|
|
2464
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2480
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
2481
|
switch (errorCode) {
|
|
2466
2482
|
case "AccessDeniedException":
|
|
2467
2483
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2486,10 +2502,12 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
2486
2502
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2487
2503
|
default:
|
|
2488
2504
|
const parsedBody = parsedOutput.body;
|
|
2505
|
+
const $metadata = deserializeMetadata(output);
|
|
2506
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2489
2507
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2490
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2508
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2491
2509
|
$fault: "client",
|
|
2492
|
-
$metadata
|
|
2510
|
+
$metadata,
|
|
2493
2511
|
});
|
|
2494
2512
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2495
2513
|
}
|
|
@@ -2511,8 +2529,7 @@ const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError =
|
|
|
2511
2529
|
body: await parseBody(output.body, context),
|
|
2512
2530
|
};
|
|
2513
2531
|
let response;
|
|
2514
|
-
|
|
2515
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2532
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
2533
|
switch (errorCode) {
|
|
2517
2534
|
case "AccessDeniedException":
|
|
2518
2535
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2537,10 +2554,12 @@ const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError =
|
|
|
2537
2554
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2538
2555
|
default:
|
|
2539
2556
|
const parsedBody = parsedOutput.body;
|
|
2557
|
+
const $metadata = deserializeMetadata(output);
|
|
2558
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2540
2559
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2541
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2560
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2542
2561
|
$fault: "client",
|
|
2543
|
-
$metadata
|
|
2562
|
+
$metadata,
|
|
2544
2563
|
});
|
|
2545
2564
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2546
2565
|
}
|
|
@@ -2562,8 +2581,7 @@ const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async
|
|
|
2562
2581
|
body: await parseBody(output.body, context),
|
|
2563
2582
|
};
|
|
2564
2583
|
let response;
|
|
2565
|
-
|
|
2566
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2567
2585
|
switch (errorCode) {
|
|
2568
2586
|
case "AccessDeniedException":
|
|
2569
2587
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2588,10 +2606,12 @@ const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async
|
|
|
2588
2606
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2589
2607
|
default:
|
|
2590
2608
|
const parsedBody = parsedOutput.body;
|
|
2609
|
+
const $metadata = deserializeMetadata(output);
|
|
2610
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2591
2611
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2592
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2612
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2593
2613
|
$fault: "client",
|
|
2594
|
-
$metadata
|
|
2614
|
+
$metadata,
|
|
2595
2615
|
});
|
|
2596
2616
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2597
2617
|
}
|
|
@@ -2613,8 +2633,7 @@ const deserializeAws_restJson1DisassociateMemberCommandError = async (output, co
|
|
|
2613
2633
|
body: await parseBody(output.body, context),
|
|
2614
2634
|
};
|
|
2615
2635
|
let response;
|
|
2616
|
-
|
|
2617
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2636
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2618
2637
|
switch (errorCode) {
|
|
2619
2638
|
case "AccessDeniedException":
|
|
2620
2639
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2639,10 +2658,12 @@ const deserializeAws_restJson1DisassociateMemberCommandError = async (output, co
|
|
|
2639
2658
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2640
2659
|
default:
|
|
2641
2660
|
const parsedBody = parsedOutput.body;
|
|
2661
|
+
const $metadata = deserializeMetadata(output);
|
|
2662
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2642
2663
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2643
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2664
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2644
2665
|
$fault: "client",
|
|
2645
|
-
$metadata
|
|
2666
|
+
$metadata,
|
|
2646
2667
|
});
|
|
2647
2668
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2648
2669
|
}
|
|
@@ -2664,8 +2685,7 @@ const deserializeAws_restJson1EnableMacieCommandError = async (output, context)
|
|
|
2664
2685
|
body: await parseBody(output.body, context),
|
|
2665
2686
|
};
|
|
2666
2687
|
let response;
|
|
2667
|
-
|
|
2668
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2688
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2669
2689
|
switch (errorCode) {
|
|
2670
2690
|
case "AccessDeniedException":
|
|
2671
2691
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2690,10 +2710,12 @@ const deserializeAws_restJson1EnableMacieCommandError = async (output, context)
|
|
|
2690
2710
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2691
2711
|
default:
|
|
2692
2712
|
const parsedBody = parsedOutput.body;
|
|
2713
|
+
const $metadata = deserializeMetadata(output);
|
|
2714
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2693
2715
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2716
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2695
2717
|
$fault: "client",
|
|
2696
|
-
$metadata
|
|
2718
|
+
$metadata,
|
|
2697
2719
|
});
|
|
2698
2720
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2699
2721
|
}
|
|
@@ -2715,8 +2737,7 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
2715
2737
|
body: await parseBody(output.body, context),
|
|
2716
2738
|
};
|
|
2717
2739
|
let response;
|
|
2718
|
-
|
|
2719
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2740
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2720
2741
|
switch (errorCode) {
|
|
2721
2742
|
case "AccessDeniedException":
|
|
2722
2743
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2741,10 +2762,12 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
2741
2762
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2742
2763
|
default:
|
|
2743
2764
|
const parsedBody = parsedOutput.body;
|
|
2765
|
+
const $metadata = deserializeMetadata(output);
|
|
2766
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2744
2767
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2745
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2768
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2746
2769
|
$fault: "client",
|
|
2747
|
-
$metadata
|
|
2770
|
+
$metadata,
|
|
2748
2771
|
});
|
|
2749
2772
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2750
2773
|
}
|
|
@@ -2770,8 +2793,7 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
|
|
|
2770
2793
|
body: await parseBody(output.body, context),
|
|
2771
2794
|
};
|
|
2772
2795
|
let response;
|
|
2773
|
-
|
|
2774
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2796
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2775
2797
|
switch (errorCode) {
|
|
2776
2798
|
case "AccessDeniedException":
|
|
2777
2799
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2796,10 +2818,12 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
|
|
|
2796
2818
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2797
2819
|
default:
|
|
2798
2820
|
const parsedBody = parsedOutput.body;
|
|
2821
|
+
const $metadata = deserializeMetadata(output);
|
|
2822
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2799
2823
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2800
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2824
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2801
2825
|
$fault: "client",
|
|
2802
|
-
$metadata
|
|
2826
|
+
$metadata,
|
|
2803
2827
|
});
|
|
2804
2828
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2805
2829
|
}
|
|
@@ -2875,8 +2899,7 @@ const deserializeAws_restJson1GetBucketStatisticsCommandError = async (output, c
|
|
|
2875
2899
|
body: await parseBody(output.body, context),
|
|
2876
2900
|
};
|
|
2877
2901
|
let response;
|
|
2878
|
-
|
|
2879
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2902
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2880
2903
|
switch (errorCode) {
|
|
2881
2904
|
case "AccessDeniedException":
|
|
2882
2905
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2901,10 +2924,12 @@ const deserializeAws_restJson1GetBucketStatisticsCommandError = async (output, c
|
|
|
2901
2924
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2902
2925
|
default:
|
|
2903
2926
|
const parsedBody = parsedOutput.body;
|
|
2927
|
+
const $metadata = deserializeMetadata(output);
|
|
2928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2904
2929
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2905
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2906
2931
|
$fault: "client",
|
|
2907
|
-
$metadata
|
|
2932
|
+
$metadata,
|
|
2908
2933
|
});
|
|
2909
2934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2910
2935
|
}
|
|
@@ -2930,8 +2955,7 @@ const deserializeAws_restJson1GetClassificationExportConfigurationCommandError =
|
|
|
2930
2955
|
body: await parseBody(output.body, context),
|
|
2931
2956
|
};
|
|
2932
2957
|
let response;
|
|
2933
|
-
|
|
2934
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2958
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
2959
|
switch (errorCode) {
|
|
2936
2960
|
case "AccessDeniedException":
|
|
2937
2961
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2956,10 +2980,12 @@ const deserializeAws_restJson1GetClassificationExportConfigurationCommandError =
|
|
|
2956
2980
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2957
2981
|
default:
|
|
2958
2982
|
const parsedBody = parsedOutput.body;
|
|
2983
|
+
const $metadata = deserializeMetadata(output);
|
|
2984
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2959
2985
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2960
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2986
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2961
2987
|
$fault: "client",
|
|
2962
|
-
$metadata
|
|
2988
|
+
$metadata,
|
|
2963
2989
|
});
|
|
2964
2990
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2965
2991
|
}
|
|
@@ -3029,8 +3055,7 @@ const deserializeAws_restJson1GetCustomDataIdentifierCommandError = async (outpu
|
|
|
3029
3055
|
body: await parseBody(output.body, context),
|
|
3030
3056
|
};
|
|
3031
3057
|
let response;
|
|
3032
|
-
|
|
3033
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3058
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3034
3059
|
switch (errorCode) {
|
|
3035
3060
|
case "AccessDeniedException":
|
|
3036
3061
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3055,10 +3080,12 @@ const deserializeAws_restJson1GetCustomDataIdentifierCommandError = async (outpu
|
|
|
3055
3080
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3056
3081
|
default:
|
|
3057
3082
|
const parsedBody = parsedOutput.body;
|
|
3083
|
+
const $metadata = deserializeMetadata(output);
|
|
3084
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3058
3085
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3059
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3086
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3060
3087
|
$fault: "client",
|
|
3061
|
-
$metadata
|
|
3088
|
+
$metadata,
|
|
3062
3089
|
});
|
|
3063
3090
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3064
3091
|
}
|
|
@@ -3084,8 +3111,7 @@ const deserializeAws_restJson1GetFindingsCommandError = async (output, context)
|
|
|
3084
3111
|
body: await parseBody(output.body, context),
|
|
3085
3112
|
};
|
|
3086
3113
|
let response;
|
|
3087
|
-
|
|
3088
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3114
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3089
3115
|
switch (errorCode) {
|
|
3090
3116
|
case "AccessDeniedException":
|
|
3091
3117
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3110,10 +3136,12 @@ const deserializeAws_restJson1GetFindingsCommandError = async (output, context)
|
|
|
3110
3136
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3111
3137
|
default:
|
|
3112
3138
|
const parsedBody = parsedOutput.body;
|
|
3139
|
+
const $metadata = deserializeMetadata(output);
|
|
3140
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3113
3141
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3114
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3142
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3115
3143
|
$fault: "client",
|
|
3116
|
-
$metadata
|
|
3144
|
+
$metadata,
|
|
3117
3145
|
});
|
|
3118
3146
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3119
3147
|
}
|
|
@@ -3167,8 +3195,7 @@ const deserializeAws_restJson1GetFindingsFilterCommandError = async (output, con
|
|
|
3167
3195
|
body: await parseBody(output.body, context),
|
|
3168
3196
|
};
|
|
3169
3197
|
let response;
|
|
3170
|
-
|
|
3171
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3172
3199
|
switch (errorCode) {
|
|
3173
3200
|
case "AccessDeniedException":
|
|
3174
3201
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3193,10 +3220,12 @@ const deserializeAws_restJson1GetFindingsFilterCommandError = async (output, con
|
|
|
3193
3220
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3194
3221
|
default:
|
|
3195
3222
|
const parsedBody = parsedOutput.body;
|
|
3223
|
+
const $metadata = deserializeMetadata(output);
|
|
3224
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3196
3225
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3197
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3226
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3198
3227
|
$fault: "client",
|
|
3199
|
-
$metadata
|
|
3228
|
+
$metadata,
|
|
3200
3229
|
});
|
|
3201
3230
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3202
3231
|
}
|
|
@@ -3222,8 +3251,7 @@ const deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError =
|
|
|
3222
3251
|
body: await parseBody(output.body, context),
|
|
3223
3252
|
};
|
|
3224
3253
|
let response;
|
|
3225
|
-
|
|
3226
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3254
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3227
3255
|
switch (errorCode) {
|
|
3228
3256
|
case "AccessDeniedException":
|
|
3229
3257
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3248,10 +3276,12 @@ const deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError =
|
|
|
3248
3276
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3249
3277
|
default:
|
|
3250
3278
|
const parsedBody = parsedOutput.body;
|
|
3279
|
+
const $metadata = deserializeMetadata(output);
|
|
3280
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3251
3281
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3252
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3282
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3253
3283
|
$fault: "client",
|
|
3254
|
-
$metadata
|
|
3284
|
+
$metadata,
|
|
3255
3285
|
});
|
|
3256
3286
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3257
3287
|
}
|
|
@@ -3277,8 +3307,7 @@ const deserializeAws_restJson1GetFindingStatisticsCommandError = async (output,
|
|
|
3277
3307
|
body: await parseBody(output.body, context),
|
|
3278
3308
|
};
|
|
3279
3309
|
let response;
|
|
3280
|
-
|
|
3281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3310
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3282
3311
|
switch (errorCode) {
|
|
3283
3312
|
case "AccessDeniedException":
|
|
3284
3313
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3303,10 +3332,12 @@ const deserializeAws_restJson1GetFindingStatisticsCommandError = async (output,
|
|
|
3303
3332
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3304
3333
|
default:
|
|
3305
3334
|
const parsedBody = parsedOutput.body;
|
|
3335
|
+
const $metadata = deserializeMetadata(output);
|
|
3336
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3306
3337
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3307
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3338
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3308
3339
|
$fault: "client",
|
|
3309
|
-
$metadata
|
|
3340
|
+
$metadata,
|
|
3310
3341
|
});
|
|
3311
3342
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3312
3343
|
}
|
|
@@ -3332,8 +3363,7 @@ const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, c
|
|
|
3332
3363
|
body: await parseBody(output.body, context),
|
|
3333
3364
|
};
|
|
3334
3365
|
let response;
|
|
3335
|
-
|
|
3336
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3366
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3337
3367
|
switch (errorCode) {
|
|
3338
3368
|
case "AccessDeniedException":
|
|
3339
3369
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3358,10 +3388,12 @@ const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, c
|
|
|
3358
3388
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3359
3389
|
default:
|
|
3360
3390
|
const parsedBody = parsedOutput.body;
|
|
3391
|
+
const $metadata = deserializeMetadata(output);
|
|
3392
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3361
3393
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3362
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3394
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3363
3395
|
$fault: "client",
|
|
3364
|
-
$metadata
|
|
3396
|
+
$metadata,
|
|
3365
3397
|
});
|
|
3366
3398
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3367
3399
|
}
|
|
@@ -3403,8 +3435,7 @@ const deserializeAws_restJson1GetMacieSessionCommandError = async (output, conte
|
|
|
3403
3435
|
body: await parseBody(output.body, context),
|
|
3404
3436
|
};
|
|
3405
3437
|
let response;
|
|
3406
|
-
|
|
3407
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3438
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3408
3439
|
switch (errorCode) {
|
|
3409
3440
|
case "AccessDeniedException":
|
|
3410
3441
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3429,10 +3460,12 @@ const deserializeAws_restJson1GetMacieSessionCommandError = async (output, conte
|
|
|
3429
3460
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3430
3461
|
default:
|
|
3431
3462
|
const parsedBody = parsedOutput.body;
|
|
3463
|
+
const $metadata = deserializeMetadata(output);
|
|
3464
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3432
3465
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3433
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3466
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3434
3467
|
$fault: "client",
|
|
3435
|
-
$metadata
|
|
3468
|
+
$metadata,
|
|
3436
3469
|
});
|
|
3437
3470
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3438
3471
|
}
|
|
@@ -3458,8 +3491,7 @@ const deserializeAws_restJson1GetMasterAccountCommandError = async (output, cont
|
|
|
3458
3491
|
body: await parseBody(output.body, context),
|
|
3459
3492
|
};
|
|
3460
3493
|
let response;
|
|
3461
|
-
|
|
3462
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3463
3495
|
switch (errorCode) {
|
|
3464
3496
|
case "AccessDeniedException":
|
|
3465
3497
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3484,10 +3516,12 @@ const deserializeAws_restJson1GetMasterAccountCommandError = async (output, cont
|
|
|
3484
3516
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3485
3517
|
default:
|
|
3486
3518
|
const parsedBody = parsedOutput.body;
|
|
3519
|
+
const $metadata = deserializeMetadata(output);
|
|
3520
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3487
3521
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3488
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3522
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3489
3523
|
$fault: "client",
|
|
3490
|
-
$metadata
|
|
3524
|
+
$metadata,
|
|
3491
3525
|
});
|
|
3492
3526
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3493
3527
|
}
|
|
@@ -3545,8 +3579,7 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
3545
3579
|
body: await parseBody(output.body, context),
|
|
3546
3580
|
};
|
|
3547
3581
|
let response;
|
|
3548
|
-
|
|
3549
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3582
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3550
3583
|
switch (errorCode) {
|
|
3551
3584
|
case "AccessDeniedException":
|
|
3552
3585
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3571,10 +3604,12 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
3571
3604
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3572
3605
|
default:
|
|
3573
3606
|
const parsedBody = parsedOutput.body;
|
|
3607
|
+
const $metadata = deserializeMetadata(output);
|
|
3608
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3574
3609
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3575
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3610
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3576
3611
|
$fault: "client",
|
|
3577
|
-
$metadata
|
|
3612
|
+
$metadata,
|
|
3578
3613
|
});
|
|
3579
3614
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3580
3615
|
}
|
|
@@ -3608,8 +3643,7 @@ const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, co
|
|
|
3608
3643
|
body: await parseBody(output.body, context),
|
|
3609
3644
|
};
|
|
3610
3645
|
let response;
|
|
3611
|
-
|
|
3612
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3646
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3613
3647
|
switch (errorCode) {
|
|
3614
3648
|
case "AccessDeniedException":
|
|
3615
3649
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3634,10 +3668,12 @@ const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, co
|
|
|
3634
3668
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3635
3669
|
default:
|
|
3636
3670
|
const parsedBody = parsedOutput.body;
|
|
3671
|
+
const $metadata = deserializeMetadata(output);
|
|
3672
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3637
3673
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3638
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3674
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3639
3675
|
$fault: "client",
|
|
3640
|
-
$metadata
|
|
3676
|
+
$metadata,
|
|
3641
3677
|
});
|
|
3642
3678
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3643
3679
|
}
|
|
@@ -3667,8 +3703,7 @@ const deserializeAws_restJson1GetUsageTotalsCommandError = async (output, contex
|
|
|
3667
3703
|
body: await parseBody(output.body, context),
|
|
3668
3704
|
};
|
|
3669
3705
|
let response;
|
|
3670
|
-
|
|
3671
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3706
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3672
3707
|
switch (errorCode) {
|
|
3673
3708
|
case "AccessDeniedException":
|
|
3674
3709
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3693,10 +3728,12 @@ const deserializeAws_restJson1GetUsageTotalsCommandError = async (output, contex
|
|
|
3693
3728
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3694
3729
|
default:
|
|
3695
3730
|
const parsedBody = parsedOutput.body;
|
|
3731
|
+
const $metadata = deserializeMetadata(output);
|
|
3732
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3696
3733
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3697
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3734
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3698
3735
|
$fault: "client",
|
|
3699
|
-
$metadata
|
|
3736
|
+
$metadata,
|
|
3700
3737
|
});
|
|
3701
3738
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3702
3739
|
}
|
|
@@ -3726,8 +3763,7 @@ const deserializeAws_restJson1ListClassificationJobsCommandError = async (output
|
|
|
3726
3763
|
body: await parseBody(output.body, context),
|
|
3727
3764
|
};
|
|
3728
3765
|
let response;
|
|
3729
|
-
|
|
3730
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3766
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3731
3767
|
switch (errorCode) {
|
|
3732
3768
|
case "AccessDeniedException":
|
|
3733
3769
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3752,10 +3788,12 @@ const deserializeAws_restJson1ListClassificationJobsCommandError = async (output
|
|
|
3752
3788
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3753
3789
|
default:
|
|
3754
3790
|
const parsedBody = parsedOutput.body;
|
|
3791
|
+
const $metadata = deserializeMetadata(output);
|
|
3792
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3755
3793
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3756
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3794
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3757
3795
|
$fault: "client",
|
|
3758
|
-
$metadata
|
|
3796
|
+
$metadata,
|
|
3759
3797
|
});
|
|
3760
3798
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3761
3799
|
}
|
|
@@ -3785,8 +3823,7 @@ const deserializeAws_restJson1ListCustomDataIdentifiersCommandError = async (out
|
|
|
3785
3823
|
body: await parseBody(output.body, context),
|
|
3786
3824
|
};
|
|
3787
3825
|
let response;
|
|
3788
|
-
|
|
3789
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3826
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3790
3827
|
switch (errorCode) {
|
|
3791
3828
|
case "AccessDeniedException":
|
|
3792
3829
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3811,10 +3848,12 @@ const deserializeAws_restJson1ListCustomDataIdentifiersCommandError = async (out
|
|
|
3811
3848
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3812
3849
|
default:
|
|
3813
3850
|
const parsedBody = parsedOutput.body;
|
|
3851
|
+
const $metadata = deserializeMetadata(output);
|
|
3852
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3814
3853
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3815
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3854
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3816
3855
|
$fault: "client",
|
|
3817
|
-
$metadata
|
|
3856
|
+
$metadata,
|
|
3818
3857
|
});
|
|
3819
3858
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3820
3859
|
}
|
|
@@ -3844,8 +3883,7 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
3844
3883
|
body: await parseBody(output.body, context),
|
|
3845
3884
|
};
|
|
3846
3885
|
let response;
|
|
3847
|
-
|
|
3848
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3886
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3849
3887
|
switch (errorCode) {
|
|
3850
3888
|
case "AccessDeniedException":
|
|
3851
3889
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3870,10 +3908,12 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
3870
3908
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3871
3909
|
default:
|
|
3872
3910
|
const parsedBody = parsedOutput.body;
|
|
3911
|
+
const $metadata = deserializeMetadata(output);
|
|
3912
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3873
3913
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3874
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3875
3915
|
$fault: "client",
|
|
3876
|
-
$metadata
|
|
3916
|
+
$metadata,
|
|
3877
3917
|
});
|
|
3878
3918
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3879
3919
|
}
|
|
@@ -3903,8 +3943,7 @@ const deserializeAws_restJson1ListFindingsFiltersCommandError = async (output, c
|
|
|
3903
3943
|
body: await parseBody(output.body, context),
|
|
3904
3944
|
};
|
|
3905
3945
|
let response;
|
|
3906
|
-
|
|
3907
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3946
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3908
3947
|
switch (errorCode) {
|
|
3909
3948
|
case "AccessDeniedException":
|
|
3910
3949
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3929,10 +3968,12 @@ const deserializeAws_restJson1ListFindingsFiltersCommandError = async (output, c
|
|
|
3929
3968
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3930
3969
|
default:
|
|
3931
3970
|
const parsedBody = parsedOutput.body;
|
|
3971
|
+
const $metadata = deserializeMetadata(output);
|
|
3972
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3932
3973
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3933
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3974
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3934
3975
|
$fault: "client",
|
|
3935
|
-
$metadata
|
|
3976
|
+
$metadata,
|
|
3936
3977
|
});
|
|
3937
3978
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3938
3979
|
}
|
|
@@ -3962,8 +4003,7 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
3962
4003
|
body: await parseBody(output.body, context),
|
|
3963
4004
|
};
|
|
3964
4005
|
let response;
|
|
3965
|
-
|
|
3966
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4006
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3967
4007
|
switch (errorCode) {
|
|
3968
4008
|
case "AccessDeniedException":
|
|
3969
4009
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3988,10 +4028,12 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
3988
4028
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3989
4029
|
default:
|
|
3990
4030
|
const parsedBody = parsedOutput.body;
|
|
4031
|
+
const $metadata = deserializeMetadata(output);
|
|
4032
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3991
4033
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3992
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3993
4035
|
$fault: "client",
|
|
3994
|
-
$metadata
|
|
4036
|
+
$metadata,
|
|
3995
4037
|
});
|
|
3996
4038
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3997
4039
|
}
|
|
@@ -4021,15 +4063,16 @@ const deserializeAws_restJson1ListManagedDataIdentifiersCommandError = async (ou
|
|
|
4021
4063
|
body: await parseBody(output.body, context),
|
|
4022
4064
|
};
|
|
4023
4065
|
let response;
|
|
4024
|
-
|
|
4025
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4066
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4026
4067
|
switch (errorCode) {
|
|
4027
4068
|
default:
|
|
4028
4069
|
const parsedBody = parsedOutput.body;
|
|
4070
|
+
const $metadata = deserializeMetadata(output);
|
|
4071
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4029
4072
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4030
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4073
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4031
4074
|
$fault: "client",
|
|
4032
|
-
$metadata
|
|
4075
|
+
$metadata,
|
|
4033
4076
|
});
|
|
4034
4077
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4035
4078
|
}
|
|
@@ -4059,8 +4102,7 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
4059
4102
|
body: await parseBody(output.body, context),
|
|
4060
4103
|
};
|
|
4061
4104
|
let response;
|
|
4062
|
-
|
|
4063
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4105
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4064
4106
|
switch (errorCode) {
|
|
4065
4107
|
case "AccessDeniedException":
|
|
4066
4108
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4085,10 +4127,12 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
4085
4127
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4086
4128
|
default:
|
|
4087
4129
|
const parsedBody = parsedOutput.body;
|
|
4130
|
+
const $metadata = deserializeMetadata(output);
|
|
4131
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4088
4132
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4089
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4133
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4090
4134
|
$fault: "client",
|
|
4091
|
-
$metadata
|
|
4135
|
+
$metadata,
|
|
4092
4136
|
});
|
|
4093
4137
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4094
4138
|
}
|
|
@@ -4118,8 +4162,7 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
4118
4162
|
body: await parseBody(output.body, context),
|
|
4119
4163
|
};
|
|
4120
4164
|
let response;
|
|
4121
|
-
|
|
4122
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4165
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4123
4166
|
switch (errorCode) {
|
|
4124
4167
|
case "AccessDeniedException":
|
|
4125
4168
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4144,10 +4187,12 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
4144
4187
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4145
4188
|
default:
|
|
4146
4189
|
const parsedBody = parsedOutput.body;
|
|
4190
|
+
const $metadata = deserializeMetadata(output);
|
|
4191
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4147
4192
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4148
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4193
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4149
4194
|
$fault: "client",
|
|
4150
|
-
$metadata
|
|
4195
|
+
$metadata,
|
|
4151
4196
|
});
|
|
4152
4197
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4153
4198
|
}
|
|
@@ -4173,15 +4218,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4173
4218
|
body: await parseBody(output.body, context),
|
|
4174
4219
|
};
|
|
4175
4220
|
let response;
|
|
4176
|
-
|
|
4177
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4221
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4178
4222
|
switch (errorCode) {
|
|
4179
4223
|
default:
|
|
4180
4224
|
const parsedBody = parsedOutput.body;
|
|
4225
|
+
const $metadata = deserializeMetadata(output);
|
|
4226
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4181
4227
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4182
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4228
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4183
4229
|
$fault: "client",
|
|
4184
|
-
$metadata
|
|
4230
|
+
$metadata,
|
|
4185
4231
|
});
|
|
4186
4232
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4187
4233
|
}
|
|
@@ -4207,8 +4253,7 @@ const deserializeAws_restJson1PutClassificationExportConfigurationCommandError =
|
|
|
4207
4253
|
body: await parseBody(output.body, context),
|
|
4208
4254
|
};
|
|
4209
4255
|
let response;
|
|
4210
|
-
|
|
4211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4256
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4212
4257
|
switch (errorCode) {
|
|
4213
4258
|
case "AccessDeniedException":
|
|
4214
4259
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4233,10 +4278,12 @@ const deserializeAws_restJson1PutClassificationExportConfigurationCommandError =
|
|
|
4233
4278
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4234
4279
|
default:
|
|
4235
4280
|
const parsedBody = parsedOutput.body;
|
|
4281
|
+
const $metadata = deserializeMetadata(output);
|
|
4282
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4236
4283
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4237
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4284
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4238
4285
|
$fault: "client",
|
|
4239
|
-
$metadata
|
|
4286
|
+
$metadata,
|
|
4240
4287
|
});
|
|
4241
4288
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4242
4289
|
}
|
|
@@ -4258,8 +4305,7 @@ const deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError =
|
|
|
4258
4305
|
body: await parseBody(output.body, context),
|
|
4259
4306
|
};
|
|
4260
4307
|
let response;
|
|
4261
|
-
|
|
4262
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4308
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4263
4309
|
switch (errorCode) {
|
|
4264
4310
|
case "AccessDeniedException":
|
|
4265
4311
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4284,10 +4330,12 @@ const deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError =
|
|
|
4284
4330
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4285
4331
|
default:
|
|
4286
4332
|
const parsedBody = parsedOutput.body;
|
|
4333
|
+
const $metadata = deserializeMetadata(output);
|
|
4334
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4287
4335
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4288
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4336
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4289
4337
|
$fault: "client",
|
|
4290
|
-
$metadata
|
|
4338
|
+
$metadata,
|
|
4291
4339
|
});
|
|
4292
4340
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4293
4341
|
}
|
|
@@ -4317,8 +4365,7 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
|
|
|
4317
4365
|
body: await parseBody(output.body, context),
|
|
4318
4366
|
};
|
|
4319
4367
|
let response;
|
|
4320
|
-
|
|
4321
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4368
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4322
4369
|
switch (errorCode) {
|
|
4323
4370
|
case "AccessDeniedException":
|
|
4324
4371
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4343,10 +4390,12 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
|
|
|
4343
4390
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4344
4391
|
default:
|
|
4345
4392
|
const parsedBody = parsedOutput.body;
|
|
4393
|
+
const $metadata = deserializeMetadata(output);
|
|
4394
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4346
4395
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4347
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4396
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4348
4397
|
$fault: "client",
|
|
4349
|
-
$metadata
|
|
4398
|
+
$metadata,
|
|
4350
4399
|
});
|
|
4351
4400
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4352
4401
|
}
|
|
@@ -4368,15 +4417,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4368
4417
|
body: await parseBody(output.body, context),
|
|
4369
4418
|
};
|
|
4370
4419
|
let response;
|
|
4371
|
-
|
|
4372
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4420
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4373
4421
|
switch (errorCode) {
|
|
4374
4422
|
default:
|
|
4375
4423
|
const parsedBody = parsedOutput.body;
|
|
4424
|
+
const $metadata = deserializeMetadata(output);
|
|
4425
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4376
4426
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4377
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4427
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4378
4428
|
$fault: "client",
|
|
4379
|
-
$metadata
|
|
4429
|
+
$metadata,
|
|
4380
4430
|
});
|
|
4381
4431
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4382
4432
|
}
|
|
@@ -4402,8 +4452,7 @@ const deserializeAws_restJson1TestCustomDataIdentifierCommandError = async (outp
|
|
|
4402
4452
|
body: await parseBody(output.body, context),
|
|
4403
4453
|
};
|
|
4404
4454
|
let response;
|
|
4405
|
-
|
|
4406
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4407
4456
|
switch (errorCode) {
|
|
4408
4457
|
case "AccessDeniedException":
|
|
4409
4458
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4428,10 +4477,12 @@ const deserializeAws_restJson1TestCustomDataIdentifierCommandError = async (outp
|
|
|
4428
4477
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4429
4478
|
default:
|
|
4430
4479
|
const parsedBody = parsedOutput.body;
|
|
4480
|
+
const $metadata = deserializeMetadata(output);
|
|
4481
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4431
4482
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4432
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4483
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4433
4484
|
$fault: "client",
|
|
4434
|
-
$metadata
|
|
4485
|
+
$metadata,
|
|
4435
4486
|
});
|
|
4436
4487
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4437
4488
|
}
|
|
@@ -4453,15 +4504,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4453
4504
|
body: await parseBody(output.body, context),
|
|
4454
4505
|
};
|
|
4455
4506
|
let response;
|
|
4456
|
-
|
|
4457
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4507
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4458
4508
|
switch (errorCode) {
|
|
4459
4509
|
default:
|
|
4460
4510
|
const parsedBody = parsedOutput.body;
|
|
4511
|
+
const $metadata = deserializeMetadata(output);
|
|
4512
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4461
4513
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4462
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4514
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4463
4515
|
$fault: "client",
|
|
4464
|
-
$metadata
|
|
4516
|
+
$metadata,
|
|
4465
4517
|
});
|
|
4466
4518
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4467
4519
|
}
|
|
@@ -4483,8 +4535,7 @@ const deserializeAws_restJson1UpdateClassificationJobCommandError = async (outpu
|
|
|
4483
4535
|
body: await parseBody(output.body, context),
|
|
4484
4536
|
};
|
|
4485
4537
|
let response;
|
|
4486
|
-
|
|
4487
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4538
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4488
4539
|
switch (errorCode) {
|
|
4489
4540
|
case "AccessDeniedException":
|
|
4490
4541
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4509,10 +4560,12 @@ const deserializeAws_restJson1UpdateClassificationJobCommandError = async (outpu
|
|
|
4509
4560
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4510
4561
|
default:
|
|
4511
4562
|
const parsedBody = parsedOutput.body;
|
|
4563
|
+
const $metadata = deserializeMetadata(output);
|
|
4564
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4512
4565
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4513
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4566
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4514
4567
|
$fault: "client",
|
|
4515
|
-
$metadata
|
|
4568
|
+
$metadata,
|
|
4516
4569
|
});
|
|
4517
4570
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4518
4571
|
}
|
|
@@ -4542,8 +4595,7 @@ const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output,
|
|
|
4542
4595
|
body: await parseBody(output.body, context),
|
|
4543
4596
|
};
|
|
4544
4597
|
let response;
|
|
4545
|
-
|
|
4546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4598
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4547
4599
|
switch (errorCode) {
|
|
4548
4600
|
case "AccessDeniedException":
|
|
4549
4601
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4568,10 +4620,12 @@ const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output,
|
|
|
4568
4620
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4569
4621
|
default:
|
|
4570
4622
|
const parsedBody = parsedOutput.body;
|
|
4623
|
+
const $metadata = deserializeMetadata(output);
|
|
4624
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4571
4625
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4572
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4626
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4573
4627
|
$fault: "client",
|
|
4574
|
-
$metadata
|
|
4628
|
+
$metadata,
|
|
4575
4629
|
});
|
|
4576
4630
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4577
4631
|
}
|
|
@@ -4593,8 +4647,7 @@ const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, co
|
|
|
4593
4647
|
body: await parseBody(output.body, context),
|
|
4594
4648
|
};
|
|
4595
4649
|
let response;
|
|
4596
|
-
|
|
4597
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4650
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4598
4651
|
switch (errorCode) {
|
|
4599
4652
|
case "AccessDeniedException":
|
|
4600
4653
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4619,10 +4672,12 @@ const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, co
|
|
|
4619
4672
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4620
4673
|
default:
|
|
4621
4674
|
const parsedBody = parsedOutput.body;
|
|
4675
|
+
const $metadata = deserializeMetadata(output);
|
|
4676
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4622
4677
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4623
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4678
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4624
4679
|
$fault: "client",
|
|
4625
|
-
$metadata
|
|
4680
|
+
$metadata,
|
|
4626
4681
|
});
|
|
4627
4682
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4628
4683
|
}
|
|
@@ -4644,8 +4699,7 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
|
|
|
4644
4699
|
body: await parseBody(output.body, context),
|
|
4645
4700
|
};
|
|
4646
4701
|
let response;
|
|
4647
|
-
|
|
4648
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4702
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4649
4703
|
switch (errorCode) {
|
|
4650
4704
|
case "AccessDeniedException":
|
|
4651
4705
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4670,10 +4724,12 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
|
|
|
4670
4724
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4671
4725
|
default:
|
|
4672
4726
|
const parsedBody = parsedOutput.body;
|
|
4727
|
+
const $metadata = deserializeMetadata(output);
|
|
4728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4673
4729
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4674
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4675
4731
|
$fault: "client",
|
|
4676
|
-
$metadata
|
|
4732
|
+
$metadata,
|
|
4677
4733
|
});
|
|
4678
4734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4679
4735
|
}
|
|
@@ -4695,8 +4751,7 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4695
4751
|
body: await parseBody(output.body, context),
|
|
4696
4752
|
};
|
|
4697
4753
|
let response;
|
|
4698
|
-
|
|
4699
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4754
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4700
4755
|
switch (errorCode) {
|
|
4701
4756
|
case "AccessDeniedException":
|
|
4702
4757
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4721,10 +4776,12 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4721
4776
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4722
4777
|
default:
|
|
4723
4778
|
const parsedBody = parsedOutput.body;
|
|
4779
|
+
const $metadata = deserializeMetadata(output);
|
|
4780
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4724
4781
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4725
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4782
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4726
4783
|
$fault: "client",
|
|
4727
|
-
$metadata
|
|
4784
|
+
$metadata,
|
|
4728
4785
|
});
|
|
4729
4786
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4730
4787
|
}
|
|
@@ -6722,5 +6779,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6722
6779
|
if (data["__type"] !== undefined) {
|
|
6723
6780
|
return sanitizeErrorCode(data["__type"]);
|
|
6724
6781
|
}
|
|
6725
|
-
return "";
|
|
6726
6782
|
};
|