@aws-sdk/client-amplify 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 +43 -37
- package/dist-es/protocols/Aws_restJson1.js +50 -37
- 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-amplify
|
|
@@ -896,7 +896,7 @@ exports.deserializeAws_restJson1CreateAppCommand = deserializeAws_restJson1Creat
|
|
|
896
896
|
const deserializeAws_restJson1CreateAppCommandError = async (output, context) => {
|
|
897
897
|
const parsedOutput = {
|
|
898
898
|
...output,
|
|
899
|
-
body: await
|
|
899
|
+
body: await parseErrorBody(output.body, context),
|
|
900
900
|
};
|
|
901
901
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
902
|
switch (errorCode) {
|
|
@@ -942,7 +942,7 @@ exports.deserializeAws_restJson1CreateBackendEnvironmentCommand = deserializeAws
|
|
|
942
942
|
const deserializeAws_restJson1CreateBackendEnvironmentCommandError = async (output, context) => {
|
|
943
943
|
const parsedOutput = {
|
|
944
944
|
...output,
|
|
945
|
-
body: await
|
|
945
|
+
body: await parseErrorBody(output.body, context),
|
|
946
946
|
};
|
|
947
947
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
948
948
|
switch (errorCode) {
|
|
@@ -988,7 +988,7 @@ exports.deserializeAws_restJson1CreateBranchCommand = deserializeAws_restJson1Cr
|
|
|
988
988
|
const deserializeAws_restJson1CreateBranchCommandError = async (output, context) => {
|
|
989
989
|
const parsedOutput = {
|
|
990
990
|
...output,
|
|
991
|
-
body: await
|
|
991
|
+
body: await parseErrorBody(output.body, context),
|
|
992
992
|
};
|
|
993
993
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
994
994
|
switch (errorCode) {
|
|
@@ -1043,7 +1043,7 @@ exports.deserializeAws_restJson1CreateDeploymentCommand = deserializeAws_restJso
|
|
|
1043
1043
|
const deserializeAws_restJson1CreateDeploymentCommandError = async (output, context) => {
|
|
1044
1044
|
const parsedOutput = {
|
|
1045
1045
|
...output,
|
|
1046
|
-
body: await
|
|
1046
|
+
body: await parseErrorBody(output.body, context),
|
|
1047
1047
|
};
|
|
1048
1048
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1049
1049
|
switch (errorCode) {
|
|
@@ -1086,7 +1086,7 @@ exports.deserializeAws_restJson1CreateDomainAssociationCommand = deserializeAws_
|
|
|
1086
1086
|
const deserializeAws_restJson1CreateDomainAssociationCommandError = async (output, context) => {
|
|
1087
1087
|
const parsedOutput = {
|
|
1088
1088
|
...output,
|
|
1089
|
-
body: await
|
|
1089
|
+
body: await parseErrorBody(output.body, context),
|
|
1090
1090
|
};
|
|
1091
1091
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
1092
|
switch (errorCode) {
|
|
@@ -1135,7 +1135,7 @@ exports.deserializeAws_restJson1CreateWebhookCommand = deserializeAws_restJson1C
|
|
|
1135
1135
|
const deserializeAws_restJson1CreateWebhookCommandError = async (output, context) => {
|
|
1136
1136
|
const parsedOutput = {
|
|
1137
1137
|
...output,
|
|
1138
|
-
body: await
|
|
1138
|
+
body: await parseErrorBody(output.body, context),
|
|
1139
1139
|
};
|
|
1140
1140
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1141
1141
|
switch (errorCode) {
|
|
@@ -1184,7 +1184,7 @@ exports.deserializeAws_restJson1DeleteAppCommand = deserializeAws_restJson1Delet
|
|
|
1184
1184
|
const deserializeAws_restJson1DeleteAppCommandError = async (output, context) => {
|
|
1185
1185
|
const parsedOutput = {
|
|
1186
1186
|
...output,
|
|
1187
|
-
body: await
|
|
1187
|
+
body: await parseErrorBody(output.body, context),
|
|
1188
1188
|
};
|
|
1189
1189
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
1190
|
switch (errorCode) {
|
|
@@ -1230,7 +1230,7 @@ exports.deserializeAws_restJson1DeleteBackendEnvironmentCommand = deserializeAws
|
|
|
1230
1230
|
const deserializeAws_restJson1DeleteBackendEnvironmentCommandError = 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_restJson1DeleteBranchCommand = deserializeAws_restJson1De
|
|
|
1276
1276
|
const deserializeAws_restJson1DeleteBranchCommandError = 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) {
|
|
@@ -1322,7 +1322,7 @@ exports.deserializeAws_restJson1DeleteDomainAssociationCommand = deserializeAws_
|
|
|
1322
1322
|
const deserializeAws_restJson1DeleteDomainAssociationCommandError = async (output, context) => {
|
|
1323
1323
|
const parsedOutput = {
|
|
1324
1324
|
...output,
|
|
1325
|
-
body: await
|
|
1325
|
+
body: await parseErrorBody(output.body, context),
|
|
1326
1326
|
};
|
|
1327
1327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1328
1328
|
switch (errorCode) {
|
|
@@ -1368,7 +1368,7 @@ exports.deserializeAws_restJson1DeleteJobCommand = deserializeAws_restJson1Delet
|
|
|
1368
1368
|
const deserializeAws_restJson1DeleteJobCommandError = async (output, context) => {
|
|
1369
1369
|
const parsedOutput = {
|
|
1370
1370
|
...output,
|
|
1371
|
-
body: await
|
|
1371
|
+
body: await parseErrorBody(output.body, context),
|
|
1372
1372
|
};
|
|
1373
1373
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1374
1374
|
switch (errorCode) {
|
|
@@ -1414,7 +1414,7 @@ exports.deserializeAws_restJson1DeleteWebhookCommand = deserializeAws_restJson1D
|
|
|
1414
1414
|
const deserializeAws_restJson1DeleteWebhookCommandError = async (output, context) => {
|
|
1415
1415
|
const parsedOutput = {
|
|
1416
1416
|
...output,
|
|
1417
|
-
body: await
|
|
1417
|
+
body: await parseErrorBody(output.body, context),
|
|
1418
1418
|
};
|
|
1419
1419
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1420
1420
|
switch (errorCode) {
|
|
@@ -1460,7 +1460,7 @@ exports.deserializeAws_restJson1GenerateAccessLogsCommand = deserializeAws_restJ
|
|
|
1460
1460
|
const deserializeAws_restJson1GenerateAccessLogsCommandError = async (output, context) => {
|
|
1461
1461
|
const parsedOutput = {
|
|
1462
1462
|
...output,
|
|
1463
|
-
body: await
|
|
1463
|
+
body: await parseErrorBody(output.body, context),
|
|
1464
1464
|
};
|
|
1465
1465
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
1466
|
switch (errorCode) {
|
|
@@ -1503,7 +1503,7 @@ exports.deserializeAws_restJson1GetAppCommand = deserializeAws_restJson1GetAppCo
|
|
|
1503
1503
|
const deserializeAws_restJson1GetAppCommandError = async (output, context) => {
|
|
1504
1504
|
const parsedOutput = {
|
|
1505
1505
|
...output,
|
|
1506
|
-
body: await
|
|
1506
|
+
body: await parseErrorBody(output.body, context),
|
|
1507
1507
|
};
|
|
1508
1508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1509
1509
|
switch (errorCode) {
|
|
@@ -1549,7 +1549,7 @@ exports.deserializeAws_restJson1GetArtifactUrlCommand = deserializeAws_restJson1
|
|
|
1549
1549
|
const deserializeAws_restJson1GetArtifactUrlCommandError = async (output, context) => {
|
|
1550
1550
|
const parsedOutput = {
|
|
1551
1551
|
...output,
|
|
1552
|
-
body: await
|
|
1552
|
+
body: await parseErrorBody(output.body, context),
|
|
1553
1553
|
};
|
|
1554
1554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
1555
|
switch (errorCode) {
|
|
@@ -1595,7 +1595,7 @@ exports.deserializeAws_restJson1GetBackendEnvironmentCommand = deserializeAws_re
|
|
|
1595
1595
|
const deserializeAws_restJson1GetBackendEnvironmentCommandError = async (output, context) => {
|
|
1596
1596
|
const parsedOutput = {
|
|
1597
1597
|
...output,
|
|
1598
|
-
body: await
|
|
1598
|
+
body: await parseErrorBody(output.body, context),
|
|
1599
1599
|
};
|
|
1600
1600
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1601
1601
|
switch (errorCode) {
|
|
@@ -1638,7 +1638,7 @@ exports.deserializeAws_restJson1GetBranchCommand = deserializeAws_restJson1GetBr
|
|
|
1638
1638
|
const deserializeAws_restJson1GetBranchCommandError = async (output, context) => {
|
|
1639
1639
|
const parsedOutput = {
|
|
1640
1640
|
...output,
|
|
1641
|
-
body: await
|
|
1641
|
+
body: await parseErrorBody(output.body, context),
|
|
1642
1642
|
};
|
|
1643
1643
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1644
1644
|
switch (errorCode) {
|
|
@@ -1681,7 +1681,7 @@ exports.deserializeAws_restJson1GetDomainAssociationCommand = deserializeAws_res
|
|
|
1681
1681
|
const deserializeAws_restJson1GetDomainAssociationCommandError = async (output, context) => {
|
|
1682
1682
|
const parsedOutput = {
|
|
1683
1683
|
...output,
|
|
1684
|
-
body: await
|
|
1684
|
+
body: await parseErrorBody(output.body, context),
|
|
1685
1685
|
};
|
|
1686
1686
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1687
1687
|
switch (errorCode) {
|
|
@@ -1724,7 +1724,7 @@ exports.deserializeAws_restJson1GetJobCommand = deserializeAws_restJson1GetJobCo
|
|
|
1724
1724
|
const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
1725
1725
|
const parsedOutput = {
|
|
1726
1726
|
...output,
|
|
1727
|
-
body: await
|
|
1727
|
+
body: await parseErrorBody(output.body, context),
|
|
1728
1728
|
};
|
|
1729
1729
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1730
1730
|
switch (errorCode) {
|
|
@@ -1770,7 +1770,7 @@ exports.deserializeAws_restJson1GetWebhookCommand = deserializeAws_restJson1GetW
|
|
|
1770
1770
|
const deserializeAws_restJson1GetWebhookCommandError = async (output, context) => {
|
|
1771
1771
|
const parsedOutput = {
|
|
1772
1772
|
...output,
|
|
1773
|
-
body: await
|
|
1773
|
+
body: await parseErrorBody(output.body, context),
|
|
1774
1774
|
};
|
|
1775
1775
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1776
1776
|
switch (errorCode) {
|
|
@@ -1819,7 +1819,7 @@ exports.deserializeAws_restJson1ListAppsCommand = deserializeAws_restJson1ListAp
|
|
|
1819
1819
|
const deserializeAws_restJson1ListAppsCommandError = async (output, context) => {
|
|
1820
1820
|
const parsedOutput = {
|
|
1821
1821
|
...output,
|
|
1822
|
-
body: await
|
|
1822
|
+
body: await parseErrorBody(output.body, context),
|
|
1823
1823
|
};
|
|
1824
1824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1825
1825
|
switch (errorCode) {
|
|
@@ -1862,7 +1862,7 @@ exports.deserializeAws_restJson1ListArtifactsCommand = deserializeAws_restJson1L
|
|
|
1862
1862
|
const deserializeAws_restJson1ListArtifactsCommandError = async (output, context) => {
|
|
1863
1863
|
const parsedOutput = {
|
|
1864
1864
|
...output,
|
|
1865
|
-
body: await
|
|
1865
|
+
body: await parseErrorBody(output.body, context),
|
|
1866
1866
|
};
|
|
1867
1867
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
1868
|
switch (errorCode) {
|
|
@@ -1908,7 +1908,7 @@ exports.deserializeAws_restJson1ListBackendEnvironmentsCommand = deserializeAws_
|
|
|
1908
1908
|
const deserializeAws_restJson1ListBackendEnvironmentsCommandError = async (output, context) => {
|
|
1909
1909
|
const parsedOutput = {
|
|
1910
1910
|
...output,
|
|
1911
|
-
body: await
|
|
1911
|
+
body: await parseErrorBody(output.body, context),
|
|
1912
1912
|
};
|
|
1913
1913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
1914
|
switch (errorCode) {
|
|
@@ -1951,7 +1951,7 @@ exports.deserializeAws_restJson1ListBranchesCommand = deserializeAws_restJson1Li
|
|
|
1951
1951
|
const deserializeAws_restJson1ListBranchesCommandError = async (output, context) => {
|
|
1952
1952
|
const parsedOutput = {
|
|
1953
1953
|
...output,
|
|
1954
|
-
body: await
|
|
1954
|
+
body: await parseErrorBody(output.body, context),
|
|
1955
1955
|
};
|
|
1956
1956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
1957
|
switch (errorCode) {
|
|
@@ -1994,7 +1994,7 @@ exports.deserializeAws_restJson1ListDomainAssociationsCommand = deserializeAws_r
|
|
|
1994
1994
|
const deserializeAws_restJson1ListDomainAssociationsCommandError = async (output, context) => {
|
|
1995
1995
|
const parsedOutput = {
|
|
1996
1996
|
...output,
|
|
1997
|
-
body: await
|
|
1997
|
+
body: await parseErrorBody(output.body, context),
|
|
1998
1998
|
};
|
|
1999
1999
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2000
2000
|
switch (errorCode) {
|
|
@@ -2037,7 +2037,7 @@ exports.deserializeAws_restJson1ListJobsCommand = deserializeAws_restJson1ListJo
|
|
|
2037
2037
|
const deserializeAws_restJson1ListJobsCommandError = async (output, context) => {
|
|
2038
2038
|
const parsedOutput = {
|
|
2039
2039
|
...output,
|
|
2040
|
-
body: await
|
|
2040
|
+
body: await parseErrorBody(output.body, context),
|
|
2041
2041
|
};
|
|
2042
2042
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
2043
|
switch (errorCode) {
|
|
@@ -2080,7 +2080,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2080
2080
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2081
2081
|
const parsedOutput = {
|
|
2082
2082
|
...output,
|
|
2083
|
-
body: await
|
|
2083
|
+
body: await parseErrorBody(output.body, context),
|
|
2084
2084
|
};
|
|
2085
2085
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2086
2086
|
switch (errorCode) {
|
|
@@ -2123,7 +2123,7 @@ exports.deserializeAws_restJson1ListWebhooksCommand = deserializeAws_restJson1Li
|
|
|
2123
2123
|
const deserializeAws_restJson1ListWebhooksCommandError = async (output, context) => {
|
|
2124
2124
|
const parsedOutput = {
|
|
2125
2125
|
...output,
|
|
2126
|
-
body: await
|
|
2126
|
+
body: await parseErrorBody(output.body, context),
|
|
2127
2127
|
};
|
|
2128
2128
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2129
2129
|
switch (errorCode) {
|
|
@@ -2166,7 +2166,7 @@ exports.deserializeAws_restJson1StartDeploymentCommand = deserializeAws_restJson
|
|
|
2166
2166
|
const deserializeAws_restJson1StartDeploymentCommandError = async (output, context) => {
|
|
2167
2167
|
const parsedOutput = {
|
|
2168
2168
|
...output,
|
|
2169
|
-
body: await
|
|
2169
|
+
body: await parseErrorBody(output.body, context),
|
|
2170
2170
|
};
|
|
2171
2171
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
2172
|
switch (errorCode) {
|
|
@@ -2212,7 +2212,7 @@ exports.deserializeAws_restJson1StartJobCommand = deserializeAws_restJson1StartJ
|
|
|
2212
2212
|
const deserializeAws_restJson1StartJobCommandError = async (output, context) => {
|
|
2213
2213
|
const parsedOutput = {
|
|
2214
2214
|
...output,
|
|
2215
|
-
body: await
|
|
2215
|
+
body: await parseErrorBody(output.body, context),
|
|
2216
2216
|
};
|
|
2217
2217
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2218
2218
|
switch (errorCode) {
|
|
@@ -2258,7 +2258,7 @@ exports.deserializeAws_restJson1StopJobCommand = deserializeAws_restJson1StopJob
|
|
|
2258
2258
|
const deserializeAws_restJson1StopJobCommandError = async (output, context) => {
|
|
2259
2259
|
const parsedOutput = {
|
|
2260
2260
|
...output,
|
|
2261
|
-
body: await
|
|
2261
|
+
body: await parseErrorBody(output.body, context),
|
|
2262
2262
|
};
|
|
2263
2263
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2264
2264
|
switch (errorCode) {
|
|
@@ -2301,7 +2301,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2301
2301
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2302
2302
|
const parsedOutput = {
|
|
2303
2303
|
...output,
|
|
2304
|
-
body: await
|
|
2304
|
+
body: await parseErrorBody(output.body, context),
|
|
2305
2305
|
};
|
|
2306
2306
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2307
2307
|
switch (errorCode) {
|
|
@@ -2338,7 +2338,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2338
2338
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2339
2339
|
const parsedOutput = {
|
|
2340
2340
|
...output,
|
|
2341
|
-
body: await
|
|
2341
|
+
body: await parseErrorBody(output.body, context),
|
|
2342
2342
|
};
|
|
2343
2343
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
2344
|
switch (errorCode) {
|
|
@@ -2378,7 +2378,7 @@ exports.deserializeAws_restJson1UpdateAppCommand = deserializeAws_restJson1Updat
|
|
|
2378
2378
|
const deserializeAws_restJson1UpdateAppCommandError = async (output, context) => {
|
|
2379
2379
|
const parsedOutput = {
|
|
2380
2380
|
...output,
|
|
2381
|
-
body: await
|
|
2381
|
+
body: await parseErrorBody(output.body, context),
|
|
2382
2382
|
};
|
|
2383
2383
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2384
2384
|
switch (errorCode) {
|
|
@@ -2421,7 +2421,7 @@ exports.deserializeAws_restJson1UpdateBranchCommand = deserializeAws_restJson1Up
|
|
|
2421
2421
|
const deserializeAws_restJson1UpdateBranchCommandError = async (output, context) => {
|
|
2422
2422
|
const parsedOutput = {
|
|
2423
2423
|
...output,
|
|
2424
|
-
body: await
|
|
2424
|
+
body: await parseErrorBody(output.body, context),
|
|
2425
2425
|
};
|
|
2426
2426
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2427
2427
|
switch (errorCode) {
|
|
@@ -2467,7 +2467,7 @@ exports.deserializeAws_restJson1UpdateDomainAssociationCommand = deserializeAws_
|
|
|
2467
2467
|
const deserializeAws_restJson1UpdateDomainAssociationCommandError = async (output, context) => {
|
|
2468
2468
|
const parsedOutput = {
|
|
2469
2469
|
...output,
|
|
2470
|
-
body: await
|
|
2470
|
+
body: await parseErrorBody(output.body, context),
|
|
2471
2471
|
};
|
|
2472
2472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2473
2473
|
switch (errorCode) {
|
|
@@ -2513,7 +2513,7 @@ exports.deserializeAws_restJson1UpdateWebhookCommand = deserializeAws_restJson1U
|
|
|
2513
2513
|
const deserializeAws_restJson1UpdateWebhookCommandError = async (output, context) => {
|
|
2514
2514
|
const parsedOutput = {
|
|
2515
2515
|
...output,
|
|
2516
|
-
body: await
|
|
2516
|
+
body: await parseErrorBody(output.body, context),
|
|
2517
2517
|
};
|
|
2518
2518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2519
2519
|
switch (errorCode) {
|
|
@@ -3142,6 +3142,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3142
3142
|
}
|
|
3143
3143
|
return {};
|
|
3144
3144
|
});
|
|
3145
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3146
|
+
var _a;
|
|
3147
|
+
const value = await parseBody(errorBody, context);
|
|
3148
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3149
|
+
return value;
|
|
3150
|
+
};
|
|
3145
3151
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3146
3152
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3147
3153
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -980,7 +980,7 @@ var deserializeAws_restJson1CreateAppCommandError = function (output, context) {
|
|
|
980
980
|
case 0:
|
|
981
981
|
_a = [__assign({}, output)];
|
|
982
982
|
_c = {};
|
|
983
|
-
return [4,
|
|
983
|
+
return [4, parseErrorBody(output.body, context)];
|
|
984
984
|
case 1:
|
|
985
985
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
986
986
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1052,7 +1052,7 @@ var deserializeAws_restJson1CreateBackendEnvironmentCommandError = function (out
|
|
|
1052
1052
|
case 0:
|
|
1053
1053
|
_a = [__assign({}, output)];
|
|
1054
1054
|
_c = {};
|
|
1055
|
-
return [4,
|
|
1055
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1056
1056
|
case 1:
|
|
1057
1057
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1058
1058
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1124,7 +1124,7 @@ var deserializeAws_restJson1CreateBranchCommandError = function (output, context
|
|
|
1124
1124
|
case 0:
|
|
1125
1125
|
_a = [__assign({}, output)];
|
|
1126
1126
|
_c = {};
|
|
1127
|
-
return [4,
|
|
1127
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1128
1128
|
case 1:
|
|
1129
1129
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1130
1130
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1206,7 +1206,7 @@ var deserializeAws_restJson1CreateDeploymentCommandError = function (output, con
|
|
|
1206
1206
|
case 0:
|
|
1207
1207
|
_a = [__assign({}, output)];
|
|
1208
1208
|
_c = {};
|
|
1209
|
-
return [4,
|
|
1209
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1210
1210
|
case 1:
|
|
1211
1211
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1212
1212
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1274,7 +1274,7 @@ var deserializeAws_restJson1CreateDomainAssociationCommandError = function (outp
|
|
|
1274
1274
|
case 0:
|
|
1275
1275
|
_a = [__assign({}, output)];
|
|
1276
1276
|
_c = {};
|
|
1277
|
-
return [4,
|
|
1277
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1278
1278
|
case 1:
|
|
1279
1279
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1280
1280
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1350,7 +1350,7 @@ var deserializeAws_restJson1CreateWebhookCommandError = function (output, contex
|
|
|
1350
1350
|
case 0:
|
|
1351
1351
|
_a = [__assign({}, output)];
|
|
1352
1352
|
_c = {};
|
|
1353
|
-
return [4,
|
|
1353
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1354
1354
|
case 1:
|
|
1355
1355
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1356
1356
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1426,7 +1426,7 @@ var deserializeAws_restJson1DeleteAppCommandError = function (output, context) {
|
|
|
1426
1426
|
case 0:
|
|
1427
1427
|
_a = [__assign({}, output)];
|
|
1428
1428
|
_c = {};
|
|
1429
|
-
return [4,
|
|
1429
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1430
1430
|
case 1:
|
|
1431
1431
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1432
1432
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1498,7 +1498,7 @@ var deserializeAws_restJson1DeleteBackendEnvironmentCommandError = function (out
|
|
|
1498
1498
|
case 0:
|
|
1499
1499
|
_a = [__assign({}, output)];
|
|
1500
1500
|
_c = {};
|
|
1501
|
-
return [4,
|
|
1501
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1502
1502
|
case 1:
|
|
1503
1503
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1504
1504
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1570,7 +1570,7 @@ var deserializeAws_restJson1DeleteBranchCommandError = function (output, context
|
|
|
1570
1570
|
case 0:
|
|
1571
1571
|
_a = [__assign({}, output)];
|
|
1572
1572
|
_c = {};
|
|
1573
|
-
return [4,
|
|
1573
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1574
1574
|
case 1:
|
|
1575
1575
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1576
1576
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1642,7 +1642,7 @@ var deserializeAws_restJson1DeleteDomainAssociationCommandError = function (outp
|
|
|
1642
1642
|
case 0:
|
|
1643
1643
|
_a = [__assign({}, output)];
|
|
1644
1644
|
_c = {};
|
|
1645
|
-
return [4,
|
|
1645
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1646
1646
|
case 1:
|
|
1647
1647
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1648
1648
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1714,7 +1714,7 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
|
|
|
1714
1714
|
case 0:
|
|
1715
1715
|
_a = [__assign({}, output)];
|
|
1716
1716
|
_c = {};
|
|
1717
|
-
return [4,
|
|
1717
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1718
1718
|
case 1:
|
|
1719
1719
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1720
1720
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1786,7 +1786,7 @@ var deserializeAws_restJson1DeleteWebhookCommandError = function (output, contex
|
|
|
1786
1786
|
case 0:
|
|
1787
1787
|
_a = [__assign({}, output)];
|
|
1788
1788
|
_c = {};
|
|
1789
|
-
return [4,
|
|
1789
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1790
1790
|
case 1:
|
|
1791
1791
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1792
1792
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1858,7 +1858,7 @@ var deserializeAws_restJson1GenerateAccessLogsCommandError = function (output, c
|
|
|
1858
1858
|
case 0:
|
|
1859
1859
|
_a = [__assign({}, output)];
|
|
1860
1860
|
_c = {};
|
|
1861
|
-
return [4,
|
|
1861
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1862
1862
|
case 1:
|
|
1863
1863
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1864
1864
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1926,7 +1926,7 @@ var deserializeAws_restJson1GetAppCommandError = function (output, context) { re
|
|
|
1926
1926
|
case 0:
|
|
1927
1927
|
_a = [__assign({}, output)];
|
|
1928
1928
|
_c = {};
|
|
1929
|
-
return [4,
|
|
1929
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1930
1930
|
case 1:
|
|
1931
1931
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1932
1932
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1997,7 +1997,7 @@ var deserializeAws_restJson1GetArtifactUrlCommandError = function (output, conte
|
|
|
1997
1997
|
case 0:
|
|
1998
1998
|
_a = [__assign({}, output)];
|
|
1999
1999
|
_c = {};
|
|
2000
|
-
return [4,
|
|
2000
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2001
2001
|
case 1:
|
|
2002
2002
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2003
2003
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2069,7 +2069,7 @@ var deserializeAws_restJson1GetBackendEnvironmentCommandError = function (output
|
|
|
2069
2069
|
case 0:
|
|
2070
2070
|
_a = [__assign({}, output)];
|
|
2071
2071
|
_c = {};
|
|
2072
|
-
return [4,
|
|
2072
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2073
2073
|
case 1:
|
|
2074
2074
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2075
2075
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2137,7 +2137,7 @@ var deserializeAws_restJson1GetBranchCommandError = function (output, context) {
|
|
|
2137
2137
|
case 0:
|
|
2138
2138
|
_a = [__assign({}, output)];
|
|
2139
2139
|
_c = {};
|
|
2140
|
-
return [4,
|
|
2140
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2141
2141
|
case 1:
|
|
2142
2142
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2143
2143
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2205,7 +2205,7 @@ var deserializeAws_restJson1GetDomainAssociationCommandError = function (output,
|
|
|
2205
2205
|
case 0:
|
|
2206
2206
|
_a = [__assign({}, output)];
|
|
2207
2207
|
_c = {};
|
|
2208
|
-
return [4,
|
|
2208
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2209
2209
|
case 1:
|
|
2210
2210
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2211
2211
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2273,7 +2273,7 @@ var deserializeAws_restJson1GetJobCommandError = function (output, context) { re
|
|
|
2273
2273
|
case 0:
|
|
2274
2274
|
_a = [__assign({}, output)];
|
|
2275
2275
|
_c = {};
|
|
2276
|
-
return [4,
|
|
2276
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2277
2277
|
case 1:
|
|
2278
2278
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2279
2279
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2345,7 +2345,7 @@ var deserializeAws_restJson1GetWebhookCommandError = function (output, context)
|
|
|
2345
2345
|
case 0:
|
|
2346
2346
|
_a = [__assign({}, output)];
|
|
2347
2347
|
_c = {};
|
|
2348
|
-
return [4,
|
|
2348
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2349
2349
|
case 1:
|
|
2350
2350
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2351
2351
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2420,7 +2420,7 @@ var deserializeAws_restJson1ListAppsCommandError = function (output, context) {
|
|
|
2420
2420
|
case 0:
|
|
2421
2421
|
_a = [__assign({}, output)];
|
|
2422
2422
|
_c = {};
|
|
2423
|
-
return [4,
|
|
2423
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2424
2424
|
case 1:
|
|
2425
2425
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2426
2426
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2487,7 +2487,7 @@ var deserializeAws_restJson1ListArtifactsCommandError = function (output, contex
|
|
|
2487
2487
|
case 0:
|
|
2488
2488
|
_a = [__assign({}, output)];
|
|
2489
2489
|
_c = {};
|
|
2490
|
-
return [4,
|
|
2490
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2491
2491
|
case 1:
|
|
2492
2492
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2493
2493
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2558,7 +2558,7 @@ var deserializeAws_restJson1ListBackendEnvironmentsCommandError = function (outp
|
|
|
2558
2558
|
case 0:
|
|
2559
2559
|
_a = [__assign({}, output)];
|
|
2560
2560
|
_c = {};
|
|
2561
|
-
return [4,
|
|
2561
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2562
2562
|
case 1:
|
|
2563
2563
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2564
2564
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2625,7 +2625,7 @@ var deserializeAws_restJson1ListBranchesCommandError = function (output, context
|
|
|
2625
2625
|
case 0:
|
|
2626
2626
|
_a = [__assign({}, output)];
|
|
2627
2627
|
_c = {};
|
|
2628
|
-
return [4,
|
|
2628
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2629
2629
|
case 1:
|
|
2630
2630
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2631
2631
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2692,7 +2692,7 @@ var deserializeAws_restJson1ListDomainAssociationsCommandError = function (outpu
|
|
|
2692
2692
|
case 0:
|
|
2693
2693
|
_a = [__assign({}, output)];
|
|
2694
2694
|
_c = {};
|
|
2695
|
-
return [4,
|
|
2695
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2696
2696
|
case 1:
|
|
2697
2697
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2698
2698
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2759,7 +2759,7 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
2759
2759
|
case 0:
|
|
2760
2760
|
_a = [__assign({}, output)];
|
|
2761
2761
|
_c = {};
|
|
2762
|
-
return [4,
|
|
2762
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2763
2763
|
case 1:
|
|
2764
2764
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2765
2765
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2827,7 +2827,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2827
2827
|
case 0:
|
|
2828
2828
|
_a = [__assign({}, output)];
|
|
2829
2829
|
_c = {};
|
|
2830
|
-
return [4,
|
|
2830
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2831
2831
|
case 1:
|
|
2832
2832
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2833
2833
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2894,7 +2894,7 @@ var deserializeAws_restJson1ListWebhooksCommandError = function (output, context
|
|
|
2894
2894
|
case 0:
|
|
2895
2895
|
_a = [__assign({}, output)];
|
|
2896
2896
|
_c = {};
|
|
2897
|
-
return [4,
|
|
2897
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2898
2898
|
case 1:
|
|
2899
2899
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2900
2900
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2962,7 +2962,7 @@ var deserializeAws_restJson1StartDeploymentCommandError = function (output, cont
|
|
|
2962
2962
|
case 0:
|
|
2963
2963
|
_a = [__assign({}, output)];
|
|
2964
2964
|
_c = {};
|
|
2965
|
-
return [4,
|
|
2965
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2966
2966
|
case 1:
|
|
2967
2967
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2968
2968
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3034,7 +3034,7 @@ var deserializeAws_restJson1StartJobCommandError = function (output, context) {
|
|
|
3034
3034
|
case 0:
|
|
3035
3035
|
_a = [__assign({}, output)];
|
|
3036
3036
|
_c = {};
|
|
3037
|
-
return [4,
|
|
3037
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3038
3038
|
case 1:
|
|
3039
3039
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3040
3040
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3106,7 +3106,7 @@ var deserializeAws_restJson1StopJobCommandError = function (output, context) { r
|
|
|
3106
3106
|
case 0:
|
|
3107
3107
|
_a = [__assign({}, output)];
|
|
3108
3108
|
_c = {};
|
|
3109
|
-
return [4,
|
|
3109
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3110
3110
|
case 1:
|
|
3111
3111
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3112
3112
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3173,7 +3173,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3173
3173
|
case 0:
|
|
3174
3174
|
_a = [__assign({}, output)];
|
|
3175
3175
|
_c = {};
|
|
3176
|
-
return [4,
|
|
3176
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3177
3177
|
case 1:
|
|
3178
3178
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3179
3179
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3232,7 +3232,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3232
3232
|
case 0:
|
|
3233
3233
|
_a = [__assign({}, output)];
|
|
3234
3234
|
_c = {};
|
|
3235
|
-
return [4,
|
|
3235
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3236
3236
|
case 1:
|
|
3237
3237
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3238
3238
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3296,7 +3296,7 @@ var deserializeAws_restJson1UpdateAppCommandError = function (output, context) {
|
|
|
3296
3296
|
case 0:
|
|
3297
3297
|
_a = [__assign({}, output)];
|
|
3298
3298
|
_c = {};
|
|
3299
|
-
return [4,
|
|
3299
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3300
3300
|
case 1:
|
|
3301
3301
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3302
3302
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3364,7 +3364,7 @@ var deserializeAws_restJson1UpdateBranchCommandError = function (output, context
|
|
|
3364
3364
|
case 0:
|
|
3365
3365
|
_a = [__assign({}, output)];
|
|
3366
3366
|
_c = {};
|
|
3367
|
-
return [4,
|
|
3367
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3368
3368
|
case 1:
|
|
3369
3369
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3370
3370
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3436,7 +3436,7 @@ var deserializeAws_restJson1UpdateDomainAssociationCommandError = function (outp
|
|
|
3436
3436
|
case 0:
|
|
3437
3437
|
_a = [__assign({}, output)];
|
|
3438
3438
|
_c = {};
|
|
3439
|
-
return [4,
|
|
3439
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3440
3440
|
case 1:
|
|
3441
3441
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3442
3442
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3508,7 +3508,7 @@ var deserializeAws_restJson1UpdateWebhookCommandError = function (output, contex
|
|
|
3508
3508
|
case 0:
|
|
3509
3509
|
_a = [__assign({}, output)];
|
|
3510
3510
|
_c = {};
|
|
3511
|
-
return [4,
|
|
3511
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3512
3512
|
case 1:
|
|
3513
3513
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3514
3514
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4130,6 +4130,19 @@ var parseBody = function (streamBody, context) {
|
|
|
4130
4130
|
return {};
|
|
4131
4131
|
});
|
|
4132
4132
|
};
|
|
4133
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4134
|
+
var value;
|
|
4135
|
+
var _a;
|
|
4136
|
+
return __generator(this, function (_b) {
|
|
4137
|
+
switch (_b.label) {
|
|
4138
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
4139
|
+
case 1:
|
|
4140
|
+
value = _b.sent();
|
|
4141
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4142
|
+
return [2, value];
|
|
4143
|
+
}
|
|
4144
|
+
});
|
|
4145
|
+
}); };
|
|
4133
4146
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4134
4147
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4135
4148
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-amplify",
|
|
3
3
|
"description": "AWS SDK for JavaScript Amplify 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",
|