@aws-sdk/client-securityhub 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 +62 -56
- package/dist-es/SecurityHub.js +226 -233
- package/dist-es/SecurityHubClient.js +22 -28
- package/dist-es/commands/AcceptAdministratorInvitationCommand.js +21 -28
- package/dist-es/commands/AcceptInvitationCommand.js +21 -28
- package/dist-es/commands/BatchDisableStandardsCommand.js +21 -28
- package/dist-es/commands/BatchEnableStandardsCommand.js +21 -28
- package/dist-es/commands/BatchImportFindingsCommand.js +21 -28
- package/dist-es/commands/BatchUpdateFindingsCommand.js +21 -28
- package/dist-es/commands/CreateActionTargetCommand.js +21 -28
- package/dist-es/commands/CreateFindingAggregatorCommand.js +21 -28
- package/dist-es/commands/CreateInsightCommand.js +21 -28
- package/dist-es/commands/CreateMembersCommand.js +21 -28
- package/dist-es/commands/DeclineInvitationsCommand.js +21 -28
- package/dist-es/commands/DeleteActionTargetCommand.js +21 -28
- package/dist-es/commands/DeleteFindingAggregatorCommand.js +21 -28
- package/dist-es/commands/DeleteInsightCommand.js +21 -28
- package/dist-es/commands/DeleteInvitationsCommand.js +21 -28
- package/dist-es/commands/DeleteMembersCommand.js +21 -28
- package/dist-es/commands/DescribeActionTargetsCommand.js +21 -28
- package/dist-es/commands/DescribeHubCommand.js +21 -28
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeProductsCommand.js +21 -28
- package/dist-es/commands/DescribeStandardsCommand.js +21 -28
- package/dist-es/commands/DescribeStandardsControlsCommand.js +21 -28
- package/dist-es/commands/DisableImportFindingsForProductCommand.js +21 -28
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +21 -28
- package/dist-es/commands/DisableSecurityHubCommand.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/EnableImportFindingsForProductCommand.js +21 -28
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +21 -28
- package/dist-es/commands/EnableSecurityHubCommand.js +21 -28
- package/dist-es/commands/GetAdministratorAccountCommand.js +21 -28
- package/dist-es/commands/GetEnabledStandardsCommand.js +21 -28
- package/dist-es/commands/GetFindingAggregatorCommand.js +21 -28
- package/dist-es/commands/GetFindingsCommand.js +21 -28
- package/dist-es/commands/GetInsightResultsCommand.js +21 -28
- package/dist-es/commands/GetInsightsCommand.js +21 -28
- package/dist-es/commands/GetInvitationsCountCommand.js +21 -28
- package/dist-es/commands/GetMasterAccountCommand.js +21 -28
- package/dist-es/commands/GetMembersCommand.js +21 -28
- package/dist-es/commands/InviteMembersCommand.js +21 -28
- package/dist-es/commands/ListEnabledProductsForImportCommand.js +21 -28
- package/dist-es/commands/ListFindingAggregatorsCommand.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/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateActionTargetCommand.js +21 -28
- package/dist-es/commands/UpdateFindingAggregatorCommand.js +21 -28
- package/dist-es/commands/UpdateFindingsCommand.js +21 -28
- package/dist-es/commands/UpdateInsightCommand.js +21 -28
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateSecurityHubConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateStandardsControlCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SecurityHubServiceException.js +5 -10
- package/dist-es/models/models_0.js +951 -370
- package/dist-es/models/models_1.js +841 -290
- package/dist-es/models/models_2.js +93 -32
- package/dist-es/pagination/DescribeActionTargetsPaginator.js +25 -68
- package/dist-es/pagination/DescribeProductsPaginator.js +25 -68
- package/dist-es/pagination/DescribeStandardsControlsPaginator.js +25 -68
- package/dist-es/pagination/DescribeStandardsPaginator.js +25 -68
- package/dist-es/pagination/GetEnabledStandardsPaginator.js +25 -68
- package/dist-es/pagination/GetFindingsPaginator.js +25 -68
- package/dist-es/pagination/GetInsightsPaginator.js +25 -68
- package/dist-es/pagination/ListEnabledProductsForImportPaginator.js +25 -68
- package/dist-es/pagination/ListFindingAggregatorsPaginator.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/protocols/Aws_restJson1.js +10756 -9661
- 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-securityhub
|
|
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-securityhub
|
|
@@ -1221,7 +1221,7 @@ exports.deserializeAws_restJson1AcceptAdministratorInvitationCommand = deseriali
|
|
|
1221
1221
|
const deserializeAws_restJson1AcceptAdministratorInvitationCommandError = async (output, context) => {
|
|
1222
1222
|
const parsedOutput = {
|
|
1223
1223
|
...output,
|
|
1224
|
-
body: await
|
|
1224
|
+
body: await parseErrorBody(output.body, context),
|
|
1225
1225
|
};
|
|
1226
1226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1227
1227
|
switch (errorCode) {
|
|
@@ -1264,7 +1264,7 @@ exports.deserializeAws_restJson1AcceptInvitationCommand = deserializeAws_restJso
|
|
|
1264
1264
|
const deserializeAws_restJson1AcceptInvitationCommandError = async (output, context) => {
|
|
1265
1265
|
const parsedOutput = {
|
|
1266
1266
|
...output,
|
|
1267
|
-
body: await
|
|
1267
|
+
body: await parseErrorBody(output.body, context),
|
|
1268
1268
|
};
|
|
1269
1269
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
1270
|
switch (errorCode) {
|
|
@@ -1310,7 +1310,7 @@ exports.deserializeAws_restJson1BatchDisableStandardsCommand = deserializeAws_re
|
|
|
1310
1310
|
const deserializeAws_restJson1BatchDisableStandardsCommandError = async (output, context) => {
|
|
1311
1311
|
const parsedOutput = {
|
|
1312
1312
|
...output,
|
|
1313
|
-
body: await
|
|
1313
|
+
body: await parseErrorBody(output.body, context),
|
|
1314
1314
|
};
|
|
1315
1315
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
1316
|
switch (errorCode) {
|
|
@@ -1353,7 +1353,7 @@ exports.deserializeAws_restJson1BatchEnableStandardsCommand = deserializeAws_res
|
|
|
1353
1353
|
const deserializeAws_restJson1BatchEnableStandardsCommandError = async (output, context) => {
|
|
1354
1354
|
const parsedOutput = {
|
|
1355
1355
|
...output,
|
|
1356
|
-
body: await
|
|
1356
|
+
body: await parseErrorBody(output.body, context),
|
|
1357
1357
|
};
|
|
1358
1358
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
1359
|
switch (errorCode) {
|
|
@@ -1402,7 +1402,7 @@ exports.deserializeAws_restJson1BatchImportFindingsCommand = deserializeAws_rest
|
|
|
1402
1402
|
const deserializeAws_restJson1BatchImportFindingsCommandError = async (output, context) => {
|
|
1403
1403
|
const parsedOutput = {
|
|
1404
1404
|
...output,
|
|
1405
|
-
body: await
|
|
1405
|
+
body: await parseErrorBody(output.body, context),
|
|
1406
1406
|
};
|
|
1407
1407
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
1408
|
switch (errorCode) {
|
|
@@ -1448,7 +1448,7 @@ exports.deserializeAws_restJson1BatchUpdateFindingsCommand = deserializeAws_rest
|
|
|
1448
1448
|
const deserializeAws_restJson1BatchUpdateFindingsCommandError = async (output, context) => {
|
|
1449
1449
|
const parsedOutput = {
|
|
1450
1450
|
...output,
|
|
1451
|
-
body: await
|
|
1451
|
+
body: await parseErrorBody(output.body, context),
|
|
1452
1452
|
};
|
|
1453
1453
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1454
1454
|
switch (errorCode) {
|
|
@@ -1491,7 +1491,7 @@ exports.deserializeAws_restJson1CreateActionTargetCommand = deserializeAws_restJ
|
|
|
1491
1491
|
const deserializeAws_restJson1CreateActionTargetCommandError = async (output, context) => {
|
|
1492
1492
|
const parsedOutput = {
|
|
1493
1493
|
...output,
|
|
1494
|
-
body: await
|
|
1494
|
+
body: await parseErrorBody(output.body, context),
|
|
1495
1495
|
};
|
|
1496
1496
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
1497
|
switch (errorCode) {
|
|
@@ -1546,7 +1546,7 @@ exports.deserializeAws_restJson1CreateFindingAggregatorCommand = deserializeAws_
|
|
|
1546
1546
|
const deserializeAws_restJson1CreateFindingAggregatorCommandError = async (output, context) => {
|
|
1547
1547
|
const parsedOutput = {
|
|
1548
1548
|
...output,
|
|
1549
|
-
body: await
|
|
1549
|
+
body: await parseErrorBody(output.body, context),
|
|
1550
1550
|
};
|
|
1551
1551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
1552
|
switch (errorCode) {
|
|
@@ -1592,7 +1592,7 @@ exports.deserializeAws_restJson1CreateInsightCommand = deserializeAws_restJson1C
|
|
|
1592
1592
|
const deserializeAws_restJson1CreateInsightCommandError = async (output, context) => {
|
|
1593
1593
|
const parsedOutput = {
|
|
1594
1594
|
...output,
|
|
1595
|
-
body: await
|
|
1595
|
+
body: await parseErrorBody(output.body, context),
|
|
1596
1596
|
};
|
|
1597
1597
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1598
1598
|
switch (errorCode) {
|
|
@@ -1638,7 +1638,7 @@ exports.deserializeAws_restJson1CreateMembersCommand = deserializeAws_restJson1C
|
|
|
1638
1638
|
const deserializeAws_restJson1CreateMembersCommandError = async (output, context) => {
|
|
1639
1639
|
const parsedOutput = {
|
|
1640
1640
|
...output,
|
|
1641
|
-
body: await
|
|
1641
|
+
body: await parseErrorBody(output.body, context),
|
|
1642
1642
|
};
|
|
1643
1643
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1644
1644
|
switch (errorCode) {
|
|
@@ -1684,7 +1684,7 @@ exports.deserializeAws_restJson1DeclineInvitationsCommand = deserializeAws_restJ
|
|
|
1684
1684
|
const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, context) => {
|
|
1685
1685
|
const parsedOutput = {
|
|
1686
1686
|
...output,
|
|
1687
|
-
body: await
|
|
1687
|
+
body: await parseErrorBody(output.body, context),
|
|
1688
1688
|
};
|
|
1689
1689
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
1690
|
switch (errorCode) {
|
|
@@ -1727,7 +1727,7 @@ exports.deserializeAws_restJson1DeleteActionTargetCommand = deserializeAws_restJ
|
|
|
1727
1727
|
const deserializeAws_restJson1DeleteActionTargetCommandError = async (output, context) => {
|
|
1728
1728
|
const parsedOutput = {
|
|
1729
1729
|
...output,
|
|
1730
|
-
body: await
|
|
1730
|
+
body: await parseErrorBody(output.body, context),
|
|
1731
1731
|
};
|
|
1732
1732
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1733
1733
|
switch (errorCode) {
|
|
@@ -1767,7 +1767,7 @@ exports.deserializeAws_restJson1DeleteFindingAggregatorCommand = deserializeAws_
|
|
|
1767
1767
|
const deserializeAws_restJson1DeleteFindingAggregatorCommandError = async (output, context) => {
|
|
1768
1768
|
const parsedOutput = {
|
|
1769
1769
|
...output,
|
|
1770
|
-
body: await
|
|
1770
|
+
body: await parseErrorBody(output.body, context),
|
|
1771
1771
|
};
|
|
1772
1772
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1773
1773
|
switch (errorCode) {
|
|
@@ -1816,7 +1816,7 @@ exports.deserializeAws_restJson1DeleteInsightCommand = deserializeAws_restJson1D
|
|
|
1816
1816
|
const deserializeAws_restJson1DeleteInsightCommandError = async (output, context) => {
|
|
1817
1817
|
const parsedOutput = {
|
|
1818
1818
|
...output,
|
|
1819
|
-
body: await
|
|
1819
|
+
body: await parseErrorBody(output.body, context),
|
|
1820
1820
|
};
|
|
1821
1821
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1822
1822
|
switch (errorCode) {
|
|
@@ -1862,7 +1862,7 @@ exports.deserializeAws_restJson1DeleteInvitationsCommand = deserializeAws_restJs
|
|
|
1862
1862
|
const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, context) => {
|
|
1863
1863
|
const parsedOutput = {
|
|
1864
1864
|
...output,
|
|
1865
|
-
body: await
|
|
1865
|
+
body: await parseErrorBody(output.body, context),
|
|
1866
1866
|
};
|
|
1867
1867
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
1868
|
switch (errorCode) {
|
|
@@ -1908,7 +1908,7 @@ exports.deserializeAws_restJson1DeleteMembersCommand = deserializeAws_restJson1D
|
|
|
1908
1908
|
const deserializeAws_restJson1DeleteMembersCommandError = async (output, context) => {
|
|
1909
1909
|
const parsedOutput = {
|
|
1910
1910
|
...output,
|
|
1911
|
-
body: await
|
|
1911
|
+
body: await parseErrorBody(output.body, context),
|
|
1912
1912
|
};
|
|
1913
1913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
1914
|
switch (errorCode) {
|
|
@@ -1957,7 +1957,7 @@ exports.deserializeAws_restJson1DescribeActionTargetsCommand = deserializeAws_re
|
|
|
1957
1957
|
const deserializeAws_restJson1DescribeActionTargetsCommandError = async (output, context) => {
|
|
1958
1958
|
const parsedOutput = {
|
|
1959
1959
|
...output,
|
|
1960
|
-
body: await
|
|
1960
|
+
body: await parseErrorBody(output.body, context),
|
|
1961
1961
|
};
|
|
1962
1962
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1963
1963
|
switch (errorCode) {
|
|
@@ -2006,7 +2006,7 @@ exports.deserializeAws_restJson1DescribeHubCommand = deserializeAws_restJson1Des
|
|
|
2006
2006
|
const deserializeAws_restJson1DescribeHubCommandError = async (output, context) => {
|
|
2007
2007
|
const parsedOutput = {
|
|
2008
2008
|
...output,
|
|
2009
|
-
body: await
|
|
2009
|
+
body: await parseErrorBody(output.body, context),
|
|
2010
2010
|
};
|
|
2011
2011
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2012
2012
|
switch (errorCode) {
|
|
@@ -2058,7 +2058,7 @@ exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = deser
|
|
|
2058
2058
|
const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
2059
2059
|
const parsedOutput = {
|
|
2060
2060
|
...output,
|
|
2061
|
-
body: await
|
|
2061
|
+
body: await parseErrorBody(output.body, context),
|
|
2062
2062
|
};
|
|
2063
2063
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2064
2064
|
switch (errorCode) {
|
|
@@ -2104,7 +2104,7 @@ exports.deserializeAws_restJson1DescribeProductsCommand = deserializeAws_restJso
|
|
|
2104
2104
|
const deserializeAws_restJson1DescribeProductsCommandError = async (output, context) => {
|
|
2105
2105
|
const parsedOutput = {
|
|
2106
2106
|
...output,
|
|
2107
|
-
body: await
|
|
2107
|
+
body: await parseErrorBody(output.body, context),
|
|
2108
2108
|
};
|
|
2109
2109
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2110
2110
|
switch (errorCode) {
|
|
@@ -2150,7 +2150,7 @@ exports.deserializeAws_restJson1DescribeStandardsCommand = deserializeAws_restJs
|
|
|
2150
2150
|
const deserializeAws_restJson1DescribeStandardsCommandError = async (output, context) => {
|
|
2151
2151
|
const parsedOutput = {
|
|
2152
2152
|
...output,
|
|
2153
|
-
body: await
|
|
2153
|
+
body: await parseErrorBody(output.body, context),
|
|
2154
2154
|
};
|
|
2155
2155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2156
2156
|
switch (errorCode) {
|
|
@@ -2193,7 +2193,7 @@ exports.deserializeAws_restJson1DescribeStandardsControlsCommand = deserializeAw
|
|
|
2193
2193
|
const deserializeAws_restJson1DescribeStandardsControlsCommandError = async (output, context) => {
|
|
2194
2194
|
const parsedOutput = {
|
|
2195
2195
|
...output,
|
|
2196
|
-
body: await
|
|
2196
|
+
body: await parseErrorBody(output.body, context),
|
|
2197
2197
|
};
|
|
2198
2198
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2199
2199
|
switch (errorCode) {
|
|
@@ -2233,7 +2233,7 @@ exports.deserializeAws_restJson1DisableImportFindingsForProductCommand = deseria
|
|
|
2233
2233
|
const deserializeAws_restJson1DisableImportFindingsForProductCommandError = async (output, context) => {
|
|
2234
2234
|
const parsedOutput = {
|
|
2235
2235
|
...output,
|
|
2236
|
-
body: await
|
|
2236
|
+
body: await parseErrorBody(output.body, context),
|
|
2237
2237
|
};
|
|
2238
2238
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2239
2239
|
switch (errorCode) {
|
|
@@ -2276,7 +2276,7 @@ exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = deseria
|
|
|
2276
2276
|
const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
2277
2277
|
const parsedOutput = {
|
|
2278
2278
|
...output,
|
|
2279
|
-
body: await
|
|
2279
|
+
body: await parseErrorBody(output.body, context),
|
|
2280
2280
|
};
|
|
2281
2281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2282
|
switch (errorCode) {
|
|
@@ -2316,7 +2316,7 @@ exports.deserializeAws_restJson1DisableSecurityHubCommand = deserializeAws_restJ
|
|
|
2316
2316
|
const deserializeAws_restJson1DisableSecurityHubCommandError = async (output, context) => {
|
|
2317
2317
|
const parsedOutput = {
|
|
2318
2318
|
...output,
|
|
2319
|
-
body: await
|
|
2319
|
+
body: await parseErrorBody(output.body, context),
|
|
2320
2320
|
};
|
|
2321
2321
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2322
2322
|
switch (errorCode) {
|
|
@@ -2356,7 +2356,7 @@ exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = de
|
|
|
2356
2356
|
const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError = async (output, context) => {
|
|
2357
2357
|
const parsedOutput = {
|
|
2358
2358
|
...output,
|
|
2359
|
-
body: await
|
|
2359
|
+
body: await parseErrorBody(output.body, context),
|
|
2360
2360
|
};
|
|
2361
2361
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2362
2362
|
switch (errorCode) {
|
|
@@ -2399,7 +2399,7 @@ exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = deseriali
|
|
|
2399
2399
|
const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async (output, context) => {
|
|
2400
2400
|
const parsedOutput = {
|
|
2401
2401
|
...output,
|
|
2402
|
-
body: await
|
|
2402
|
+
body: await parseErrorBody(output.body, context),
|
|
2403
2403
|
};
|
|
2404
2404
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2405
2405
|
switch (errorCode) {
|
|
@@ -2442,7 +2442,7 @@ exports.deserializeAws_restJson1DisassociateMembersCommand = deserializeAws_rest
|
|
|
2442
2442
|
const deserializeAws_restJson1DisassociateMembersCommandError = async (output, context) => {
|
|
2443
2443
|
const parsedOutput = {
|
|
2444
2444
|
...output,
|
|
2445
|
-
body: await
|
|
2445
|
+
body: await parseErrorBody(output.body, context),
|
|
2446
2446
|
};
|
|
2447
2447
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2448
2448
|
switch (errorCode) {
|
|
@@ -2488,7 +2488,7 @@ exports.deserializeAws_restJson1EnableImportFindingsForProductCommand = deserial
|
|
|
2488
2488
|
const deserializeAws_restJson1EnableImportFindingsForProductCommandError = async (output, context) => {
|
|
2489
2489
|
const parsedOutput = {
|
|
2490
2490
|
...output,
|
|
2491
|
-
body: await
|
|
2491
|
+
body: await parseErrorBody(output.body, context),
|
|
2492
2492
|
};
|
|
2493
2493
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2494
2494
|
switch (errorCode) {
|
|
@@ -2531,7 +2531,7 @@ exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = deserial
|
|
|
2531
2531
|
const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
2532
2532
|
const parsedOutput = {
|
|
2533
2533
|
...output,
|
|
2534
|
-
body: await
|
|
2534
|
+
body: await parseErrorBody(output.body, context),
|
|
2535
2535
|
};
|
|
2536
2536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2537
2537
|
switch (errorCode) {
|
|
@@ -2571,7 +2571,7 @@ exports.deserializeAws_restJson1EnableSecurityHubCommand = deserializeAws_restJs
|
|
|
2571
2571
|
const deserializeAws_restJson1EnableSecurityHubCommandError = async (output, context) => {
|
|
2572
2572
|
const parsedOutput = {
|
|
2573
2573
|
...output,
|
|
2574
|
-
body: await
|
|
2574
|
+
body: await parseErrorBody(output.body, context),
|
|
2575
2575
|
};
|
|
2576
2576
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
2577
|
switch (errorCode) {
|
|
@@ -2617,7 +2617,7 @@ exports.deserializeAws_restJson1GetAdministratorAccountCommand = deserializeAws_
|
|
|
2617
2617
|
const deserializeAws_restJson1GetAdministratorAccountCommandError = async (output, context) => {
|
|
2618
2618
|
const parsedOutput = {
|
|
2619
2619
|
...output,
|
|
2620
|
-
body: await
|
|
2620
|
+
body: await parseErrorBody(output.body, context),
|
|
2621
2621
|
};
|
|
2622
2622
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2623
2623
|
switch (errorCode) {
|
|
@@ -2666,7 +2666,7 @@ exports.deserializeAws_restJson1GetEnabledStandardsCommand = deserializeAws_rest
|
|
|
2666
2666
|
const deserializeAws_restJson1GetEnabledStandardsCommandError = async (output, context) => {
|
|
2667
2667
|
const parsedOutput = {
|
|
2668
2668
|
...output,
|
|
2669
|
-
body: await
|
|
2669
|
+
body: await parseErrorBody(output.body, context),
|
|
2670
2670
|
};
|
|
2671
2671
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2672
2672
|
switch (errorCode) {
|
|
@@ -2718,7 +2718,7 @@ exports.deserializeAws_restJson1GetFindingAggregatorCommand = deserializeAws_res
|
|
|
2718
2718
|
const deserializeAws_restJson1GetFindingAggregatorCommandError = async (output, context) => {
|
|
2719
2719
|
const parsedOutput = {
|
|
2720
2720
|
...output,
|
|
2721
|
-
body: await
|
|
2721
|
+
body: await parseErrorBody(output.body, context),
|
|
2722
2722
|
};
|
|
2723
2723
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2724
2724
|
switch (errorCode) {
|
|
@@ -2770,7 +2770,7 @@ exports.deserializeAws_restJson1GetFindingsCommand = deserializeAws_restJson1Get
|
|
|
2770
2770
|
const deserializeAws_restJson1GetFindingsCommandError = async (output, context) => {
|
|
2771
2771
|
const parsedOutput = {
|
|
2772
2772
|
...output,
|
|
2773
|
-
body: await
|
|
2773
|
+
body: await parseErrorBody(output.body, context),
|
|
2774
2774
|
};
|
|
2775
2775
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2776
2776
|
switch (errorCode) {
|
|
@@ -2813,7 +2813,7 @@ exports.deserializeAws_restJson1GetInsightResultsCommand = deserializeAws_restJs
|
|
|
2813
2813
|
const deserializeAws_restJson1GetInsightResultsCommandError = async (output, context) => {
|
|
2814
2814
|
const parsedOutput = {
|
|
2815
2815
|
...output,
|
|
2816
|
-
body: await
|
|
2816
|
+
body: await parseErrorBody(output.body, context),
|
|
2817
2817
|
};
|
|
2818
2818
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2819
2819
|
switch (errorCode) {
|
|
@@ -2862,7 +2862,7 @@ exports.deserializeAws_restJson1GetInsightsCommand = deserializeAws_restJson1Get
|
|
|
2862
2862
|
const deserializeAws_restJson1GetInsightsCommandError = async (output, context) => {
|
|
2863
2863
|
const parsedOutput = {
|
|
2864
2864
|
...output,
|
|
2865
|
-
body: await
|
|
2865
|
+
body: await parseErrorBody(output.body, context),
|
|
2866
2866
|
};
|
|
2867
2867
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2868
2868
|
switch (errorCode) {
|
|
@@ -2908,7 +2908,7 @@ exports.deserializeAws_restJson1GetInvitationsCountCommand = deserializeAws_rest
|
|
|
2908
2908
|
const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, context) => {
|
|
2909
2909
|
const parsedOutput = {
|
|
2910
2910
|
...output,
|
|
2911
|
-
body: await
|
|
2911
|
+
body: await parseErrorBody(output.body, context),
|
|
2912
2912
|
};
|
|
2913
2913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2914
2914
|
switch (errorCode) {
|
|
@@ -2951,7 +2951,7 @@ exports.deserializeAws_restJson1GetMasterAccountCommand = deserializeAws_restJso
|
|
|
2951
2951
|
const deserializeAws_restJson1GetMasterAccountCommandError = async (output, context) => {
|
|
2952
2952
|
const parsedOutput = {
|
|
2953
2953
|
...output,
|
|
2954
|
-
body: await
|
|
2954
|
+
body: await parseErrorBody(output.body, context),
|
|
2955
2955
|
};
|
|
2956
2956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2957
2957
|
switch (errorCode) {
|
|
@@ -3000,7 +3000,7 @@ exports.deserializeAws_restJson1GetMembersCommand = deserializeAws_restJson1GetM
|
|
|
3000
3000
|
const deserializeAws_restJson1GetMembersCommandError = async (output, context) => {
|
|
3001
3001
|
const parsedOutput = {
|
|
3002
3002
|
...output,
|
|
3003
|
-
body: await
|
|
3003
|
+
body: await parseErrorBody(output.body, context),
|
|
3004
3004
|
};
|
|
3005
3005
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3006
3006
|
switch (errorCode) {
|
|
@@ -3046,7 +3046,7 @@ exports.deserializeAws_restJson1InviteMembersCommand = deserializeAws_restJson1I
|
|
|
3046
3046
|
const deserializeAws_restJson1InviteMembersCommandError = async (output, context) => {
|
|
3047
3047
|
const parsedOutput = {
|
|
3048
3048
|
...output,
|
|
3049
|
-
body: await
|
|
3049
|
+
body: await parseErrorBody(output.body, context),
|
|
3050
3050
|
};
|
|
3051
3051
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3052
3052
|
switch (errorCode) {
|
|
@@ -3095,7 +3095,7 @@ exports.deserializeAws_restJson1ListEnabledProductsForImportCommand = deserializ
|
|
|
3095
3095
|
const deserializeAws_restJson1ListEnabledProductsForImportCommandError = async (output, context) => {
|
|
3096
3096
|
const parsedOutput = {
|
|
3097
3097
|
...output,
|
|
3098
|
-
body: await
|
|
3098
|
+
body: await parseErrorBody(output.body, context),
|
|
3099
3099
|
};
|
|
3100
3100
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3101
3101
|
switch (errorCode) {
|
|
@@ -3138,7 +3138,7 @@ exports.deserializeAws_restJson1ListFindingAggregatorsCommand = deserializeAws_r
|
|
|
3138
3138
|
const deserializeAws_restJson1ListFindingAggregatorsCommandError = async (output, context) => {
|
|
3139
3139
|
const parsedOutput = {
|
|
3140
3140
|
...output,
|
|
3141
|
-
body: await
|
|
3141
|
+
body: await parseErrorBody(output.body, context),
|
|
3142
3142
|
};
|
|
3143
3143
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3144
3144
|
switch (errorCode) {
|
|
@@ -3187,7 +3187,7 @@ exports.deserializeAws_restJson1ListInvitationsCommand = deserializeAws_restJson
|
|
|
3187
3187
|
const deserializeAws_restJson1ListInvitationsCommandError = async (output, context) => {
|
|
3188
3188
|
const parsedOutput = {
|
|
3189
3189
|
...output,
|
|
3190
|
-
body: await
|
|
3190
|
+
body: await parseErrorBody(output.body, context),
|
|
3191
3191
|
};
|
|
3192
3192
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3193
3193
|
switch (errorCode) {
|
|
@@ -3233,7 +3233,7 @@ exports.deserializeAws_restJson1ListMembersCommand = deserializeAws_restJson1Lis
|
|
|
3233
3233
|
const deserializeAws_restJson1ListMembersCommandError = async (output, context) => {
|
|
3234
3234
|
const parsedOutput = {
|
|
3235
3235
|
...output,
|
|
3236
|
-
body: await
|
|
3236
|
+
body: await parseErrorBody(output.body, context),
|
|
3237
3237
|
};
|
|
3238
3238
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3239
3239
|
switch (errorCode) {
|
|
@@ -3279,7 +3279,7 @@ exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = deseriali
|
|
|
3279
3279
|
const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async (output, context) => {
|
|
3280
3280
|
const parsedOutput = {
|
|
3281
3281
|
...output,
|
|
3282
|
-
body: await
|
|
3282
|
+
body: await parseErrorBody(output.body, context),
|
|
3283
3283
|
};
|
|
3284
3284
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3285
3285
|
switch (errorCode) {
|
|
@@ -3322,7 +3322,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
3322
3322
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
3323
3323
|
const parsedOutput = {
|
|
3324
3324
|
...output,
|
|
3325
|
-
body: await
|
|
3325
|
+
body: await parseErrorBody(output.body, context),
|
|
3326
3326
|
};
|
|
3327
3327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3328
3328
|
switch (errorCode) {
|
|
@@ -3359,7 +3359,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
3359
3359
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
3360
3360
|
const parsedOutput = {
|
|
3361
3361
|
...output,
|
|
3362
|
-
body: await
|
|
3362
|
+
body: await parseErrorBody(output.body, context),
|
|
3363
3363
|
};
|
|
3364
3364
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3365
3365
|
switch (errorCode) {
|
|
@@ -3396,7 +3396,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
3396
3396
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
3397
3397
|
const parsedOutput = {
|
|
3398
3398
|
...output,
|
|
3399
|
-
body: await
|
|
3399
|
+
body: await parseErrorBody(output.body, context),
|
|
3400
3400
|
};
|
|
3401
3401
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3402
3402
|
switch (errorCode) {
|
|
@@ -3433,7 +3433,7 @@ exports.deserializeAws_restJson1UpdateActionTargetCommand = deserializeAws_restJ
|
|
|
3433
3433
|
const deserializeAws_restJson1UpdateActionTargetCommandError = async (output, context) => {
|
|
3434
3434
|
const parsedOutput = {
|
|
3435
3435
|
...output,
|
|
3436
|
-
body: await
|
|
3436
|
+
body: await parseErrorBody(output.body, context),
|
|
3437
3437
|
};
|
|
3438
3438
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3439
3439
|
switch (errorCode) {
|
|
@@ -3485,7 +3485,7 @@ exports.deserializeAws_restJson1UpdateFindingAggregatorCommand = deserializeAws_
|
|
|
3485
3485
|
const deserializeAws_restJson1UpdateFindingAggregatorCommandError = async (output, context) => {
|
|
3486
3486
|
const parsedOutput = {
|
|
3487
3487
|
...output,
|
|
3488
|
-
body: await
|
|
3488
|
+
body: await parseErrorBody(output.body, context),
|
|
3489
3489
|
};
|
|
3490
3490
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3491
3491
|
switch (errorCode) {
|
|
@@ -3531,7 +3531,7 @@ exports.deserializeAws_restJson1UpdateFindingsCommand = deserializeAws_restJson1
|
|
|
3531
3531
|
const deserializeAws_restJson1UpdateFindingsCommandError = async (output, context) => {
|
|
3532
3532
|
const parsedOutput = {
|
|
3533
3533
|
...output,
|
|
3534
|
-
body: await
|
|
3534
|
+
body: await parseErrorBody(output.body, context),
|
|
3535
3535
|
};
|
|
3536
3536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3537
3537
|
switch (errorCode) {
|
|
@@ -3574,7 +3574,7 @@ exports.deserializeAws_restJson1UpdateInsightCommand = deserializeAws_restJson1U
|
|
|
3574
3574
|
const deserializeAws_restJson1UpdateInsightCommandError = async (output, context) => {
|
|
3575
3575
|
const parsedOutput = {
|
|
3576
3576
|
...output,
|
|
3577
|
-
body: await
|
|
3577
|
+
body: await parseErrorBody(output.body, context),
|
|
3578
3578
|
};
|
|
3579
3579
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3580
3580
|
switch (errorCode) {
|
|
@@ -3617,7 +3617,7 @@ exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = deseria
|
|
|
3617
3617
|
const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
3618
3618
|
const parsedOutput = {
|
|
3619
3619
|
...output,
|
|
3620
|
-
body: await
|
|
3620
|
+
body: await parseErrorBody(output.body, context),
|
|
3621
3621
|
};
|
|
3622
3622
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3623
3623
|
switch (errorCode) {
|
|
@@ -3657,7 +3657,7 @@ exports.deserializeAws_restJson1UpdateSecurityHubConfigurationCommand = deserial
|
|
|
3657
3657
|
const deserializeAws_restJson1UpdateSecurityHubConfigurationCommandError = async (output, context) => {
|
|
3658
3658
|
const parsedOutput = {
|
|
3659
3659
|
...output,
|
|
3660
|
-
body: await
|
|
3660
|
+
body: await parseErrorBody(output.body, context),
|
|
3661
3661
|
};
|
|
3662
3662
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3663
3663
|
switch (errorCode) {
|
|
@@ -3700,7 +3700,7 @@ exports.deserializeAws_restJson1UpdateStandardsControlCommand = deserializeAws_r
|
|
|
3700
3700
|
const deserializeAws_restJson1UpdateStandardsControlCommandError = async (output, context) => {
|
|
3701
3701
|
const parsedOutput = {
|
|
3702
3702
|
...output,
|
|
3703
|
-
body: await
|
|
3703
|
+
body: await parseErrorBody(output.body, context),
|
|
3704
3704
|
};
|
|
3705
3705
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3706
3706
|
switch (errorCode) {
|
|
@@ -18353,6 +18353,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
18353
18353
|
}
|
|
18354
18354
|
return {};
|
|
18355
18355
|
});
|
|
18356
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
18357
|
+
var _a;
|
|
18358
|
+
const value = await parseBody(errorBody, context);
|
|
18359
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
18360
|
+
return value;
|
|
18361
|
+
};
|
|
18356
18362
|
const loadRestJsonErrorCode = (output, data) => {
|
|
18357
18363
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
18358
18364
|
const sanitizeErrorCode = (rawValue) => {
|