@aws-sdk/client-databrew 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 +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +50 -44
- package/dist-es/protocols/Aws_restJson1.js +57 -44
- package/package.json +3 -3
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-databrew
|
|
@@ -1018,7 +1018,7 @@ exports.deserializeAws_restJson1BatchDeleteRecipeVersionCommand = deserializeAws
|
|
|
1018
1018
|
const deserializeAws_restJson1BatchDeleteRecipeVersionCommandError = async (output, context) => {
|
|
1019
1019
|
const parsedOutput = {
|
|
1020
1020
|
...output,
|
|
1021
|
-
body: await
|
|
1021
|
+
body: await parseErrorBody(output.body, context),
|
|
1022
1022
|
};
|
|
1023
1023
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
1024
|
switch (errorCode) {
|
|
@@ -1058,7 +1058,7 @@ exports.deserializeAws_restJson1CreateDatasetCommand = deserializeAws_restJson1C
|
|
|
1058
1058
|
const deserializeAws_restJson1CreateDatasetCommandError = async (output, context) => {
|
|
1059
1059
|
const parsedOutput = {
|
|
1060
1060
|
...output,
|
|
1061
|
-
body: await
|
|
1061
|
+
body: await parseErrorBody(output.body, context),
|
|
1062
1062
|
};
|
|
1063
1063
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
1064
|
switch (errorCode) {
|
|
@@ -1101,7 +1101,7 @@ exports.deserializeAws_restJson1CreateProfileJobCommand = deserializeAws_restJso
|
|
|
1101
1101
|
const deserializeAws_restJson1CreateProfileJobCommandError = async (output, context) => {
|
|
1102
1102
|
const parsedOutput = {
|
|
1103
1103
|
...output,
|
|
1104
|
-
body: await
|
|
1104
|
+
body: await parseErrorBody(output.body, context),
|
|
1105
1105
|
};
|
|
1106
1106
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
1107
|
switch (errorCode) {
|
|
@@ -1147,7 +1147,7 @@ exports.deserializeAws_restJson1CreateProjectCommand = deserializeAws_restJson1C
|
|
|
1147
1147
|
const deserializeAws_restJson1CreateProjectCommandError = async (output, context) => {
|
|
1148
1148
|
const parsedOutput = {
|
|
1149
1149
|
...output,
|
|
1150
|
-
body: await
|
|
1150
|
+
body: await parseErrorBody(output.body, context),
|
|
1151
1151
|
};
|
|
1152
1152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
1153
|
switch (errorCode) {
|
|
@@ -1190,7 +1190,7 @@ exports.deserializeAws_restJson1CreateRecipeCommand = deserializeAws_restJson1Cr
|
|
|
1190
1190
|
const deserializeAws_restJson1CreateRecipeCommandError = async (output, context) => {
|
|
1191
1191
|
const parsedOutput = {
|
|
1192
1192
|
...output,
|
|
1193
|
-
body: await
|
|
1193
|
+
body: await parseErrorBody(output.body, context),
|
|
1194
1194
|
};
|
|
1195
1195
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
1196
|
switch (errorCode) {
|
|
@@ -1230,7 +1230,7 @@ exports.deserializeAws_restJson1CreateRecipeJobCommand = deserializeAws_restJson
|
|
|
1230
1230
|
const deserializeAws_restJson1CreateRecipeJobCommandError = async (output, context) => {
|
|
1231
1231
|
const parsedOutput = {
|
|
1232
1232
|
...output,
|
|
1233
|
-
body: await
|
|
1233
|
+
body: await parseErrorBody(output.body, context),
|
|
1234
1234
|
};
|
|
1235
1235
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
1236
|
switch (errorCode) {
|
|
@@ -1276,7 +1276,7 @@ exports.deserializeAws_restJson1CreateRulesetCommand = deserializeAws_restJson1C
|
|
|
1276
1276
|
const deserializeAws_restJson1CreateRulesetCommandError = async (output, context) => {
|
|
1277
1277
|
const parsedOutput = {
|
|
1278
1278
|
...output,
|
|
1279
|
-
body: await
|
|
1279
|
+
body: await parseErrorBody(output.body, context),
|
|
1280
1280
|
};
|
|
1281
1281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
1282
|
switch (errorCode) {
|
|
@@ -1316,7 +1316,7 @@ exports.deserializeAws_restJson1CreateScheduleCommand = deserializeAws_restJson1
|
|
|
1316
1316
|
const deserializeAws_restJson1CreateScheduleCommandError = async (output, context) => {
|
|
1317
1317
|
const parsedOutput = {
|
|
1318
1318
|
...output,
|
|
1319
|
-
body: await
|
|
1319
|
+
body: await parseErrorBody(output.body, context),
|
|
1320
1320
|
};
|
|
1321
1321
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1322
1322
|
switch (errorCode) {
|
|
@@ -1356,7 +1356,7 @@ exports.deserializeAws_restJson1DeleteDatasetCommand = deserializeAws_restJson1D
|
|
|
1356
1356
|
const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context) => {
|
|
1357
1357
|
const parsedOutput = {
|
|
1358
1358
|
...output,
|
|
1359
|
-
body: await
|
|
1359
|
+
body: await parseErrorBody(output.body, context),
|
|
1360
1360
|
};
|
|
1361
1361
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1362
1362
|
switch (errorCode) {
|
|
@@ -1396,7 +1396,7 @@ exports.deserializeAws_restJson1DeleteJobCommand = deserializeAws_restJson1Delet
|
|
|
1396
1396
|
const deserializeAws_restJson1DeleteJobCommandError = async (output, context) => {
|
|
1397
1397
|
const parsedOutput = {
|
|
1398
1398
|
...output,
|
|
1399
|
-
body: await
|
|
1399
|
+
body: await parseErrorBody(output.body, context),
|
|
1400
1400
|
};
|
|
1401
1401
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1402
1402
|
switch (errorCode) {
|
|
@@ -1436,7 +1436,7 @@ exports.deserializeAws_restJson1DeleteProjectCommand = deserializeAws_restJson1D
|
|
|
1436
1436
|
const deserializeAws_restJson1DeleteProjectCommandError = async (output, context) => {
|
|
1437
1437
|
const parsedOutput = {
|
|
1438
1438
|
...output,
|
|
1439
|
-
body: await
|
|
1439
|
+
body: await parseErrorBody(output.body, context),
|
|
1440
1440
|
};
|
|
1441
1441
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
1442
|
switch (errorCode) {
|
|
@@ -1479,7 +1479,7 @@ exports.deserializeAws_restJson1DeleteRecipeVersionCommand = deserializeAws_rest
|
|
|
1479
1479
|
const deserializeAws_restJson1DeleteRecipeVersionCommandError = async (output, context) => {
|
|
1480
1480
|
const parsedOutput = {
|
|
1481
1481
|
...output,
|
|
1482
|
-
body: await
|
|
1482
|
+
body: await parseErrorBody(output.body, context),
|
|
1483
1483
|
};
|
|
1484
1484
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
1485
|
switch (errorCode) {
|
|
@@ -1519,7 +1519,7 @@ exports.deserializeAws_restJson1DeleteRulesetCommand = deserializeAws_restJson1D
|
|
|
1519
1519
|
const deserializeAws_restJson1DeleteRulesetCommandError = async (output, context) => {
|
|
1520
1520
|
const parsedOutput = {
|
|
1521
1521
|
...output,
|
|
1522
|
-
body: await
|
|
1522
|
+
body: await parseErrorBody(output.body, context),
|
|
1523
1523
|
};
|
|
1524
1524
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
1525
|
switch (errorCode) {
|
|
@@ -1559,7 +1559,7 @@ exports.deserializeAws_restJson1DeleteScheduleCommand = deserializeAws_restJson1
|
|
|
1559
1559
|
const deserializeAws_restJson1DeleteScheduleCommandError = async (output, context) => {
|
|
1560
1560
|
const parsedOutput = {
|
|
1561
1561
|
...output,
|
|
1562
|
-
body: await
|
|
1562
|
+
body: await parseErrorBody(output.body, context),
|
|
1563
1563
|
};
|
|
1564
1564
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
1565
|
switch (errorCode) {
|
|
@@ -1629,7 +1629,7 @@ exports.deserializeAws_restJson1DescribeDatasetCommand = deserializeAws_restJson
|
|
|
1629
1629
|
const deserializeAws_restJson1DescribeDatasetCommandError = async (output, context) => {
|
|
1630
1630
|
const parsedOutput = {
|
|
1631
1631
|
...output,
|
|
1632
|
-
body: await
|
|
1632
|
+
body: await parseErrorBody(output.body, context),
|
|
1633
1633
|
};
|
|
1634
1634
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1635
1635
|
switch (errorCode) {
|
|
@@ -1735,7 +1735,7 @@ exports.deserializeAws_restJson1DescribeJobCommand = deserializeAws_restJson1Des
|
|
|
1735
1735
|
const deserializeAws_restJson1DescribeJobCommandError = async (output, context) => {
|
|
1736
1736
|
const parsedOutput = {
|
|
1737
1737
|
...output,
|
|
1738
|
-
body: await
|
|
1738
|
+
body: await parseErrorBody(output.body, context),
|
|
1739
1739
|
};
|
|
1740
1740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
1741
|
switch (errorCode) {
|
|
@@ -1826,7 +1826,7 @@ exports.deserializeAws_restJson1DescribeJobRunCommand = deserializeAws_restJson1
|
|
|
1826
1826
|
const deserializeAws_restJson1DescribeJobRunCommandError = async (output, context) => {
|
|
1827
1827
|
const parsedOutput = {
|
|
1828
1828
|
...output,
|
|
1829
|
-
body: await
|
|
1829
|
+
body: await parseErrorBody(output.body, context),
|
|
1830
1830
|
};
|
|
1831
1831
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1832
1832
|
switch (errorCode) {
|
|
@@ -1902,7 +1902,7 @@ exports.deserializeAws_restJson1DescribeProjectCommand = deserializeAws_restJson
|
|
|
1902
1902
|
const deserializeAws_restJson1DescribeProjectCommandError = async (output, context) => {
|
|
1903
1903
|
const parsedOutput = {
|
|
1904
1904
|
...output,
|
|
1905
|
-
body: await
|
|
1905
|
+
body: await parseErrorBody(output.body, context),
|
|
1906
1906
|
};
|
|
1907
1907
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1908
1908
|
switch (errorCode) {
|
|
@@ -1975,7 +1975,7 @@ exports.deserializeAws_restJson1DescribeRecipeCommand = deserializeAws_restJson1
|
|
|
1975
1975
|
const deserializeAws_restJson1DescribeRecipeCommandError = async (output, context) => {
|
|
1976
1976
|
const parsedOutput = {
|
|
1977
1977
|
...output,
|
|
1978
|
-
body: await
|
|
1978
|
+
body: await parseErrorBody(output.body, context),
|
|
1979
1979
|
};
|
|
1980
1980
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1981
1981
|
switch (errorCode) {
|
|
@@ -2039,7 +2039,7 @@ exports.deserializeAws_restJson1DescribeRulesetCommand = deserializeAws_restJson
|
|
|
2039
2039
|
const deserializeAws_restJson1DescribeRulesetCommandError = async (output, context) => {
|
|
2040
2040
|
const parsedOutput = {
|
|
2041
2041
|
...output,
|
|
2042
|
-
body: await
|
|
2042
|
+
body: await parseErrorBody(output.body, context),
|
|
2043
2043
|
};
|
|
2044
2044
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2045
2045
|
switch (errorCode) {
|
|
@@ -2100,7 +2100,7 @@ exports.deserializeAws_restJson1DescribeScheduleCommand = deserializeAws_restJso
|
|
|
2100
2100
|
const deserializeAws_restJson1DescribeScheduleCommandError = async (output, context) => {
|
|
2101
2101
|
const parsedOutput = {
|
|
2102
2102
|
...output,
|
|
2103
|
-
body: await
|
|
2103
|
+
body: await parseErrorBody(output.body, context),
|
|
2104
2104
|
};
|
|
2105
2105
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2106
2106
|
switch (errorCode) {
|
|
@@ -2140,7 +2140,7 @@ exports.deserializeAws_restJson1ListDatasetsCommand = deserializeAws_restJson1Li
|
|
|
2140
2140
|
const deserializeAws_restJson1ListDatasetsCommandError = async (output, context) => {
|
|
2141
2141
|
const parsedOutput = {
|
|
2142
2142
|
...output,
|
|
2143
|
-
body: await
|
|
2143
|
+
body: await parseErrorBody(output.body, context),
|
|
2144
2144
|
};
|
|
2145
2145
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2146
2146
|
switch (errorCode) {
|
|
@@ -2177,7 +2177,7 @@ exports.deserializeAws_restJson1ListJobRunsCommand = deserializeAws_restJson1Lis
|
|
|
2177
2177
|
const deserializeAws_restJson1ListJobRunsCommandError = async (output, context) => {
|
|
2178
2178
|
const parsedOutput = {
|
|
2179
2179
|
...output,
|
|
2180
|
-
body: await
|
|
2180
|
+
body: await parseErrorBody(output.body, context),
|
|
2181
2181
|
};
|
|
2182
2182
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2183
2183
|
switch (errorCode) {
|
|
@@ -2217,7 +2217,7 @@ exports.deserializeAws_restJson1ListJobsCommand = deserializeAws_restJson1ListJo
|
|
|
2217
2217
|
const deserializeAws_restJson1ListJobsCommandError = async (output, context) => {
|
|
2218
2218
|
const parsedOutput = {
|
|
2219
2219
|
...output,
|
|
2220
|
-
body: await
|
|
2220
|
+
body: await parseErrorBody(output.body, context),
|
|
2221
2221
|
};
|
|
2222
2222
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
2223
|
switch (errorCode) {
|
|
@@ -2254,7 +2254,7 @@ exports.deserializeAws_restJson1ListProjectsCommand = deserializeAws_restJson1Li
|
|
|
2254
2254
|
const deserializeAws_restJson1ListProjectsCommandError = async (output, context) => {
|
|
2255
2255
|
const parsedOutput = {
|
|
2256
2256
|
...output,
|
|
2257
|
-
body: await
|
|
2257
|
+
body: await parseErrorBody(output.body, context),
|
|
2258
2258
|
};
|
|
2259
2259
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2260
2260
|
switch (errorCode) {
|
|
@@ -2291,7 +2291,7 @@ exports.deserializeAws_restJson1ListRecipesCommand = deserializeAws_restJson1Lis
|
|
|
2291
2291
|
const deserializeAws_restJson1ListRecipesCommandError = async (output, context) => {
|
|
2292
2292
|
const parsedOutput = {
|
|
2293
2293
|
...output,
|
|
2294
|
-
body: await
|
|
2294
|
+
body: await parseErrorBody(output.body, context),
|
|
2295
2295
|
};
|
|
2296
2296
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2297
2297
|
switch (errorCode) {
|
|
@@ -2328,7 +2328,7 @@ exports.deserializeAws_restJson1ListRecipeVersionsCommand = deserializeAws_restJ
|
|
|
2328
2328
|
const deserializeAws_restJson1ListRecipeVersionsCommandError = async (output, context) => {
|
|
2329
2329
|
const parsedOutput = {
|
|
2330
2330
|
...output,
|
|
2331
|
-
body: await
|
|
2331
|
+
body: await parseErrorBody(output.body, context),
|
|
2332
2332
|
};
|
|
2333
2333
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2334
2334
|
switch (errorCode) {
|
|
@@ -2365,7 +2365,7 @@ exports.deserializeAws_restJson1ListRulesetsCommand = deserializeAws_restJson1Li
|
|
|
2365
2365
|
const deserializeAws_restJson1ListRulesetsCommandError = async (output, context) => {
|
|
2366
2366
|
const parsedOutput = {
|
|
2367
2367
|
...output,
|
|
2368
|
-
body: await
|
|
2368
|
+
body: await parseErrorBody(output.body, context),
|
|
2369
2369
|
};
|
|
2370
2370
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2371
2371
|
switch (errorCode) {
|
|
@@ -2405,7 +2405,7 @@ exports.deserializeAws_restJson1ListSchedulesCommand = deserializeAws_restJson1L
|
|
|
2405
2405
|
const deserializeAws_restJson1ListSchedulesCommandError = async (output, context) => {
|
|
2406
2406
|
const parsedOutput = {
|
|
2407
2407
|
...output,
|
|
2408
|
-
body: await
|
|
2408
|
+
body: await parseErrorBody(output.body, context),
|
|
2409
2409
|
};
|
|
2410
2410
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2411
2411
|
switch (errorCode) {
|
|
@@ -2439,7 +2439,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2439
2439
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2440
2440
|
const parsedOutput = {
|
|
2441
2441
|
...output,
|
|
2442
|
-
body: await
|
|
2442
|
+
body: await parseErrorBody(output.body, context),
|
|
2443
2443
|
};
|
|
2444
2444
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2445
2445
|
switch (errorCode) {
|
|
@@ -2479,7 +2479,7 @@ exports.deserializeAws_restJson1PublishRecipeCommand = deserializeAws_restJson1P
|
|
|
2479
2479
|
const deserializeAws_restJson1PublishRecipeCommandError = async (output, context) => {
|
|
2480
2480
|
const parsedOutput = {
|
|
2481
2481
|
...output,
|
|
2482
|
-
body: await
|
|
2482
|
+
body: await parseErrorBody(output.body, context),
|
|
2483
2483
|
};
|
|
2484
2484
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2485
2485
|
switch (errorCode) {
|
|
@@ -2525,7 +2525,7 @@ exports.deserializeAws_restJson1SendProjectSessionActionCommand = deserializeAws
|
|
|
2525
2525
|
const deserializeAws_restJson1SendProjectSessionActionCommandError = async (output, context) => {
|
|
2526
2526
|
const parsedOutput = {
|
|
2527
2527
|
...output,
|
|
2528
|
-
body: await
|
|
2528
|
+
body: await parseErrorBody(output.body, context),
|
|
2529
2529
|
};
|
|
2530
2530
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2531
2531
|
switch (errorCode) {
|
|
@@ -2565,7 +2565,7 @@ exports.deserializeAws_restJson1StartJobRunCommand = deserializeAws_restJson1Sta
|
|
|
2565
2565
|
const deserializeAws_restJson1StartJobRunCommandError = async (output, context) => {
|
|
2566
2566
|
const parsedOutput = {
|
|
2567
2567
|
...output,
|
|
2568
|
-
body: await
|
|
2568
|
+
body: await parseErrorBody(output.body, context),
|
|
2569
2569
|
};
|
|
2570
2570
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2571
2571
|
switch (errorCode) {
|
|
@@ -2611,7 +2611,7 @@ exports.deserializeAws_restJson1StartProjectSessionCommand = deserializeAws_rest
|
|
|
2611
2611
|
const deserializeAws_restJson1StartProjectSessionCommandError = async (output, context) => {
|
|
2612
2612
|
const parsedOutput = {
|
|
2613
2613
|
...output,
|
|
2614
|
-
body: await
|
|
2614
|
+
body: await parseErrorBody(output.body, context),
|
|
2615
2615
|
};
|
|
2616
2616
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2617
2617
|
switch (errorCode) {
|
|
@@ -2654,7 +2654,7 @@ exports.deserializeAws_restJson1StopJobRunCommand = deserializeAws_restJson1Stop
|
|
|
2654
2654
|
const deserializeAws_restJson1StopJobRunCommandError = async (output, context) => {
|
|
2655
2655
|
const parsedOutput = {
|
|
2656
2656
|
...output,
|
|
2657
|
-
body: await
|
|
2657
|
+
body: await parseErrorBody(output.body, context),
|
|
2658
2658
|
};
|
|
2659
2659
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2660
2660
|
switch (errorCode) {
|
|
@@ -2688,7 +2688,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2688
2688
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2689
2689
|
const parsedOutput = {
|
|
2690
2690
|
...output,
|
|
2691
|
-
body: await
|
|
2691
|
+
body: await parseErrorBody(output.body, context),
|
|
2692
2692
|
};
|
|
2693
2693
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2694
2694
|
switch (errorCode) {
|
|
@@ -2725,7 +2725,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2725
2725
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2726
2726
|
const parsedOutput = {
|
|
2727
2727
|
...output,
|
|
2728
|
-
body: await
|
|
2728
|
+
body: await parseErrorBody(output.body, context),
|
|
2729
2729
|
};
|
|
2730
2730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2731
2731
|
switch (errorCode) {
|
|
@@ -2765,7 +2765,7 @@ exports.deserializeAws_restJson1UpdateDatasetCommand = deserializeAws_restJson1U
|
|
|
2765
2765
|
const deserializeAws_restJson1UpdateDatasetCommandError = async (output, context) => {
|
|
2766
2766
|
const parsedOutput = {
|
|
2767
2767
|
...output,
|
|
2768
|
-
body: await
|
|
2768
|
+
body: await parseErrorBody(output.body, context),
|
|
2769
2769
|
};
|
|
2770
2770
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2771
2771
|
switch (errorCode) {
|
|
@@ -2805,7 +2805,7 @@ exports.deserializeAws_restJson1UpdateProfileJobCommand = deserializeAws_restJso
|
|
|
2805
2805
|
const deserializeAws_restJson1UpdateProfileJobCommandError = async (output, context) => {
|
|
2806
2806
|
const parsedOutput = {
|
|
2807
2807
|
...output,
|
|
2808
|
-
body: await
|
|
2808
|
+
body: await parseErrorBody(output.body, context),
|
|
2809
2809
|
};
|
|
2810
2810
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2811
2811
|
switch (errorCode) {
|
|
@@ -2848,7 +2848,7 @@ exports.deserializeAws_restJson1UpdateProjectCommand = deserializeAws_restJson1U
|
|
|
2848
2848
|
const deserializeAws_restJson1UpdateProjectCommandError = async (output, context) => {
|
|
2849
2849
|
const parsedOutput = {
|
|
2850
2850
|
...output,
|
|
2851
|
-
body: await
|
|
2851
|
+
body: await parseErrorBody(output.body, context),
|
|
2852
2852
|
};
|
|
2853
2853
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2854
2854
|
switch (errorCode) {
|
|
@@ -2885,7 +2885,7 @@ exports.deserializeAws_restJson1UpdateRecipeCommand = deserializeAws_restJson1Up
|
|
|
2885
2885
|
const deserializeAws_restJson1UpdateRecipeCommandError = async (output, context) => {
|
|
2886
2886
|
const parsedOutput = {
|
|
2887
2887
|
...output,
|
|
2888
|
-
body: await
|
|
2888
|
+
body: await parseErrorBody(output.body, context),
|
|
2889
2889
|
};
|
|
2890
2890
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2891
2891
|
switch (errorCode) {
|
|
@@ -2922,7 +2922,7 @@ exports.deserializeAws_restJson1UpdateRecipeJobCommand = deserializeAws_restJson
|
|
|
2922
2922
|
const deserializeAws_restJson1UpdateRecipeJobCommandError = async (output, context) => {
|
|
2923
2923
|
const parsedOutput = {
|
|
2924
2924
|
...output,
|
|
2925
|
-
body: await
|
|
2925
|
+
body: await parseErrorBody(output.body, context),
|
|
2926
2926
|
};
|
|
2927
2927
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2928
2928
|
switch (errorCode) {
|
|
@@ -2962,7 +2962,7 @@ exports.deserializeAws_restJson1UpdateRulesetCommand = deserializeAws_restJson1U
|
|
|
2962
2962
|
const deserializeAws_restJson1UpdateRulesetCommandError = async (output, context) => {
|
|
2963
2963
|
const parsedOutput = {
|
|
2964
2964
|
...output,
|
|
2965
|
-
body: await
|
|
2965
|
+
body: await parseErrorBody(output.body, context),
|
|
2966
2966
|
};
|
|
2967
2967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2968
2968
|
switch (errorCode) {
|
|
@@ -2999,7 +2999,7 @@ exports.deserializeAws_restJson1UpdateScheduleCommand = deserializeAws_restJson1
|
|
|
2999
2999
|
const deserializeAws_restJson1UpdateScheduleCommandError = async (output, context) => {
|
|
3000
3000
|
const parsedOutput = {
|
|
3001
3001
|
...output,
|
|
3002
|
-
body: await
|
|
3002
|
+
body: await parseErrorBody(output.body, context),
|
|
3003
3003
|
};
|
|
3004
3004
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3005
3005
|
switch (errorCode) {
|
|
@@ -4382,6 +4382,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4382
4382
|
}
|
|
4383
4383
|
return {};
|
|
4384
4384
|
});
|
|
4385
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4386
|
+
var _a;
|
|
4387
|
+
const value = await parseBody(errorBody, context);
|
|
4388
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4389
|
+
return value;
|
|
4390
|
+
};
|
|
4385
4391
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4386
4392
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4387
4393
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1134,7 +1134,7 @@ var deserializeAws_restJson1BatchDeleteRecipeVersionCommandError = function (out
|
|
|
1134
1134
|
case 0:
|
|
1135
1135
|
_a = [__assign({}, output)];
|
|
1136
1136
|
_c = {};
|
|
1137
|
-
return [4,
|
|
1137
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1138
1138
|
case 1:
|
|
1139
1139
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1140
1140
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1198,7 +1198,7 @@ var deserializeAws_restJson1CreateDatasetCommandError = function (output, contex
|
|
|
1198
1198
|
case 0:
|
|
1199
1199
|
_a = [__assign({}, output)];
|
|
1200
1200
|
_c = {};
|
|
1201
|
-
return [4,
|
|
1201
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1202
1202
|
case 1:
|
|
1203
1203
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1204
1204
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1266,7 +1266,7 @@ var deserializeAws_restJson1CreateProfileJobCommandError = function (output, con
|
|
|
1266
1266
|
case 0:
|
|
1267
1267
|
_a = [__assign({}, output)];
|
|
1268
1268
|
_c = {};
|
|
1269
|
-
return [4,
|
|
1269
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1270
1270
|
case 1:
|
|
1271
1271
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1272
1272
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1338,7 +1338,7 @@ var deserializeAws_restJson1CreateProjectCommandError = function (output, contex
|
|
|
1338
1338
|
case 0:
|
|
1339
1339
|
_a = [__assign({}, output)];
|
|
1340
1340
|
_c = {};
|
|
1341
|
-
return [4,
|
|
1341
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1342
1342
|
case 1:
|
|
1343
1343
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1344
1344
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1406,7 +1406,7 @@ var deserializeAws_restJson1CreateRecipeCommandError = function (output, context
|
|
|
1406
1406
|
case 0:
|
|
1407
1407
|
_a = [__assign({}, output)];
|
|
1408
1408
|
_c = {};
|
|
1409
|
-
return [4,
|
|
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);
|
|
@@ -1470,7 +1470,7 @@ var deserializeAws_restJson1CreateRecipeJobCommandError = function (output, cont
|
|
|
1470
1470
|
case 0:
|
|
1471
1471
|
_a = [__assign({}, output)];
|
|
1472
1472
|
_c = {};
|
|
1473
|
-
return [4,
|
|
1473
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1474
1474
|
case 1:
|
|
1475
1475
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1476
1476
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1542,7 +1542,7 @@ var deserializeAws_restJson1CreateRulesetCommandError = function (output, contex
|
|
|
1542
1542
|
case 0:
|
|
1543
1543
|
_a = [__assign({}, output)];
|
|
1544
1544
|
_c = {};
|
|
1545
|
-
return [4,
|
|
1545
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1546
1546
|
case 1:
|
|
1547
1547
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1548
1548
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1606,7 +1606,7 @@ var deserializeAws_restJson1CreateScheduleCommandError = function (output, conte
|
|
|
1606
1606
|
case 0:
|
|
1607
1607
|
_a = [__assign({}, output)];
|
|
1608
1608
|
_c = {};
|
|
1609
|
-
return [4,
|
|
1609
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1610
1610
|
case 1:
|
|
1611
1611
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1612
1612
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1670,7 +1670,7 @@ var deserializeAws_restJson1DeleteDatasetCommandError = function (output, contex
|
|
|
1670
1670
|
case 0:
|
|
1671
1671
|
_a = [__assign({}, output)];
|
|
1672
1672
|
_c = {};
|
|
1673
|
-
return [4,
|
|
1673
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1674
1674
|
case 1:
|
|
1675
1675
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1676
1676
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1734,7 +1734,7 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
|
|
|
1734
1734
|
case 0:
|
|
1735
1735
|
_a = [__assign({}, output)];
|
|
1736
1736
|
_c = {};
|
|
1737
|
-
return [4,
|
|
1737
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1738
1738
|
case 1:
|
|
1739
1739
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1740
1740
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1798,7 +1798,7 @@ var deserializeAws_restJson1DeleteProjectCommandError = function (output, contex
|
|
|
1798
1798
|
case 0:
|
|
1799
1799
|
_a = [__assign({}, output)];
|
|
1800
1800
|
_c = {};
|
|
1801
|
-
return [4,
|
|
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);
|
|
@@ -1865,7 +1865,7 @@ var deserializeAws_restJson1DeleteRecipeVersionCommandError = function (output,
|
|
|
1865
1865
|
case 0:
|
|
1866
1866
|
_a = [__assign({}, output)];
|
|
1867
1867
|
_c = {};
|
|
1868
|
-
return [4,
|
|
1868
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1869
1869
|
case 1:
|
|
1870
1870
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1871
1871
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1929,7 +1929,7 @@ var deserializeAws_restJson1DeleteRulesetCommandError = function (output, contex
|
|
|
1929
1929
|
case 0:
|
|
1930
1930
|
_a = [__assign({}, output)];
|
|
1931
1931
|
_c = {};
|
|
1932
|
-
return [4,
|
|
1932
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1933
1933
|
case 1:
|
|
1934
1934
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1935
1935
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1993,7 +1993,7 @@ var deserializeAws_restJson1DeleteScheduleCommandError = function (output, conte
|
|
|
1993
1993
|
case 0:
|
|
1994
1994
|
_a = [__assign({}, output)];
|
|
1995
1995
|
_c = {};
|
|
1996
|
-
return [4,
|
|
1996
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1997
1997
|
case 1:
|
|
1998
1998
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1999
1999
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2086,7 +2086,7 @@ var deserializeAws_restJson1DescribeDatasetCommandError = function (output, cont
|
|
|
2086
2086
|
case 0:
|
|
2087
2087
|
_a = [__assign({}, output)];
|
|
2088
2088
|
_c = {};
|
|
2089
|
-
return [4,
|
|
2089
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2090
2090
|
case 1:
|
|
2091
2091
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2092
2092
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2215,7 +2215,7 @@ var deserializeAws_restJson1DescribeJobCommandError = function (output, context)
|
|
|
2215
2215
|
case 0:
|
|
2216
2216
|
_a = [__assign({}, output)];
|
|
2217
2217
|
_c = {};
|
|
2218
|
-
return [4,
|
|
2218
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2219
2219
|
case 1:
|
|
2220
2220
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2221
2221
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2329,7 +2329,7 @@ var deserializeAws_restJson1DescribeJobRunCommandError = function (output, conte
|
|
|
2329
2329
|
case 0:
|
|
2330
2330
|
_a = [__assign({}, output)];
|
|
2331
2331
|
_c = {};
|
|
2332
|
-
return [4,
|
|
2332
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2333
2333
|
case 1:
|
|
2334
2334
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2335
2335
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2428,7 +2428,7 @@ var deserializeAws_restJson1DescribeProjectCommandError = function (output, cont
|
|
|
2428
2428
|
case 0:
|
|
2429
2429
|
_a = [__assign({}, output)];
|
|
2430
2430
|
_c = {};
|
|
2431
|
-
return [4,
|
|
2431
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2432
2432
|
case 1:
|
|
2433
2433
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2434
2434
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2524,7 +2524,7 @@ var deserializeAws_restJson1DescribeRecipeCommandError = function (output, conte
|
|
|
2524
2524
|
case 0:
|
|
2525
2525
|
_a = [__assign({}, output)];
|
|
2526
2526
|
_c = {};
|
|
2527
|
-
return [4,
|
|
2527
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2528
2528
|
case 1:
|
|
2529
2529
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2530
2530
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2611,7 +2611,7 @@ var deserializeAws_restJson1DescribeRulesetCommandError = function (output, cont
|
|
|
2611
2611
|
case 0:
|
|
2612
2612
|
_a = [__assign({}, output)];
|
|
2613
2613
|
_c = {};
|
|
2614
|
-
return [4,
|
|
2614
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2615
2615
|
case 1:
|
|
2616
2616
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2617
2617
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2695,7 +2695,7 @@ var deserializeAws_restJson1DescribeScheduleCommandError = function (output, con
|
|
|
2695
2695
|
case 0:
|
|
2696
2696
|
_a = [__assign({}, output)];
|
|
2697
2697
|
_c = {};
|
|
2698
|
-
return [4,
|
|
2698
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2699
2699
|
case 1:
|
|
2700
2700
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2701
2701
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2758,7 +2758,7 @@ var deserializeAws_restJson1ListDatasetsCommandError = function (output, context
|
|
|
2758
2758
|
case 0:
|
|
2759
2759
|
_a = [__assign({}, output)];
|
|
2760
2760
|
_c = {};
|
|
2761
|
-
return [4,
|
|
2761
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2762
2762
|
case 1:
|
|
2763
2763
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2764
2764
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2817,7 +2817,7 @@ var deserializeAws_restJson1ListJobRunsCommandError = function (output, context)
|
|
|
2817
2817
|
case 0:
|
|
2818
2818
|
_a = [__assign({}, output)];
|
|
2819
2819
|
_c = {};
|
|
2820
|
-
return [4,
|
|
2820
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2821
2821
|
case 1:
|
|
2822
2822
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2823
2823
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2880,7 +2880,7 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
2880
2880
|
case 0:
|
|
2881
2881
|
_a = [__assign({}, output)];
|
|
2882
2882
|
_c = {};
|
|
2883
|
-
return [4,
|
|
2883
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2884
2884
|
case 1:
|
|
2885
2885
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2886
2886
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2939,7 +2939,7 @@ var deserializeAws_restJson1ListProjectsCommandError = function (output, context
|
|
|
2939
2939
|
case 0:
|
|
2940
2940
|
_a = [__assign({}, output)];
|
|
2941
2941
|
_c = {};
|
|
2942
|
-
return [4,
|
|
2942
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2943
2943
|
case 1:
|
|
2944
2944
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2945
2945
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2998,7 +2998,7 @@ var deserializeAws_restJson1ListRecipesCommandError = function (output, context)
|
|
|
2998
2998
|
case 0:
|
|
2999
2999
|
_a = [__assign({}, output)];
|
|
3000
3000
|
_c = {};
|
|
3001
|
-
return [4,
|
|
3001
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3002
3002
|
case 1:
|
|
3003
3003
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3004
3004
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3057,7 +3057,7 @@ var deserializeAws_restJson1ListRecipeVersionsCommandError = function (output, c
|
|
|
3057
3057
|
case 0:
|
|
3058
3058
|
_a = [__assign({}, output)];
|
|
3059
3059
|
_c = {};
|
|
3060
|
-
return [4,
|
|
3060
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3061
3061
|
case 1:
|
|
3062
3062
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3063
3063
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3116,7 +3116,7 @@ var deserializeAws_restJson1ListRulesetsCommandError = function (output, context
|
|
|
3116
3116
|
case 0:
|
|
3117
3117
|
_a = [__assign({}, output)];
|
|
3118
3118
|
_c = {};
|
|
3119
|
-
return [4,
|
|
3119
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3120
3120
|
case 1:
|
|
3121
3121
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3122
3122
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3179,7 +3179,7 @@ var deserializeAws_restJson1ListSchedulesCommandError = function (output, contex
|
|
|
3179
3179
|
case 0:
|
|
3180
3180
|
_a = [__assign({}, output)];
|
|
3181
3181
|
_c = {};
|
|
3182
|
-
return [4,
|
|
3182
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3183
3183
|
case 1:
|
|
3184
3184
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3185
3185
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3235,7 +3235,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3235
3235
|
case 0:
|
|
3236
3236
|
_a = [__assign({}, output)];
|
|
3237
3237
|
_c = {};
|
|
3238
|
-
return [4,
|
|
3238
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3239
3239
|
case 1:
|
|
3240
3240
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3241
3241
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3299,7 +3299,7 @@ var deserializeAws_restJson1PublishRecipeCommandError = function (output, contex
|
|
|
3299
3299
|
case 0:
|
|
3300
3300
|
_a = [__assign({}, output)];
|
|
3301
3301
|
_c = {};
|
|
3302
|
-
return [4,
|
|
3302
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3303
3303
|
case 1:
|
|
3304
3304
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3305
3305
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3369,7 +3369,7 @@ var deserializeAws_restJson1SendProjectSessionActionCommandError = function (out
|
|
|
3369
3369
|
case 0:
|
|
3370
3370
|
_a = [__assign({}, output)];
|
|
3371
3371
|
_c = {};
|
|
3372
|
-
return [4,
|
|
3372
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3373
3373
|
case 1:
|
|
3374
3374
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3375
3375
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3433,7 +3433,7 @@ var deserializeAws_restJson1StartJobRunCommandError = function (output, context)
|
|
|
3433
3433
|
case 0:
|
|
3434
3434
|
_a = [__assign({}, output)];
|
|
3435
3435
|
_c = {};
|
|
3436
|
-
return [4,
|
|
3436
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3437
3437
|
case 1:
|
|
3438
3438
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3439
3439
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3504,7 +3504,7 @@ var deserializeAws_restJson1StartProjectSessionCommandError = function (output,
|
|
|
3504
3504
|
case 0:
|
|
3505
3505
|
_a = [__assign({}, output)];
|
|
3506
3506
|
_c = {};
|
|
3507
|
-
return [4,
|
|
3507
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3508
3508
|
case 1:
|
|
3509
3509
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3510
3510
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3572,7 +3572,7 @@ var deserializeAws_restJson1StopJobRunCommandError = function (output, context)
|
|
|
3572
3572
|
case 0:
|
|
3573
3573
|
_a = [__assign({}, output)];
|
|
3574
3574
|
_c = {};
|
|
3575
|
-
return [4,
|
|
3575
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3576
3576
|
case 1:
|
|
3577
3577
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3578
3578
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3627,7 +3627,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3627
3627
|
case 0:
|
|
3628
3628
|
_a = [__assign({}, output)];
|
|
3629
3629
|
_c = {};
|
|
3630
|
-
return [4,
|
|
3630
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3631
3631
|
case 1:
|
|
3632
3632
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3633
3633
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3686,7 +3686,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3686
3686
|
case 0:
|
|
3687
3687
|
_a = [__assign({}, output)];
|
|
3688
3688
|
_c = {};
|
|
3689
|
-
return [4,
|
|
3689
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3690
3690
|
case 1:
|
|
3691
3691
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3692
3692
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3750,7 +3750,7 @@ var deserializeAws_restJson1UpdateDatasetCommandError = function (output, contex
|
|
|
3750
3750
|
case 0:
|
|
3751
3751
|
_a = [__assign({}, output)];
|
|
3752
3752
|
_c = {};
|
|
3753
|
-
return [4,
|
|
3753
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3754
3754
|
case 1:
|
|
3755
3755
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3756
3756
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3814,7 +3814,7 @@ var deserializeAws_restJson1UpdateProfileJobCommandError = function (output, con
|
|
|
3814
3814
|
case 0:
|
|
3815
3815
|
_a = [__assign({}, output)];
|
|
3816
3816
|
_c = {};
|
|
3817
|
-
return [4,
|
|
3817
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3818
3818
|
case 1:
|
|
3819
3819
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3820
3820
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3881,7 +3881,7 @@ var deserializeAws_restJson1UpdateProjectCommandError = function (output, contex
|
|
|
3881
3881
|
case 0:
|
|
3882
3882
|
_a = [__assign({}, output)];
|
|
3883
3883
|
_c = {};
|
|
3884
|
-
return [4,
|
|
3884
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3885
3885
|
case 1:
|
|
3886
3886
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3887
3887
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3941,7 +3941,7 @@ var deserializeAws_restJson1UpdateRecipeCommandError = function (output, context
|
|
|
3941
3941
|
case 0:
|
|
3942
3942
|
_a = [__assign({}, output)];
|
|
3943
3943
|
_c = {};
|
|
3944
|
-
return [4,
|
|
3944
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3945
3945
|
case 1:
|
|
3946
3946
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3947
3947
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4001,7 +4001,7 @@ var deserializeAws_restJson1UpdateRecipeJobCommandError = function (output, cont
|
|
|
4001
4001
|
case 0:
|
|
4002
4002
|
_a = [__assign({}, output)];
|
|
4003
4003
|
_c = {};
|
|
4004
|
-
return [4,
|
|
4004
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4005
4005
|
case 1:
|
|
4006
4006
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4007
4007
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4065,7 +4065,7 @@ var deserializeAws_restJson1UpdateRulesetCommandError = function (output, contex
|
|
|
4065
4065
|
case 0:
|
|
4066
4066
|
_a = [__assign({}, output)];
|
|
4067
4067
|
_c = {};
|
|
4068
|
-
return [4,
|
|
4068
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4069
4069
|
case 1:
|
|
4070
4070
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4071
4071
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4125,7 +4125,7 @@ var deserializeAws_restJson1UpdateScheduleCommandError = function (output, conte
|
|
|
4125
4125
|
case 0:
|
|
4126
4126
|
_a = [__assign({}, output)];
|
|
4127
4127
|
_c = {};
|
|
4128
|
-
return [4,
|
|
4128
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4129
4129
|
case 1:
|
|
4130
4130
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4131
4131
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5372,6 +5372,19 @@ var parseBody = function (streamBody, context) {
|
|
|
5372
5372
|
return {};
|
|
5373
5373
|
});
|
|
5374
5374
|
};
|
|
5375
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5376
|
+
var value;
|
|
5377
|
+
var _a;
|
|
5378
|
+
return __generator(this, function (_b) {
|
|
5379
|
+
switch (_b.label) {
|
|
5380
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
5381
|
+
case 1:
|
|
5382
|
+
value = _b.sent();
|
|
5383
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5384
|
+
return [2, value];
|
|
5385
|
+
}
|
|
5386
|
+
});
|
|
5387
|
+
}); };
|
|
5375
5388
|
var loadRestJsonErrorCode = function (output, data) {
|
|
5376
5389
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
5377
5390
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-databrew",
|
|
3
3
|
"description": "AWS SDK for JavaScript Databrew Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|