@aws-sdk/client-amplify 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 +43 -37
- package/dist-es/Amplify.js +150 -157
- package/dist-es/AmplifyClient.js +22 -28
- package/dist-es/commands/CreateAppCommand.js +21 -28
- package/dist-es/commands/CreateBackendEnvironmentCommand.js +21 -28
- package/dist-es/commands/CreateBranchCommand.js +21 -28
- package/dist-es/commands/CreateDeploymentCommand.js +21 -28
- package/dist-es/commands/CreateDomainAssociationCommand.js +21 -28
- package/dist-es/commands/CreateWebhookCommand.js +21 -28
- package/dist-es/commands/DeleteAppCommand.js +21 -28
- package/dist-es/commands/DeleteBackendEnvironmentCommand.js +21 -28
- package/dist-es/commands/DeleteBranchCommand.js +21 -28
- package/dist-es/commands/DeleteDomainAssociationCommand.js +21 -28
- package/dist-es/commands/DeleteJobCommand.js +21 -28
- package/dist-es/commands/DeleteWebhookCommand.js +21 -28
- package/dist-es/commands/GenerateAccessLogsCommand.js +21 -28
- package/dist-es/commands/GetAppCommand.js +21 -28
- package/dist-es/commands/GetArtifactUrlCommand.js +21 -28
- package/dist-es/commands/GetBackendEnvironmentCommand.js +21 -28
- package/dist-es/commands/GetBranchCommand.js +21 -28
- package/dist-es/commands/GetDomainAssociationCommand.js +21 -28
- package/dist-es/commands/GetJobCommand.js +21 -28
- package/dist-es/commands/GetWebhookCommand.js +21 -28
- package/dist-es/commands/ListAppsCommand.js +21 -28
- package/dist-es/commands/ListArtifactsCommand.js +21 -28
- package/dist-es/commands/ListBackendEnvironmentsCommand.js +21 -28
- package/dist-es/commands/ListBranchesCommand.js +21 -28
- package/dist-es/commands/ListDomainAssociationsCommand.js +21 -28
- package/dist-es/commands/ListJobsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListWebhooksCommand.js +21 -28
- package/dist-es/commands/StartDeploymentCommand.js +21 -28
- package/dist-es/commands/StartJobCommand.js +21 -28
- package/dist-es/commands/StopJobCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAppCommand.js +21 -28
- package/dist-es/commands/UpdateBranchCommand.js +21 -28
- package/dist-es/commands/UpdateDomainAssociationCommand.js +21 -28
- package/dist-es/commands/UpdateWebhookCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/AmplifyServiceException.js +5 -10
- package/dist-es/models/models_0.js +379 -173
- package/dist-es/protocols/Aws_restJson1.js +2648 -3712
- 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-amplify
|
|
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-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) => {
|