@aws-sdk/client-databrew 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +50 -44
- package/dist-es/DataBrew.js +178 -185
- package/dist-es/DataBrewClient.js +23 -29
- package/dist-es/commands/BatchDeleteRecipeVersionCommand.js +21 -28
- package/dist-es/commands/CreateDatasetCommand.js +21 -28
- package/dist-es/commands/CreateProfileJobCommand.js +21 -28
- package/dist-es/commands/CreateProjectCommand.js +21 -28
- package/dist-es/commands/CreateRecipeCommand.js +21 -28
- package/dist-es/commands/CreateRecipeJobCommand.js +21 -28
- package/dist-es/commands/CreateRulesetCommand.js +21 -28
- package/dist-es/commands/CreateScheduleCommand.js +21 -28
- package/dist-es/commands/DeleteDatasetCommand.js +21 -28
- package/dist-es/commands/DeleteJobCommand.js +21 -28
- package/dist-es/commands/DeleteProjectCommand.js +21 -28
- package/dist-es/commands/DeleteRecipeVersionCommand.js +21 -28
- package/dist-es/commands/DeleteRulesetCommand.js +21 -28
- package/dist-es/commands/DeleteScheduleCommand.js +21 -28
- package/dist-es/commands/DescribeDatasetCommand.js +21 -28
- package/dist-es/commands/DescribeJobCommand.js +21 -28
- package/dist-es/commands/DescribeJobRunCommand.js +21 -28
- package/dist-es/commands/DescribeProjectCommand.js +21 -28
- package/dist-es/commands/DescribeRecipeCommand.js +21 -28
- package/dist-es/commands/DescribeRulesetCommand.js +21 -28
- package/dist-es/commands/DescribeScheduleCommand.js +21 -28
- package/dist-es/commands/ListDatasetsCommand.js +21 -28
- package/dist-es/commands/ListJobRunsCommand.js +21 -28
- package/dist-es/commands/ListJobsCommand.js +21 -28
- package/dist-es/commands/ListProjectsCommand.js +21 -28
- package/dist-es/commands/ListRecipeVersionsCommand.js +21 -28
- package/dist-es/commands/ListRecipesCommand.js +21 -28
- package/dist-es/commands/ListRulesetsCommand.js +21 -28
- package/dist-es/commands/ListSchedulesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PublishRecipeCommand.js +21 -28
- package/dist-es/commands/SendProjectSessionActionCommand.js +21 -28
- package/dist-es/commands/StartJobRunCommand.js +21 -28
- package/dist-es/commands/StartProjectSessionCommand.js +21 -28
- package/dist-es/commands/StopJobRunCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateDatasetCommand.js +21 -28
- package/dist-es/commands/UpdateProfileJobCommand.js +21 -28
- package/dist-es/commands/UpdateProjectCommand.js +21 -28
- package/dist-es/commands/UpdateRecipeCommand.js +21 -28
- package/dist-es/commands/UpdateRecipeJobCommand.js +21 -28
- package/dist-es/commands/UpdateRulesetCommand.js +21 -28
- package/dist-es/commands/UpdateScheduleCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DataBrewServiceException.js +5 -10
- package/dist-es/models/models_0.js +476 -207
- package/dist-es/pagination/ListDatasetsPaginator.js +25 -68
- package/dist-es/pagination/ListJobRunsPaginator.js +25 -68
- package/dist-es/pagination/ListJobsPaginator.js +25 -68
- package/dist-es/pagination/ListProjectsPaginator.js +25 -68
- package/dist-es/pagination/ListRecipeVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListRecipesPaginator.js +25 -68
- package/dist-es/pagination/ListRulesetsPaginator.js +25 -68
- package/dist-es/pagination/ListSchedulesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +3505 -4585
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-databrew
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-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) => {
|