@aws-sdk/client-lakeformation 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-lakeformation
@@ -1128,7 +1128,7 @@ exports.deserializeAws_restJson1AddLFTagsToResourceCommand = deserializeAws_rest
1128
1128
  const deserializeAws_restJson1AddLFTagsToResourceCommandError = async (output, context) => {
1129
1129
  const parsedOutput = {
1130
1130
  ...output,
1131
- body: await parseBody(output.body, context),
1131
+ body: await parseErrorBody(output.body, context),
1132
1132
  };
1133
1133
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1134
1134
  switch (errorCode) {
@@ -1186,7 +1186,7 @@ exports.deserializeAws_restJson1AssumeDecoratedRoleWithSAMLCommand = deserialize
1186
1186
  const deserializeAws_restJson1AssumeDecoratedRoleWithSAMLCommandError = async (output, context) => {
1187
1187
  const parsedOutput = {
1188
1188
  ...output,
1189
- body: await parseBody(output.body, context),
1189
+ body: await parseErrorBody(output.body, context),
1190
1190
  };
1191
1191
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1192
1192
  switch (errorCode) {
@@ -1232,7 +1232,7 @@ exports.deserializeAws_restJson1BatchGrantPermissionsCommand = deserializeAws_re
1232
1232
  const deserializeAws_restJson1BatchGrantPermissionsCommandError = async (output, context) => {
1233
1233
  const parsedOutput = {
1234
1234
  ...output,
1235
- body: await parseBody(output.body, context),
1235
+ body: await parseErrorBody(output.body, context),
1236
1236
  };
1237
1237
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1238
1238
  switch (errorCode) {
@@ -1269,7 +1269,7 @@ exports.deserializeAws_restJson1BatchRevokePermissionsCommand = deserializeAws_r
1269
1269
  const deserializeAws_restJson1BatchRevokePermissionsCommandError = async (output, context) => {
1270
1270
  const parsedOutput = {
1271
1271
  ...output,
1272
- body: await parseBody(output.body, context),
1272
+ body: await parseErrorBody(output.body, context),
1273
1273
  };
1274
1274
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1275
1275
  switch (errorCode) {
@@ -1303,7 +1303,7 @@ exports.deserializeAws_restJson1CancelTransactionCommand = deserializeAws_restJs
1303
1303
  const deserializeAws_restJson1CancelTransactionCommandError = async (output, context) => {
1304
1304
  const parsedOutput = {
1305
1305
  ...output,
1306
- body: await parseBody(output.body, context),
1306
+ body: await parseErrorBody(output.body, context),
1307
1307
  };
1308
1308
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1309
1309
  switch (errorCode) {
@@ -1355,7 +1355,7 @@ exports.deserializeAws_restJson1CommitTransactionCommand = deserializeAws_restJs
1355
1355
  const deserializeAws_restJson1CommitTransactionCommandError = async (output, context) => {
1356
1356
  const parsedOutput = {
1357
1357
  ...output,
1358
- body: await parseBody(output.body, context),
1358
+ body: await parseErrorBody(output.body, context),
1359
1359
  };
1360
1360
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1361
1361
  switch (errorCode) {
@@ -1401,7 +1401,7 @@ exports.deserializeAws_restJson1CreateDataCellsFilterCommand = deserializeAws_re
1401
1401
  const deserializeAws_restJson1CreateDataCellsFilterCommandError = async (output, context) => {
1402
1402
  const parsedOutput = {
1403
1403
  ...output,
1404
- body: await parseBody(output.body, context),
1404
+ body: await parseErrorBody(output.body, context),
1405
1405
  };
1406
1406
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1407
1407
  switch (errorCode) {
@@ -1450,7 +1450,7 @@ exports.deserializeAws_restJson1CreateLFTagCommand = deserializeAws_restJson1Cre
1450
1450
  const deserializeAws_restJson1CreateLFTagCommandError = async (output, context) => {
1451
1451
  const parsedOutput = {
1452
1452
  ...output,
1453
- body: await parseBody(output.body, context),
1453
+ body: await parseErrorBody(output.body, context),
1454
1454
  };
1455
1455
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1456
1456
  switch (errorCode) {
@@ -1496,7 +1496,7 @@ exports.deserializeAws_restJson1DeleteDataCellsFilterCommand = deserializeAws_re
1496
1496
  const deserializeAws_restJson1DeleteDataCellsFilterCommandError = async (output, context) => {
1497
1497
  const parsedOutput = {
1498
1498
  ...output,
1499
- body: await parseBody(output.body, context),
1499
+ body: await parseErrorBody(output.body, context),
1500
1500
  };
1501
1501
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1502
1502
  switch (errorCode) {
@@ -1539,7 +1539,7 @@ exports.deserializeAws_restJson1DeleteLFTagCommand = deserializeAws_restJson1Del
1539
1539
  const deserializeAws_restJson1DeleteLFTagCommandError = async (output, context) => {
1540
1540
  const parsedOutput = {
1541
1541
  ...output,
1542
- body: await parseBody(output.body, context),
1542
+ body: await parseErrorBody(output.body, context),
1543
1543
  };
1544
1544
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1545
1545
  switch (errorCode) {
@@ -1582,7 +1582,7 @@ exports.deserializeAws_restJson1DeleteObjectsOnCancelCommand = deserializeAws_re
1582
1582
  const deserializeAws_restJson1DeleteObjectsOnCancelCommandError = async (output, context) => {
1583
1583
  const parsedOutput = {
1584
1584
  ...output,
1585
- body: await parseBody(output.body, context),
1585
+ body: await parseErrorBody(output.body, context),
1586
1586
  };
1587
1587
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1588
1588
  switch (errorCode) {
@@ -1634,7 +1634,7 @@ exports.deserializeAws_restJson1DeregisterResourceCommand = deserializeAws_restJ
1634
1634
  const deserializeAws_restJson1DeregisterResourceCommandError = async (output, context) => {
1635
1635
  const parsedOutput = {
1636
1636
  ...output,
1637
- body: await parseBody(output.body, context),
1637
+ body: await parseErrorBody(output.body, context),
1638
1638
  };
1639
1639
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1640
1640
  switch (errorCode) {
@@ -1677,7 +1677,7 @@ exports.deserializeAws_restJson1DescribeResourceCommand = deserializeAws_restJso
1677
1677
  const deserializeAws_restJson1DescribeResourceCommandError = async (output, context) => {
1678
1678
  const parsedOutput = {
1679
1679
  ...output,
1680
- body: await parseBody(output.body, context),
1680
+ body: await parseErrorBody(output.body, context),
1681
1681
  };
1682
1682
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1683
1683
  switch (errorCode) {
@@ -1720,7 +1720,7 @@ exports.deserializeAws_restJson1DescribeTransactionCommand = deserializeAws_rest
1720
1720
  const deserializeAws_restJson1DescribeTransactionCommandError = async (output, context) => {
1721
1721
  const parsedOutput = {
1722
1722
  ...output,
1723
- body: await parseBody(output.body, context),
1723
+ body: await parseErrorBody(output.body, context),
1724
1724
  };
1725
1725
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1726
1726
  switch (errorCode) {
@@ -1760,7 +1760,7 @@ exports.deserializeAws_restJson1ExtendTransactionCommand = deserializeAws_restJs
1760
1760
  const deserializeAws_restJson1ExtendTransactionCommandError = async (output, context) => {
1761
1761
  const parsedOutput = {
1762
1762
  ...output,
1763
- body: await parseBody(output.body, context),
1763
+ body: await parseErrorBody(output.body, context),
1764
1764
  };
1765
1765
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1766
1766
  switch (errorCode) {
@@ -1812,7 +1812,7 @@ exports.deserializeAws_restJson1GetDataLakeSettingsCommand = deserializeAws_rest
1812
1812
  const deserializeAws_restJson1GetDataLakeSettingsCommandError = async (output, context) => {
1813
1813
  const parsedOutput = {
1814
1814
  ...output,
1815
- body: await parseBody(output.body, context),
1815
+ body: await parseErrorBody(output.body, context),
1816
1816
  };
1817
1817
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1818
1818
  switch (errorCode) {
@@ -1855,7 +1855,7 @@ exports.deserializeAws_restJson1GetEffectivePermissionsForPathCommand = deserial
1855
1855
  const deserializeAws_restJson1GetEffectivePermissionsForPathCommandError = async (output, context) => {
1856
1856
  const parsedOutput = {
1857
1857
  ...output,
1858
- body: await parseBody(output.body, context),
1858
+ body: await parseErrorBody(output.body, context),
1859
1859
  };
1860
1860
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1861
1861
  switch (errorCode) {
@@ -1904,7 +1904,7 @@ exports.deserializeAws_restJson1GetLFTagCommand = deserializeAws_restJson1GetLFT
1904
1904
  const deserializeAws_restJson1GetLFTagCommandError = async (output, context) => {
1905
1905
  const parsedOutput = {
1906
1906
  ...output,
1907
- body: await parseBody(output.body, context),
1907
+ body: await parseErrorBody(output.body, context),
1908
1908
  };
1909
1909
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1910
1910
  switch (errorCode) {
@@ -1953,7 +1953,7 @@ exports.deserializeAws_restJson1GetQueryStateCommand = deserializeAws_restJson1G
1953
1953
  const deserializeAws_restJson1GetQueryStateCommandError = async (output, context) => {
1954
1954
  const parsedOutput = {
1955
1955
  ...output,
1956
- body: await parseBody(output.body, context),
1956
+ body: await parseErrorBody(output.body, context),
1957
1957
  };
1958
1958
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1959
1959
  switch (errorCode) {
@@ -1999,7 +1999,7 @@ exports.deserializeAws_restJson1GetQueryStatisticsCommand = deserializeAws_restJ
1999
1999
  const deserializeAws_restJson1GetQueryStatisticsCommandError = async (output, context) => {
2000
2000
  const parsedOutput = {
2001
2001
  ...output,
2002
- body: await parseBody(output.body, context),
2002
+ body: await parseErrorBody(output.body, context),
2003
2003
  };
2004
2004
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2005
2005
  switch (errorCode) {
@@ -2054,7 +2054,7 @@ exports.deserializeAws_restJson1GetResourceLFTagsCommand = deserializeAws_restJs
2054
2054
  const deserializeAws_restJson1GetResourceLFTagsCommandError = 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) {
@@ -2106,7 +2106,7 @@ exports.deserializeAws_restJson1GetTableObjectsCommand = deserializeAws_restJson
2106
2106
  const deserializeAws_restJson1GetTableObjectsCommandError = async (output, context) => {
2107
2107
  const parsedOutput = {
2108
2108
  ...output,
2109
- body: await parseBody(output.body, context),
2109
+ body: await parseErrorBody(output.body, context),
2110
2110
  };
2111
2111
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2112
2112
  switch (errorCode) {
@@ -2167,7 +2167,7 @@ exports.deserializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand = de
2167
2167
  const deserializeAws_restJson1GetTemporaryGluePartitionCredentialsCommandError = async (output, context) => {
2168
2168
  const parsedOutput = {
2169
2169
  ...output,
2170
- body: await parseBody(output.body, context),
2170
+ body: await parseErrorBody(output.body, context),
2171
2171
  };
2172
2172
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2173
2173
  switch (errorCode) {
@@ -2225,7 +2225,7 @@ exports.deserializeAws_restJson1GetTemporaryGlueTableCredentialsCommand = deseri
2225
2225
  const deserializeAws_restJson1GetTemporaryGlueTableCredentialsCommandError = async (output, context) => {
2226
2226
  const parsedOutput = {
2227
2227
  ...output,
2228
- body: await parseBody(output.body, context),
2228
+ body: await parseErrorBody(output.body, context),
2229
2229
  };
2230
2230
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2231
2231
  switch (errorCode) {
@@ -2272,7 +2272,7 @@ exports.deserializeAws_restJson1GetWorkUnitResultsCommand = deserializeAws_restJ
2272
2272
  const deserializeAws_restJson1GetWorkUnitResultsCommandError = async (output, context) => {
2273
2273
  const parsedOutput = {
2274
2274
  ...output,
2275
- body: await parseBody(output.body, context),
2275
+ body: await parseErrorBody(output.body, context),
2276
2276
  };
2277
2277
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2278
2278
  switch (errorCode) {
@@ -2324,7 +2324,7 @@ exports.deserializeAws_restJson1GetWorkUnitsCommand = deserializeAws_restJson1Ge
2324
2324
  const deserializeAws_restJson1GetWorkUnitsCommandError = async (output, context) => {
2325
2325
  const parsedOutput = {
2326
2326
  ...output,
2327
- body: await parseBody(output.body, context),
2327
+ body: await parseErrorBody(output.body, context),
2328
2328
  };
2329
2329
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2330
2330
  switch (errorCode) {
@@ -2367,7 +2367,7 @@ exports.deserializeAws_restJson1GrantPermissionsCommand = deserializeAws_restJso
2367
2367
  const deserializeAws_restJson1GrantPermissionsCommandError = async (output, context) => {
2368
2368
  const parsedOutput = {
2369
2369
  ...output,
2370
- body: await parseBody(output.body, context),
2370
+ body: await parseErrorBody(output.body, context),
2371
2371
  };
2372
2372
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2373
2373
  switch (errorCode) {
@@ -2410,7 +2410,7 @@ exports.deserializeAws_restJson1ListDataCellsFilterCommand = deserializeAws_rest
2410
2410
  const deserializeAws_restJson1ListDataCellsFilterCommandError = async (output, context) => {
2411
2411
  const parsedOutput = {
2412
2412
  ...output,
2413
- body: await parseBody(output.body, context),
2413
+ body: await parseErrorBody(output.body, context),
2414
2414
  };
2415
2415
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2416
2416
  switch (errorCode) {
@@ -2456,7 +2456,7 @@ exports.deserializeAws_restJson1ListLFTagsCommand = deserializeAws_restJson1List
2456
2456
  const deserializeAws_restJson1ListLFTagsCommandError = async (output, context) => {
2457
2457
  const parsedOutput = {
2458
2458
  ...output,
2459
- body: await parseBody(output.body, context),
2459
+ body: await parseErrorBody(output.body, context),
2460
2460
  };
2461
2461
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2462
2462
  switch (errorCode) {
@@ -2505,7 +2505,7 @@ exports.deserializeAws_restJson1ListPermissionsCommand = deserializeAws_restJson
2505
2505
  const deserializeAws_restJson1ListPermissionsCommandError = async (output, context) => {
2506
2506
  const parsedOutput = {
2507
2507
  ...output,
2508
- body: await parseBody(output.body, context),
2508
+ body: await parseErrorBody(output.body, context),
2509
2509
  };
2510
2510
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2511
2511
  switch (errorCode) {
@@ -2548,7 +2548,7 @@ exports.deserializeAws_restJson1ListResourcesCommand = deserializeAws_restJson1L
2548
2548
  const deserializeAws_restJson1ListResourcesCommandError = async (output, context) => {
2549
2549
  const parsedOutput = {
2550
2550
  ...output,
2551
- body: await parseBody(output.body, context),
2551
+ body: await parseErrorBody(output.body, context),
2552
2552
  };
2553
2553
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2554
2554
  switch (errorCode) {
@@ -2591,7 +2591,7 @@ exports.deserializeAws_restJson1ListTableStorageOptimizersCommand = deserializeA
2591
2591
  const deserializeAws_restJson1ListTableStorageOptimizersCommandError = async (output, context) => {
2592
2592
  const parsedOutput = {
2593
2593
  ...output,
2594
- body: await parseBody(output.body, context),
2594
+ body: await parseErrorBody(output.body, context),
2595
2595
  };
2596
2596
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2597
2597
  switch (errorCode) {
@@ -2637,7 +2637,7 @@ exports.deserializeAws_restJson1ListTransactionsCommand = deserializeAws_restJso
2637
2637
  const deserializeAws_restJson1ListTransactionsCommandError = async (output, context) => {
2638
2638
  const parsedOutput = {
2639
2639
  ...output,
2640
- body: await parseBody(output.body, context),
2640
+ body: await parseErrorBody(output.body, context),
2641
2641
  };
2642
2642
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2643
2643
  switch (errorCode) {
@@ -2674,7 +2674,7 @@ exports.deserializeAws_restJson1PutDataLakeSettingsCommand = deserializeAws_rest
2674
2674
  const deserializeAws_restJson1PutDataLakeSettingsCommandError = async (output, context) => {
2675
2675
  const parsedOutput = {
2676
2676
  ...output,
2677
- body: await parseBody(output.body, context),
2677
+ body: await parseErrorBody(output.body, context),
2678
2678
  };
2679
2679
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2680
2680
  switch (errorCode) {
@@ -2708,7 +2708,7 @@ exports.deserializeAws_restJson1RegisterResourceCommand = deserializeAws_restJso
2708
2708
  const deserializeAws_restJson1RegisterResourceCommandError = async (output, context) => {
2709
2709
  const parsedOutput = {
2710
2710
  ...output,
2711
- body: await parseBody(output.body, context),
2711
+ body: await parseErrorBody(output.body, context),
2712
2712
  };
2713
2713
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2714
2714
  switch (errorCode) {
@@ -2760,7 +2760,7 @@ exports.deserializeAws_restJson1RemoveLFTagsFromResourceCommand = deserializeAws
2760
2760
  const deserializeAws_restJson1RemoveLFTagsFromResourceCommandError = async (output, context) => {
2761
2761
  const parsedOutput = {
2762
2762
  ...output,
2763
- body: await parseBody(output.body, context),
2763
+ body: await parseErrorBody(output.body, context),
2764
2764
  };
2765
2765
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2766
2766
  switch (errorCode) {
@@ -2809,7 +2809,7 @@ exports.deserializeAws_restJson1RevokePermissionsCommand = deserializeAws_restJs
2809
2809
  const deserializeAws_restJson1RevokePermissionsCommandError = async (output, context) => {
2810
2810
  const parsedOutput = {
2811
2811
  ...output,
2812
- body: await parseBody(output.body, context),
2812
+ body: await parseErrorBody(output.body, context),
2813
2813
  };
2814
2814
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2815
2815
  switch (errorCode) {
@@ -2852,7 +2852,7 @@ exports.deserializeAws_restJson1SearchDatabasesByLFTagsCommand = deserializeAws_
2852
2852
  const deserializeAws_restJson1SearchDatabasesByLFTagsCommandError = async (output, context) => {
2853
2853
  const parsedOutput = {
2854
2854
  ...output,
2855
- body: await parseBody(output.body, context),
2855
+ body: await parseErrorBody(output.body, context),
2856
2856
  };
2857
2857
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2858
2858
  switch (errorCode) {
@@ -2904,7 +2904,7 @@ exports.deserializeAws_restJson1SearchTablesByLFTagsCommand = deserializeAws_res
2904
2904
  const deserializeAws_restJson1SearchTablesByLFTagsCommandError = async (output, context) => {
2905
2905
  const parsedOutput = {
2906
2906
  ...output,
2907
- body: await parseBody(output.body, context),
2907
+ body: await parseErrorBody(output.body, context),
2908
2908
  };
2909
2909
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2910
2910
  switch (errorCode) {
@@ -2953,7 +2953,7 @@ exports.deserializeAws_restJson1StartQueryPlanningCommand = deserializeAws_restJ
2953
2953
  const deserializeAws_restJson1StartQueryPlanningCommandError = async (output, context) => {
2954
2954
  const parsedOutput = {
2955
2955
  ...output,
2956
- body: await parseBody(output.body, context),
2956
+ body: await parseErrorBody(output.body, context),
2957
2957
  };
2958
2958
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2959
2959
  switch (errorCode) {
@@ -2996,7 +2996,7 @@ exports.deserializeAws_restJson1StartTransactionCommand = deserializeAws_restJso
2996
2996
  const deserializeAws_restJson1StartTransactionCommandError = async (output, context) => {
2997
2997
  const parsedOutput = {
2998
2998
  ...output,
2999
- body: await parseBody(output.body, context),
2999
+ body: await parseErrorBody(output.body, context),
3000
3000
  };
3001
3001
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3002
3002
  switch (errorCode) {
@@ -3030,7 +3030,7 @@ exports.deserializeAws_restJson1UpdateLFTagCommand = deserializeAws_restJson1Upd
3030
3030
  const deserializeAws_restJson1UpdateLFTagCommandError = async (output, context) => {
3031
3031
  const parsedOutput = {
3032
3032
  ...output,
3033
- body: await parseBody(output.body, context),
3033
+ body: await parseErrorBody(output.body, context),
3034
3034
  };
3035
3035
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3036
3036
  switch (errorCode) {
@@ -3076,7 +3076,7 @@ exports.deserializeAws_restJson1UpdateResourceCommand = deserializeAws_restJson1
3076
3076
  const deserializeAws_restJson1UpdateResourceCommandError = async (output, context) => {
3077
3077
  const parsedOutput = {
3078
3078
  ...output,
3079
- body: await parseBody(output.body, context),
3079
+ body: await parseErrorBody(output.body, context),
3080
3080
  };
3081
3081
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3082
3082
  switch (errorCode) {
@@ -3116,7 +3116,7 @@ exports.deserializeAws_restJson1UpdateTableObjectsCommand = deserializeAws_restJ
3116
3116
  const deserializeAws_restJson1UpdateTableObjectsCommandError = async (output, context) => {
3117
3117
  const parsedOutput = {
3118
3118
  ...output,
3119
- body: await parseBody(output.body, context),
3119
+ body: await parseErrorBody(output.body, context),
3120
3120
  };
3121
3121
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3122
3122
  switch (errorCode) {
@@ -3174,7 +3174,7 @@ exports.deserializeAws_restJson1UpdateTableStorageOptimizerCommand = deserialize
3174
3174
  const deserializeAws_restJson1UpdateTableStorageOptimizerCommandError = async (output, context) => {
3175
3175
  const parsedOutput = {
3176
3176
  ...output,
3177
- body: await parseBody(output.body, context),
3177
+ body: await parseErrorBody(output.body, context),
3178
3178
  };
3179
3179
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3180
3180
  switch (errorCode) {
@@ -4401,6 +4401,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
4401
4401
  }
4402
4402
  return {};
4403
4403
  });
4404
+ const parseErrorBody = async (errorBody, context) => {
4405
+ var _a;
4406
+ const value = await parseBody(errorBody, context);
4407
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
4408
+ return value;
4409
+ };
4404
4410
  const loadRestJsonErrorCode = (output, data) => {
4405
4411
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4406
4412
  const sanitizeErrorCode = (rawValue) => {
@@ -1189,7 +1189,7 @@ var deserializeAws_restJson1AddLFTagsToResourceCommandError = function (output,
1189
1189
  case 0:
1190
1190
  _a = [__assign({}, output)];
1191
1191
  _c = {};
1192
- return [4, parseBody(output.body, context)];
1192
+ return [4, parseErrorBody(output.body, context)];
1193
1193
  case 1:
1194
1194
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1195
1195
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1274,7 +1274,7 @@ var deserializeAws_restJson1AssumeDecoratedRoleWithSAMLCommandError = function (
1274
1274
  case 0:
1275
1275
  _a = [__assign({}, output)];
1276
1276
  _c = {};
1277
- return [4, parseBody(output.body, context)];
1277
+ return [4, parseErrorBody(output.body, context)];
1278
1278
  case 1:
1279
1279
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1280
1280
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1346,7 +1346,7 @@ var deserializeAws_restJson1BatchGrantPermissionsCommandError = function (output
1346
1346
  case 0:
1347
1347
  _a = [__assign({}, output)];
1348
1348
  _c = {};
1349
- return [4, parseBody(output.body, context)];
1349
+ return [4, parseErrorBody(output.body, context)];
1350
1350
  case 1:
1351
1351
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1352
1352
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1406,7 +1406,7 @@ var deserializeAws_restJson1BatchRevokePermissionsCommandError = function (outpu
1406
1406
  case 0:
1407
1407
  _a = [__assign({}, output)];
1408
1408
  _c = {};
1409
- return [4, parseBody(output.body, context)];
1409
+ return [4, parseErrorBody(output.body, context)];
1410
1410
  case 1:
1411
1411
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1412
1412
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1461,7 +1461,7 @@ var deserializeAws_restJson1CancelTransactionCommandError = function (output, co
1461
1461
  case 0:
1462
1462
  _a = [__assign({}, output)];
1463
1463
  _c = {};
1464
- return [4, parseBody(output.body, context)];
1464
+ return [4, parseErrorBody(output.body, context)];
1465
1465
  case 1:
1466
1466
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1467
1467
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1541,7 +1541,7 @@ var deserializeAws_restJson1CommitTransactionCommandError = function (output, co
1541
1541
  case 0:
1542
1542
  _a = [__assign({}, output)];
1543
1543
  _c = {};
1544
- return [4, parseBody(output.body, context)];
1544
+ return [4, parseErrorBody(output.body, context)];
1545
1545
  case 1:
1546
1546
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1547
1547
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1612,7 +1612,7 @@ var deserializeAws_restJson1CreateDataCellsFilterCommandError = function (output
1612
1612
  case 0:
1613
1613
  _a = [__assign({}, output)];
1614
1614
  _c = {};
1615
- return [4, parseBody(output.body, context)];
1615
+ return [4, parseErrorBody(output.body, context)];
1616
1616
  case 1:
1617
1617
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1618
1618
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1687,7 +1687,7 @@ var deserializeAws_restJson1CreateLFTagCommandError = function (output, context)
1687
1687
  case 0:
1688
1688
  _a = [__assign({}, output)];
1689
1689
  _c = {};
1690
- return [4, parseBody(output.body, context)];
1690
+ return [4, parseErrorBody(output.body, context)];
1691
1691
  case 1:
1692
1692
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1693
1693
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1758,7 +1758,7 @@ var deserializeAws_restJson1DeleteDataCellsFilterCommandError = function (output
1758
1758
  case 0:
1759
1759
  _a = [__assign({}, output)];
1760
1760
  _c = {};
1761
- return [4, parseBody(output.body, context)];
1761
+ return [4, parseErrorBody(output.body, context)];
1762
1762
  case 1:
1763
1763
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1764
1764
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1825,7 +1825,7 @@ var deserializeAws_restJson1DeleteLFTagCommandError = function (output, context)
1825
1825
  case 0:
1826
1826
  _a = [__assign({}, output)];
1827
1827
  _c = {};
1828
- return [4, parseBody(output.body, context)];
1828
+ return [4, parseErrorBody(output.body, context)];
1829
1829
  case 1:
1830
1830
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1831
1831
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1892,7 +1892,7 @@ var deserializeAws_restJson1DeleteObjectsOnCancelCommandError = function (output
1892
1892
  case 0:
1893
1893
  _a = [__assign({}, output)];
1894
1894
  _c = {};
1895
- return [4, parseBody(output.body, context)];
1895
+ return [4, parseErrorBody(output.body, context)];
1896
1896
  case 1:
1897
1897
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1898
1898
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1971,7 +1971,7 @@ var deserializeAws_restJson1DeregisterResourceCommandError = function (output, c
1971
1971
  case 0:
1972
1972
  _a = [__assign({}, output)];
1973
1973
  _c = {};
1974
- return [4, parseBody(output.body, context)];
1974
+ return [4, parseErrorBody(output.body, context)];
1975
1975
  case 1:
1976
1976
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1977
1977
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2039,7 +2039,7 @@ var deserializeAws_restJson1DescribeResourceCommandError = function (output, con
2039
2039
  case 0:
2040
2040
  _a = [__assign({}, output)];
2041
2041
  _c = {};
2042
- return [4, parseBody(output.body, context)];
2042
+ return [4, parseErrorBody(output.body, context)];
2043
2043
  case 1:
2044
2044
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2045
2045
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2107,7 +2107,7 @@ var deserializeAws_restJson1DescribeTransactionCommandError = function (output,
2107
2107
  case 0:
2108
2108
  _a = [__assign({}, output)];
2109
2109
  _c = {};
2110
- return [4, parseBody(output.body, context)];
2110
+ return [4, parseErrorBody(output.body, context)];
2111
2111
  case 1:
2112
2112
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2113
2113
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2170,7 +2170,7 @@ var deserializeAws_restJson1ExtendTransactionCommandError = function (output, co
2170
2170
  case 0:
2171
2171
  _a = [__assign({}, output)];
2172
2172
  _c = {};
2173
- return [4, parseBody(output.body, context)];
2173
+ return [4, parseErrorBody(output.body, context)];
2174
2174
  case 1:
2175
2175
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2176
2176
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2250,7 +2250,7 @@ var deserializeAws_restJson1GetDataLakeSettingsCommandError = function (output,
2250
2250
  case 0:
2251
2251
  _a = [__assign({}, output)];
2252
2252
  _c = {};
2253
- return [4, parseBody(output.body, context)];
2253
+ return [4, parseErrorBody(output.body, context)];
2254
2254
  case 1:
2255
2255
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2256
2256
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2317,7 +2317,7 @@ var deserializeAws_restJson1GetEffectivePermissionsForPathCommandError = functio
2317
2317
  case 0:
2318
2318
  _a = [__assign({}, output)];
2319
2319
  _c = {};
2320
- return [4, parseBody(output.body, context)];
2320
+ return [4, parseErrorBody(output.body, context)];
2321
2321
  case 1:
2322
2322
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2323
2323
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2391,7 +2391,7 @@ var deserializeAws_restJson1GetLFTagCommandError = function (output, context) {
2391
2391
  case 0:
2392
2392
  _a = [__assign({}, output)];
2393
2393
  _c = {};
2394
- return [4, parseBody(output.body, context)];
2394
+ return [4, parseErrorBody(output.body, context)];
2395
2395
  case 1:
2396
2396
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2397
2397
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2466,7 +2466,7 @@ var deserializeAws_restJson1GetQueryStateCommandError = function (output, contex
2466
2466
  case 0:
2467
2467
  _a = [__assign({}, output)];
2468
2468
  _c = {};
2469
- return [4, parseBody(output.body, context)];
2469
+ return [4, parseErrorBody(output.body, context)];
2470
2470
  case 1:
2471
2471
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2472
2472
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2536,7 +2536,7 @@ var deserializeAws_restJson1GetQueryStatisticsCommandError = function (output, c
2536
2536
  case 0:
2537
2537
  _a = [__assign({}, output)];
2538
2538
  _c = {};
2539
- return [4, parseBody(output.body, context)];
2539
+ return [4, parseErrorBody(output.body, context)];
2540
2540
  case 1:
2541
2541
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2542
2542
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2618,7 +2618,7 @@ var deserializeAws_restJson1GetResourceLFTagsCommandError = function (output, co
2618
2618
  case 0:
2619
2619
  _a = [__assign({}, output)];
2620
2620
  _c = {};
2621
- return [4, parseBody(output.body, context)];
2621
+ return [4, parseErrorBody(output.body, context)];
2622
2622
  case 1:
2623
2623
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2624
2624
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2697,7 +2697,7 @@ var deserializeAws_restJson1GetTableObjectsCommandError = function (output, cont
2697
2697
  case 0:
2698
2698
  _a = [__assign({}, output)];
2699
2699
  _c = {};
2700
- return [4, parseBody(output.body, context)];
2700
+ return [4, parseErrorBody(output.body, context)];
2701
2701
  case 1:
2702
2702
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2703
2703
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2786,7 +2786,7 @@ var deserializeAws_restJson1GetTemporaryGluePartitionCredentialsCommandError = f
2786
2786
  case 0:
2787
2787
  _a = [__assign({}, output)];
2788
2788
  _c = {};
2789
- return [4, parseBody(output.body, context)];
2789
+ return [4, parseErrorBody(output.body, context)];
2790
2790
  case 1:
2791
2791
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2792
2792
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2871,7 +2871,7 @@ var deserializeAws_restJson1GetTemporaryGlueTableCredentialsCommandError = funct
2871
2871
  case 0:
2872
2872
  _a = [__assign({}, output)];
2873
2873
  _c = {};
2874
- return [4, parseBody(output.body, context)];
2874
+ return [4, parseErrorBody(output.body, context)];
2875
2875
  case 1:
2876
2876
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2877
2877
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2938,7 +2938,7 @@ var deserializeAws_restJson1GetWorkUnitResultsCommandError = function (output, c
2938
2938
  case 0:
2939
2939
  _a = [__assign({}, output)];
2940
2940
  _c = {};
2941
- return [4, parseBody(output.body, context)];
2941
+ return [4, parseErrorBody(output.body, context)];
2942
2942
  case 1:
2943
2943
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2944
2944
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3016,7 +3016,7 @@ var deserializeAws_restJson1GetWorkUnitsCommandError = function (output, context
3016
3016
  case 0:
3017
3017
  _a = [__assign({}, output)];
3018
3018
  _c = {};
3019
- return [4, parseBody(output.body, context)];
3019
+ return [4, parseErrorBody(output.body, context)];
3020
3020
  case 1:
3021
3021
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3022
3022
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3083,7 +3083,7 @@ var deserializeAws_restJson1GrantPermissionsCommandError = function (output, con
3083
3083
  case 0:
3084
3084
  _a = [__assign({}, output)];
3085
3085
  _c = {};
3086
- return [4, parseBody(output.body, context)];
3086
+ return [4, parseErrorBody(output.body, context)];
3087
3087
  case 1:
3088
3088
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3089
3089
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3150,7 +3150,7 @@ var deserializeAws_restJson1ListDataCellsFilterCommandError = function (output,
3150
3150
  case 0:
3151
3151
  _a = [__assign({}, output)];
3152
3152
  _c = {};
3153
- return [4, parseBody(output.body, context)];
3153
+ return [4, parseErrorBody(output.body, context)];
3154
3154
  case 1:
3155
3155
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3156
3156
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3221,7 +3221,7 @@ var deserializeAws_restJson1ListLFTagsCommandError = function (output, context)
3221
3221
  case 0:
3222
3222
  _a = [__assign({}, output)];
3223
3223
  _c = {};
3224
- return [4, parseBody(output.body, context)];
3224
+ return [4, parseErrorBody(output.body, context)];
3225
3225
  case 1:
3226
3226
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3227
3227
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3296,7 +3296,7 @@ var deserializeAws_restJson1ListPermissionsCommandError = function (output, cont
3296
3296
  case 0:
3297
3297
  _a = [__assign({}, output)];
3298
3298
  _c = {};
3299
- return [4, parseBody(output.body, context)];
3299
+ return [4, parseErrorBody(output.body, context)];
3300
3300
  case 1:
3301
3301
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3302
3302
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3363,7 +3363,7 @@ var deserializeAws_restJson1ListResourcesCommandError = function (output, contex
3363
3363
  case 0:
3364
3364
  _a = [__assign({}, output)];
3365
3365
  _c = {};
3366
- return [4, parseBody(output.body, context)];
3366
+ return [4, parseErrorBody(output.body, context)];
3367
3367
  case 1:
3368
3368
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3369
3369
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3430,7 +3430,7 @@ var deserializeAws_restJson1ListTableStorageOptimizersCommandError = function (o
3430
3430
  case 0:
3431
3431
  _a = [__assign({}, output)];
3432
3432
  _c = {};
3433
- return [4, parseBody(output.body, context)];
3433
+ return [4, parseErrorBody(output.body, context)];
3434
3434
  case 1:
3435
3435
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3436
3436
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3501,7 +3501,7 @@ var deserializeAws_restJson1ListTransactionsCommandError = function (output, con
3501
3501
  case 0:
3502
3502
  _a = [__assign({}, output)];
3503
3503
  _c = {};
3504
- return [4, parseBody(output.body, context)];
3504
+ return [4, parseErrorBody(output.body, context)];
3505
3505
  case 1:
3506
3506
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3507
3507
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3560,7 +3560,7 @@ var deserializeAws_restJson1PutDataLakeSettingsCommandError = function (output,
3560
3560
  case 0:
3561
3561
  _a = [__assign({}, output)];
3562
3562
  _c = {};
3563
- return [4, parseBody(output.body, context)];
3563
+ return [4, parseErrorBody(output.body, context)];
3564
3564
  case 1:
3565
3565
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3566
3566
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3615,7 +3615,7 @@ var deserializeAws_restJson1RegisterResourceCommandError = function (output, con
3615
3615
  case 0:
3616
3616
  _a = [__assign({}, output)];
3617
3617
  _c = {};
3618
- return [4, parseBody(output.body, context)];
3618
+ return [4, parseErrorBody(output.body, context)];
3619
3619
  case 1:
3620
3620
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3621
3621
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3695,7 +3695,7 @@ var deserializeAws_restJson1RemoveLFTagsFromResourceCommandError = function (out
3695
3695
  case 0:
3696
3696
  _a = [__assign({}, output)];
3697
3697
  _c = {};
3698
- return [4, parseBody(output.body, context)];
3698
+ return [4, parseErrorBody(output.body, context)];
3699
3699
  case 1:
3700
3700
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3701
3701
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3770,7 +3770,7 @@ var deserializeAws_restJson1RevokePermissionsCommandError = function (output, co
3770
3770
  case 0:
3771
3771
  _a = [__assign({}, output)];
3772
3772
  _c = {};
3773
- return [4, parseBody(output.body, context)];
3773
+ return [4, parseErrorBody(output.body, context)];
3774
3774
  case 1:
3775
3775
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3776
3776
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3837,7 +3837,7 @@ var deserializeAws_restJson1SearchDatabasesByLFTagsCommandError = function (outp
3837
3837
  case 0:
3838
3838
  _a = [__assign({}, output)];
3839
3839
  _c = {};
3840
- return [4, parseBody(output.body, context)];
3840
+ return [4, parseErrorBody(output.body, context)];
3841
3841
  case 1:
3842
3842
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3843
3843
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3916,7 +3916,7 @@ var deserializeAws_restJson1SearchTablesByLFTagsCommandError = function (output,
3916
3916
  case 0:
3917
3917
  _a = [__assign({}, output)];
3918
3918
  _c = {};
3919
- return [4, parseBody(output.body, context)];
3919
+ return [4, parseErrorBody(output.body, context)];
3920
3920
  case 1:
3921
3921
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3922
3922
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3992,7 +3992,7 @@ var deserializeAws_restJson1StartQueryPlanningCommandError = function (output, c
3992
3992
  case 0:
3993
3993
  _a = [__assign({}, output)];
3994
3994
  _c = {};
3995
- return [4, parseBody(output.body, context)];
3995
+ return [4, parseErrorBody(output.body, context)];
3996
3996
  case 1:
3997
3997
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3998
3998
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4060,7 +4060,7 @@ var deserializeAws_restJson1StartTransactionCommandError = function (output, con
4060
4060
  case 0:
4061
4061
  _a = [__assign({}, output)];
4062
4062
  _c = {};
4063
- return [4, parseBody(output.body, context)];
4063
+ return [4, parseErrorBody(output.body, context)];
4064
4064
  case 1:
4065
4065
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4066
4066
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4115,7 +4115,7 @@ var deserializeAws_restJson1UpdateLFTagCommandError = function (output, context)
4115
4115
  case 0:
4116
4116
  _a = [__assign({}, output)];
4117
4117
  _c = {};
4118
- return [4, parseBody(output.body, context)];
4118
+ return [4, parseErrorBody(output.body, context)];
4119
4119
  case 1:
4120
4120
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4121
4121
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4186,7 +4186,7 @@ var deserializeAws_restJson1UpdateResourceCommandError = function (output, conte
4186
4186
  case 0:
4187
4187
  _a = [__assign({}, output)];
4188
4188
  _c = {};
4189
- return [4, parseBody(output.body, context)];
4189
+ return [4, parseErrorBody(output.body, context)];
4190
4190
  case 1:
4191
4191
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4192
4192
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4249,7 +4249,7 @@ var deserializeAws_restJson1UpdateTableObjectsCommandError = function (output, c
4249
4249
  case 0:
4250
4250
  _a = [__assign({}, output)];
4251
4251
  _c = {};
4252
- return [4, parseBody(output.body, context)];
4252
+ return [4, parseErrorBody(output.body, context)];
4253
4253
  case 1:
4254
4254
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4255
4255
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4337,7 +4337,7 @@ var deserializeAws_restJson1UpdateTableStorageOptimizerCommandError = function (
4337
4337
  case 0:
4338
4338
  _a = [__assign({}, output)];
4339
4339
  _c = {};
4340
- return [4, parseBody(output.body, context)];
4340
+ return [4, parseErrorBody(output.body, context)];
4341
4341
  case 1:
4342
4342
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4343
4343
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5471,6 +5471,19 @@ var parseBody = function (streamBody, context) {
5471
5471
  return {};
5472
5472
  });
5473
5473
  };
5474
+ var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
5475
+ var value;
5476
+ var _a;
5477
+ return __generator(this, function (_b) {
5478
+ switch (_b.label) {
5479
+ case 0: return [4, parseBody(errorBody, context)];
5480
+ case 1:
5481
+ value = _b.sent();
5482
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
5483
+ return [2, value];
5484
+ }
5485
+ });
5486
+ }); };
5474
5487
  var loadRestJsonErrorCode = function (output, data) {
5475
5488
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
5476
5489
  var sanitizeErrorCode = function (rawValue) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lakeformation",
3
3
  "description": "AWS SDK for JavaScript Lakeformation 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",