@aws-sdk/client-securityhub 3.179.0 → 3.181.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/protocols/Aws_restJson1.js +69 -56
- package/package.json +6 -6
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.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
* **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))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @aws-sdk/client-securityhub
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.179.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.178.0...v3.179.0) (2022-09-26)
|
|
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) => {
|
|
@@ -1410,7 +1410,7 @@ var deserializeAws_restJson1AcceptAdministratorInvitationCommandError = function
|
|
|
1410
1410
|
case 0:
|
|
1411
1411
|
_a = [__assign({}, output)];
|
|
1412
1412
|
_c = {};
|
|
1413
|
-
return [4,
|
|
1413
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1414
1414
|
case 1:
|
|
1415
1415
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1416
1416
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1477,7 +1477,7 @@ var deserializeAws_restJson1AcceptInvitationCommandError = function (output, con
|
|
|
1477
1477
|
case 0:
|
|
1478
1478
|
_a = [__assign({}, output)];
|
|
1479
1479
|
_c = {};
|
|
1480
|
-
return [4,
|
|
1480
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1481
1481
|
case 1:
|
|
1482
1482
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1483
1483
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1549,7 +1549,7 @@ var deserializeAws_restJson1BatchDisableStandardsCommandError = function (output
|
|
|
1549
1549
|
case 0:
|
|
1550
1550
|
_a = [__assign({}, output)];
|
|
1551
1551
|
_c = {};
|
|
1552
|
-
return [4,
|
|
1552
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1553
1553
|
case 1:
|
|
1554
1554
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1555
1555
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1617,7 +1617,7 @@ var deserializeAws_restJson1BatchEnableStandardsCommandError = function (output,
|
|
|
1617
1617
|
case 0:
|
|
1618
1618
|
_a = [__assign({}, output)];
|
|
1619
1619
|
_c = {};
|
|
1620
|
-
return [4,
|
|
1620
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1621
1621
|
case 1:
|
|
1622
1622
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1623
1623
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1691,7 +1691,7 @@ var deserializeAws_restJson1BatchImportFindingsCommandError = function (output,
|
|
|
1691
1691
|
case 0:
|
|
1692
1692
|
_a = [__assign({}, output)];
|
|
1693
1693
|
_c = {};
|
|
1694
|
-
return [4,
|
|
1694
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1695
1695
|
case 1:
|
|
1696
1696
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1697
1697
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1762,7 +1762,7 @@ var deserializeAws_restJson1BatchUpdateFindingsCommandError = function (output,
|
|
|
1762
1762
|
case 0:
|
|
1763
1763
|
_a = [__assign({}, output)];
|
|
1764
1764
|
_c = {};
|
|
1765
|
-
return [4,
|
|
1765
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1766
1766
|
case 1:
|
|
1767
1767
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1768
1768
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1830,7 +1830,7 @@ var deserializeAws_restJson1CreateActionTargetCommandError = function (output, c
|
|
|
1830
1830
|
case 0:
|
|
1831
1831
|
_a = [__assign({}, output)];
|
|
1832
1832
|
_c = {};
|
|
1833
|
-
return [4,
|
|
1833
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1834
1834
|
case 1:
|
|
1835
1835
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1836
1836
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1911,7 +1911,7 @@ var deserializeAws_restJson1CreateFindingAggregatorCommandError = function (outp
|
|
|
1911
1911
|
case 0:
|
|
1912
1912
|
_a = [__assign({}, output)];
|
|
1913
1913
|
_c = {};
|
|
1914
|
-
return [4,
|
|
1914
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1915
1915
|
case 1:
|
|
1916
1916
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1917
1917
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1983,7 +1983,7 @@ var deserializeAws_restJson1CreateInsightCommandError = function (output, contex
|
|
|
1983
1983
|
case 0:
|
|
1984
1984
|
_a = [__assign({}, output)];
|
|
1985
1985
|
_c = {};
|
|
1986
|
-
return [4,
|
|
1986
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1987
1987
|
case 1:
|
|
1988
1988
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1989
1989
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2055,7 +2055,7 @@ var deserializeAws_restJson1CreateMembersCommandError = function (output, contex
|
|
|
2055
2055
|
case 0:
|
|
2056
2056
|
_a = [__assign({}, output)];
|
|
2057
2057
|
_c = {};
|
|
2058
|
-
return [4,
|
|
2058
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2059
2059
|
case 1:
|
|
2060
2060
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2061
2061
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2127,7 +2127,7 @@ var deserializeAws_restJson1DeclineInvitationsCommandError = function (output, c
|
|
|
2127
2127
|
case 0:
|
|
2128
2128
|
_a = [__assign({}, output)];
|
|
2129
2129
|
_c = {};
|
|
2130
|
-
return [4,
|
|
2130
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2131
2131
|
case 1:
|
|
2132
2132
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2133
2133
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2195,7 +2195,7 @@ var deserializeAws_restJson1DeleteActionTargetCommandError = function (output, c
|
|
|
2195
2195
|
case 0:
|
|
2196
2196
|
_a = [__assign({}, output)];
|
|
2197
2197
|
_c = {};
|
|
2198
|
-
return [4,
|
|
2198
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2199
2199
|
case 1:
|
|
2200
2200
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2201
2201
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2258,7 +2258,7 @@ var deserializeAws_restJson1DeleteFindingAggregatorCommandError = function (outp
|
|
|
2258
2258
|
case 0:
|
|
2259
2259
|
_a = [__assign({}, output)];
|
|
2260
2260
|
_c = {};
|
|
2261
|
-
return [4,
|
|
2261
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2262
2262
|
case 1:
|
|
2263
2263
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2264
2264
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2334,7 +2334,7 @@ var deserializeAws_restJson1DeleteInsightCommandError = function (output, contex
|
|
|
2334
2334
|
case 0:
|
|
2335
2335
|
_a = [__assign({}, output)];
|
|
2336
2336
|
_c = {};
|
|
2337
|
-
return [4,
|
|
2337
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2338
2338
|
case 1:
|
|
2339
2339
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2340
2340
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2406,7 +2406,7 @@ var deserializeAws_restJson1DeleteInvitationsCommandError = function (output, co
|
|
|
2406
2406
|
case 0:
|
|
2407
2407
|
_a = [__assign({}, output)];
|
|
2408
2408
|
_c = {};
|
|
2409
|
-
return [4,
|
|
2409
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2410
2410
|
case 1:
|
|
2411
2411
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2412
2412
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2478,7 +2478,7 @@ var deserializeAws_restJson1DeleteMembersCommandError = function (output, contex
|
|
|
2478
2478
|
case 0:
|
|
2479
2479
|
_a = [__assign({}, output)];
|
|
2480
2480
|
_c = {};
|
|
2481
|
-
return [4,
|
|
2481
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2482
2482
|
case 1:
|
|
2483
2483
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2484
2484
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2553,7 +2553,7 @@ var deserializeAws_restJson1DescribeActionTargetsCommandError = function (output
|
|
|
2553
2553
|
case 0:
|
|
2554
2554
|
_a = [__assign({}, output)];
|
|
2555
2555
|
_c = {};
|
|
2556
|
-
return [4,
|
|
2556
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2557
2557
|
case 1:
|
|
2558
2558
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2559
2559
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2627,7 +2627,7 @@ var deserializeAws_restJson1DescribeHubCommandError = function (output, context)
|
|
|
2627
2627
|
case 0:
|
|
2628
2628
|
_a = [__assign({}, output)];
|
|
2629
2629
|
_c = {};
|
|
2630
|
-
return [4,
|
|
2630
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2631
2631
|
case 1:
|
|
2632
2632
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2633
2633
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2705,7 +2705,7 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
|
|
|
2705
2705
|
case 0:
|
|
2706
2706
|
_a = [__assign({}, output)];
|
|
2707
2707
|
_c = {};
|
|
2708
|
-
return [4,
|
|
2708
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2709
2709
|
case 1:
|
|
2710
2710
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2711
2711
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2776,7 +2776,7 @@ var deserializeAws_restJson1DescribeProductsCommandError = function (output, con
|
|
|
2776
2776
|
case 0:
|
|
2777
2777
|
_a = [__assign({}, output)];
|
|
2778
2778
|
_c = {};
|
|
2779
|
-
return [4,
|
|
2779
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2780
2780
|
case 1:
|
|
2781
2781
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2782
2782
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2847,7 +2847,7 @@ var deserializeAws_restJson1DescribeStandardsCommandError = function (output, co
|
|
|
2847
2847
|
case 0:
|
|
2848
2848
|
_a = [__assign({}, output)];
|
|
2849
2849
|
_c = {};
|
|
2850
|
-
return [4,
|
|
2850
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2851
2851
|
case 1:
|
|
2852
2852
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2853
2853
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2914,7 +2914,7 @@ var deserializeAws_restJson1DescribeStandardsControlsCommandError = function (ou
|
|
|
2914
2914
|
case 0:
|
|
2915
2915
|
_a = [__assign({}, output)];
|
|
2916
2916
|
_c = {};
|
|
2917
|
-
return [4,
|
|
2917
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2918
2918
|
case 1:
|
|
2919
2919
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2920
2920
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2977,7 +2977,7 @@ var deserializeAws_restJson1DisableImportFindingsForProductCommandError = functi
|
|
|
2977
2977
|
case 0:
|
|
2978
2978
|
_a = [__assign({}, output)];
|
|
2979
2979
|
_c = {};
|
|
2980
|
-
return [4,
|
|
2980
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2981
2981
|
case 1:
|
|
2982
2982
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2983
2983
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3044,7 +3044,7 @@ var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = functi
|
|
|
3044
3044
|
case 0:
|
|
3045
3045
|
_a = [__assign({}, output)];
|
|
3046
3046
|
_c = {};
|
|
3047
|
-
return [4,
|
|
3047
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3048
3048
|
case 1:
|
|
3049
3049
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3050
3050
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3107,7 +3107,7 @@ var deserializeAws_restJson1DisableSecurityHubCommandError = function (output, c
|
|
|
3107
3107
|
case 0:
|
|
3108
3108
|
_a = [__assign({}, output)];
|
|
3109
3109
|
_c = {};
|
|
3110
|
-
return [4,
|
|
3110
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3111
3111
|
case 1:
|
|
3112
3112
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3113
3113
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3170,7 +3170,7 @@ var deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError = f
|
|
|
3170
3170
|
case 0:
|
|
3171
3171
|
_a = [__assign({}, output)];
|
|
3172
3172
|
_c = {};
|
|
3173
|
-
return [4,
|
|
3173
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3174
3174
|
case 1:
|
|
3175
3175
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3176
3176
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3237,7 +3237,7 @@ var deserializeAws_restJson1DisassociateFromMasterAccountCommandError = function
|
|
|
3237
3237
|
case 0:
|
|
3238
3238
|
_a = [__assign({}, output)];
|
|
3239
3239
|
_c = {};
|
|
3240
|
-
return [4,
|
|
3240
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3241
3241
|
case 1:
|
|
3242
3242
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3243
3243
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3304,7 +3304,7 @@ var deserializeAws_restJson1DisassociateMembersCommandError = function (output,
|
|
|
3304
3304
|
case 0:
|
|
3305
3305
|
_a = [__assign({}, output)];
|
|
3306
3306
|
_c = {};
|
|
3307
|
-
return [4,
|
|
3307
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3308
3308
|
case 1:
|
|
3309
3309
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3310
3310
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3376,7 +3376,7 @@ var deserializeAws_restJson1EnableImportFindingsForProductCommandError = functio
|
|
|
3376
3376
|
case 0:
|
|
3377
3377
|
_a = [__assign({}, output)];
|
|
3378
3378
|
_c = {};
|
|
3379
|
-
return [4,
|
|
3379
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3380
3380
|
case 1:
|
|
3381
3381
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3382
3382
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3443,7 +3443,7 @@ var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = functio
|
|
|
3443
3443
|
case 0:
|
|
3444
3444
|
_a = [__assign({}, output)];
|
|
3445
3445
|
_c = {};
|
|
3446
|
-
return [4,
|
|
3446
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3447
3447
|
case 1:
|
|
3448
3448
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3449
3449
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3506,7 +3506,7 @@ var deserializeAws_restJson1EnableSecurityHubCommandError = function (output, co
|
|
|
3506
3506
|
case 0:
|
|
3507
3507
|
_a = [__assign({}, output)];
|
|
3508
3508
|
_c = {};
|
|
3509
|
-
return [4,
|
|
3509
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3510
3510
|
case 1:
|
|
3511
3511
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3512
3512
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3578,7 +3578,7 @@ var deserializeAws_restJson1GetAdministratorAccountCommandError = function (outp
|
|
|
3578
3578
|
case 0:
|
|
3579
3579
|
_a = [__assign({}, output)];
|
|
3580
3580
|
_c = {};
|
|
3581
|
-
return [4,
|
|
3581
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3582
3582
|
case 1:
|
|
3583
3583
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3584
3584
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3653,7 +3653,7 @@ var deserializeAws_restJson1GetEnabledStandardsCommandError = function (output,
|
|
|
3653
3653
|
case 0:
|
|
3654
3654
|
_a = [__assign({}, output)];
|
|
3655
3655
|
_c = {};
|
|
3656
|
-
return [4,
|
|
3656
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3657
3657
|
case 1:
|
|
3658
3658
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3659
3659
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3730,7 +3730,7 @@ var deserializeAws_restJson1GetFindingAggregatorCommandError = function (output,
|
|
|
3730
3730
|
case 0:
|
|
3731
3731
|
_a = [__assign({}, output)];
|
|
3732
3732
|
_c = {};
|
|
3733
|
-
return [4,
|
|
3733
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3734
3734
|
case 1:
|
|
3735
3735
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3736
3736
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3809,7 +3809,7 @@ var deserializeAws_restJson1GetFindingsCommandError = function (output, context)
|
|
|
3809
3809
|
case 0:
|
|
3810
3810
|
_a = [__assign({}, output)];
|
|
3811
3811
|
_c = {};
|
|
3812
|
-
return [4,
|
|
3812
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3813
3813
|
case 1:
|
|
3814
3814
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3815
3815
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3877,7 +3877,7 @@ var deserializeAws_restJson1GetInsightResultsCommandError = function (output, co
|
|
|
3877
3877
|
case 0:
|
|
3878
3878
|
_a = [__assign({}, output)];
|
|
3879
3879
|
_c = {};
|
|
3880
|
-
return [4,
|
|
3880
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3881
3881
|
case 1:
|
|
3882
3882
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3883
3883
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3952,7 +3952,7 @@ var deserializeAws_restJson1GetInsightsCommandError = function (output, context)
|
|
|
3952
3952
|
case 0:
|
|
3953
3953
|
_a = [__assign({}, output)];
|
|
3954
3954
|
_c = {};
|
|
3955
|
-
return [4,
|
|
3955
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3956
3956
|
case 1:
|
|
3957
3957
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3958
3958
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4024,7 +4024,7 @@ var deserializeAws_restJson1GetInvitationsCountCommandError = function (output,
|
|
|
4024
4024
|
case 0:
|
|
4025
4025
|
_a = [__assign({}, output)];
|
|
4026
4026
|
_c = {};
|
|
4027
|
-
return [4,
|
|
4027
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4028
4028
|
case 1:
|
|
4029
4029
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4030
4030
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4092,7 +4092,7 @@ var deserializeAws_restJson1GetMasterAccountCommandError = function (output, con
|
|
|
4092
4092
|
case 0:
|
|
4093
4093
|
_a = [__assign({}, output)];
|
|
4094
4094
|
_c = {};
|
|
4095
|
-
return [4,
|
|
4095
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4096
4096
|
case 1:
|
|
4097
4097
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4098
4098
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4167,7 +4167,7 @@ var deserializeAws_restJson1GetMembersCommandError = function (output, context)
|
|
|
4167
4167
|
case 0:
|
|
4168
4168
|
_a = [__assign({}, output)];
|
|
4169
4169
|
_c = {};
|
|
4170
|
-
return [4,
|
|
4170
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4171
4171
|
case 1:
|
|
4172
4172
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4173
4173
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4239,7 +4239,7 @@ var deserializeAws_restJson1InviteMembersCommandError = function (output, contex
|
|
|
4239
4239
|
case 0:
|
|
4240
4240
|
_a = [__assign({}, output)];
|
|
4241
4241
|
_c = {};
|
|
4242
|
-
return [4,
|
|
4242
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4243
4243
|
case 1:
|
|
4244
4244
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4245
4245
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4314,7 +4314,7 @@ var deserializeAws_restJson1ListEnabledProductsForImportCommandError = function
|
|
|
4314
4314
|
case 0:
|
|
4315
4315
|
_a = [__assign({}, output)];
|
|
4316
4316
|
_c = {};
|
|
4317
|
-
return [4,
|
|
4317
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4318
4318
|
case 1:
|
|
4319
4319
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4320
4320
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4381,7 +4381,7 @@ var deserializeAws_restJson1ListFindingAggregatorsCommandError = function (outpu
|
|
|
4381
4381
|
case 0:
|
|
4382
4382
|
_a = [__assign({}, output)];
|
|
4383
4383
|
_c = {};
|
|
4384
|
-
return [4,
|
|
4384
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4385
4385
|
case 1:
|
|
4386
4386
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4387
4387
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4456,7 +4456,7 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
4456
4456
|
case 0:
|
|
4457
4457
|
_a = [__assign({}, output)];
|
|
4458
4458
|
_c = {};
|
|
4459
|
-
return [4,
|
|
4459
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4460
4460
|
case 1:
|
|
4461
4461
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4462
4462
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4527,7 +4527,7 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
4527
4527
|
case 0:
|
|
4528
4528
|
_a = [__assign({}, output)];
|
|
4529
4529
|
_c = {};
|
|
4530
|
-
return [4,
|
|
4530
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4531
4531
|
case 1:
|
|
4532
4532
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4533
4533
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4598,7 +4598,7 @@ var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function
|
|
|
4598
4598
|
case 0:
|
|
4599
4599
|
_a = [__assign({}, output)];
|
|
4600
4600
|
_c = {};
|
|
4601
|
-
return [4,
|
|
4601
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4602
4602
|
case 1:
|
|
4603
4603
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4604
4604
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4666,7 +4666,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
4666
4666
|
case 0:
|
|
4667
4667
|
_a = [__assign({}, output)];
|
|
4668
4668
|
_c = {};
|
|
4669
|
-
return [4,
|
|
4669
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4670
4670
|
case 1:
|
|
4671
4671
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4672
4672
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4725,7 +4725,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
4725
4725
|
case 0:
|
|
4726
4726
|
_a = [__assign({}, output)];
|
|
4727
4727
|
_c = {};
|
|
4728
|
-
return [4,
|
|
4728
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4729
4729
|
case 1:
|
|
4730
4730
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4731
4731
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4784,7 +4784,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4784
4784
|
case 0:
|
|
4785
4785
|
_a = [__assign({}, output)];
|
|
4786
4786
|
_c = {};
|
|
4787
|
-
return [4,
|
|
4787
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4788
4788
|
case 1:
|
|
4789
4789
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4790
4790
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4843,7 +4843,7 @@ var deserializeAws_restJson1UpdateActionTargetCommandError = function (output, c
|
|
|
4843
4843
|
case 0:
|
|
4844
4844
|
_a = [__assign({}, output)];
|
|
4845
4845
|
_c = {};
|
|
4846
|
-
return [4,
|
|
4846
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4847
4847
|
case 1:
|
|
4848
4848
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4849
4849
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4920,7 +4920,7 @@ var deserializeAws_restJson1UpdateFindingAggregatorCommandError = function (outp
|
|
|
4920
4920
|
case 0:
|
|
4921
4921
|
_a = [__assign({}, output)];
|
|
4922
4922
|
_c = {};
|
|
4923
|
-
return [4,
|
|
4923
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4924
4924
|
case 1:
|
|
4925
4925
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4926
4926
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4991,7 +4991,7 @@ var deserializeAws_restJson1UpdateFindingsCommandError = function (output, conte
|
|
|
4991
4991
|
case 0:
|
|
4992
4992
|
_a = [__assign({}, output)];
|
|
4993
4993
|
_c = {};
|
|
4994
|
-
return [4,
|
|
4994
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4995
4995
|
case 1:
|
|
4996
4996
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4997
4997
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5058,7 +5058,7 @@ var deserializeAws_restJson1UpdateInsightCommandError = function (output, contex
|
|
|
5058
5058
|
case 0:
|
|
5059
5059
|
_a = [__assign({}, output)];
|
|
5060
5060
|
_c = {};
|
|
5061
|
-
return [4,
|
|
5061
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5062
5062
|
case 1:
|
|
5063
5063
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5064
5064
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5125,7 +5125,7 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
|
|
|
5125
5125
|
case 0:
|
|
5126
5126
|
_a = [__assign({}, output)];
|
|
5127
5127
|
_c = {};
|
|
5128
|
-
return [4,
|
|
5128
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5129
5129
|
case 1:
|
|
5130
5130
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5131
5131
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5188,7 +5188,7 @@ var deserializeAws_restJson1UpdateSecurityHubConfigurationCommandError = functio
|
|
|
5188
5188
|
case 0:
|
|
5189
5189
|
_a = [__assign({}, output)];
|
|
5190
5190
|
_c = {};
|
|
5191
|
-
return [4,
|
|
5191
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5192
5192
|
case 1:
|
|
5193
5193
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5194
5194
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5255,7 +5255,7 @@ var deserializeAws_restJson1UpdateStandardsControlCommandError = function (outpu
|
|
|
5255
5255
|
case 0:
|
|
5256
5256
|
_a = [__assign({}, output)];
|
|
5257
5257
|
_c = {};
|
|
5258
|
-
return [4,
|
|
5258
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5259
5259
|
case 1:
|
|
5260
5260
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5261
5261
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -17143,6 +17143,19 @@ var parseBody = function (streamBody, context) {
|
|
|
17143
17143
|
return {};
|
|
17144
17144
|
});
|
|
17145
17145
|
};
|
|
17146
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
17147
|
+
var value;
|
|
17148
|
+
var _a;
|
|
17149
|
+
return __generator(this, function (_b) {
|
|
17150
|
+
switch (_b.label) {
|
|
17151
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
17152
|
+
case 1:
|
|
17153
|
+
value = _b.sent();
|
|
17154
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
17155
|
+
return [2, value];
|
|
17156
|
+
}
|
|
17157
|
+
});
|
|
17158
|
+
}); };
|
|
17146
17159
|
var loadRestJsonErrorCode = function (output, data) {
|
|
17147
17160
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
17148
17161
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-securityhub",
|
|
3
3
|
"description": "AWS SDK for JavaScript Securityhub Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.178.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.178.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.178.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.180.0",
|
|
41
41
|
"@aws-sdk/types": "3.178.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.178.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.170.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.170.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.170.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.180.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.180.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-browser": "3.178.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-node": "3.178.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.170.0",
|