@aws-sdk/client-guardduty 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +71 -65
- package/dist-es/GuardDuty.js +262 -269
- package/dist-es/GuardDutyClient.js +22 -28
- package/dist-es/commands/AcceptAdministratorInvitationCommand.js +21 -28
- package/dist-es/commands/AcceptInvitationCommand.js +21 -28
- package/dist-es/commands/ArchiveFindingsCommand.js +21 -28
- package/dist-es/commands/CreateDetectorCommand.js +21 -28
- package/dist-es/commands/CreateFilterCommand.js +21 -28
- package/dist-es/commands/CreateIPSetCommand.js +21 -28
- package/dist-es/commands/CreateMembersCommand.js +21 -28
- package/dist-es/commands/CreatePublishingDestinationCommand.js +21 -28
- package/dist-es/commands/CreateSampleFindingsCommand.js +21 -28
- package/dist-es/commands/CreateThreatIntelSetCommand.js +21 -28
- package/dist-es/commands/DeclineInvitationsCommand.js +21 -28
- package/dist-es/commands/DeleteDetectorCommand.js +21 -28
- package/dist-es/commands/DeleteFilterCommand.js +21 -28
- package/dist-es/commands/DeleteIPSetCommand.js +21 -28
- package/dist-es/commands/DeleteInvitationsCommand.js +21 -28
- package/dist-es/commands/DeleteMembersCommand.js +21 -28
- package/dist-es/commands/DeletePublishingDestinationCommand.js +21 -28
- package/dist-es/commands/DeleteThreatIntelSetCommand.js +21 -28
- package/dist-es/commands/DescribeMalwareScansCommand.js +21 -28
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribePublishingDestinationCommand.js +21 -28
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +21 -28
- package/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +21 -28
- package/dist-es/commands/DisassociateFromMasterAccountCommand.js +21 -28
- package/dist-es/commands/DisassociateMembersCommand.js +21 -28
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +21 -28
- package/dist-es/commands/GetAdministratorAccountCommand.js +21 -28
- package/dist-es/commands/GetDetectorCommand.js +21 -28
- package/dist-es/commands/GetFilterCommand.js +21 -28
- package/dist-es/commands/GetFindingsCommand.js +21 -28
- package/dist-es/commands/GetFindingsStatisticsCommand.js +21 -28
- package/dist-es/commands/GetIPSetCommand.js +21 -28
- package/dist-es/commands/GetInvitationsCountCommand.js +21 -28
- package/dist-es/commands/GetMalwareScanSettingsCommand.js +21 -28
- package/dist-es/commands/GetMasterAccountCommand.js +21 -28
- package/dist-es/commands/GetMemberDetectorsCommand.js +21 -28
- package/dist-es/commands/GetMembersCommand.js +21 -28
- package/dist-es/commands/GetRemainingFreeTrialDaysCommand.js +21 -28
- package/dist-es/commands/GetThreatIntelSetCommand.js +21 -28
- package/dist-es/commands/GetUsageStatisticsCommand.js +21 -28
- package/dist-es/commands/InviteMembersCommand.js +21 -28
- package/dist-es/commands/ListDetectorsCommand.js +21 -28
- package/dist-es/commands/ListFiltersCommand.js +21 -28
- package/dist-es/commands/ListFindingsCommand.js +21 -28
- package/dist-es/commands/ListIPSetsCommand.js +21 -28
- package/dist-es/commands/ListInvitationsCommand.js +21 -28
- package/dist-es/commands/ListMembersCommand.js +21 -28
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +21 -28
- package/dist-es/commands/ListPublishingDestinationsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListThreatIntelSetsCommand.js +21 -28
- package/dist-es/commands/StartMonitoringMembersCommand.js +21 -28
- package/dist-es/commands/StopMonitoringMembersCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UnarchiveFindingsCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateDetectorCommand.js +21 -28
- package/dist-es/commands/UpdateFilterCommand.js +21 -28
- package/dist-es/commands/UpdateFindingsFeedbackCommand.js +21 -28
- package/dist-es/commands/UpdateIPSetCommand.js +21 -28
- package/dist-es/commands/UpdateMalwareScanSettingsCommand.js +21 -28
- package/dist-es/commands/UpdateMemberDetectorsCommand.js +21 -28
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdatePublishingDestinationCommand.js +21 -28
- package/dist-es/commands/UpdateThreatIntelSetCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/GuardDutyServiceException.js +5 -10
- package/dist-es/models/models_0.js +797 -284
- package/dist-es/pagination/DescribeMalwareScansPaginator.js +25 -68
- package/dist-es/pagination/GetUsageStatisticsPaginator.js +25 -68
- package/dist-es/pagination/ListDetectorsPaginator.js +25 -68
- package/dist-es/pagination/ListFiltersPaginator.js +25 -68
- package/dist-es/pagination/ListFindingsPaginator.js +25 -68
- package/dist-es/pagination/ListIPSetsPaginator.js +25 -68
- package/dist-es/pagination/ListInvitationsPaginator.js +25 -68
- package/dist-es/pagination/ListMembersPaginator.js +25 -68
- package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +25 -68
- package/dist-es/pagination/ListPublishingDestinationsPaginator.js +25 -68
- package/dist-es/pagination/ListThreatIntelSetsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +4283 -5987
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-guardduty
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-guardduty
|
|
@@ -1483,7 +1483,7 @@ exports.deserializeAws_restJson1AcceptAdministratorInvitationCommand = deseriali
|
|
|
1483
1483
|
const deserializeAws_restJson1AcceptAdministratorInvitationCommandError = async (output, context) => {
|
|
1484
1484
|
const parsedOutput = {
|
|
1485
1485
|
...output,
|
|
1486
|
-
body: await
|
|
1486
|
+
body: await parseErrorBody(output.body, context),
|
|
1487
1487
|
};
|
|
1488
1488
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
1489
|
switch (errorCode) {
|
|
@@ -1517,7 +1517,7 @@ exports.deserializeAws_restJson1AcceptInvitationCommand = deserializeAws_restJso
|
|
|
1517
1517
|
const deserializeAws_restJson1AcceptInvitationCommandError = async (output, context) => {
|
|
1518
1518
|
const parsedOutput = {
|
|
1519
1519
|
...output,
|
|
1520
|
-
body: await
|
|
1520
|
+
body: await parseErrorBody(output.body, context),
|
|
1521
1521
|
};
|
|
1522
1522
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
1523
|
switch (errorCode) {
|
|
@@ -1551,7 +1551,7 @@ exports.deserializeAws_restJson1ArchiveFindingsCommand = deserializeAws_restJson
|
|
|
1551
1551
|
const deserializeAws_restJson1ArchiveFindingsCommandError = async (output, context) => {
|
|
1552
1552
|
const parsedOutput = {
|
|
1553
1553
|
...output,
|
|
1554
|
-
body: await
|
|
1554
|
+
body: await parseErrorBody(output.body, context),
|
|
1555
1555
|
};
|
|
1556
1556
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1557
1557
|
switch (errorCode) {
|
|
@@ -1588,7 +1588,7 @@ exports.deserializeAws_restJson1CreateDetectorCommand = deserializeAws_restJson1
|
|
|
1588
1588
|
const deserializeAws_restJson1CreateDetectorCommandError = async (output, context) => {
|
|
1589
1589
|
const parsedOutput = {
|
|
1590
1590
|
...output,
|
|
1591
|
-
body: await
|
|
1591
|
+
body: await parseErrorBody(output.body, context),
|
|
1592
1592
|
};
|
|
1593
1593
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
1594
|
switch (errorCode) {
|
|
@@ -1625,7 +1625,7 @@ exports.deserializeAws_restJson1CreateFilterCommand = deserializeAws_restJson1Cr
|
|
|
1625
1625
|
const deserializeAws_restJson1CreateFilterCommandError = async (output, context) => {
|
|
1626
1626
|
const parsedOutput = {
|
|
1627
1627
|
...output,
|
|
1628
|
-
body: await
|
|
1628
|
+
body: await parseErrorBody(output.body, context),
|
|
1629
1629
|
};
|
|
1630
1630
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
1631
|
switch (errorCode) {
|
|
@@ -1662,7 +1662,7 @@ exports.deserializeAws_restJson1CreateIPSetCommand = deserializeAws_restJson1Cre
|
|
|
1662
1662
|
const deserializeAws_restJson1CreateIPSetCommandError = async (output, context) => {
|
|
1663
1663
|
const parsedOutput = {
|
|
1664
1664
|
...output,
|
|
1665
|
-
body: await
|
|
1665
|
+
body: await parseErrorBody(output.body, context),
|
|
1666
1666
|
};
|
|
1667
1667
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1668
1668
|
switch (errorCode) {
|
|
@@ -1699,7 +1699,7 @@ exports.deserializeAws_restJson1CreateMembersCommand = deserializeAws_restJson1C
|
|
|
1699
1699
|
const deserializeAws_restJson1CreateMembersCommandError = async (output, context) => {
|
|
1700
1700
|
const parsedOutput = {
|
|
1701
1701
|
...output,
|
|
1702
|
-
body: await
|
|
1702
|
+
body: await parseErrorBody(output.body, context),
|
|
1703
1703
|
};
|
|
1704
1704
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1705
1705
|
switch (errorCode) {
|
|
@@ -1736,7 +1736,7 @@ exports.deserializeAws_restJson1CreatePublishingDestinationCommand = deserialize
|
|
|
1736
1736
|
const deserializeAws_restJson1CreatePublishingDestinationCommandError = async (output, context) => {
|
|
1737
1737
|
const parsedOutput = {
|
|
1738
1738
|
...output,
|
|
1739
|
-
body: await
|
|
1739
|
+
body: await parseErrorBody(output.body, context),
|
|
1740
1740
|
};
|
|
1741
1741
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
1742
|
switch (errorCode) {
|
|
@@ -1770,7 +1770,7 @@ exports.deserializeAws_restJson1CreateSampleFindingsCommand = deserializeAws_res
|
|
|
1770
1770
|
const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output, context) => {
|
|
1771
1771
|
const parsedOutput = {
|
|
1772
1772
|
...output,
|
|
1773
|
-
body: await
|
|
1773
|
+
body: await parseErrorBody(output.body, context),
|
|
1774
1774
|
};
|
|
1775
1775
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1776
1776
|
switch (errorCode) {
|
|
@@ -1807,7 +1807,7 @@ exports.deserializeAws_restJson1CreateThreatIntelSetCommand = deserializeAws_res
|
|
|
1807
1807
|
const deserializeAws_restJson1CreateThreatIntelSetCommandError = async (output, context) => {
|
|
1808
1808
|
const parsedOutput = {
|
|
1809
1809
|
...output,
|
|
1810
|
-
body: await
|
|
1810
|
+
body: await parseErrorBody(output.body, context),
|
|
1811
1811
|
};
|
|
1812
1812
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1813
1813
|
switch (errorCode) {
|
|
@@ -1844,7 +1844,7 @@ exports.deserializeAws_restJson1DeclineInvitationsCommand = deserializeAws_restJ
|
|
|
1844
1844
|
const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, context) => {
|
|
1845
1845
|
const parsedOutput = {
|
|
1846
1846
|
...output,
|
|
1847
|
-
body: await
|
|
1847
|
+
body: await parseErrorBody(output.body, context),
|
|
1848
1848
|
};
|
|
1849
1849
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1850
1850
|
switch (errorCode) {
|
|
@@ -1878,7 +1878,7 @@ exports.deserializeAws_restJson1DeleteDetectorCommand = deserializeAws_restJson1
|
|
|
1878
1878
|
const deserializeAws_restJson1DeleteDetectorCommandError = async (output, context) => {
|
|
1879
1879
|
const parsedOutput = {
|
|
1880
1880
|
...output,
|
|
1881
|
-
body: await
|
|
1881
|
+
body: await parseErrorBody(output.body, context),
|
|
1882
1882
|
};
|
|
1883
1883
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1884
1884
|
switch (errorCode) {
|
|
@@ -1912,7 +1912,7 @@ exports.deserializeAws_restJson1DeleteFilterCommand = deserializeAws_restJson1De
|
|
|
1912
1912
|
const deserializeAws_restJson1DeleteFilterCommandError = async (output, context) => {
|
|
1913
1913
|
const parsedOutput = {
|
|
1914
1914
|
...output,
|
|
1915
|
-
body: await
|
|
1915
|
+
body: await parseErrorBody(output.body, context),
|
|
1916
1916
|
};
|
|
1917
1917
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1918
1918
|
switch (errorCode) {
|
|
@@ -1949,7 +1949,7 @@ exports.deserializeAws_restJson1DeleteInvitationsCommand = deserializeAws_restJs
|
|
|
1949
1949
|
const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, context) => {
|
|
1950
1950
|
const parsedOutput = {
|
|
1951
1951
|
...output,
|
|
1952
|
-
body: await
|
|
1952
|
+
body: await parseErrorBody(output.body, context),
|
|
1953
1953
|
};
|
|
1954
1954
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1955
1955
|
switch (errorCode) {
|
|
@@ -1983,7 +1983,7 @@ exports.deserializeAws_restJson1DeleteIPSetCommand = deserializeAws_restJson1Del
|
|
|
1983
1983
|
const deserializeAws_restJson1DeleteIPSetCommandError = async (output, context) => {
|
|
1984
1984
|
const parsedOutput = {
|
|
1985
1985
|
...output,
|
|
1986
|
-
body: await
|
|
1986
|
+
body: await parseErrorBody(output.body, context),
|
|
1987
1987
|
};
|
|
1988
1988
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1989
1989
|
switch (errorCode) {
|
|
@@ -2020,7 +2020,7 @@ exports.deserializeAws_restJson1DeleteMembersCommand = deserializeAws_restJson1D
|
|
|
2020
2020
|
const deserializeAws_restJson1DeleteMembersCommandError = async (output, context) => {
|
|
2021
2021
|
const parsedOutput = {
|
|
2022
2022
|
...output,
|
|
2023
|
-
body: await
|
|
2023
|
+
body: await parseErrorBody(output.body, context),
|
|
2024
2024
|
};
|
|
2025
2025
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2026
2026
|
switch (errorCode) {
|
|
@@ -2054,7 +2054,7 @@ exports.deserializeAws_restJson1DeletePublishingDestinationCommand = deserialize
|
|
|
2054
2054
|
const deserializeAws_restJson1DeletePublishingDestinationCommandError = async (output, context) => {
|
|
2055
2055
|
const parsedOutput = {
|
|
2056
2056
|
...output,
|
|
2057
|
-
body: await
|
|
2057
|
+
body: await parseErrorBody(output.body, context),
|
|
2058
2058
|
};
|
|
2059
2059
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
2060
|
switch (errorCode) {
|
|
@@ -2088,7 +2088,7 @@ exports.deserializeAws_restJson1DeleteThreatIntelSetCommand = deserializeAws_res
|
|
|
2088
2088
|
const deserializeAws_restJson1DeleteThreatIntelSetCommandError = async (output, context) => {
|
|
2089
2089
|
const parsedOutput = {
|
|
2090
2090
|
...output,
|
|
2091
|
-
body: await
|
|
2091
|
+
body: await parseErrorBody(output.body, context),
|
|
2092
2092
|
};
|
|
2093
2093
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2094
2094
|
switch (errorCode) {
|
|
@@ -2128,7 +2128,7 @@ exports.deserializeAws_restJson1DescribeMalwareScansCommand = deserializeAws_res
|
|
|
2128
2128
|
const deserializeAws_restJson1DescribeMalwareScansCommandError = async (output, context) => {
|
|
2129
2129
|
const parsedOutput = {
|
|
2130
2130
|
...output,
|
|
2131
|
-
body: await
|
|
2131
|
+
body: await parseErrorBody(output.body, context),
|
|
2132
2132
|
};
|
|
2133
2133
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2134
2134
|
switch (errorCode) {
|
|
@@ -2171,7 +2171,7 @@ exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = deser
|
|
|
2171
2171
|
const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
2172
2172
|
const parsedOutput = {
|
|
2173
2173
|
...output,
|
|
2174
|
-
body: await
|
|
2174
|
+
body: await parseErrorBody(output.body, context),
|
|
2175
2175
|
};
|
|
2176
2176
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2177
2177
|
switch (errorCode) {
|
|
@@ -2220,7 +2220,7 @@ exports.deserializeAws_restJson1DescribePublishingDestinationCommand = deseriali
|
|
|
2220
2220
|
const deserializeAws_restJson1DescribePublishingDestinationCommandError = async (output, context) => {
|
|
2221
2221
|
const parsedOutput = {
|
|
2222
2222
|
...output,
|
|
2223
|
-
body: await
|
|
2223
|
+
body: await parseErrorBody(output.body, context),
|
|
2224
2224
|
};
|
|
2225
2225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2226
2226
|
switch (errorCode) {
|
|
@@ -2254,7 +2254,7 @@ exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = deseria
|
|
|
2254
2254
|
const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
2255
2255
|
const parsedOutput = {
|
|
2256
2256
|
...output,
|
|
2257
|
-
body: await
|
|
2257
|
+
body: await parseErrorBody(output.body, context),
|
|
2258
2258
|
};
|
|
2259
2259
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2260
2260
|
switch (errorCode) {
|
|
@@ -2288,7 +2288,7 @@ exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = de
|
|
|
2288
2288
|
const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError = async (output, context) => {
|
|
2289
2289
|
const parsedOutput = {
|
|
2290
2290
|
...output,
|
|
2291
|
-
body: await
|
|
2291
|
+
body: await parseErrorBody(output.body, context),
|
|
2292
2292
|
};
|
|
2293
2293
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2294
2294
|
switch (errorCode) {
|
|
@@ -2322,7 +2322,7 @@ exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = deseriali
|
|
|
2322
2322
|
const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async (output, context) => {
|
|
2323
2323
|
const parsedOutput = {
|
|
2324
2324
|
...output,
|
|
2325
|
-
body: await
|
|
2325
|
+
body: await parseErrorBody(output.body, context),
|
|
2326
2326
|
};
|
|
2327
2327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2328
2328
|
switch (errorCode) {
|
|
@@ -2359,7 +2359,7 @@ exports.deserializeAws_restJson1DisassociateMembersCommand = deserializeAws_rest
|
|
|
2359
2359
|
const deserializeAws_restJson1DisassociateMembersCommandError = async (output, context) => {
|
|
2360
2360
|
const parsedOutput = {
|
|
2361
2361
|
...output,
|
|
2362
|
-
body: await
|
|
2362
|
+
body: await parseErrorBody(output.body, context),
|
|
2363
2363
|
};
|
|
2364
2364
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2365
2365
|
switch (errorCode) {
|
|
@@ -2393,7 +2393,7 @@ exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = deserial
|
|
|
2393
2393
|
const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
2394
2394
|
const parsedOutput = {
|
|
2395
2395
|
...output,
|
|
2396
|
-
body: await
|
|
2396
|
+
body: await parseErrorBody(output.body, context),
|
|
2397
2397
|
};
|
|
2398
2398
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2399
2399
|
switch (errorCode) {
|
|
@@ -2430,7 +2430,7 @@ exports.deserializeAws_restJson1GetAdministratorAccountCommand = deserializeAws_
|
|
|
2430
2430
|
const deserializeAws_restJson1GetAdministratorAccountCommandError = async (output, context) => {
|
|
2431
2431
|
const parsedOutput = {
|
|
2432
2432
|
...output,
|
|
2433
|
-
body: await
|
|
2433
|
+
body: await parseErrorBody(output.body, context),
|
|
2434
2434
|
};
|
|
2435
2435
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2436
2436
|
switch (errorCode) {
|
|
@@ -2485,7 +2485,7 @@ exports.deserializeAws_restJson1GetDetectorCommand = deserializeAws_restJson1Get
|
|
|
2485
2485
|
const deserializeAws_restJson1GetDetectorCommandError = async (output, context) => {
|
|
2486
2486
|
const parsedOutput = {
|
|
2487
2487
|
...output,
|
|
2488
|
-
body: await
|
|
2488
|
+
body: await parseErrorBody(output.body, context),
|
|
2489
2489
|
};
|
|
2490
2490
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2491
2491
|
switch (errorCode) {
|
|
@@ -2537,7 +2537,7 @@ exports.deserializeAws_restJson1GetFilterCommand = deserializeAws_restJson1GetFi
|
|
|
2537
2537
|
const deserializeAws_restJson1GetFilterCommandError = async (output, context) => {
|
|
2538
2538
|
const parsedOutput = {
|
|
2539
2539
|
...output,
|
|
2540
|
-
body: await
|
|
2540
|
+
body: await parseErrorBody(output.body, context),
|
|
2541
2541
|
};
|
|
2542
2542
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2543
2543
|
switch (errorCode) {
|
|
@@ -2574,7 +2574,7 @@ exports.deserializeAws_restJson1GetFindingsCommand = deserializeAws_restJson1Get
|
|
|
2574
2574
|
const deserializeAws_restJson1GetFindingsCommandError = async (output, context) => {
|
|
2575
2575
|
const parsedOutput = {
|
|
2576
2576
|
...output,
|
|
2577
|
-
body: await
|
|
2577
|
+
body: await parseErrorBody(output.body, context),
|
|
2578
2578
|
};
|
|
2579
2579
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2580
2580
|
switch (errorCode) {
|
|
@@ -2611,7 +2611,7 @@ exports.deserializeAws_restJson1GetFindingsStatisticsCommand = deserializeAws_re
|
|
|
2611
2611
|
const deserializeAws_restJson1GetFindingsStatisticsCommandError = async (output, context) => {
|
|
2612
2612
|
const parsedOutput = {
|
|
2613
2613
|
...output,
|
|
2614
|
-
body: await
|
|
2614
|
+
body: await parseErrorBody(output.body, context),
|
|
2615
2615
|
};
|
|
2616
2616
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2617
2617
|
switch (errorCode) {
|
|
@@ -2648,7 +2648,7 @@ exports.deserializeAws_restJson1GetInvitationsCountCommand = deserializeAws_rest
|
|
|
2648
2648
|
const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, context) => {
|
|
2649
2649
|
const parsedOutput = {
|
|
2650
2650
|
...output,
|
|
2651
|
-
body: await
|
|
2651
|
+
body: await parseErrorBody(output.body, context),
|
|
2652
2652
|
};
|
|
2653
2653
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2654
2654
|
switch (errorCode) {
|
|
@@ -2697,7 +2697,7 @@ exports.deserializeAws_restJson1GetIPSetCommand = deserializeAws_restJson1GetIPS
|
|
|
2697
2697
|
const deserializeAws_restJson1GetIPSetCommandError = async (output, context) => {
|
|
2698
2698
|
const parsedOutput = {
|
|
2699
2699
|
...output,
|
|
2700
|
-
body: await
|
|
2700
|
+
body: await parseErrorBody(output.body, context),
|
|
2701
2701
|
};
|
|
2702
2702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2703
2703
|
switch (errorCode) {
|
|
@@ -2737,7 +2737,7 @@ exports.deserializeAws_restJson1GetMalwareScanSettingsCommand = deserializeAws_r
|
|
|
2737
2737
|
const deserializeAws_restJson1GetMalwareScanSettingsCommandError = async (output, context) => {
|
|
2738
2738
|
const parsedOutput = {
|
|
2739
2739
|
...output,
|
|
2740
|
-
body: await
|
|
2740
|
+
body: await parseErrorBody(output.body, context),
|
|
2741
2741
|
};
|
|
2742
2742
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2743
2743
|
switch (errorCode) {
|
|
@@ -2774,7 +2774,7 @@ exports.deserializeAws_restJson1GetMasterAccountCommand = deserializeAws_restJso
|
|
|
2774
2774
|
const deserializeAws_restJson1GetMasterAccountCommandError = async (output, context) => {
|
|
2775
2775
|
const parsedOutput = {
|
|
2776
2776
|
...output,
|
|
2777
|
-
body: await
|
|
2777
|
+
body: await parseErrorBody(output.body, context),
|
|
2778
2778
|
};
|
|
2779
2779
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2780
2780
|
switch (errorCode) {
|
|
@@ -2814,7 +2814,7 @@ exports.deserializeAws_restJson1GetMemberDetectorsCommand = deserializeAws_restJ
|
|
|
2814
2814
|
const deserializeAws_restJson1GetMemberDetectorsCommandError = async (output, context) => {
|
|
2815
2815
|
const parsedOutput = {
|
|
2816
2816
|
...output,
|
|
2817
|
-
body: await
|
|
2817
|
+
body: await parseErrorBody(output.body, context),
|
|
2818
2818
|
};
|
|
2819
2819
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2820
2820
|
switch (errorCode) {
|
|
@@ -2854,7 +2854,7 @@ exports.deserializeAws_restJson1GetMembersCommand = deserializeAws_restJson1GetM
|
|
|
2854
2854
|
const deserializeAws_restJson1GetMembersCommandError = async (output, context) => {
|
|
2855
2855
|
const parsedOutput = {
|
|
2856
2856
|
...output,
|
|
2857
|
-
body: await
|
|
2857
|
+
body: await parseErrorBody(output.body, context),
|
|
2858
2858
|
};
|
|
2859
2859
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2860
2860
|
switch (errorCode) {
|
|
@@ -2894,7 +2894,7 @@ exports.deserializeAws_restJson1GetRemainingFreeTrialDaysCommand = deserializeAw
|
|
|
2894
2894
|
const deserializeAws_restJson1GetRemainingFreeTrialDaysCommandError = async (output, context) => {
|
|
2895
2895
|
const parsedOutput = {
|
|
2896
2896
|
...output,
|
|
2897
|
-
body: await
|
|
2897
|
+
body: await parseErrorBody(output.body, context),
|
|
2898
2898
|
};
|
|
2899
2899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2900
2900
|
switch (errorCode) {
|
|
@@ -2943,7 +2943,7 @@ exports.deserializeAws_restJson1GetThreatIntelSetCommand = deserializeAws_restJs
|
|
|
2943
2943
|
const deserializeAws_restJson1GetThreatIntelSetCommandError = async (output, context) => {
|
|
2944
2944
|
const parsedOutput = {
|
|
2945
2945
|
...output,
|
|
2946
|
-
body: await
|
|
2946
|
+
body: await parseErrorBody(output.body, context),
|
|
2947
2947
|
};
|
|
2948
2948
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2949
2949
|
switch (errorCode) {
|
|
@@ -2983,7 +2983,7 @@ exports.deserializeAws_restJson1GetUsageStatisticsCommand = deserializeAws_restJ
|
|
|
2983
2983
|
const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, context) => {
|
|
2984
2984
|
const parsedOutput = {
|
|
2985
2985
|
...output,
|
|
2986
|
-
body: await
|
|
2986
|
+
body: await parseErrorBody(output.body, context),
|
|
2987
2987
|
};
|
|
2988
2988
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2989
2989
|
switch (errorCode) {
|
|
@@ -3020,7 +3020,7 @@ exports.deserializeAws_restJson1InviteMembersCommand = deserializeAws_restJson1I
|
|
|
3020
3020
|
const deserializeAws_restJson1InviteMembersCommandError = async (output, context) => {
|
|
3021
3021
|
const parsedOutput = {
|
|
3022
3022
|
...output,
|
|
3023
|
-
body: await
|
|
3023
|
+
body: await parseErrorBody(output.body, context),
|
|
3024
3024
|
};
|
|
3025
3025
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3026
3026
|
switch (errorCode) {
|
|
@@ -3060,7 +3060,7 @@ exports.deserializeAws_restJson1ListDetectorsCommand = deserializeAws_restJson1L
|
|
|
3060
3060
|
const deserializeAws_restJson1ListDetectorsCommandError = async (output, context) => {
|
|
3061
3061
|
const parsedOutput = {
|
|
3062
3062
|
...output,
|
|
3063
|
-
body: await
|
|
3063
|
+
body: await parseErrorBody(output.body, context),
|
|
3064
3064
|
};
|
|
3065
3065
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3066
3066
|
switch (errorCode) {
|
|
@@ -3100,7 +3100,7 @@ exports.deserializeAws_restJson1ListFiltersCommand = deserializeAws_restJson1Lis
|
|
|
3100
3100
|
const deserializeAws_restJson1ListFiltersCommandError = async (output, context) => {
|
|
3101
3101
|
const parsedOutput = {
|
|
3102
3102
|
...output,
|
|
3103
|
-
body: await
|
|
3103
|
+
body: await parseErrorBody(output.body, context),
|
|
3104
3104
|
};
|
|
3105
3105
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3106
3106
|
switch (errorCode) {
|
|
@@ -3140,7 +3140,7 @@ exports.deserializeAws_restJson1ListFindingsCommand = deserializeAws_restJson1Li
|
|
|
3140
3140
|
const deserializeAws_restJson1ListFindingsCommandError = async (output, context) => {
|
|
3141
3141
|
const parsedOutput = {
|
|
3142
3142
|
...output,
|
|
3143
|
-
body: await
|
|
3143
|
+
body: await parseErrorBody(output.body, context),
|
|
3144
3144
|
};
|
|
3145
3145
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3146
3146
|
switch (errorCode) {
|
|
@@ -3180,7 +3180,7 @@ exports.deserializeAws_restJson1ListInvitationsCommand = deserializeAws_restJson
|
|
|
3180
3180
|
const deserializeAws_restJson1ListInvitationsCommandError = async (output, context) => {
|
|
3181
3181
|
const parsedOutput = {
|
|
3182
3182
|
...output,
|
|
3183
|
-
body: await
|
|
3183
|
+
body: await parseErrorBody(output.body, context),
|
|
3184
3184
|
};
|
|
3185
3185
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3186
3186
|
switch (errorCode) {
|
|
@@ -3220,7 +3220,7 @@ exports.deserializeAws_restJson1ListIPSetsCommand = deserializeAws_restJson1List
|
|
|
3220
3220
|
const deserializeAws_restJson1ListIPSetsCommandError = async (output, context) => {
|
|
3221
3221
|
const parsedOutput = {
|
|
3222
3222
|
...output,
|
|
3223
|
-
body: await
|
|
3223
|
+
body: await parseErrorBody(output.body, context),
|
|
3224
3224
|
};
|
|
3225
3225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3226
3226
|
switch (errorCode) {
|
|
@@ -3260,7 +3260,7 @@ exports.deserializeAws_restJson1ListMembersCommand = deserializeAws_restJson1Lis
|
|
|
3260
3260
|
const deserializeAws_restJson1ListMembersCommandError = async (output, context) => {
|
|
3261
3261
|
const parsedOutput = {
|
|
3262
3262
|
...output,
|
|
3263
|
-
body: await
|
|
3263
|
+
body: await parseErrorBody(output.body, context),
|
|
3264
3264
|
};
|
|
3265
3265
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3266
3266
|
switch (errorCode) {
|
|
@@ -3300,7 +3300,7 @@ exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = deseriali
|
|
|
3300
3300
|
const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async (output, context) => {
|
|
3301
3301
|
const parsedOutput = {
|
|
3302
3302
|
...output,
|
|
3303
|
-
body: await
|
|
3303
|
+
body: await parseErrorBody(output.body, context),
|
|
3304
3304
|
};
|
|
3305
3305
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3306
3306
|
switch (errorCode) {
|
|
@@ -3340,7 +3340,7 @@ exports.deserializeAws_restJson1ListPublishingDestinationsCommand = deserializeA
|
|
|
3340
3340
|
const deserializeAws_restJson1ListPublishingDestinationsCommandError = async (output, context) => {
|
|
3341
3341
|
const parsedOutput = {
|
|
3342
3342
|
...output,
|
|
3343
|
-
body: await
|
|
3343
|
+
body: await parseErrorBody(output.body, context),
|
|
3344
3344
|
};
|
|
3345
3345
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3346
3346
|
switch (errorCode) {
|
|
@@ -3377,7 +3377,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
3377
3377
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
3378
3378
|
const parsedOutput = {
|
|
3379
3379
|
...output,
|
|
3380
|
-
body: await
|
|
3380
|
+
body: await parseErrorBody(output.body, context),
|
|
3381
3381
|
};
|
|
3382
3382
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3383
3383
|
switch (errorCode) {
|
|
@@ -3417,7 +3417,7 @@ exports.deserializeAws_restJson1ListThreatIntelSetsCommand = deserializeAws_rest
|
|
|
3417
3417
|
const deserializeAws_restJson1ListThreatIntelSetsCommandError = async (output, context) => {
|
|
3418
3418
|
const parsedOutput = {
|
|
3419
3419
|
...output,
|
|
3420
|
-
body: await
|
|
3420
|
+
body: await parseErrorBody(output.body, context),
|
|
3421
3421
|
};
|
|
3422
3422
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3423
3423
|
switch (errorCode) {
|
|
@@ -3454,7 +3454,7 @@ exports.deserializeAws_restJson1StartMonitoringMembersCommand = deserializeAws_r
|
|
|
3454
3454
|
const deserializeAws_restJson1StartMonitoringMembersCommandError = async (output, context) => {
|
|
3455
3455
|
const parsedOutput = {
|
|
3456
3456
|
...output,
|
|
3457
|
-
body: await
|
|
3457
|
+
body: await parseErrorBody(output.body, context),
|
|
3458
3458
|
};
|
|
3459
3459
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3460
3460
|
switch (errorCode) {
|
|
@@ -3491,7 +3491,7 @@ exports.deserializeAws_restJson1StopMonitoringMembersCommand = deserializeAws_re
|
|
|
3491
3491
|
const deserializeAws_restJson1StopMonitoringMembersCommandError = async (output, context) => {
|
|
3492
3492
|
const parsedOutput = {
|
|
3493
3493
|
...output,
|
|
3494
|
-
body: await
|
|
3494
|
+
body: await parseErrorBody(output.body, context),
|
|
3495
3495
|
};
|
|
3496
3496
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3497
3497
|
switch (errorCode) {
|
|
@@ -3525,7 +3525,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
3525
3525
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
3526
3526
|
const parsedOutput = {
|
|
3527
3527
|
...output,
|
|
3528
|
-
body: await
|
|
3528
|
+
body: await parseErrorBody(output.body, context),
|
|
3529
3529
|
};
|
|
3530
3530
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3531
3531
|
switch (errorCode) {
|
|
@@ -3559,7 +3559,7 @@ exports.deserializeAws_restJson1UnarchiveFindingsCommand = deserializeAws_restJs
|
|
|
3559
3559
|
const deserializeAws_restJson1UnarchiveFindingsCommandError = async (output, context) => {
|
|
3560
3560
|
const parsedOutput = {
|
|
3561
3561
|
...output,
|
|
3562
|
-
body: await
|
|
3562
|
+
body: await parseErrorBody(output.body, context),
|
|
3563
3563
|
};
|
|
3564
3564
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3565
3565
|
switch (errorCode) {
|
|
@@ -3593,7 +3593,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
3593
3593
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
3594
3594
|
const parsedOutput = {
|
|
3595
3595
|
...output,
|
|
3596
|
-
body: await
|
|
3596
|
+
body: await parseErrorBody(output.body, context),
|
|
3597
3597
|
};
|
|
3598
3598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3599
3599
|
switch (errorCode) {
|
|
@@ -3627,7 +3627,7 @@ exports.deserializeAws_restJson1UpdateDetectorCommand = deserializeAws_restJson1
|
|
|
3627
3627
|
const deserializeAws_restJson1UpdateDetectorCommandError = async (output, context) => {
|
|
3628
3628
|
const parsedOutput = {
|
|
3629
3629
|
...output,
|
|
3630
|
-
body: await
|
|
3630
|
+
body: await parseErrorBody(output.body, context),
|
|
3631
3631
|
};
|
|
3632
3632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3633
3633
|
switch (errorCode) {
|
|
@@ -3664,7 +3664,7 @@ exports.deserializeAws_restJson1UpdateFilterCommand = deserializeAws_restJson1Up
|
|
|
3664
3664
|
const deserializeAws_restJson1UpdateFilterCommandError = async (output, context) => {
|
|
3665
3665
|
const parsedOutput = {
|
|
3666
3666
|
...output,
|
|
3667
|
-
body: await
|
|
3667
|
+
body: await parseErrorBody(output.body, context),
|
|
3668
3668
|
};
|
|
3669
3669
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3670
3670
|
switch (errorCode) {
|
|
@@ -3698,7 +3698,7 @@ exports.deserializeAws_restJson1UpdateFindingsFeedbackCommand = deserializeAws_r
|
|
|
3698
3698
|
const deserializeAws_restJson1UpdateFindingsFeedbackCommandError = async (output, context) => {
|
|
3699
3699
|
const parsedOutput = {
|
|
3700
3700
|
...output,
|
|
3701
|
-
body: await
|
|
3701
|
+
body: await parseErrorBody(output.body, context),
|
|
3702
3702
|
};
|
|
3703
3703
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3704
3704
|
switch (errorCode) {
|
|
@@ -3732,7 +3732,7 @@ exports.deserializeAws_restJson1UpdateIPSetCommand = deserializeAws_restJson1Upd
|
|
|
3732
3732
|
const deserializeAws_restJson1UpdateIPSetCommandError = async (output, context) => {
|
|
3733
3733
|
const parsedOutput = {
|
|
3734
3734
|
...output,
|
|
3735
|
-
body: await
|
|
3735
|
+
body: await parseErrorBody(output.body, context),
|
|
3736
3736
|
};
|
|
3737
3737
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3738
3738
|
switch (errorCode) {
|
|
@@ -3766,7 +3766,7 @@ exports.deserializeAws_restJson1UpdateMalwareScanSettingsCommand = deserializeAw
|
|
|
3766
3766
|
const deserializeAws_restJson1UpdateMalwareScanSettingsCommandError = async (output, context) => {
|
|
3767
3767
|
const parsedOutput = {
|
|
3768
3768
|
...output,
|
|
3769
|
-
body: await
|
|
3769
|
+
body: await parseErrorBody(output.body, context),
|
|
3770
3770
|
};
|
|
3771
3771
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3772
3772
|
switch (errorCode) {
|
|
@@ -3803,7 +3803,7 @@ exports.deserializeAws_restJson1UpdateMemberDetectorsCommand = deserializeAws_re
|
|
|
3803
3803
|
const deserializeAws_restJson1UpdateMemberDetectorsCommandError = async (output, context) => {
|
|
3804
3804
|
const parsedOutput = {
|
|
3805
3805
|
...output,
|
|
3806
|
-
body: await
|
|
3806
|
+
body: await parseErrorBody(output.body, context),
|
|
3807
3807
|
};
|
|
3808
3808
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3809
3809
|
switch (errorCode) {
|
|
@@ -3837,7 +3837,7 @@ exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = deseria
|
|
|
3837
3837
|
const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
3838
3838
|
const parsedOutput = {
|
|
3839
3839
|
...output,
|
|
3840
|
-
body: await
|
|
3840
|
+
body: await parseErrorBody(output.body, context),
|
|
3841
3841
|
};
|
|
3842
3842
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3843
3843
|
switch (errorCode) {
|
|
@@ -3871,7 +3871,7 @@ exports.deserializeAws_restJson1UpdatePublishingDestinationCommand = deserialize
|
|
|
3871
3871
|
const deserializeAws_restJson1UpdatePublishingDestinationCommandError = async (output, context) => {
|
|
3872
3872
|
const parsedOutput = {
|
|
3873
3873
|
...output,
|
|
3874
|
-
body: await
|
|
3874
|
+
body: await parseErrorBody(output.body, context),
|
|
3875
3875
|
};
|
|
3876
3876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3877
3877
|
switch (errorCode) {
|
|
@@ -3905,7 +3905,7 @@ exports.deserializeAws_restJson1UpdateThreatIntelSetCommand = deserializeAws_res
|
|
|
3905
3905
|
const deserializeAws_restJson1UpdateThreatIntelSetCommandError = async (output, context) => {
|
|
3906
3906
|
const parsedOutput = {
|
|
3907
3907
|
...output,
|
|
3908
|
-
body: await
|
|
3908
|
+
body: await parseErrorBody(output.body, context),
|
|
3909
3909
|
};
|
|
3910
3910
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3911
3911
|
switch (errorCode) {
|
|
@@ -5743,6 +5743,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5743
5743
|
}
|
|
5744
5744
|
return {};
|
|
5745
5745
|
});
|
|
5746
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
5747
|
+
var _a;
|
|
5748
|
+
const value = await parseBody(errorBody, context);
|
|
5749
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5750
|
+
return value;
|
|
5751
|
+
};
|
|
5746
5752
|
const loadRestJsonErrorCode = (output, data) => {
|
|
5747
5753
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
5748
5754
|
const sanitizeErrorCode = (rawValue) => {
|