@aws-sdk/client-amplifybackend 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 +37 -31
- package/dist-es/AmplifyBackend.js +126 -133
- package/dist-es/AmplifyBackendClient.js +22 -28
- package/dist-es/commands/CloneBackendCommand.js +21 -28
- package/dist-es/commands/CreateBackendAPICommand.js +21 -28
- package/dist-es/commands/CreateBackendAuthCommand.js +21 -28
- package/dist-es/commands/CreateBackendCommand.js +21 -28
- package/dist-es/commands/CreateBackendConfigCommand.js +21 -28
- package/dist-es/commands/CreateBackendStorageCommand.js +21 -28
- package/dist-es/commands/CreateTokenCommand.js +21 -28
- package/dist-es/commands/DeleteBackendAPICommand.js +21 -28
- package/dist-es/commands/DeleteBackendAuthCommand.js +21 -28
- package/dist-es/commands/DeleteBackendCommand.js +21 -28
- package/dist-es/commands/DeleteBackendStorageCommand.js +21 -28
- package/dist-es/commands/DeleteTokenCommand.js +21 -28
- package/dist-es/commands/GenerateBackendAPIModelsCommand.js +21 -28
- package/dist-es/commands/GetBackendAPICommand.js +21 -28
- package/dist-es/commands/GetBackendAPIModelsCommand.js +21 -28
- package/dist-es/commands/GetBackendAuthCommand.js +21 -28
- package/dist-es/commands/GetBackendCommand.js +21 -28
- package/dist-es/commands/GetBackendJobCommand.js +21 -28
- package/dist-es/commands/GetBackendStorageCommand.js +21 -28
- package/dist-es/commands/GetTokenCommand.js +21 -28
- package/dist-es/commands/ImportBackendAuthCommand.js +21 -28
- package/dist-es/commands/ImportBackendStorageCommand.js +21 -28
- package/dist-es/commands/ListBackendJobsCommand.js +21 -28
- package/dist-es/commands/ListS3BucketsCommand.js +21 -28
- package/dist-es/commands/RemoveAllBackendsCommand.js +21 -28
- package/dist-es/commands/RemoveBackendConfigCommand.js +21 -28
- package/dist-es/commands/UpdateBackendAPICommand.js +21 -28
- package/dist-es/commands/UpdateBackendAuthCommand.js +21 -28
- package/dist-es/commands/UpdateBackendConfigCommand.js +21 -28
- package/dist-es/commands/UpdateBackendJobCommand.js +21 -28
- package/dist-es/commands/UpdateBackendStorageCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/AmplifyBackendServiceException.js +5 -10
- package/dist-es/models/models_0.js +338 -147
- package/dist-es/protocols/Aws_restJson1.js +2787 -3581
- 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-amplifybackend
|
|
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-amplifybackend
|
|
@@ -774,7 +774,7 @@ exports.deserializeAws_restJson1CloneBackendCommand = deserializeAws_restJson1Cl
|
|
|
774
774
|
const deserializeAws_restJson1CloneBackendCommandError = async (output, context) => {
|
|
775
775
|
const parsedOutput = {
|
|
776
776
|
...output,
|
|
777
|
-
body: await
|
|
777
|
+
body: await parseErrorBody(output.body, context),
|
|
778
778
|
};
|
|
779
779
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
780
780
|
switch (errorCode) {
|
|
@@ -832,7 +832,7 @@ exports.deserializeAws_restJson1CreateBackendCommand = deserializeAws_restJson1C
|
|
|
832
832
|
const deserializeAws_restJson1CreateBackendCommandError = async (output, context) => {
|
|
833
833
|
const parsedOutput = {
|
|
834
834
|
...output,
|
|
835
|
-
body: await
|
|
835
|
+
body: await parseErrorBody(output.body, context),
|
|
836
836
|
};
|
|
837
837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
838
|
switch (errorCode) {
|
|
@@ -890,7 +890,7 @@ exports.deserializeAws_restJson1CreateBackendAPICommand = deserializeAws_restJso
|
|
|
890
890
|
const deserializeAws_restJson1CreateBackendAPICommandError = async (output, context) => {
|
|
891
891
|
const parsedOutput = {
|
|
892
892
|
...output,
|
|
893
|
-
body: await
|
|
893
|
+
body: await parseErrorBody(output.body, context),
|
|
894
894
|
};
|
|
895
895
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
896
896
|
switch (errorCode) {
|
|
@@ -948,7 +948,7 @@ exports.deserializeAws_restJson1CreateBackendAuthCommand = deserializeAws_restJs
|
|
|
948
948
|
const deserializeAws_restJson1CreateBackendAuthCommandError = async (output, context) => {
|
|
949
949
|
const parsedOutput = {
|
|
950
950
|
...output,
|
|
951
|
-
body: await
|
|
951
|
+
body: await parseErrorBody(output.body, context),
|
|
952
952
|
};
|
|
953
953
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
954
|
switch (errorCode) {
|
|
@@ -1000,7 +1000,7 @@ exports.deserializeAws_restJson1CreateBackendConfigCommand = deserializeAws_rest
|
|
|
1000
1000
|
const deserializeAws_restJson1CreateBackendConfigCommandError = async (output, context) => {
|
|
1001
1001
|
const parsedOutput = {
|
|
1002
1002
|
...output,
|
|
1003
|
-
body: await
|
|
1003
|
+
body: await parseErrorBody(output.body, context),
|
|
1004
1004
|
};
|
|
1005
1005
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
1006
|
switch (errorCode) {
|
|
@@ -1052,7 +1052,7 @@ exports.deserializeAws_restJson1CreateBackendStorageCommand = deserializeAws_res
|
|
|
1052
1052
|
const deserializeAws_restJson1CreateBackendStorageCommandError = async (output, context) => {
|
|
1053
1053
|
const parsedOutput = {
|
|
1054
1054
|
...output,
|
|
1055
|
-
body: await
|
|
1055
|
+
body: await parseErrorBody(output.body, context),
|
|
1056
1056
|
};
|
|
1057
1057
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
1058
|
switch (errorCode) {
|
|
@@ -1104,7 +1104,7 @@ exports.deserializeAws_restJson1CreateTokenCommand = deserializeAws_restJson1Cre
|
|
|
1104
1104
|
const deserializeAws_restJson1CreateTokenCommandError = async (output, context) => {
|
|
1105
1105
|
const parsedOutput = {
|
|
1106
1106
|
...output,
|
|
1107
|
-
body: await
|
|
1107
|
+
body: await parseErrorBody(output.body, context),
|
|
1108
1108
|
};
|
|
1109
1109
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
1110
|
switch (errorCode) {
|
|
@@ -1162,7 +1162,7 @@ exports.deserializeAws_restJson1DeleteBackendCommand = deserializeAws_restJson1D
|
|
|
1162
1162
|
const deserializeAws_restJson1DeleteBackendCommandError = async (output, context) => {
|
|
1163
1163
|
const parsedOutput = {
|
|
1164
1164
|
...output,
|
|
1165
|
-
body: await
|
|
1165
|
+
body: await parseErrorBody(output.body, context),
|
|
1166
1166
|
};
|
|
1167
1167
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
1168
|
switch (errorCode) {
|
|
@@ -1220,7 +1220,7 @@ exports.deserializeAws_restJson1DeleteBackendAPICommand = deserializeAws_restJso
|
|
|
1220
1220
|
const deserializeAws_restJson1DeleteBackendAPICommandError = async (output, context) => {
|
|
1221
1221
|
const parsedOutput = {
|
|
1222
1222
|
...output,
|
|
1223
|
-
body: await
|
|
1223
|
+
body: await parseErrorBody(output.body, context),
|
|
1224
1224
|
};
|
|
1225
1225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
1226
|
switch (errorCode) {
|
|
@@ -1278,7 +1278,7 @@ exports.deserializeAws_restJson1DeleteBackendAuthCommand = deserializeAws_restJs
|
|
|
1278
1278
|
const deserializeAws_restJson1DeleteBackendAuthCommandError = async (output, context) => {
|
|
1279
1279
|
const parsedOutput = {
|
|
1280
1280
|
...output,
|
|
1281
|
-
body: await
|
|
1281
|
+
body: await parseErrorBody(output.body, context),
|
|
1282
1282
|
};
|
|
1283
1283
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
1284
|
switch (errorCode) {
|
|
@@ -1330,7 +1330,7 @@ exports.deserializeAws_restJson1DeleteBackendStorageCommand = deserializeAws_res
|
|
|
1330
1330
|
const deserializeAws_restJson1DeleteBackendStorageCommandError = async (output, context) => {
|
|
1331
1331
|
const parsedOutput = {
|
|
1332
1332
|
...output,
|
|
1333
|
-
body: await
|
|
1333
|
+
body: await parseErrorBody(output.body, context),
|
|
1334
1334
|
};
|
|
1335
1335
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
1336
|
switch (errorCode) {
|
|
@@ -1373,7 +1373,7 @@ exports.deserializeAws_restJson1DeleteTokenCommand = deserializeAws_restJson1Del
|
|
|
1373
1373
|
const deserializeAws_restJson1DeleteTokenCommandError = async (output, context) => {
|
|
1374
1374
|
const parsedOutput = {
|
|
1375
1375
|
...output,
|
|
1376
|
-
body: await
|
|
1376
|
+
body: await parseErrorBody(output.body, context),
|
|
1377
1377
|
};
|
|
1378
1378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1379
1379
|
switch (errorCode) {
|
|
@@ -1431,7 +1431,7 @@ exports.deserializeAws_restJson1GenerateBackendAPIModelsCommand = deserializeAws
|
|
|
1431
1431
|
const deserializeAws_restJson1GenerateBackendAPIModelsCommandError = async (output, context) => {
|
|
1432
1432
|
const parsedOutput = {
|
|
1433
1433
|
...output,
|
|
1434
|
-
body: await
|
|
1434
|
+
body: await parseErrorBody(output.body, context),
|
|
1435
1435
|
};
|
|
1436
1436
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1437
1437
|
switch (errorCode) {
|
|
@@ -1492,7 +1492,7 @@ exports.deserializeAws_restJson1GetBackendCommand = deserializeAws_restJson1GetB
|
|
|
1492
1492
|
const deserializeAws_restJson1GetBackendCommandError = async (output, context) => {
|
|
1493
1493
|
const parsedOutput = {
|
|
1494
1494
|
...output,
|
|
1495
|
-
body: await
|
|
1495
|
+
body: await parseErrorBody(output.body, context),
|
|
1496
1496
|
};
|
|
1497
1497
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1498
1498
|
switch (errorCode) {
|
|
@@ -1547,7 +1547,7 @@ exports.deserializeAws_restJson1GetBackendAPICommand = deserializeAws_restJson1G
|
|
|
1547
1547
|
const deserializeAws_restJson1GetBackendAPICommandError = async (output, context) => {
|
|
1548
1548
|
const parsedOutput = {
|
|
1549
1549
|
...output,
|
|
1550
|
-
body: await
|
|
1550
|
+
body: await parseErrorBody(output.body, context),
|
|
1551
1551
|
};
|
|
1552
1552
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
1553
|
switch (errorCode) {
|
|
@@ -1593,7 +1593,7 @@ exports.deserializeAws_restJson1GetBackendAPIModelsCommand = deserializeAws_rest
|
|
|
1593
1593
|
const deserializeAws_restJson1GetBackendAPIModelsCommandError = async (output, context) => {
|
|
1594
1594
|
const parsedOutput = {
|
|
1595
1595
|
...output,
|
|
1596
|
-
body: await
|
|
1596
|
+
body: await parseErrorBody(output.body, context),
|
|
1597
1597
|
};
|
|
1598
1598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1599
1599
|
switch (errorCode) {
|
|
@@ -1648,7 +1648,7 @@ exports.deserializeAws_restJson1GetBackendAuthCommand = deserializeAws_restJson1
|
|
|
1648
1648
|
const deserializeAws_restJson1GetBackendAuthCommandError = async (output, context) => {
|
|
1649
1649
|
const parsedOutput = {
|
|
1650
1650
|
...output,
|
|
1651
|
-
body: await
|
|
1651
|
+
body: await parseErrorBody(output.body, context),
|
|
1652
1652
|
};
|
|
1653
1653
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1654
1654
|
switch (errorCode) {
|
|
@@ -1712,7 +1712,7 @@ exports.deserializeAws_restJson1GetBackendJobCommand = deserializeAws_restJson1G
|
|
|
1712
1712
|
const deserializeAws_restJson1GetBackendJobCommandError = async (output, context) => {
|
|
1713
1713
|
const parsedOutput = {
|
|
1714
1714
|
...output,
|
|
1715
|
-
body: await
|
|
1715
|
+
body: await parseErrorBody(output.body, context),
|
|
1716
1716
|
};
|
|
1717
1717
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
1718
|
switch (errorCode) {
|
|
@@ -1764,7 +1764,7 @@ exports.deserializeAws_restJson1GetBackendStorageCommand = deserializeAws_restJs
|
|
|
1764
1764
|
const deserializeAws_restJson1GetBackendStorageCommandError = async (output, context) => {
|
|
1765
1765
|
const parsedOutput = {
|
|
1766
1766
|
...output,
|
|
1767
|
-
body: await
|
|
1767
|
+
body: await parseErrorBody(output.body, context),
|
|
1768
1768
|
};
|
|
1769
1769
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
1770
|
switch (errorCode) {
|
|
@@ -1816,7 +1816,7 @@ exports.deserializeAws_restJson1GetTokenCommand = deserializeAws_restJson1GetTok
|
|
|
1816
1816
|
const deserializeAws_restJson1GetTokenCommandError = async (output, context) => {
|
|
1817
1817
|
const parsedOutput = {
|
|
1818
1818
|
...output,
|
|
1819
|
-
body: await
|
|
1819
|
+
body: await parseErrorBody(output.body, context),
|
|
1820
1820
|
};
|
|
1821
1821
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1822
1822
|
switch (errorCode) {
|
|
@@ -1874,7 +1874,7 @@ exports.deserializeAws_restJson1ImportBackendAuthCommand = deserializeAws_restJs
|
|
|
1874
1874
|
const deserializeAws_restJson1ImportBackendAuthCommandError = async (output, context) => {
|
|
1875
1875
|
const parsedOutput = {
|
|
1876
1876
|
...output,
|
|
1877
|
-
body: await
|
|
1877
|
+
body: await parseErrorBody(output.body, context),
|
|
1878
1878
|
};
|
|
1879
1879
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1880
1880
|
switch (errorCode) {
|
|
@@ -1926,7 +1926,7 @@ exports.deserializeAws_restJson1ImportBackendStorageCommand = deserializeAws_res
|
|
|
1926
1926
|
const deserializeAws_restJson1ImportBackendStorageCommandError = async (output, context) => {
|
|
1927
1927
|
const parsedOutput = {
|
|
1928
1928
|
...output,
|
|
1929
|
-
body: await
|
|
1929
|
+
body: await parseErrorBody(output.body, context),
|
|
1930
1930
|
};
|
|
1931
1931
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
1932
|
switch (errorCode) {
|
|
@@ -1972,7 +1972,7 @@ exports.deserializeAws_restJson1ListBackendJobsCommand = deserializeAws_restJson
|
|
|
1972
1972
|
const deserializeAws_restJson1ListBackendJobsCommandError = async (output, context) => {
|
|
1973
1973
|
const parsedOutput = {
|
|
1974
1974
|
...output,
|
|
1975
|
-
body: await
|
|
1975
|
+
body: await parseErrorBody(output.body, context),
|
|
1976
1976
|
};
|
|
1977
1977
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1978
1978
|
switch (errorCode) {
|
|
@@ -2018,7 +2018,7 @@ exports.deserializeAws_restJson1ListS3BucketsCommand = deserializeAws_restJson1L
|
|
|
2018
2018
|
const deserializeAws_restJson1ListS3BucketsCommandError = async (output, context) => {
|
|
2019
2019
|
const parsedOutput = {
|
|
2020
2020
|
...output,
|
|
2021
|
-
body: await
|
|
2021
|
+
body: await parseErrorBody(output.body, context),
|
|
2022
2022
|
};
|
|
2023
2023
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2024
2024
|
switch (errorCode) {
|
|
@@ -2073,7 +2073,7 @@ exports.deserializeAws_restJson1RemoveAllBackendsCommand = deserializeAws_restJs
|
|
|
2073
2073
|
const deserializeAws_restJson1RemoveAllBackendsCommandError = async (output, context) => {
|
|
2074
2074
|
const parsedOutput = {
|
|
2075
2075
|
...output,
|
|
2076
|
-
body: await
|
|
2076
|
+
body: await parseErrorBody(output.body, context),
|
|
2077
2077
|
};
|
|
2078
2078
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2079
2079
|
switch (errorCode) {
|
|
@@ -2116,7 +2116,7 @@ exports.deserializeAws_restJson1RemoveBackendConfigCommand = deserializeAws_rest
|
|
|
2116
2116
|
const deserializeAws_restJson1RemoveBackendConfigCommandError = async (output, context) => {
|
|
2117
2117
|
const parsedOutput = {
|
|
2118
2118
|
...output,
|
|
2119
|
-
body: await
|
|
2119
|
+
body: await parseErrorBody(output.body, context),
|
|
2120
2120
|
};
|
|
2121
2121
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2122
2122
|
switch (errorCode) {
|
|
@@ -2174,7 +2174,7 @@ exports.deserializeAws_restJson1UpdateBackendAPICommand = deserializeAws_restJso
|
|
|
2174
2174
|
const deserializeAws_restJson1UpdateBackendAPICommandError = 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) {
|
|
@@ -2232,7 +2232,7 @@ exports.deserializeAws_restJson1UpdateBackendAuthCommand = deserializeAws_restJs
|
|
|
2232
2232
|
const deserializeAws_restJson1UpdateBackendAuthCommandError = async (output, context) => {
|
|
2233
2233
|
const parsedOutput = {
|
|
2234
2234
|
...output,
|
|
2235
|
-
body: await
|
|
2235
|
+
body: await parseErrorBody(output.body, context),
|
|
2236
2236
|
};
|
|
2237
2237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
2238
|
switch (errorCode) {
|
|
@@ -2284,7 +2284,7 @@ exports.deserializeAws_restJson1UpdateBackendConfigCommand = deserializeAws_rest
|
|
|
2284
2284
|
const deserializeAws_restJson1UpdateBackendConfigCommandError = async (output, context) => {
|
|
2285
2285
|
const parsedOutput = {
|
|
2286
2286
|
...output,
|
|
2287
|
-
body: await
|
|
2287
|
+
body: await parseErrorBody(output.body, context),
|
|
2288
2288
|
};
|
|
2289
2289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2290
2290
|
switch (errorCode) {
|
|
@@ -2348,7 +2348,7 @@ exports.deserializeAws_restJson1UpdateBackendJobCommand = deserializeAws_restJso
|
|
|
2348
2348
|
const deserializeAws_restJson1UpdateBackendJobCommandError = async (output, context) => {
|
|
2349
2349
|
const parsedOutput = {
|
|
2350
2350
|
...output,
|
|
2351
|
-
body: await
|
|
2351
|
+
body: await parseErrorBody(output.body, context),
|
|
2352
2352
|
};
|
|
2353
2353
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
2354
|
switch (errorCode) {
|
|
@@ -2400,7 +2400,7 @@ exports.deserializeAws_restJson1UpdateBackendStorageCommand = deserializeAws_res
|
|
|
2400
2400
|
const deserializeAws_restJson1UpdateBackendStorageCommandError = async (output, context) => {
|
|
2401
2401
|
const parsedOutput = {
|
|
2402
2402
|
...output,
|
|
2403
|
-
body: await
|
|
2403
|
+
body: await parseErrorBody(output.body, context),
|
|
2404
2404
|
};
|
|
2405
2405
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2406
2406
|
switch (errorCode) {
|
|
@@ -3188,6 +3188,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3188
3188
|
}
|
|
3189
3189
|
return {};
|
|
3190
3190
|
});
|
|
3191
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3192
|
+
var _a;
|
|
3193
|
+
const value = await parseBody(errorBody, context);
|
|
3194
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3195
|
+
return value;
|
|
3196
|
+
};
|
|
3191
3197
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3192
3198
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3193
3199
|
const sanitizeErrorCode = (rawValue) => {
|