@aws-sdk/client-m2 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 +38 -32
- package/dist-es/M2.js +130 -137
- package/dist-es/M2Client.js +22 -28
- package/dist-es/commands/CancelBatchJobExecutionCommand.js +21 -28
- package/dist-es/commands/CreateApplicationCommand.js +21 -28
- package/dist-es/commands/CreateDataSetImportTaskCommand.js +21 -28
- package/dist-es/commands/CreateDeploymentCommand.js +21 -28
- package/dist-es/commands/CreateEnvironmentCommand.js +21 -28
- package/dist-es/commands/DeleteApplicationCommand.js +21 -28
- package/dist-es/commands/DeleteApplicationFromEnvironmentCommand.js +21 -28
- package/dist-es/commands/DeleteEnvironmentCommand.js +21 -28
- package/dist-es/commands/GetApplicationCommand.js +21 -28
- package/dist-es/commands/GetApplicationVersionCommand.js +21 -28
- package/dist-es/commands/GetBatchJobExecutionCommand.js +21 -28
- package/dist-es/commands/GetDataSetDetailsCommand.js +21 -28
- package/dist-es/commands/GetDataSetImportTaskCommand.js +21 -28
- package/dist-es/commands/GetDeploymentCommand.js +21 -28
- package/dist-es/commands/GetEnvironmentCommand.js +21 -28
- package/dist-es/commands/ListApplicationVersionsCommand.js +21 -28
- package/dist-es/commands/ListApplicationsCommand.js +21 -28
- package/dist-es/commands/ListBatchJobDefinitionsCommand.js +21 -28
- package/dist-es/commands/ListBatchJobExecutionsCommand.js +21 -28
- package/dist-es/commands/ListDataSetImportHistoryCommand.js +21 -28
- package/dist-es/commands/ListDataSetsCommand.js +21 -28
- package/dist-es/commands/ListDeploymentsCommand.js +21 -28
- package/dist-es/commands/ListEngineVersionsCommand.js +21 -28
- package/dist-es/commands/ListEnvironmentsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/StartApplicationCommand.js +21 -28
- package/dist-es/commands/StartBatchJobCommand.js +21 -28
- package/dist-es/commands/StopApplicationCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateApplicationCommand.js +21 -28
- package/dist-es/commands/UpdateEnvironmentCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/M2ServiceException.js +5 -10
- package/dist-es/models/models_0.js +417 -227
- package/dist-es/pagination/ListApplicationVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
- package/dist-es/pagination/ListBatchJobDefinitionsPaginator.js +25 -68
- package/dist-es/pagination/ListBatchJobExecutionsPaginator.js +25 -68
- package/dist-es/pagination/ListDataSetImportHistoryPaginator.js +25 -68
- package/dist-es/pagination/ListDataSetsPaginator.js +25 -68
- package/dist-es/pagination/ListDeploymentsPaginator.js +25 -68
- package/dist-es/pagination/ListEngineVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListEnvironmentsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2710 -3681
- 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-m2
|
|
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-m2
|
|
@@ -738,7 +738,7 @@ exports.deserializeAws_restJson1CancelBatchJobExecutionCommand = deserializeAws_
|
|
|
738
738
|
const deserializeAws_restJson1CancelBatchJobExecutionCommandError = async (output, context) => {
|
|
739
739
|
const parsedOutput = {
|
|
740
740
|
...output,
|
|
741
|
-
body: await
|
|
741
|
+
body: await parseErrorBody(output.body, context),
|
|
742
742
|
};
|
|
743
743
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
744
|
switch (errorCode) {
|
|
@@ -793,7 +793,7 @@ exports.deserializeAws_restJson1CreateApplicationCommand = deserializeAws_restJs
|
|
|
793
793
|
const deserializeAws_restJson1CreateApplicationCommandError = async (output, context) => {
|
|
794
794
|
const parsedOutput = {
|
|
795
795
|
...output,
|
|
796
|
-
body: await
|
|
796
|
+
body: await parseErrorBody(output.body, context),
|
|
797
797
|
};
|
|
798
798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
799
|
switch (errorCode) {
|
|
@@ -842,7 +842,7 @@ exports.deserializeAws_restJson1CreateDataSetImportTaskCommand = deserializeAws_
|
|
|
842
842
|
const deserializeAws_restJson1CreateDataSetImportTaskCommandError = async (output, context) => {
|
|
843
843
|
const parsedOutput = {
|
|
844
844
|
...output,
|
|
845
|
-
body: await
|
|
845
|
+
body: await parseErrorBody(output.body, context),
|
|
846
846
|
};
|
|
847
847
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
848
|
switch (errorCode) {
|
|
@@ -894,7 +894,7 @@ exports.deserializeAws_restJson1CreateDeploymentCommand = deserializeAws_restJso
|
|
|
894
894
|
const deserializeAws_restJson1CreateDeploymentCommandError = async (output, context) => {
|
|
895
895
|
const parsedOutput = {
|
|
896
896
|
...output,
|
|
897
|
-
body: await
|
|
897
|
+
body: await parseErrorBody(output.body, context),
|
|
898
898
|
};
|
|
899
899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
900
|
switch (errorCode) {
|
|
@@ -946,7 +946,7 @@ exports.deserializeAws_restJson1CreateEnvironmentCommand = deserializeAws_restJs
|
|
|
946
946
|
const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, context) => {
|
|
947
947
|
const parsedOutput = {
|
|
948
948
|
...output,
|
|
949
|
-
body: await
|
|
949
|
+
body: await parseErrorBody(output.body, context),
|
|
950
950
|
};
|
|
951
951
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
952
952
|
switch (errorCode) {
|
|
@@ -992,7 +992,7 @@ exports.deserializeAws_restJson1DeleteApplicationCommand = deserializeAws_restJs
|
|
|
992
992
|
const deserializeAws_restJson1DeleteApplicationCommandError = async (output, context) => {
|
|
993
993
|
const parsedOutput = {
|
|
994
994
|
...output,
|
|
995
|
-
body: await
|
|
995
|
+
body: await parseErrorBody(output.body, context),
|
|
996
996
|
};
|
|
997
997
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
998
998
|
switch (errorCode) {
|
|
@@ -1035,7 +1035,7 @@ exports.deserializeAws_restJson1DeleteApplicationFromEnvironmentCommand = deseri
|
|
|
1035
1035
|
const deserializeAws_restJson1DeleteApplicationFromEnvironmentCommandError = async (output, context) => {
|
|
1036
1036
|
const parsedOutput = {
|
|
1037
1037
|
...output,
|
|
1038
|
-
body: await
|
|
1038
|
+
body: await parseErrorBody(output.body, context),
|
|
1039
1039
|
};
|
|
1040
1040
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
1041
|
switch (errorCode) {
|
|
@@ -1081,7 +1081,7 @@ exports.deserializeAws_restJson1DeleteEnvironmentCommand = deserializeAws_restJs
|
|
|
1081
1081
|
const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, context) => {
|
|
1082
1082
|
const parsedOutput = {
|
|
1083
1083
|
...output,
|
|
1084
|
-
body: await
|
|
1084
|
+
body: await parseErrorBody(output.body, context),
|
|
1085
1085
|
};
|
|
1086
1086
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
1087
|
switch (errorCode) {
|
|
@@ -1178,7 +1178,7 @@ exports.deserializeAws_restJson1GetApplicationCommand = deserializeAws_restJson1
|
|
|
1178
1178
|
const deserializeAws_restJson1GetApplicationCommandError = async (output, context) => {
|
|
1179
1179
|
const parsedOutput = {
|
|
1180
1180
|
...output,
|
|
1181
|
-
body: await
|
|
1181
|
+
body: await parseErrorBody(output.body, context),
|
|
1182
1182
|
};
|
|
1183
1183
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
1184
|
switch (errorCode) {
|
|
@@ -1242,7 +1242,7 @@ exports.deserializeAws_restJson1GetApplicationVersionCommand = deserializeAws_re
|
|
|
1242
1242
|
const deserializeAws_restJson1GetApplicationVersionCommandError = async (output, context) => {
|
|
1243
1243
|
const parsedOutput = {
|
|
1244
1244
|
...output,
|
|
1245
|
-
body: await
|
|
1245
|
+
body: await parseErrorBody(output.body, context),
|
|
1246
1246
|
};
|
|
1247
1247
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
1248
|
switch (errorCode) {
|
|
@@ -1315,7 +1315,7 @@ exports.deserializeAws_restJson1GetBatchJobExecutionCommand = deserializeAws_res
|
|
|
1315
1315
|
const deserializeAws_restJson1GetBatchJobExecutionCommandError = async (output, context) => {
|
|
1316
1316
|
const parsedOutput = {
|
|
1317
1317
|
...output,
|
|
1318
|
-
body: await
|
|
1318
|
+
body: await parseErrorBody(output.body, context),
|
|
1319
1319
|
};
|
|
1320
1320
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
1321
|
switch (errorCode) {
|
|
@@ -1382,7 +1382,7 @@ exports.deserializeAws_restJson1GetDataSetDetailsCommand = deserializeAws_restJs
|
|
|
1382
1382
|
const deserializeAws_restJson1GetDataSetDetailsCommandError = async (output, context) => {
|
|
1383
1383
|
const parsedOutput = {
|
|
1384
1384
|
...output,
|
|
1385
|
-
body: await
|
|
1385
|
+
body: await parseErrorBody(output.body, context),
|
|
1386
1386
|
};
|
|
1387
1387
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
1388
|
switch (errorCode) {
|
|
@@ -1434,7 +1434,7 @@ exports.deserializeAws_restJson1GetDataSetImportTaskCommand = deserializeAws_res
|
|
|
1434
1434
|
const deserializeAws_restJson1GetDataSetImportTaskCommandError = async (output, context) => {
|
|
1435
1435
|
const parsedOutput = {
|
|
1436
1436
|
...output,
|
|
1437
|
-
body: await
|
|
1437
|
+
body: await parseErrorBody(output.body, context),
|
|
1438
1438
|
};
|
|
1439
1439
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1440
1440
|
switch (errorCode) {
|
|
@@ -1498,7 +1498,7 @@ exports.deserializeAws_restJson1GetDeploymentCommand = deserializeAws_restJson1G
|
|
|
1498
1498
|
const deserializeAws_restJson1GetDeploymentCommandError = async (output, context) => {
|
|
1499
1499
|
const parsedOutput = {
|
|
1500
1500
|
...output,
|
|
1501
|
-
body: await
|
|
1501
|
+
body: await parseErrorBody(output.body, context),
|
|
1502
1502
|
};
|
|
1503
1503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
1504
|
switch (errorCode) {
|
|
@@ -1604,7 +1604,7 @@ exports.deserializeAws_restJson1GetEnvironmentCommand = deserializeAws_restJson1
|
|
|
1604
1604
|
const deserializeAws_restJson1GetEnvironmentCommandError = async (output, context) => {
|
|
1605
1605
|
const parsedOutput = {
|
|
1606
1606
|
...output,
|
|
1607
|
-
body: await
|
|
1607
|
+
body: await parseErrorBody(output.body, context),
|
|
1608
1608
|
};
|
|
1609
1609
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
1610
|
switch (errorCode) {
|
|
@@ -1653,7 +1653,7 @@ exports.deserializeAws_restJson1ListApplicationsCommand = deserializeAws_restJso
|
|
|
1653
1653
|
const deserializeAws_restJson1ListApplicationsCommandError = async (output, context) => {
|
|
1654
1654
|
const parsedOutput = {
|
|
1655
1655
|
...output,
|
|
1656
|
-
body: await
|
|
1656
|
+
body: await parseErrorBody(output.body, context),
|
|
1657
1657
|
};
|
|
1658
1658
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
1659
|
switch (errorCode) {
|
|
@@ -1699,7 +1699,7 @@ exports.deserializeAws_restJson1ListApplicationVersionsCommand = deserializeAws_
|
|
|
1699
1699
|
const deserializeAws_restJson1ListApplicationVersionsCommandError = async (output, context) => {
|
|
1700
1700
|
const parsedOutput = {
|
|
1701
1701
|
...output,
|
|
1702
|
-
body: await
|
|
1702
|
+
body: await parseErrorBody(output.body, context),
|
|
1703
1703
|
};
|
|
1704
1704
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1705
1705
|
switch (errorCode) {
|
|
@@ -1748,7 +1748,7 @@ exports.deserializeAws_restJson1ListBatchJobDefinitionsCommand = deserializeAws_
|
|
|
1748
1748
|
const deserializeAws_restJson1ListBatchJobDefinitionsCommandError = async (output, context) => {
|
|
1749
1749
|
const parsedOutput = {
|
|
1750
1750
|
...output,
|
|
1751
|
-
body: await
|
|
1751
|
+
body: await parseErrorBody(output.body, context),
|
|
1752
1752
|
};
|
|
1753
1753
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1754
1754
|
switch (errorCode) {
|
|
@@ -1797,7 +1797,7 @@ exports.deserializeAws_restJson1ListBatchJobExecutionsCommand = deserializeAws_r
|
|
|
1797
1797
|
const deserializeAws_restJson1ListBatchJobExecutionsCommandError = async (output, context) => {
|
|
1798
1798
|
const parsedOutput = {
|
|
1799
1799
|
...output,
|
|
1800
|
-
body: await
|
|
1800
|
+
body: await parseErrorBody(output.body, context),
|
|
1801
1801
|
};
|
|
1802
1802
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1803
1803
|
switch (errorCode) {
|
|
@@ -1846,7 +1846,7 @@ exports.deserializeAws_restJson1ListDataSetImportHistoryCommand = deserializeAws
|
|
|
1846
1846
|
const deserializeAws_restJson1ListDataSetImportHistoryCommandError = async (output, context) => {
|
|
1847
1847
|
const parsedOutput = {
|
|
1848
1848
|
...output,
|
|
1849
|
-
body: await
|
|
1849
|
+
body: await parseErrorBody(output.body, context),
|
|
1850
1850
|
};
|
|
1851
1851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
1852
|
switch (errorCode) {
|
|
@@ -1895,7 +1895,7 @@ exports.deserializeAws_restJson1ListDataSetsCommand = deserializeAws_restJson1Li
|
|
|
1895
1895
|
const deserializeAws_restJson1ListDataSetsCommandError = async (output, context) => {
|
|
1896
1896
|
const parsedOutput = {
|
|
1897
1897
|
...output,
|
|
1898
|
-
body: await
|
|
1898
|
+
body: await parseErrorBody(output.body, context),
|
|
1899
1899
|
};
|
|
1900
1900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1901
1901
|
switch (errorCode) {
|
|
@@ -1944,7 +1944,7 @@ exports.deserializeAws_restJson1ListDeploymentsCommand = deserializeAws_restJson
|
|
|
1944
1944
|
const deserializeAws_restJson1ListDeploymentsCommandError = async (output, context) => {
|
|
1945
1945
|
const parsedOutput = {
|
|
1946
1946
|
...output,
|
|
1947
|
-
body: await
|
|
1947
|
+
body: await parseErrorBody(output.body, context),
|
|
1948
1948
|
};
|
|
1949
1949
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
1950
|
switch (errorCode) {
|
|
@@ -1993,7 +1993,7 @@ exports.deserializeAws_restJson1ListEngineVersionsCommand = deserializeAws_restJ
|
|
|
1993
1993
|
const deserializeAws_restJson1ListEngineVersionsCommandError = async (output, context) => {
|
|
1994
1994
|
const parsedOutput = {
|
|
1995
1995
|
...output,
|
|
1996
|
-
body: await
|
|
1996
|
+
body: await parseErrorBody(output.body, context),
|
|
1997
1997
|
};
|
|
1998
1998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1999
1999
|
switch (errorCode) {
|
|
@@ -2039,7 +2039,7 @@ exports.deserializeAws_restJson1ListEnvironmentsCommand = deserializeAws_restJso
|
|
|
2039
2039
|
const deserializeAws_restJson1ListEnvironmentsCommandError = 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) {
|
|
@@ -2082,7 +2082,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2082
2082
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2083
2083
|
const parsedOutput = {
|
|
2084
2084
|
...output,
|
|
2085
|
-
body: await
|
|
2085
|
+
body: await parseErrorBody(output.body, context),
|
|
2086
2086
|
};
|
|
2087
2087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2088
2088
|
switch (errorCode) {
|
|
@@ -2125,7 +2125,7 @@ exports.deserializeAws_restJson1StartApplicationCommand = deserializeAws_restJso
|
|
|
2125
2125
|
const deserializeAws_restJson1StartApplicationCommandError = async (output, context) => {
|
|
2126
2126
|
const parsedOutput = {
|
|
2127
2127
|
...output,
|
|
2128
|
-
body: await
|
|
2128
|
+
body: await parseErrorBody(output.body, context),
|
|
2129
2129
|
};
|
|
2130
2130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2131
2131
|
switch (errorCode) {
|
|
@@ -2174,7 +2174,7 @@ exports.deserializeAws_restJson1StartBatchJobCommand = deserializeAws_restJson1S
|
|
|
2174
2174
|
const deserializeAws_restJson1StartBatchJobCommandError = async (output, context) => {
|
|
2175
2175
|
const parsedOutput = {
|
|
2176
2176
|
...output,
|
|
2177
|
-
body: await
|
|
2177
|
+
body: await parseErrorBody(output.body, context),
|
|
2178
2178
|
};
|
|
2179
2179
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
2180
|
switch (errorCode) {
|
|
@@ -2220,7 +2220,7 @@ exports.deserializeAws_restJson1StopApplicationCommand = deserializeAws_restJson
|
|
|
2220
2220
|
const deserializeAws_restJson1StopApplicationCommandError = async (output, context) => {
|
|
2221
2221
|
const parsedOutput = {
|
|
2222
2222
|
...output,
|
|
2223
|
-
body: await
|
|
2223
|
+
body: await parseErrorBody(output.body, context),
|
|
2224
2224
|
};
|
|
2225
2225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2226
2226
|
switch (errorCode) {
|
|
@@ -2266,7 +2266,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2266
2266
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2267
2267
|
const parsedOutput = {
|
|
2268
2268
|
...output,
|
|
2269
|
-
body: await
|
|
2269
|
+
body: await parseErrorBody(output.body, context),
|
|
2270
2270
|
};
|
|
2271
2271
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
2272
|
switch (errorCode) {
|
|
@@ -2312,7 +2312,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2312
2312
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2313
2313
|
const parsedOutput = {
|
|
2314
2314
|
...output,
|
|
2315
|
-
body: await
|
|
2315
|
+
body: await parseErrorBody(output.body, context),
|
|
2316
2316
|
};
|
|
2317
2317
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2318
2318
|
switch (errorCode) {
|
|
@@ -2358,7 +2358,7 @@ exports.deserializeAws_restJson1UpdateApplicationCommand = deserializeAws_restJs
|
|
|
2358
2358
|
const deserializeAws_restJson1UpdateApplicationCommandError = async (output, context) => {
|
|
2359
2359
|
const parsedOutput = {
|
|
2360
2360
|
...output,
|
|
2361
|
-
body: await
|
|
2361
|
+
body: await parseErrorBody(output.body, context),
|
|
2362
2362
|
};
|
|
2363
2363
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2364
2364
|
switch (errorCode) {
|
|
@@ -2407,7 +2407,7 @@ exports.deserializeAws_restJson1UpdateEnvironmentCommand = deserializeAws_restJs
|
|
|
2407
2407
|
const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, context) => {
|
|
2408
2408
|
const parsedOutput = {
|
|
2409
2409
|
...output,
|
|
2410
|
-
body: await
|
|
2410
|
+
body: await parseErrorBody(output.body, context),
|
|
2411
2411
|
};
|
|
2412
2412
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2413
2413
|
switch (errorCode) {
|
|
@@ -3207,6 +3207,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3207
3207
|
}
|
|
3208
3208
|
return {};
|
|
3209
3209
|
});
|
|
3210
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3211
|
+
var _a;
|
|
3212
|
+
const value = await parseBody(errorBody, context);
|
|
3213
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3214
|
+
return value;
|
|
3215
|
+
};
|
|
3210
3216
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3211
3217
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3212
3218
|
const sanitizeErrorCode = (rawValue) => {
|