@aws-sdk/client-guardduty 3.180.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 CHANGED
@@ -3,6 +3,18 @@
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
+
6
18
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
19
 
8
20
  **Note:** Version bump only for package @aws-sdk/client-guardduty
@@ -1483,7 +1483,7 @@ exports.deserializeAws_restJson1AcceptAdministratorInvitationCommand = deseriali
1483
1483
  const deserializeAws_restJson1AcceptAdministratorInvitationCommandError = async (output, context) => {
1484
1484
  const parsedOutput = {
1485
1485
  ...output,
1486
- body: await parseBody(output.body, context),
1486
+ body: await parseErrorBody(output.body, context),
1487
1487
  };
1488
1488
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1489
1489
  switch (errorCode) {
@@ -1517,7 +1517,7 @@ exports.deserializeAws_restJson1AcceptInvitationCommand = deserializeAws_restJso
1517
1517
  const deserializeAws_restJson1AcceptInvitationCommandError = async (output, context) => {
1518
1518
  const parsedOutput = {
1519
1519
  ...output,
1520
- body: await parseBody(output.body, context),
1520
+ body: await parseErrorBody(output.body, context),
1521
1521
  };
1522
1522
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1523
1523
  switch (errorCode) {
@@ -1551,7 +1551,7 @@ exports.deserializeAws_restJson1ArchiveFindingsCommand = deserializeAws_restJson
1551
1551
  const deserializeAws_restJson1ArchiveFindingsCommandError = async (output, context) => {
1552
1552
  const parsedOutput = {
1553
1553
  ...output,
1554
- body: await parseBody(output.body, context),
1554
+ body: await parseErrorBody(output.body, context),
1555
1555
  };
1556
1556
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1557
1557
  switch (errorCode) {
@@ -1588,7 +1588,7 @@ exports.deserializeAws_restJson1CreateDetectorCommand = deserializeAws_restJson1
1588
1588
  const deserializeAws_restJson1CreateDetectorCommandError = async (output, context) => {
1589
1589
  const parsedOutput = {
1590
1590
  ...output,
1591
- body: await parseBody(output.body, context),
1591
+ body: await parseErrorBody(output.body, context),
1592
1592
  };
1593
1593
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1594
1594
  switch (errorCode) {
@@ -1625,7 +1625,7 @@ exports.deserializeAws_restJson1CreateFilterCommand = deserializeAws_restJson1Cr
1625
1625
  const deserializeAws_restJson1CreateFilterCommandError = async (output, context) => {
1626
1626
  const parsedOutput = {
1627
1627
  ...output,
1628
- body: await parseBody(output.body, context),
1628
+ body: await parseErrorBody(output.body, context),
1629
1629
  };
1630
1630
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1631
1631
  switch (errorCode) {
@@ -1662,7 +1662,7 @@ exports.deserializeAws_restJson1CreateIPSetCommand = deserializeAws_restJson1Cre
1662
1662
  const deserializeAws_restJson1CreateIPSetCommandError = async (output, context) => {
1663
1663
  const parsedOutput = {
1664
1664
  ...output,
1665
- body: await parseBody(output.body, context),
1665
+ body: await parseErrorBody(output.body, context),
1666
1666
  };
1667
1667
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1668
1668
  switch (errorCode) {
@@ -1699,7 +1699,7 @@ exports.deserializeAws_restJson1CreateMembersCommand = deserializeAws_restJson1C
1699
1699
  const deserializeAws_restJson1CreateMembersCommandError = async (output, context) => {
1700
1700
  const parsedOutput = {
1701
1701
  ...output,
1702
- body: await parseBody(output.body, context),
1702
+ body: await parseErrorBody(output.body, context),
1703
1703
  };
1704
1704
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1705
1705
  switch (errorCode) {
@@ -1736,7 +1736,7 @@ exports.deserializeAws_restJson1CreatePublishingDestinationCommand = deserialize
1736
1736
  const deserializeAws_restJson1CreatePublishingDestinationCommandError = async (output, context) => {
1737
1737
  const parsedOutput = {
1738
1738
  ...output,
1739
- body: await parseBody(output.body, context),
1739
+ body: await parseErrorBody(output.body, context),
1740
1740
  };
1741
1741
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1742
1742
  switch (errorCode) {
@@ -1770,7 +1770,7 @@ exports.deserializeAws_restJson1CreateSampleFindingsCommand = deserializeAws_res
1770
1770
  const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output, context) => {
1771
1771
  const parsedOutput = {
1772
1772
  ...output,
1773
- body: await parseBody(output.body, context),
1773
+ body: await parseErrorBody(output.body, context),
1774
1774
  };
1775
1775
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1776
1776
  switch (errorCode) {
@@ -1807,7 +1807,7 @@ exports.deserializeAws_restJson1CreateThreatIntelSetCommand = deserializeAws_res
1807
1807
  const deserializeAws_restJson1CreateThreatIntelSetCommandError = async (output, context) => {
1808
1808
  const parsedOutput = {
1809
1809
  ...output,
1810
- body: await parseBody(output.body, context),
1810
+ body: await parseErrorBody(output.body, context),
1811
1811
  };
1812
1812
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1813
1813
  switch (errorCode) {
@@ -1844,7 +1844,7 @@ exports.deserializeAws_restJson1DeclineInvitationsCommand = deserializeAws_restJ
1844
1844
  const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, context) => {
1845
1845
  const parsedOutput = {
1846
1846
  ...output,
1847
- body: await parseBody(output.body, context),
1847
+ body: await parseErrorBody(output.body, context),
1848
1848
  };
1849
1849
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1850
1850
  switch (errorCode) {
@@ -1878,7 +1878,7 @@ exports.deserializeAws_restJson1DeleteDetectorCommand = deserializeAws_restJson1
1878
1878
  const deserializeAws_restJson1DeleteDetectorCommandError = async (output, context) => {
1879
1879
  const parsedOutput = {
1880
1880
  ...output,
1881
- body: await parseBody(output.body, context),
1881
+ body: await parseErrorBody(output.body, context),
1882
1882
  };
1883
1883
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1884
1884
  switch (errorCode) {
@@ -1912,7 +1912,7 @@ exports.deserializeAws_restJson1DeleteFilterCommand = deserializeAws_restJson1De
1912
1912
  const deserializeAws_restJson1DeleteFilterCommandError = async (output, context) => {
1913
1913
  const parsedOutput = {
1914
1914
  ...output,
1915
- body: await parseBody(output.body, context),
1915
+ body: await parseErrorBody(output.body, context),
1916
1916
  };
1917
1917
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1918
1918
  switch (errorCode) {
@@ -1949,7 +1949,7 @@ exports.deserializeAws_restJson1DeleteInvitationsCommand = deserializeAws_restJs
1949
1949
  const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, context) => {
1950
1950
  const parsedOutput = {
1951
1951
  ...output,
1952
- body: await parseBody(output.body, context),
1952
+ body: await parseErrorBody(output.body, context),
1953
1953
  };
1954
1954
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1955
1955
  switch (errorCode) {
@@ -1983,7 +1983,7 @@ exports.deserializeAws_restJson1DeleteIPSetCommand = deserializeAws_restJson1Del
1983
1983
  const deserializeAws_restJson1DeleteIPSetCommandError = async (output, context) => {
1984
1984
  const parsedOutput = {
1985
1985
  ...output,
1986
- body: await parseBody(output.body, context),
1986
+ body: await parseErrorBody(output.body, context),
1987
1987
  };
1988
1988
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1989
1989
  switch (errorCode) {
@@ -2020,7 +2020,7 @@ exports.deserializeAws_restJson1DeleteMembersCommand = deserializeAws_restJson1D
2020
2020
  const deserializeAws_restJson1DeleteMembersCommandError = async (output, context) => {
2021
2021
  const parsedOutput = {
2022
2022
  ...output,
2023
- body: await parseBody(output.body, context),
2023
+ body: await parseErrorBody(output.body, context),
2024
2024
  };
2025
2025
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2026
2026
  switch (errorCode) {
@@ -2054,7 +2054,7 @@ exports.deserializeAws_restJson1DeletePublishingDestinationCommand = deserialize
2054
2054
  const deserializeAws_restJson1DeletePublishingDestinationCommandError = async (output, context) => {
2055
2055
  const parsedOutput = {
2056
2056
  ...output,
2057
- body: await parseBody(output.body, context),
2057
+ body: await parseErrorBody(output.body, context),
2058
2058
  };
2059
2059
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2060
2060
  switch (errorCode) {
@@ -2088,7 +2088,7 @@ exports.deserializeAws_restJson1DeleteThreatIntelSetCommand = deserializeAws_res
2088
2088
  const deserializeAws_restJson1DeleteThreatIntelSetCommandError = async (output, context) => {
2089
2089
  const parsedOutput = {
2090
2090
  ...output,
2091
- body: await parseBody(output.body, context),
2091
+ body: await parseErrorBody(output.body, context),
2092
2092
  };
2093
2093
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2094
2094
  switch (errorCode) {
@@ -2128,7 +2128,7 @@ exports.deserializeAws_restJson1DescribeMalwareScansCommand = deserializeAws_res
2128
2128
  const deserializeAws_restJson1DescribeMalwareScansCommandError = async (output, context) => {
2129
2129
  const parsedOutput = {
2130
2130
  ...output,
2131
- body: await parseBody(output.body, context),
2131
+ body: await parseErrorBody(output.body, context),
2132
2132
  };
2133
2133
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2134
2134
  switch (errorCode) {
@@ -2171,7 +2171,7 @@ exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = deser
2171
2171
  const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = async (output, context) => {
2172
2172
  const parsedOutput = {
2173
2173
  ...output,
2174
- body: await parseBody(output.body, context),
2174
+ body: await parseErrorBody(output.body, context),
2175
2175
  };
2176
2176
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2177
2177
  switch (errorCode) {
@@ -2220,7 +2220,7 @@ exports.deserializeAws_restJson1DescribePublishingDestinationCommand = deseriali
2220
2220
  const deserializeAws_restJson1DescribePublishingDestinationCommandError = async (output, context) => {
2221
2221
  const parsedOutput = {
2222
2222
  ...output,
2223
- body: await parseBody(output.body, context),
2223
+ body: await parseErrorBody(output.body, context),
2224
2224
  };
2225
2225
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2226
2226
  switch (errorCode) {
@@ -2254,7 +2254,7 @@ exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = deseria
2254
2254
  const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = async (output, context) => {
2255
2255
  const parsedOutput = {
2256
2256
  ...output,
2257
- body: await parseBody(output.body, context),
2257
+ body: await parseErrorBody(output.body, context),
2258
2258
  };
2259
2259
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2260
2260
  switch (errorCode) {
@@ -2288,7 +2288,7 @@ exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = de
2288
2288
  const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError = async (output, context) => {
2289
2289
  const parsedOutput = {
2290
2290
  ...output,
2291
- body: await parseBody(output.body, context),
2291
+ body: await parseErrorBody(output.body, context),
2292
2292
  };
2293
2293
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2294
2294
  switch (errorCode) {
@@ -2322,7 +2322,7 @@ exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = deseriali
2322
2322
  const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async (output, context) => {
2323
2323
  const parsedOutput = {
2324
2324
  ...output,
2325
- body: await parseBody(output.body, context),
2325
+ body: await parseErrorBody(output.body, context),
2326
2326
  };
2327
2327
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2328
2328
  switch (errorCode) {
@@ -2359,7 +2359,7 @@ exports.deserializeAws_restJson1DisassociateMembersCommand = deserializeAws_rest
2359
2359
  const deserializeAws_restJson1DisassociateMembersCommandError = async (output, context) => {
2360
2360
  const parsedOutput = {
2361
2361
  ...output,
2362
- body: await parseBody(output.body, context),
2362
+ body: await parseErrorBody(output.body, context),
2363
2363
  };
2364
2364
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2365
2365
  switch (errorCode) {
@@ -2393,7 +2393,7 @@ exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = deserial
2393
2393
  const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async (output, context) => {
2394
2394
  const parsedOutput = {
2395
2395
  ...output,
2396
- body: await parseBody(output.body, context),
2396
+ body: await parseErrorBody(output.body, context),
2397
2397
  };
2398
2398
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2399
2399
  switch (errorCode) {
@@ -2430,7 +2430,7 @@ exports.deserializeAws_restJson1GetAdministratorAccountCommand = deserializeAws_
2430
2430
  const deserializeAws_restJson1GetAdministratorAccountCommandError = async (output, context) => {
2431
2431
  const parsedOutput = {
2432
2432
  ...output,
2433
- body: await parseBody(output.body, context),
2433
+ body: await parseErrorBody(output.body, context),
2434
2434
  };
2435
2435
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2436
2436
  switch (errorCode) {
@@ -2485,7 +2485,7 @@ exports.deserializeAws_restJson1GetDetectorCommand = deserializeAws_restJson1Get
2485
2485
  const deserializeAws_restJson1GetDetectorCommandError = async (output, context) => {
2486
2486
  const parsedOutput = {
2487
2487
  ...output,
2488
- body: await parseBody(output.body, context),
2488
+ body: await parseErrorBody(output.body, context),
2489
2489
  };
2490
2490
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2491
2491
  switch (errorCode) {
@@ -2537,7 +2537,7 @@ exports.deserializeAws_restJson1GetFilterCommand = deserializeAws_restJson1GetFi
2537
2537
  const deserializeAws_restJson1GetFilterCommandError = async (output, context) => {
2538
2538
  const parsedOutput = {
2539
2539
  ...output,
2540
- body: await parseBody(output.body, context),
2540
+ body: await parseErrorBody(output.body, context),
2541
2541
  };
2542
2542
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2543
2543
  switch (errorCode) {
@@ -2574,7 +2574,7 @@ exports.deserializeAws_restJson1GetFindingsCommand = deserializeAws_restJson1Get
2574
2574
  const deserializeAws_restJson1GetFindingsCommandError = async (output, context) => {
2575
2575
  const parsedOutput = {
2576
2576
  ...output,
2577
- body: await parseBody(output.body, context),
2577
+ body: await parseErrorBody(output.body, context),
2578
2578
  };
2579
2579
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2580
2580
  switch (errorCode) {
@@ -2611,7 +2611,7 @@ exports.deserializeAws_restJson1GetFindingsStatisticsCommand = deserializeAws_re
2611
2611
  const deserializeAws_restJson1GetFindingsStatisticsCommandError = async (output, context) => {
2612
2612
  const parsedOutput = {
2613
2613
  ...output,
2614
- body: await parseBody(output.body, context),
2614
+ body: await parseErrorBody(output.body, context),
2615
2615
  };
2616
2616
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2617
2617
  switch (errorCode) {
@@ -2648,7 +2648,7 @@ exports.deserializeAws_restJson1GetInvitationsCountCommand = deserializeAws_rest
2648
2648
  const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, context) => {
2649
2649
  const parsedOutput = {
2650
2650
  ...output,
2651
- body: await parseBody(output.body, context),
2651
+ body: await parseErrorBody(output.body, context),
2652
2652
  };
2653
2653
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2654
2654
  switch (errorCode) {
@@ -2697,7 +2697,7 @@ exports.deserializeAws_restJson1GetIPSetCommand = deserializeAws_restJson1GetIPS
2697
2697
  const deserializeAws_restJson1GetIPSetCommandError = async (output, context) => {
2698
2698
  const parsedOutput = {
2699
2699
  ...output,
2700
- body: await parseBody(output.body, context),
2700
+ body: await parseErrorBody(output.body, context),
2701
2701
  };
2702
2702
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2703
2703
  switch (errorCode) {
@@ -2737,7 +2737,7 @@ exports.deserializeAws_restJson1GetMalwareScanSettingsCommand = deserializeAws_r
2737
2737
  const deserializeAws_restJson1GetMalwareScanSettingsCommandError = async (output, context) => {
2738
2738
  const parsedOutput = {
2739
2739
  ...output,
2740
- body: await parseBody(output.body, context),
2740
+ body: await parseErrorBody(output.body, context),
2741
2741
  };
2742
2742
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2743
2743
  switch (errorCode) {
@@ -2774,7 +2774,7 @@ exports.deserializeAws_restJson1GetMasterAccountCommand = deserializeAws_restJso
2774
2774
  const deserializeAws_restJson1GetMasterAccountCommandError = async (output, context) => {
2775
2775
  const parsedOutput = {
2776
2776
  ...output,
2777
- body: await parseBody(output.body, context),
2777
+ body: await parseErrorBody(output.body, context),
2778
2778
  };
2779
2779
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2780
2780
  switch (errorCode) {
@@ -2814,7 +2814,7 @@ exports.deserializeAws_restJson1GetMemberDetectorsCommand = deserializeAws_restJ
2814
2814
  const deserializeAws_restJson1GetMemberDetectorsCommandError = async (output, context) => {
2815
2815
  const parsedOutput = {
2816
2816
  ...output,
2817
- body: await parseBody(output.body, context),
2817
+ body: await parseErrorBody(output.body, context),
2818
2818
  };
2819
2819
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2820
2820
  switch (errorCode) {
@@ -2854,7 +2854,7 @@ exports.deserializeAws_restJson1GetMembersCommand = deserializeAws_restJson1GetM
2854
2854
  const deserializeAws_restJson1GetMembersCommandError = async (output, context) => {
2855
2855
  const parsedOutput = {
2856
2856
  ...output,
2857
- body: await parseBody(output.body, context),
2857
+ body: await parseErrorBody(output.body, context),
2858
2858
  };
2859
2859
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2860
2860
  switch (errorCode) {
@@ -2894,7 +2894,7 @@ exports.deserializeAws_restJson1GetRemainingFreeTrialDaysCommand = deserializeAw
2894
2894
  const deserializeAws_restJson1GetRemainingFreeTrialDaysCommandError = async (output, context) => {
2895
2895
  const parsedOutput = {
2896
2896
  ...output,
2897
- body: await parseBody(output.body, context),
2897
+ body: await parseErrorBody(output.body, context),
2898
2898
  };
2899
2899
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2900
2900
  switch (errorCode) {
@@ -2943,7 +2943,7 @@ exports.deserializeAws_restJson1GetThreatIntelSetCommand = deserializeAws_restJs
2943
2943
  const deserializeAws_restJson1GetThreatIntelSetCommandError = async (output, context) => {
2944
2944
  const parsedOutput = {
2945
2945
  ...output,
2946
- body: await parseBody(output.body, context),
2946
+ body: await parseErrorBody(output.body, context),
2947
2947
  };
2948
2948
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2949
2949
  switch (errorCode) {
@@ -2983,7 +2983,7 @@ exports.deserializeAws_restJson1GetUsageStatisticsCommand = deserializeAws_restJ
2983
2983
  const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, context) => {
2984
2984
  const parsedOutput = {
2985
2985
  ...output,
2986
- body: await parseBody(output.body, context),
2986
+ body: await parseErrorBody(output.body, context),
2987
2987
  };
2988
2988
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2989
2989
  switch (errorCode) {
@@ -3020,7 +3020,7 @@ exports.deserializeAws_restJson1InviteMembersCommand = deserializeAws_restJson1I
3020
3020
  const deserializeAws_restJson1InviteMembersCommandError = async (output, context) => {
3021
3021
  const parsedOutput = {
3022
3022
  ...output,
3023
- body: await parseBody(output.body, context),
3023
+ body: await parseErrorBody(output.body, context),
3024
3024
  };
3025
3025
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3026
3026
  switch (errorCode) {
@@ -3060,7 +3060,7 @@ exports.deserializeAws_restJson1ListDetectorsCommand = deserializeAws_restJson1L
3060
3060
  const deserializeAws_restJson1ListDetectorsCommandError = async (output, context) => {
3061
3061
  const parsedOutput = {
3062
3062
  ...output,
3063
- body: await parseBody(output.body, context),
3063
+ body: await parseErrorBody(output.body, context),
3064
3064
  };
3065
3065
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3066
3066
  switch (errorCode) {
@@ -3100,7 +3100,7 @@ exports.deserializeAws_restJson1ListFiltersCommand = deserializeAws_restJson1Lis
3100
3100
  const deserializeAws_restJson1ListFiltersCommandError = async (output, context) => {
3101
3101
  const parsedOutput = {
3102
3102
  ...output,
3103
- body: await parseBody(output.body, context),
3103
+ body: await parseErrorBody(output.body, context),
3104
3104
  };
3105
3105
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3106
3106
  switch (errorCode) {
@@ -3140,7 +3140,7 @@ exports.deserializeAws_restJson1ListFindingsCommand = deserializeAws_restJson1Li
3140
3140
  const deserializeAws_restJson1ListFindingsCommandError = async (output, context) => {
3141
3141
  const parsedOutput = {
3142
3142
  ...output,
3143
- body: await parseBody(output.body, context),
3143
+ body: await parseErrorBody(output.body, context),
3144
3144
  };
3145
3145
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3146
3146
  switch (errorCode) {
@@ -3180,7 +3180,7 @@ exports.deserializeAws_restJson1ListInvitationsCommand = deserializeAws_restJson
3180
3180
  const deserializeAws_restJson1ListInvitationsCommandError = async (output, context) => {
3181
3181
  const parsedOutput = {
3182
3182
  ...output,
3183
- body: await parseBody(output.body, context),
3183
+ body: await parseErrorBody(output.body, context),
3184
3184
  };
3185
3185
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3186
3186
  switch (errorCode) {
@@ -3220,7 +3220,7 @@ exports.deserializeAws_restJson1ListIPSetsCommand = deserializeAws_restJson1List
3220
3220
  const deserializeAws_restJson1ListIPSetsCommandError = async (output, context) => {
3221
3221
  const parsedOutput = {
3222
3222
  ...output,
3223
- body: await parseBody(output.body, context),
3223
+ body: await parseErrorBody(output.body, context),
3224
3224
  };
3225
3225
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3226
3226
  switch (errorCode) {
@@ -3260,7 +3260,7 @@ exports.deserializeAws_restJson1ListMembersCommand = deserializeAws_restJson1Lis
3260
3260
  const deserializeAws_restJson1ListMembersCommandError = async (output, context) => {
3261
3261
  const parsedOutput = {
3262
3262
  ...output,
3263
- body: await parseBody(output.body, context),
3263
+ body: await parseErrorBody(output.body, context),
3264
3264
  };
3265
3265
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3266
3266
  switch (errorCode) {
@@ -3300,7 +3300,7 @@ exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = deseriali
3300
3300
  const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async (output, context) => {
3301
3301
  const parsedOutput = {
3302
3302
  ...output,
3303
- body: await parseBody(output.body, context),
3303
+ body: await parseErrorBody(output.body, context),
3304
3304
  };
3305
3305
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3306
3306
  switch (errorCode) {
@@ -3340,7 +3340,7 @@ exports.deserializeAws_restJson1ListPublishingDestinationsCommand = deserializeA
3340
3340
  const deserializeAws_restJson1ListPublishingDestinationsCommandError = async (output, context) => {
3341
3341
  const parsedOutput = {
3342
3342
  ...output,
3343
- body: await parseBody(output.body, context),
3343
+ body: await parseErrorBody(output.body, context),
3344
3344
  };
3345
3345
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3346
3346
  switch (errorCode) {
@@ -3377,7 +3377,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
3377
3377
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
3378
3378
  const parsedOutput = {
3379
3379
  ...output,
3380
- body: await parseBody(output.body, context),
3380
+ body: await parseErrorBody(output.body, context),
3381
3381
  };
3382
3382
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3383
3383
  switch (errorCode) {
@@ -3417,7 +3417,7 @@ exports.deserializeAws_restJson1ListThreatIntelSetsCommand = deserializeAws_rest
3417
3417
  const deserializeAws_restJson1ListThreatIntelSetsCommandError = async (output, context) => {
3418
3418
  const parsedOutput = {
3419
3419
  ...output,
3420
- body: await parseBody(output.body, context),
3420
+ body: await parseErrorBody(output.body, context),
3421
3421
  };
3422
3422
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3423
3423
  switch (errorCode) {
@@ -3454,7 +3454,7 @@ exports.deserializeAws_restJson1StartMonitoringMembersCommand = deserializeAws_r
3454
3454
  const deserializeAws_restJson1StartMonitoringMembersCommandError = async (output, context) => {
3455
3455
  const parsedOutput = {
3456
3456
  ...output,
3457
- body: await parseBody(output.body, context),
3457
+ body: await parseErrorBody(output.body, context),
3458
3458
  };
3459
3459
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3460
3460
  switch (errorCode) {
@@ -3491,7 +3491,7 @@ exports.deserializeAws_restJson1StopMonitoringMembersCommand = deserializeAws_re
3491
3491
  const deserializeAws_restJson1StopMonitoringMembersCommandError = async (output, context) => {
3492
3492
  const parsedOutput = {
3493
3493
  ...output,
3494
- body: await parseBody(output.body, context),
3494
+ body: await parseErrorBody(output.body, context),
3495
3495
  };
3496
3496
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3497
3497
  switch (errorCode) {
@@ -3525,7 +3525,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
3525
3525
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
3526
3526
  const parsedOutput = {
3527
3527
  ...output,
3528
- body: await parseBody(output.body, context),
3528
+ body: await parseErrorBody(output.body, context),
3529
3529
  };
3530
3530
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3531
3531
  switch (errorCode) {
@@ -3559,7 +3559,7 @@ exports.deserializeAws_restJson1UnarchiveFindingsCommand = deserializeAws_restJs
3559
3559
  const deserializeAws_restJson1UnarchiveFindingsCommandError = async (output, context) => {
3560
3560
  const parsedOutput = {
3561
3561
  ...output,
3562
- body: await parseBody(output.body, context),
3562
+ body: await parseErrorBody(output.body, context),
3563
3563
  };
3564
3564
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3565
3565
  switch (errorCode) {
@@ -3593,7 +3593,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
3593
3593
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
3594
3594
  const parsedOutput = {
3595
3595
  ...output,
3596
- body: await parseBody(output.body, context),
3596
+ body: await parseErrorBody(output.body, context),
3597
3597
  };
3598
3598
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3599
3599
  switch (errorCode) {
@@ -3627,7 +3627,7 @@ exports.deserializeAws_restJson1UpdateDetectorCommand = deserializeAws_restJson1
3627
3627
  const deserializeAws_restJson1UpdateDetectorCommandError = async (output, context) => {
3628
3628
  const parsedOutput = {
3629
3629
  ...output,
3630
- body: await parseBody(output.body, context),
3630
+ body: await parseErrorBody(output.body, context),
3631
3631
  };
3632
3632
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3633
3633
  switch (errorCode) {
@@ -3664,7 +3664,7 @@ exports.deserializeAws_restJson1UpdateFilterCommand = deserializeAws_restJson1Up
3664
3664
  const deserializeAws_restJson1UpdateFilterCommandError = async (output, context) => {
3665
3665
  const parsedOutput = {
3666
3666
  ...output,
3667
- body: await parseBody(output.body, context),
3667
+ body: await parseErrorBody(output.body, context),
3668
3668
  };
3669
3669
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3670
3670
  switch (errorCode) {
@@ -3698,7 +3698,7 @@ exports.deserializeAws_restJson1UpdateFindingsFeedbackCommand = deserializeAws_r
3698
3698
  const deserializeAws_restJson1UpdateFindingsFeedbackCommandError = async (output, context) => {
3699
3699
  const parsedOutput = {
3700
3700
  ...output,
3701
- body: await parseBody(output.body, context),
3701
+ body: await parseErrorBody(output.body, context),
3702
3702
  };
3703
3703
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3704
3704
  switch (errorCode) {
@@ -3732,7 +3732,7 @@ exports.deserializeAws_restJson1UpdateIPSetCommand = deserializeAws_restJson1Upd
3732
3732
  const deserializeAws_restJson1UpdateIPSetCommandError = async (output, context) => {
3733
3733
  const parsedOutput = {
3734
3734
  ...output,
3735
- body: await parseBody(output.body, context),
3735
+ body: await parseErrorBody(output.body, context),
3736
3736
  };
3737
3737
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3738
3738
  switch (errorCode) {
@@ -3766,7 +3766,7 @@ exports.deserializeAws_restJson1UpdateMalwareScanSettingsCommand = deserializeAw
3766
3766
  const deserializeAws_restJson1UpdateMalwareScanSettingsCommandError = async (output, context) => {
3767
3767
  const parsedOutput = {
3768
3768
  ...output,
3769
- body: await parseBody(output.body, context),
3769
+ body: await parseErrorBody(output.body, context),
3770
3770
  };
3771
3771
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3772
3772
  switch (errorCode) {
@@ -3803,7 +3803,7 @@ exports.deserializeAws_restJson1UpdateMemberDetectorsCommand = deserializeAws_re
3803
3803
  const deserializeAws_restJson1UpdateMemberDetectorsCommandError = async (output, context) => {
3804
3804
  const parsedOutput = {
3805
3805
  ...output,
3806
- body: await parseBody(output.body, context),
3806
+ body: await parseErrorBody(output.body, context),
3807
3807
  };
3808
3808
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3809
3809
  switch (errorCode) {
@@ -3837,7 +3837,7 @@ exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = deseria
3837
3837
  const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
3838
3838
  const parsedOutput = {
3839
3839
  ...output,
3840
- body: await parseBody(output.body, context),
3840
+ body: await parseErrorBody(output.body, context),
3841
3841
  };
3842
3842
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3843
3843
  switch (errorCode) {
@@ -3871,7 +3871,7 @@ exports.deserializeAws_restJson1UpdatePublishingDestinationCommand = deserialize
3871
3871
  const deserializeAws_restJson1UpdatePublishingDestinationCommandError = async (output, context) => {
3872
3872
  const parsedOutput = {
3873
3873
  ...output,
3874
- body: await parseBody(output.body, context),
3874
+ body: await parseErrorBody(output.body, context),
3875
3875
  };
3876
3876
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3877
3877
  switch (errorCode) {
@@ -3905,7 +3905,7 @@ exports.deserializeAws_restJson1UpdateThreatIntelSetCommand = deserializeAws_res
3905
3905
  const deserializeAws_restJson1UpdateThreatIntelSetCommandError = async (output, context) => {
3906
3906
  const parsedOutput = {
3907
3907
  ...output,
3908
- body: await parseBody(output.body, context),
3908
+ body: await parseErrorBody(output.body, context),
3909
3909
  };
3910
3910
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3911
3911
  switch (errorCode) {
@@ -5743,6 +5743,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
5743
5743
  }
5744
5744
  return {};
5745
5745
  });
5746
+ const parseErrorBody = async (errorBody, context) => {
5747
+ var _a;
5748
+ const value = await parseBody(errorBody, context);
5749
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
5750
+ return value;
5751
+ };
5746
5752
  const loadRestJsonErrorCode = (output, data) => {
5747
5753
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
5748
5754
  const sanitizeErrorCode = (rawValue) => {
@@ -1688,7 +1688,7 @@ var deserializeAws_restJson1AcceptAdministratorInvitationCommandError = function
1688
1688
  case 0:
1689
1689
  _a = [__assign({}, output)];
1690
1690
  _c = {};
1691
- return [4, parseBody(output.body, context)];
1691
+ return [4, parseErrorBody(output.body, context)];
1692
1692
  case 1:
1693
1693
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1694
1694
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1743,7 +1743,7 @@ var deserializeAws_restJson1AcceptInvitationCommandError = function (output, con
1743
1743
  case 0:
1744
1744
  _a = [__assign({}, output)];
1745
1745
  _c = {};
1746
- return [4, parseBody(output.body, context)];
1746
+ return [4, parseErrorBody(output.body, context)];
1747
1747
  case 1:
1748
1748
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1749
1749
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1798,7 +1798,7 @@ var deserializeAws_restJson1ArchiveFindingsCommandError = function (output, cont
1798
1798
  case 0:
1799
1799
  _a = [__assign({}, output)];
1800
1800
  _c = {};
1801
- return [4, parseBody(output.body, context)];
1801
+ return [4, parseErrorBody(output.body, context)];
1802
1802
  case 1:
1803
1803
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1804
1804
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1858,7 +1858,7 @@ var deserializeAws_restJson1CreateDetectorCommandError = function (output, conte
1858
1858
  case 0:
1859
1859
  _a = [__assign({}, output)];
1860
1860
  _c = {};
1861
- return [4, parseBody(output.body, context)];
1861
+ return [4, parseErrorBody(output.body, context)];
1862
1862
  case 1:
1863
1863
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1864
1864
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1918,7 +1918,7 @@ var deserializeAws_restJson1CreateFilterCommandError = function (output, context
1918
1918
  case 0:
1919
1919
  _a = [__assign({}, output)];
1920
1920
  _c = {};
1921
- return [4, parseBody(output.body, context)];
1921
+ return [4, parseErrorBody(output.body, context)];
1922
1922
  case 1:
1923
1923
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1924
1924
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1978,7 +1978,7 @@ var deserializeAws_restJson1CreateIPSetCommandError = function (output, context)
1978
1978
  case 0:
1979
1979
  _a = [__assign({}, output)];
1980
1980
  _c = {};
1981
- return [4, parseBody(output.body, context)];
1981
+ return [4, parseErrorBody(output.body, context)];
1982
1982
  case 1:
1983
1983
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1984
1984
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2038,7 +2038,7 @@ var deserializeAws_restJson1CreateMembersCommandError = function (output, contex
2038
2038
  case 0:
2039
2039
  _a = [__assign({}, output)];
2040
2040
  _c = {};
2041
- return [4, parseBody(output.body, context)];
2041
+ return [4, parseErrorBody(output.body, context)];
2042
2042
  case 1:
2043
2043
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2044
2044
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2098,7 +2098,7 @@ var deserializeAws_restJson1CreatePublishingDestinationCommandError = function (
2098
2098
  case 0:
2099
2099
  _a = [__assign({}, output)];
2100
2100
  _c = {};
2101
- return [4, parseBody(output.body, context)];
2101
+ return [4, parseErrorBody(output.body, context)];
2102
2102
  case 1:
2103
2103
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2104
2104
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2153,7 +2153,7 @@ var deserializeAws_restJson1CreateSampleFindingsCommandError = function (output,
2153
2153
  case 0:
2154
2154
  _a = [__assign({}, output)];
2155
2155
  _c = {};
2156
- return [4, parseBody(output.body, context)];
2156
+ return [4, parseErrorBody(output.body, context)];
2157
2157
  case 1:
2158
2158
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2159
2159
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2213,7 +2213,7 @@ var deserializeAws_restJson1CreateThreatIntelSetCommandError = function (output,
2213
2213
  case 0:
2214
2214
  _a = [__assign({}, output)];
2215
2215
  _c = {};
2216
- return [4, parseBody(output.body, context)];
2216
+ return [4, parseErrorBody(output.body, context)];
2217
2217
  case 1:
2218
2218
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2219
2219
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2273,7 +2273,7 @@ var deserializeAws_restJson1DeclineInvitationsCommandError = function (output, c
2273
2273
  case 0:
2274
2274
  _a = [__assign({}, output)];
2275
2275
  _c = {};
2276
- return [4, parseBody(output.body, context)];
2276
+ return [4, parseErrorBody(output.body, context)];
2277
2277
  case 1:
2278
2278
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2279
2279
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2328,7 +2328,7 @@ var deserializeAws_restJson1DeleteDetectorCommandError = function (output, conte
2328
2328
  case 0:
2329
2329
  _a = [__assign({}, output)];
2330
2330
  _c = {};
2331
- return [4, parseBody(output.body, context)];
2331
+ return [4, parseErrorBody(output.body, context)];
2332
2332
  case 1:
2333
2333
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2334
2334
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2383,7 +2383,7 @@ var deserializeAws_restJson1DeleteFilterCommandError = function (output, context
2383
2383
  case 0:
2384
2384
  _a = [__assign({}, output)];
2385
2385
  _c = {};
2386
- return [4, parseBody(output.body, context)];
2386
+ return [4, parseErrorBody(output.body, context)];
2387
2387
  case 1:
2388
2388
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2389
2389
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2443,7 +2443,7 @@ var deserializeAws_restJson1DeleteInvitationsCommandError = function (output, co
2443
2443
  case 0:
2444
2444
  _a = [__assign({}, output)];
2445
2445
  _c = {};
2446
- return [4, parseBody(output.body, context)];
2446
+ return [4, parseErrorBody(output.body, context)];
2447
2447
  case 1:
2448
2448
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2449
2449
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2498,7 +2498,7 @@ var deserializeAws_restJson1DeleteIPSetCommandError = function (output, context)
2498
2498
  case 0:
2499
2499
  _a = [__assign({}, output)];
2500
2500
  _c = {};
2501
- return [4, parseBody(output.body, context)];
2501
+ return [4, parseErrorBody(output.body, context)];
2502
2502
  case 1:
2503
2503
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2504
2504
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2558,7 +2558,7 @@ var deserializeAws_restJson1DeleteMembersCommandError = function (output, contex
2558
2558
  case 0:
2559
2559
  _a = [__assign({}, output)];
2560
2560
  _c = {};
2561
- return [4, parseBody(output.body, context)];
2561
+ return [4, parseErrorBody(output.body, context)];
2562
2562
  case 1:
2563
2563
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2564
2564
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2613,7 +2613,7 @@ var deserializeAws_restJson1DeletePublishingDestinationCommandError = function (
2613
2613
  case 0:
2614
2614
  _a = [__assign({}, output)];
2615
2615
  _c = {};
2616
- return [4, parseBody(output.body, context)];
2616
+ return [4, parseErrorBody(output.body, context)];
2617
2617
  case 1:
2618
2618
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2619
2619
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2668,7 +2668,7 @@ var deserializeAws_restJson1DeleteThreatIntelSetCommandError = function (output,
2668
2668
  case 0:
2669
2669
  _a = [__assign({}, output)];
2670
2670
  _c = {};
2671
- return [4, parseBody(output.body, context)];
2671
+ return [4, parseErrorBody(output.body, context)];
2672
2672
  case 1:
2673
2673
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2674
2674
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2731,7 +2731,7 @@ var deserializeAws_restJson1DescribeMalwareScansCommandError = function (output,
2731
2731
  case 0:
2732
2732
  _a = [__assign({}, output)];
2733
2733
  _c = {};
2734
- return [4, parseBody(output.body, context)];
2734
+ return [4, parseErrorBody(output.body, context)];
2735
2735
  case 1:
2736
2736
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2737
2737
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2797,7 +2797,7 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
2797
2797
  case 0:
2798
2798
  _a = [__assign({}, output)];
2799
2799
  _c = {};
2800
- return [4, parseBody(output.body, context)];
2800
+ return [4, parseErrorBody(output.body, context)];
2801
2801
  case 1:
2802
2802
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2803
2803
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2869,7 +2869,7 @@ var deserializeAws_restJson1DescribePublishingDestinationCommandError = function
2869
2869
  case 0:
2870
2870
  _a = [__assign({}, output)];
2871
2871
  _c = {};
2872
- return [4, parseBody(output.body, context)];
2872
+ return [4, parseErrorBody(output.body, context)];
2873
2873
  case 1:
2874
2874
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2875
2875
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2924,7 +2924,7 @@ var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = functi
2924
2924
  case 0:
2925
2925
  _a = [__assign({}, output)];
2926
2926
  _c = {};
2927
- return [4, parseBody(output.body, context)];
2927
+ return [4, parseErrorBody(output.body, context)];
2928
2928
  case 1:
2929
2929
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2930
2930
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2979,7 +2979,7 @@ var deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError = f
2979
2979
  case 0:
2980
2980
  _a = [__assign({}, output)];
2981
2981
  _c = {};
2982
- return [4, parseBody(output.body, context)];
2982
+ return [4, parseErrorBody(output.body, context)];
2983
2983
  case 1:
2984
2984
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2985
2985
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3034,7 +3034,7 @@ var deserializeAws_restJson1DisassociateFromMasterAccountCommandError = function
3034
3034
  case 0:
3035
3035
  _a = [__assign({}, output)];
3036
3036
  _c = {};
3037
- return [4, parseBody(output.body, context)];
3037
+ return [4, parseErrorBody(output.body, context)];
3038
3038
  case 1:
3039
3039
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3040
3040
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3094,7 +3094,7 @@ var deserializeAws_restJson1DisassociateMembersCommandError = function (output,
3094
3094
  case 0:
3095
3095
  _a = [__assign({}, output)];
3096
3096
  _c = {};
3097
- return [4, parseBody(output.body, context)];
3097
+ return [4, parseErrorBody(output.body, context)];
3098
3098
  case 1:
3099
3099
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3100
3100
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3149,7 +3149,7 @@ var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = functio
3149
3149
  case 0:
3150
3150
  _a = [__assign({}, output)];
3151
3151
  _c = {};
3152
- return [4, parseBody(output.body, context)];
3152
+ return [4, parseErrorBody(output.body, context)];
3153
3153
  case 1:
3154
3154
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3155
3155
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3209,7 +3209,7 @@ var deserializeAws_restJson1GetAdministratorAccountCommandError = function (outp
3209
3209
  case 0:
3210
3210
  _a = [__assign({}, output)];
3211
3211
  _c = {};
3212
- return [4, parseBody(output.body, context)];
3212
+ return [4, parseErrorBody(output.body, context)];
3213
3213
  case 1:
3214
3214
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3215
3215
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3287,7 +3287,7 @@ var deserializeAws_restJson1GetDetectorCommandError = function (output, context)
3287
3287
  case 0:
3288
3288
  _a = [__assign({}, output)];
3289
3289
  _c = {};
3290
- return [4, parseBody(output.body, context)];
3290
+ return [4, parseErrorBody(output.body, context)];
3291
3291
  case 1:
3292
3292
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3293
3293
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3362,7 +3362,7 @@ var deserializeAws_restJson1GetFilterCommandError = function (output, context) {
3362
3362
  case 0:
3363
3363
  _a = [__assign({}, output)];
3364
3364
  _c = {};
3365
- return [4, parseBody(output.body, context)];
3365
+ return [4, parseErrorBody(output.body, context)];
3366
3366
  case 1:
3367
3367
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3368
3368
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3422,7 +3422,7 @@ var deserializeAws_restJson1GetFindingsCommandError = function (output, context)
3422
3422
  case 0:
3423
3423
  _a = [__assign({}, output)];
3424
3424
  _c = {};
3425
- return [4, parseBody(output.body, context)];
3425
+ return [4, parseErrorBody(output.body, context)];
3426
3426
  case 1:
3427
3427
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3428
3428
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3482,7 +3482,7 @@ var deserializeAws_restJson1GetFindingsStatisticsCommandError = function (output
3482
3482
  case 0:
3483
3483
  _a = [__assign({}, output)];
3484
3484
  _c = {};
3485
- return [4, parseBody(output.body, context)];
3485
+ return [4, parseErrorBody(output.body, context)];
3486
3486
  case 1:
3487
3487
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3488
3488
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3542,7 +3542,7 @@ var deserializeAws_restJson1GetInvitationsCountCommandError = function (output,
3542
3542
  case 0:
3543
3543
  _a = [__assign({}, output)];
3544
3544
  _c = {};
3545
- return [4, parseBody(output.body, context)];
3545
+ return [4, parseErrorBody(output.body, context)];
3546
3546
  case 1:
3547
3547
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3548
3548
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3614,7 +3614,7 @@ var deserializeAws_restJson1GetIPSetCommandError = function (output, context) {
3614
3614
  case 0:
3615
3615
  _a = [__assign({}, output)];
3616
3616
  _c = {};
3617
- return [4, parseBody(output.body, context)];
3617
+ return [4, parseErrorBody(output.body, context)];
3618
3618
  case 1:
3619
3619
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3620
3620
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3677,7 +3677,7 @@ var deserializeAws_restJson1GetMalwareScanSettingsCommandError = function (outpu
3677
3677
  case 0:
3678
3678
  _a = [__assign({}, output)];
3679
3679
  _c = {};
3680
- return [4, parseBody(output.body, context)];
3680
+ return [4, parseErrorBody(output.body, context)];
3681
3681
  case 1:
3682
3682
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3683
3683
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3737,7 +3737,7 @@ var deserializeAws_restJson1GetMasterAccountCommandError = function (output, con
3737
3737
  case 0:
3738
3738
  _a = [__assign({}, output)];
3739
3739
  _c = {};
3740
- return [4, parseBody(output.body, context)];
3740
+ return [4, parseErrorBody(output.body, context)];
3741
3741
  case 1:
3742
3742
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3743
3743
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3800,7 +3800,7 @@ var deserializeAws_restJson1GetMemberDetectorsCommandError = function (output, c
3800
3800
  case 0:
3801
3801
  _a = [__assign({}, output)];
3802
3802
  _c = {};
3803
- return [4, parseBody(output.body, context)];
3803
+ return [4, parseErrorBody(output.body, context)];
3804
3804
  case 1:
3805
3805
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3806
3806
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3863,7 +3863,7 @@ var deserializeAws_restJson1GetMembersCommandError = function (output, context)
3863
3863
  case 0:
3864
3864
  _a = [__assign({}, output)];
3865
3865
  _c = {};
3866
- return [4, parseBody(output.body, context)];
3866
+ return [4, parseErrorBody(output.body, context)];
3867
3867
  case 1:
3868
3868
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3869
3869
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3926,7 +3926,7 @@ var deserializeAws_restJson1GetRemainingFreeTrialDaysCommandError = function (ou
3926
3926
  case 0:
3927
3927
  _a = [__assign({}, output)];
3928
3928
  _c = {};
3929
- return [4, parseBody(output.body, context)];
3929
+ return [4, parseErrorBody(output.body, context)];
3930
3930
  case 1:
3931
3931
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3932
3932
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3998,7 +3998,7 @@ var deserializeAws_restJson1GetThreatIntelSetCommandError = function (output, co
3998
3998
  case 0:
3999
3999
  _a = [__assign({}, output)];
4000
4000
  _c = {};
4001
- return [4, parseBody(output.body, context)];
4001
+ return [4, parseErrorBody(output.body, context)];
4002
4002
  case 1:
4003
4003
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4004
4004
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4061,7 +4061,7 @@ var deserializeAws_restJson1GetUsageStatisticsCommandError = function (output, c
4061
4061
  case 0:
4062
4062
  _a = [__assign({}, output)];
4063
4063
  _c = {};
4064
- return [4, parseBody(output.body, context)];
4064
+ return [4, parseErrorBody(output.body, context)];
4065
4065
  case 1:
4066
4066
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4067
4067
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4121,7 +4121,7 @@ var deserializeAws_restJson1InviteMembersCommandError = function (output, contex
4121
4121
  case 0:
4122
4122
  _a = [__assign({}, output)];
4123
4123
  _c = {};
4124
- return [4, parseBody(output.body, context)];
4124
+ return [4, parseErrorBody(output.body, context)];
4125
4125
  case 1:
4126
4126
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4127
4127
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4184,7 +4184,7 @@ var deserializeAws_restJson1ListDetectorsCommandError = function (output, contex
4184
4184
  case 0:
4185
4185
  _a = [__assign({}, output)];
4186
4186
  _c = {};
4187
- return [4, parseBody(output.body, context)];
4187
+ return [4, parseErrorBody(output.body, context)];
4188
4188
  case 1:
4189
4189
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4190
4190
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4247,7 +4247,7 @@ var deserializeAws_restJson1ListFiltersCommandError = function (output, context)
4247
4247
  case 0:
4248
4248
  _a = [__assign({}, output)];
4249
4249
  _c = {};
4250
- return [4, parseBody(output.body, context)];
4250
+ return [4, parseErrorBody(output.body, context)];
4251
4251
  case 1:
4252
4252
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4253
4253
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4310,7 +4310,7 @@ var deserializeAws_restJson1ListFindingsCommandError = function (output, context
4310
4310
  case 0:
4311
4311
  _a = [__assign({}, output)];
4312
4312
  _c = {};
4313
- return [4, parseBody(output.body, context)];
4313
+ return [4, parseErrorBody(output.body, context)];
4314
4314
  case 1:
4315
4315
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4316
4316
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4373,7 +4373,7 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
4373
4373
  case 0:
4374
4374
  _a = [__assign({}, output)];
4375
4375
  _c = {};
4376
- return [4, parseBody(output.body, context)];
4376
+ return [4, parseErrorBody(output.body, context)];
4377
4377
  case 1:
4378
4378
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4379
4379
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4436,7 +4436,7 @@ var deserializeAws_restJson1ListIPSetsCommandError = function (output, context)
4436
4436
  case 0:
4437
4437
  _a = [__assign({}, output)];
4438
4438
  _c = {};
4439
- return [4, parseBody(output.body, context)];
4439
+ return [4, parseErrorBody(output.body, context)];
4440
4440
  case 1:
4441
4441
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4442
4442
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4499,7 +4499,7 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
4499
4499
  case 0:
4500
4500
  _a = [__assign({}, output)];
4501
4501
  _c = {};
4502
- return [4, parseBody(output.body, context)];
4502
+ return [4, parseErrorBody(output.body, context)];
4503
4503
  case 1:
4504
4504
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4505
4505
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4562,7 +4562,7 @@ var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function
4562
4562
  case 0:
4563
4563
  _a = [__assign({}, output)];
4564
4564
  _c = {};
4565
- return [4, parseBody(output.body, context)];
4565
+ return [4, parseErrorBody(output.body, context)];
4566
4566
  case 1:
4567
4567
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4568
4568
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4625,7 +4625,7 @@ var deserializeAws_restJson1ListPublishingDestinationsCommandError = function (o
4625
4625
  case 0:
4626
4626
  _a = [__assign({}, output)];
4627
4627
  _c = {};
4628
- return [4, parseBody(output.body, context)];
4628
+ return [4, parseErrorBody(output.body, context)];
4629
4629
  case 1:
4630
4630
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4631
4631
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4685,7 +4685,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
4685
4685
  case 0:
4686
4686
  _a = [__assign({}, output)];
4687
4687
  _c = {};
4688
- return [4, parseBody(output.body, context)];
4688
+ return [4, parseErrorBody(output.body, context)];
4689
4689
  case 1:
4690
4690
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4691
4691
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4748,7 +4748,7 @@ var deserializeAws_restJson1ListThreatIntelSetsCommandError = function (output,
4748
4748
  case 0:
4749
4749
  _a = [__assign({}, output)];
4750
4750
  _c = {};
4751
- return [4, parseBody(output.body, context)];
4751
+ return [4, parseErrorBody(output.body, context)];
4752
4752
  case 1:
4753
4753
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4754
4754
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4808,7 +4808,7 @@ var deserializeAws_restJson1StartMonitoringMembersCommandError = function (outpu
4808
4808
  case 0:
4809
4809
  _a = [__assign({}, output)];
4810
4810
  _c = {};
4811
- return [4, parseBody(output.body, context)];
4811
+ return [4, parseErrorBody(output.body, context)];
4812
4812
  case 1:
4813
4813
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4814
4814
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4868,7 +4868,7 @@ var deserializeAws_restJson1StopMonitoringMembersCommandError = function (output
4868
4868
  case 0:
4869
4869
  _a = [__assign({}, output)];
4870
4870
  _c = {};
4871
- return [4, parseBody(output.body, context)];
4871
+ return [4, parseErrorBody(output.body, context)];
4872
4872
  case 1:
4873
4873
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4874
4874
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4923,7 +4923,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
4923
4923
  case 0:
4924
4924
  _a = [__assign({}, output)];
4925
4925
  _c = {};
4926
- return [4, parseBody(output.body, context)];
4926
+ return [4, parseErrorBody(output.body, context)];
4927
4927
  case 1:
4928
4928
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4929
4929
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4978,7 +4978,7 @@ var deserializeAws_restJson1UnarchiveFindingsCommandError = function (output, co
4978
4978
  case 0:
4979
4979
  _a = [__assign({}, output)];
4980
4980
  _c = {};
4981
- return [4, parseBody(output.body, context)];
4981
+ return [4, parseErrorBody(output.body, context)];
4982
4982
  case 1:
4983
4983
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4984
4984
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5033,7 +5033,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
5033
5033
  case 0:
5034
5034
  _a = [__assign({}, output)];
5035
5035
  _c = {};
5036
- return [4, parseBody(output.body, context)];
5036
+ return [4, parseErrorBody(output.body, context)];
5037
5037
  case 1:
5038
5038
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5039
5039
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5088,7 +5088,7 @@ var deserializeAws_restJson1UpdateDetectorCommandError = function (output, conte
5088
5088
  case 0:
5089
5089
  _a = [__assign({}, output)];
5090
5090
  _c = {};
5091
- return [4, parseBody(output.body, context)];
5091
+ return [4, parseErrorBody(output.body, context)];
5092
5092
  case 1:
5093
5093
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5094
5094
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5148,7 +5148,7 @@ var deserializeAws_restJson1UpdateFilterCommandError = function (output, context
5148
5148
  case 0:
5149
5149
  _a = [__assign({}, output)];
5150
5150
  _c = {};
5151
- return [4, parseBody(output.body, context)];
5151
+ return [4, parseErrorBody(output.body, context)];
5152
5152
  case 1:
5153
5153
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5154
5154
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5203,7 +5203,7 @@ var deserializeAws_restJson1UpdateFindingsFeedbackCommandError = function (outpu
5203
5203
  case 0:
5204
5204
  _a = [__assign({}, output)];
5205
5205
  _c = {};
5206
- return [4, parseBody(output.body, context)];
5206
+ return [4, parseErrorBody(output.body, context)];
5207
5207
  case 1:
5208
5208
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5209
5209
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5258,7 +5258,7 @@ var deserializeAws_restJson1UpdateIPSetCommandError = function (output, context)
5258
5258
  case 0:
5259
5259
  _a = [__assign({}, output)];
5260
5260
  _c = {};
5261
- return [4, parseBody(output.body, context)];
5261
+ return [4, parseErrorBody(output.body, context)];
5262
5262
  case 1:
5263
5263
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5264
5264
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5313,7 +5313,7 @@ var deserializeAws_restJson1UpdateMalwareScanSettingsCommandError = function (ou
5313
5313
  case 0:
5314
5314
  _a = [__assign({}, output)];
5315
5315
  _c = {};
5316
- return [4, parseBody(output.body, context)];
5316
+ return [4, parseErrorBody(output.body, context)];
5317
5317
  case 1:
5318
5318
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5319
5319
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5373,7 +5373,7 @@ var deserializeAws_restJson1UpdateMemberDetectorsCommandError = function (output
5373
5373
  case 0:
5374
5374
  _a = [__assign({}, output)];
5375
5375
  _c = {};
5376
- return [4, parseBody(output.body, context)];
5376
+ return [4, parseErrorBody(output.body, context)];
5377
5377
  case 1:
5378
5378
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5379
5379
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5428,7 +5428,7 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
5428
5428
  case 0:
5429
5429
  _a = [__assign({}, output)];
5430
5430
  _c = {};
5431
- return [4, parseBody(output.body, context)];
5431
+ return [4, parseErrorBody(output.body, context)];
5432
5432
  case 1:
5433
5433
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5434
5434
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5483,7 +5483,7 @@ var deserializeAws_restJson1UpdatePublishingDestinationCommandError = function (
5483
5483
  case 0:
5484
5484
  _a = [__assign({}, output)];
5485
5485
  _c = {};
5486
- return [4, parseBody(output.body, context)];
5486
+ return [4, parseErrorBody(output.body, context)];
5487
5487
  case 1:
5488
5488
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5489
5489
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5538,7 +5538,7 @@ var deserializeAws_restJson1UpdateThreatIntelSetCommandError = function (output,
5538
5538
  case 0:
5539
5539
  _a = [__assign({}, output)];
5540
5540
  _c = {};
5541
- return [4, parseBody(output.body, context)];
5541
+ return [4, parseErrorBody(output.body, context)];
5542
5542
  case 1:
5543
5543
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5544
5544
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -7309,6 +7309,19 @@ var parseBody = function (streamBody, context) {
7309
7309
  return {};
7310
7310
  });
7311
7311
  };
7312
+ var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
7313
+ var value;
7314
+ var _a;
7315
+ return __generator(this, function (_b) {
7316
+ switch (_b.label) {
7317
+ case 0: return [4, parseBody(errorBody, context)];
7318
+ case 1:
7319
+ value = _b.sent();
7320
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
7321
+ return [2, value];
7322
+ }
7323
+ });
7324
+ }); };
7312
7325
  var loadRestJsonErrorCode = function (output, data) {
7313
7326
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
7314
7327
  var sanitizeErrorCode = function (rawValue) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-guardduty",
3
3
  "description": "AWS SDK for JavaScript Guardduty Client for Node.js, Browser and React Native",
4
- "version": "3.180.0",
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.180.0",
22
+ "@aws-sdk/client-sts": "3.181.0",
23
23
  "@aws-sdk/config-resolver": "3.178.0",
24
- "@aws-sdk/credential-provider-node": "3.180.0",
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",