@aws-sdk/client-appconfig 3.179.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +49 -43
- package/dist-es/protocols/Aws_restJson1.js +56 -43
- package/package.json +6 -6
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.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
|
+
|
|
18
|
+
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @aws-sdk/client-appconfig
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.179.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.178.0...v3.179.0) (2022-09-26)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-appconfig
|
|
@@ -999,7 +999,7 @@ exports.deserializeAws_restJson1CreateApplicationCommand = deserializeAws_restJs
|
|
|
999
999
|
const deserializeAws_restJson1CreateApplicationCommandError = async (output, context) => {
|
|
1000
1000
|
const parsedOutput = {
|
|
1001
1001
|
...output,
|
|
1002
|
-
body: await
|
|
1002
|
+
body: await parseErrorBody(output.body, context),
|
|
1003
1003
|
};
|
|
1004
1004
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
1005
|
switch (errorCode) {
|
|
@@ -1057,7 +1057,7 @@ exports.deserializeAws_restJson1CreateConfigurationProfileCommand = deserializeA
|
|
|
1057
1057
|
const deserializeAws_restJson1CreateConfigurationProfileCommandError = async (output, context) => {
|
|
1058
1058
|
const parsedOutput = {
|
|
1059
1059
|
...output,
|
|
1060
|
-
body: await
|
|
1060
|
+
body: await parseErrorBody(output.body, context),
|
|
1061
1061
|
};
|
|
1062
1062
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
1063
|
switch (errorCode) {
|
|
@@ -1118,7 +1118,7 @@ exports.deserializeAws_restJson1CreateDeploymentStrategyCommand = deserializeAws
|
|
|
1118
1118
|
const deserializeAws_restJson1CreateDeploymentStrategyCommandError = async (output, context) => {
|
|
1119
1119
|
const parsedOutput = {
|
|
1120
1120
|
...output,
|
|
1121
|
-
body: await
|
|
1121
|
+
body: await parseErrorBody(output.body, context),
|
|
1122
1122
|
};
|
|
1123
1123
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1124
1124
|
switch (errorCode) {
|
|
@@ -1170,7 +1170,7 @@ exports.deserializeAws_restJson1CreateEnvironmentCommand = deserializeAws_restJs
|
|
|
1170
1170
|
const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, context) => {
|
|
1171
1171
|
const parsedOutput = {
|
|
1172
1172
|
...output,
|
|
1173
|
-
body: await
|
|
1173
|
+
body: await parseErrorBody(output.body, context),
|
|
1174
1174
|
};
|
|
1175
1175
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1176
1176
|
switch (errorCode) {
|
|
@@ -1228,7 +1228,7 @@ exports.deserializeAws_restJson1CreateExtensionCommand = deserializeAws_restJson
|
|
|
1228
1228
|
const deserializeAws_restJson1CreateExtensionCommandError = async (output, context) => {
|
|
1229
1229
|
const parsedOutput = {
|
|
1230
1230
|
...output,
|
|
1231
|
-
body: await
|
|
1231
|
+
body: await parseErrorBody(output.body, context),
|
|
1232
1232
|
};
|
|
1233
1233
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1234
1234
|
switch (errorCode) {
|
|
@@ -1286,7 +1286,7 @@ exports.deserializeAws_restJson1CreateExtensionAssociationCommand = deserializeA
|
|
|
1286
1286
|
const deserializeAws_restJson1CreateExtensionAssociationCommandError = async (output, context) => {
|
|
1287
1287
|
const parsedOutput = {
|
|
1288
1288
|
...output,
|
|
1289
|
-
body: await
|
|
1289
|
+
body: await parseErrorBody(output.body, context),
|
|
1290
1290
|
};
|
|
1291
1291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
1292
|
switch (errorCode) {
|
|
@@ -1335,7 +1335,7 @@ exports.deserializeAws_restJson1CreateHostedConfigurationVersionCommand = deseri
|
|
|
1335
1335
|
const deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = async (output, context) => {
|
|
1336
1336
|
const parsedOutput = {
|
|
1337
1337
|
...output,
|
|
1338
|
-
body: await
|
|
1338
|
+
body: await parseErrorBody(output.body, context),
|
|
1339
1339
|
};
|
|
1340
1340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
1341
|
switch (errorCode) {
|
|
@@ -1381,7 +1381,7 @@ exports.deserializeAws_restJson1DeleteApplicationCommand = deserializeAws_restJs
|
|
|
1381
1381
|
const deserializeAws_restJson1DeleteApplicationCommandError = async (output, context) => {
|
|
1382
1382
|
const parsedOutput = {
|
|
1383
1383
|
...output,
|
|
1384
|
-
body: await
|
|
1384
|
+
body: await parseErrorBody(output.body, context),
|
|
1385
1385
|
};
|
|
1386
1386
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1387
1387
|
switch (errorCode) {
|
|
@@ -1418,7 +1418,7 @@ exports.deserializeAws_restJson1DeleteConfigurationProfileCommand = deserializeA
|
|
|
1418
1418
|
const deserializeAws_restJson1DeleteConfigurationProfileCommandError = async (output, context) => {
|
|
1419
1419
|
const parsedOutput = {
|
|
1420
1420
|
...output,
|
|
1421
|
-
body: await
|
|
1421
|
+
body: await parseErrorBody(output.body, context),
|
|
1422
1422
|
};
|
|
1423
1423
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
1424
|
switch (errorCode) {
|
|
@@ -1458,7 +1458,7 @@ exports.deserializeAws_restJson1DeleteDeploymentStrategyCommand = deserializeAws
|
|
|
1458
1458
|
const deserializeAws_restJson1DeleteDeploymentStrategyCommandError = async (output, context) => {
|
|
1459
1459
|
const parsedOutput = {
|
|
1460
1460
|
...output,
|
|
1461
|
-
body: await
|
|
1461
|
+
body: await parseErrorBody(output.body, context),
|
|
1462
1462
|
};
|
|
1463
1463
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
1464
|
switch (errorCode) {
|
|
@@ -1495,7 +1495,7 @@ exports.deserializeAws_restJson1DeleteEnvironmentCommand = deserializeAws_restJs
|
|
|
1495
1495
|
const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, context) => {
|
|
1496
1496
|
const parsedOutput = {
|
|
1497
1497
|
...output,
|
|
1498
|
-
body: await
|
|
1498
|
+
body: await parseErrorBody(output.body, context),
|
|
1499
1499
|
};
|
|
1500
1500
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
1501
|
switch (errorCode) {
|
|
@@ -1535,7 +1535,7 @@ exports.deserializeAws_restJson1DeleteExtensionCommand = deserializeAws_restJson
|
|
|
1535
1535
|
const deserializeAws_restJson1DeleteExtensionCommandError = async (output, context) => {
|
|
1536
1536
|
const parsedOutput = {
|
|
1537
1537
|
...output,
|
|
1538
|
-
body: await
|
|
1538
|
+
body: await parseErrorBody(output.body, context),
|
|
1539
1539
|
};
|
|
1540
1540
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
1541
|
switch (errorCode) {
|
|
@@ -1572,7 +1572,7 @@ exports.deserializeAws_restJson1DeleteExtensionAssociationCommand = deserializeA
|
|
|
1572
1572
|
const deserializeAws_restJson1DeleteExtensionAssociationCommandError = async (output, context) => {
|
|
1573
1573
|
const parsedOutput = {
|
|
1574
1574
|
...output,
|
|
1575
|
-
body: await
|
|
1575
|
+
body: await parseErrorBody(output.body, context),
|
|
1576
1576
|
};
|
|
1577
1577
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1578
1578
|
switch (errorCode) {
|
|
@@ -1609,7 +1609,7 @@ exports.deserializeAws_restJson1DeleteHostedConfigurationVersionCommand = deseri
|
|
|
1609
1609
|
const deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = async (output, context) => {
|
|
1610
1610
|
const parsedOutput = {
|
|
1611
1611
|
...output,
|
|
1612
|
-
body: await
|
|
1612
|
+
body: await parseErrorBody(output.body, context),
|
|
1613
1613
|
};
|
|
1614
1614
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1615
1615
|
switch (errorCode) {
|
|
@@ -1655,7 +1655,7 @@ exports.deserializeAws_restJson1GetApplicationCommand = deserializeAws_restJson1
|
|
|
1655
1655
|
const deserializeAws_restJson1GetApplicationCommandError = async (output, context) => {
|
|
1656
1656
|
const parsedOutput = {
|
|
1657
1657
|
...output,
|
|
1658
|
-
body: await
|
|
1658
|
+
body: await parseErrorBody(output.body, context),
|
|
1659
1659
|
};
|
|
1660
1660
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1661
1661
|
switch (errorCode) {
|
|
@@ -1695,7 +1695,7 @@ exports.deserializeAws_restJson1GetConfigurationCommand = deserializeAws_restJso
|
|
|
1695
1695
|
const deserializeAws_restJson1GetConfigurationCommandError = async (output, context) => {
|
|
1696
1696
|
const parsedOutput = {
|
|
1697
1697
|
...output,
|
|
1698
|
-
body: await
|
|
1698
|
+
body: await parseErrorBody(output.body, context),
|
|
1699
1699
|
};
|
|
1700
1700
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
1701
|
switch (errorCode) {
|
|
@@ -1756,7 +1756,7 @@ exports.deserializeAws_restJson1GetConfigurationProfileCommand = deserializeAws_
|
|
|
1756
1756
|
const deserializeAws_restJson1GetConfigurationProfileCommandError = async (output, context) => {
|
|
1757
1757
|
const parsedOutput = {
|
|
1758
1758
|
...output,
|
|
1759
|
-
body: await
|
|
1759
|
+
body: await parseErrorBody(output.body, context),
|
|
1760
1760
|
};
|
|
1761
1761
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
1762
|
switch (errorCode) {
|
|
@@ -1850,7 +1850,7 @@ exports.deserializeAws_restJson1GetDeploymentCommand = deserializeAws_restJson1G
|
|
|
1850
1850
|
const deserializeAws_restJson1GetDeploymentCommandError = async (output, context) => {
|
|
1851
1851
|
const parsedOutput = {
|
|
1852
1852
|
...output,
|
|
1853
|
-
body: await
|
|
1853
|
+
body: await parseErrorBody(output.body, context),
|
|
1854
1854
|
};
|
|
1855
1855
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1856
1856
|
switch (errorCode) {
|
|
@@ -1911,7 +1911,7 @@ exports.deserializeAws_restJson1GetDeploymentStrategyCommand = deserializeAws_re
|
|
|
1911
1911
|
const deserializeAws_restJson1GetDeploymentStrategyCommandError = async (output, context) => {
|
|
1912
1912
|
const parsedOutput = {
|
|
1913
1913
|
...output,
|
|
1914
|
-
body: await
|
|
1914
|
+
body: await parseErrorBody(output.body, context),
|
|
1915
1915
|
};
|
|
1916
1916
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1917
1917
|
switch (errorCode) {
|
|
@@ -1966,7 +1966,7 @@ exports.deserializeAws_restJson1GetEnvironmentCommand = deserializeAws_restJson1
|
|
|
1966
1966
|
const deserializeAws_restJson1GetEnvironmentCommandError = async (output, context) => {
|
|
1967
1967
|
const parsedOutput = {
|
|
1968
1968
|
...output,
|
|
1969
|
-
body: await
|
|
1969
|
+
body: await parseErrorBody(output.body, context),
|
|
1970
1970
|
};
|
|
1971
1971
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
1972
|
switch (errorCode) {
|
|
@@ -2024,7 +2024,7 @@ exports.deserializeAws_restJson1GetExtensionCommand = deserializeAws_restJson1Ge
|
|
|
2024
2024
|
const deserializeAws_restJson1GetExtensionCommandError = async (output, context) => {
|
|
2025
2025
|
const parsedOutput = {
|
|
2026
2026
|
...output,
|
|
2027
|
-
body: await
|
|
2027
|
+
body: await parseErrorBody(output.body, context),
|
|
2028
2028
|
};
|
|
2029
2029
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2030
2030
|
switch (errorCode) {
|
|
@@ -2079,7 +2079,7 @@ exports.deserializeAws_restJson1GetExtensionAssociationCommand = deserializeAws_
|
|
|
2079
2079
|
const deserializeAws_restJson1GetExtensionAssociationCommandError = async (output, context) => {
|
|
2080
2080
|
const parsedOutput = {
|
|
2081
2081
|
...output,
|
|
2082
|
-
body: await
|
|
2082
|
+
body: await parseErrorBody(output.body, context),
|
|
2083
2083
|
};
|
|
2084
2084
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2085
2085
|
switch (errorCode) {
|
|
@@ -2125,7 +2125,7 @@ exports.deserializeAws_restJson1GetHostedConfigurationVersionCommand = deseriali
|
|
|
2125
2125
|
const deserializeAws_restJson1GetHostedConfigurationVersionCommandError = 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) {
|
|
@@ -2168,7 +2168,7 @@ exports.deserializeAws_restJson1ListApplicationsCommand = deserializeAws_restJso
|
|
|
2168
2168
|
const deserializeAws_restJson1ListApplicationsCommandError = async (output, context) => {
|
|
2169
2169
|
const parsedOutput = {
|
|
2170
2170
|
...output,
|
|
2171
|
-
body: await
|
|
2171
|
+
body: await parseErrorBody(output.body, context),
|
|
2172
2172
|
};
|
|
2173
2173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2174
2174
|
switch (errorCode) {
|
|
@@ -2208,7 +2208,7 @@ exports.deserializeAws_restJson1ListConfigurationProfilesCommand = deserializeAw
|
|
|
2208
2208
|
const deserializeAws_restJson1ListConfigurationProfilesCommandError = async (output, context) => {
|
|
2209
2209
|
const parsedOutput = {
|
|
2210
2210
|
...output,
|
|
2211
|
-
body: await
|
|
2211
|
+
body: await parseErrorBody(output.body, context),
|
|
2212
2212
|
};
|
|
2213
2213
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
2214
|
switch (errorCode) {
|
|
@@ -2251,7 +2251,7 @@ exports.deserializeAws_restJson1ListDeploymentsCommand = deserializeAws_restJson
|
|
|
2251
2251
|
const deserializeAws_restJson1ListDeploymentsCommandError = async (output, context) => {
|
|
2252
2252
|
const parsedOutput = {
|
|
2253
2253
|
...output,
|
|
2254
|
-
body: await
|
|
2254
|
+
body: await parseErrorBody(output.body, context),
|
|
2255
2255
|
};
|
|
2256
2256
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
2257
|
switch (errorCode) {
|
|
@@ -2294,7 +2294,7 @@ exports.deserializeAws_restJson1ListDeploymentStrategiesCommand = deserializeAws
|
|
|
2294
2294
|
const deserializeAws_restJson1ListDeploymentStrategiesCommandError = async (output, context) => {
|
|
2295
2295
|
const parsedOutput = {
|
|
2296
2296
|
...output,
|
|
2297
|
-
body: await
|
|
2297
|
+
body: await parseErrorBody(output.body, context),
|
|
2298
2298
|
};
|
|
2299
2299
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2300
2300
|
switch (errorCode) {
|
|
@@ -2334,7 +2334,7 @@ exports.deserializeAws_restJson1ListEnvironmentsCommand = deserializeAws_restJso
|
|
|
2334
2334
|
const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, context) => {
|
|
2335
2335
|
const parsedOutput = {
|
|
2336
2336
|
...output,
|
|
2337
|
-
body: await
|
|
2337
|
+
body: await parseErrorBody(output.body, context),
|
|
2338
2338
|
};
|
|
2339
2339
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2340
2340
|
switch (errorCode) {
|
|
@@ -2377,7 +2377,7 @@ exports.deserializeAws_restJson1ListExtensionAssociationsCommand = deserializeAw
|
|
|
2377
2377
|
const deserializeAws_restJson1ListExtensionAssociationsCommandError = async (output, context) => {
|
|
2378
2378
|
const parsedOutput = {
|
|
2379
2379
|
...output,
|
|
2380
|
-
body: await
|
|
2380
|
+
body: await parseErrorBody(output.body, context),
|
|
2381
2381
|
};
|
|
2382
2382
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
2383
|
switch (errorCode) {
|
|
@@ -2417,7 +2417,7 @@ exports.deserializeAws_restJson1ListExtensionsCommand = deserializeAws_restJson1
|
|
|
2417
2417
|
const deserializeAws_restJson1ListExtensionsCommandError = async (output, context) => {
|
|
2418
2418
|
const parsedOutput = {
|
|
2419
2419
|
...output,
|
|
2420
|
-
body: await
|
|
2420
|
+
body: await parseErrorBody(output.body, context),
|
|
2421
2421
|
};
|
|
2422
2422
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2423
2423
|
switch (errorCode) {
|
|
@@ -2457,7 +2457,7 @@ exports.deserializeAws_restJson1ListHostedConfigurationVersionsCommand = deseria
|
|
|
2457
2457
|
const deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = async (output, context) => {
|
|
2458
2458
|
const parsedOutput = {
|
|
2459
2459
|
...output,
|
|
2460
|
-
body: await
|
|
2460
|
+
body: await parseErrorBody(output.body, context),
|
|
2461
2461
|
};
|
|
2462
2462
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2463
2463
|
switch (errorCode) {
|
|
@@ -2497,7 +2497,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2497
2497
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2498
2498
|
const parsedOutput = {
|
|
2499
2499
|
...output,
|
|
2500
|
-
body: await
|
|
2500
|
+
body: await parseErrorBody(output.body, context),
|
|
2501
2501
|
};
|
|
2502
2502
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2503
2503
|
switch (errorCode) {
|
|
@@ -2591,7 +2591,7 @@ exports.deserializeAws_restJson1StartDeploymentCommand = deserializeAws_restJson
|
|
|
2591
2591
|
const deserializeAws_restJson1StartDeploymentCommandError = async (output, context) => {
|
|
2592
2592
|
const parsedOutput = {
|
|
2593
2593
|
...output,
|
|
2594
|
-
body: await
|
|
2594
|
+
body: await parseErrorBody(output.body, context),
|
|
2595
2595
|
};
|
|
2596
2596
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2597
2597
|
switch (errorCode) {
|
|
@@ -2688,7 +2688,7 @@ exports.deserializeAws_restJson1StopDeploymentCommand = deserializeAws_restJson1
|
|
|
2688
2688
|
const deserializeAws_restJson1StopDeploymentCommandError = async (output, context) => {
|
|
2689
2689
|
const parsedOutput = {
|
|
2690
2690
|
...output,
|
|
2691
|
-
body: await
|
|
2691
|
+
body: await parseErrorBody(output.body, context),
|
|
2692
2692
|
};
|
|
2693
2693
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2694
2694
|
switch (errorCode) {
|
|
@@ -2725,7 +2725,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2725
2725
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2726
2726
|
const parsedOutput = {
|
|
2727
2727
|
...output,
|
|
2728
|
-
body: await
|
|
2728
|
+
body: await parseErrorBody(output.body, context),
|
|
2729
2729
|
};
|
|
2730
2730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2731
2731
|
switch (errorCode) {
|
|
@@ -2762,7 +2762,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2762
2762
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2763
2763
|
const parsedOutput = {
|
|
2764
2764
|
...output,
|
|
2765
|
-
body: await
|
|
2765
|
+
body: await parseErrorBody(output.body, context),
|
|
2766
2766
|
};
|
|
2767
2767
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2768
2768
|
switch (errorCode) {
|
|
@@ -2808,7 +2808,7 @@ exports.deserializeAws_restJson1UpdateApplicationCommand = deserializeAws_restJs
|
|
|
2808
2808
|
const deserializeAws_restJson1UpdateApplicationCommandError = async (output, context) => {
|
|
2809
2809
|
const parsedOutput = {
|
|
2810
2810
|
...output,
|
|
2811
|
-
body: await
|
|
2811
|
+
body: await parseErrorBody(output.body, context),
|
|
2812
2812
|
};
|
|
2813
2813
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2814
2814
|
switch (errorCode) {
|
|
@@ -2869,7 +2869,7 @@ exports.deserializeAws_restJson1UpdateConfigurationProfileCommand = deserializeA
|
|
|
2869
2869
|
const deserializeAws_restJson1UpdateConfigurationProfileCommandError = async (output, context) => {
|
|
2870
2870
|
const parsedOutput = {
|
|
2871
2871
|
...output,
|
|
2872
|
-
body: await
|
|
2872
|
+
body: await parseErrorBody(output.body, context),
|
|
2873
2873
|
};
|
|
2874
2874
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2875
2875
|
switch (errorCode) {
|
|
@@ -2930,7 +2930,7 @@ exports.deserializeAws_restJson1UpdateDeploymentStrategyCommand = deserializeAws
|
|
|
2930
2930
|
const deserializeAws_restJson1UpdateDeploymentStrategyCommandError = async (output, context) => {
|
|
2931
2931
|
const parsedOutput = {
|
|
2932
2932
|
...output,
|
|
2933
|
-
body: await
|
|
2933
|
+
body: await parseErrorBody(output.body, context),
|
|
2934
2934
|
};
|
|
2935
2935
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2936
2936
|
switch (errorCode) {
|
|
@@ -2985,7 +2985,7 @@ exports.deserializeAws_restJson1UpdateEnvironmentCommand = deserializeAws_restJs
|
|
|
2985
2985
|
const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, context) => {
|
|
2986
2986
|
const parsedOutput = {
|
|
2987
2987
|
...output,
|
|
2988
|
-
body: await
|
|
2988
|
+
body: await parseErrorBody(output.body, context),
|
|
2989
2989
|
};
|
|
2990
2990
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2991
2991
|
switch (errorCode) {
|
|
@@ -3043,7 +3043,7 @@ exports.deserializeAws_restJson1UpdateExtensionCommand = deserializeAws_restJson
|
|
|
3043
3043
|
const deserializeAws_restJson1UpdateExtensionCommandError = async (output, context) => {
|
|
3044
3044
|
const parsedOutput = {
|
|
3045
3045
|
...output,
|
|
3046
|
-
body: await
|
|
3046
|
+
body: await parseErrorBody(output.body, context),
|
|
3047
3047
|
};
|
|
3048
3048
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3049
3049
|
switch (errorCode) {
|
|
@@ -3101,7 +3101,7 @@ exports.deserializeAws_restJson1UpdateExtensionAssociationCommand = deserializeA
|
|
|
3101
3101
|
const deserializeAws_restJson1UpdateExtensionAssociationCommandError = async (output, context) => {
|
|
3102
3102
|
const parsedOutput = {
|
|
3103
3103
|
...output,
|
|
3104
|
-
body: await
|
|
3104
|
+
body: await parseErrorBody(output.body, context),
|
|
3105
3105
|
};
|
|
3106
3106
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3107
3107
|
switch (errorCode) {
|
|
@@ -3138,7 +3138,7 @@ exports.deserializeAws_restJson1ValidateConfigurationCommand = deserializeAws_re
|
|
|
3138
3138
|
const deserializeAws_restJson1ValidateConfigurationCommandError = async (output, context) => {
|
|
3139
3139
|
const parsedOutput = {
|
|
3140
3140
|
...output,
|
|
3141
|
-
body: await
|
|
3141
|
+
body: await parseErrorBody(output.body, context),
|
|
3142
3142
|
};
|
|
3143
3143
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3144
3144
|
switch (errorCode) {
|
|
@@ -3744,6 +3744,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3744
3744
|
}
|
|
3745
3745
|
return {};
|
|
3746
3746
|
});
|
|
3747
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3748
|
+
var _a;
|
|
3749
|
+
const value = await parseBody(errorBody, context);
|
|
3750
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3751
|
+
return value;
|
|
3752
|
+
};
|
|
3747
3753
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3748
3754
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3749
3755
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1154,7 +1154,7 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
|
|
|
1154
1154
|
case 0:
|
|
1155
1155
|
_a = [__assign({}, output)];
|
|
1156
1156
|
_c = {};
|
|
1157
|
-
return [4,
|
|
1157
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1158
1158
|
case 1:
|
|
1159
1159
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1160
1160
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1235,7 +1235,7 @@ var deserializeAws_restJson1CreateConfigurationProfileCommandError = function (o
|
|
|
1235
1235
|
case 0:
|
|
1236
1236
|
_a = [__assign({}, output)];
|
|
1237
1237
|
_c = {};
|
|
1238
|
-
return [4,
|
|
1238
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1239
1239
|
case 1:
|
|
1240
1240
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1241
1241
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1320,7 +1320,7 @@ var deserializeAws_restJson1CreateDeploymentStrategyCommandError = function (out
|
|
|
1320
1320
|
case 0:
|
|
1321
1321
|
_a = [__assign({}, output)];
|
|
1322
1322
|
_c = {};
|
|
1323
|
-
return [4,
|
|
1323
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1324
1324
|
case 1:
|
|
1325
1325
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1326
1326
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1395,7 +1395,7 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
|
|
|
1395
1395
|
case 0:
|
|
1396
1396
|
_a = [__assign({}, output)];
|
|
1397
1397
|
_c = {};
|
|
1398
|
-
return [4,
|
|
1398
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1399
1399
|
case 1:
|
|
1400
1400
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1401
1401
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1477,7 +1477,7 @@ var deserializeAws_restJson1CreateExtensionCommandError = function (output, cont
|
|
|
1477
1477
|
case 0:
|
|
1478
1478
|
_a = [__assign({}, output)];
|
|
1479
1479
|
_c = {};
|
|
1480
|
-
return [4,
|
|
1480
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1481
1481
|
case 1:
|
|
1482
1482
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1483
1483
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1560,7 +1560,7 @@ var deserializeAws_restJson1CreateExtensionAssociationCommandError = function (o
|
|
|
1560
1560
|
case 0:
|
|
1561
1561
|
_a = [__assign({}, output)];
|
|
1562
1562
|
_c = {};
|
|
1563
|
-
return [4,
|
|
1563
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1564
1564
|
case 1:
|
|
1565
1565
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1566
1566
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1632,7 +1632,7 @@ var deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = funct
|
|
|
1632
1632
|
case 0:
|
|
1633
1633
|
_a = [__assign({}, output)];
|
|
1634
1634
|
_c = {};
|
|
1635
|
-
return [4,
|
|
1635
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1636
1636
|
case 1:
|
|
1637
1637
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1638
1638
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1703,7 +1703,7 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
|
|
|
1703
1703
|
case 0:
|
|
1704
1704
|
_a = [__assign({}, output)];
|
|
1705
1705
|
_c = {};
|
|
1706
|
-
return [4,
|
|
1706
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1707
1707
|
case 1:
|
|
1708
1708
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1709
1709
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1762,7 +1762,7 @@ var deserializeAws_restJson1DeleteConfigurationProfileCommandError = function (o
|
|
|
1762
1762
|
case 0:
|
|
1763
1763
|
_a = [__assign({}, output)];
|
|
1764
1764
|
_c = {};
|
|
1765
|
-
return [4,
|
|
1765
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1766
1766
|
case 1:
|
|
1767
1767
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1768
1768
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1825,7 +1825,7 @@ var deserializeAws_restJson1DeleteDeploymentStrategyCommandError = function (out
|
|
|
1825
1825
|
case 0:
|
|
1826
1826
|
_a = [__assign({}, output)];
|
|
1827
1827
|
_c = {};
|
|
1828
|
-
return [4,
|
|
1828
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1829
1829
|
case 1:
|
|
1830
1830
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1831
1831
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1884,7 +1884,7 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
|
|
|
1884
1884
|
case 0:
|
|
1885
1885
|
_a = [__assign({}, output)];
|
|
1886
1886
|
_c = {};
|
|
1887
|
-
return [4,
|
|
1887
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1888
1888
|
case 1:
|
|
1889
1889
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1890
1890
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1947,7 +1947,7 @@ var deserializeAws_restJson1DeleteExtensionCommandError = function (output, cont
|
|
|
1947
1947
|
case 0:
|
|
1948
1948
|
_a = [__assign({}, output)];
|
|
1949
1949
|
_c = {};
|
|
1950
|
-
return [4,
|
|
1950
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1951
1951
|
case 1:
|
|
1952
1952
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1953
1953
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2006,7 +2006,7 @@ var deserializeAws_restJson1DeleteExtensionAssociationCommandError = function (o
|
|
|
2006
2006
|
case 0:
|
|
2007
2007
|
_a = [__assign({}, output)];
|
|
2008
2008
|
_c = {};
|
|
2009
|
-
return [4,
|
|
2009
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2010
2010
|
case 1:
|
|
2011
2011
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2012
2012
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2065,7 +2065,7 @@ var deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = funct
|
|
|
2065
2065
|
case 0:
|
|
2066
2066
|
_a = [__assign({}, output)];
|
|
2067
2067
|
_c = {};
|
|
2068
|
-
return [4,
|
|
2068
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2069
2069
|
case 1:
|
|
2070
2070
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2071
2071
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2135,7 +2135,7 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
|
|
|
2135
2135
|
case 0:
|
|
2136
2136
|
_a = [__assign({}, output)];
|
|
2137
2137
|
_c = {};
|
|
2138
|
-
return [4,
|
|
2138
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2139
2139
|
case 1:
|
|
2140
2140
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2141
2141
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2197,7 +2197,7 @@ var deserializeAws_restJson1GetConfigurationCommandError = function (output, con
|
|
|
2197
2197
|
case 0:
|
|
2198
2198
|
_a = [__assign({}, output)];
|
|
2199
2199
|
_c = {};
|
|
2200
|
-
return [4,
|
|
2200
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2201
2201
|
case 1:
|
|
2202
2202
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2203
2203
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2282,7 +2282,7 @@ var deserializeAws_restJson1GetConfigurationProfileCommandError = function (outp
|
|
|
2282
2282
|
case 0:
|
|
2283
2283
|
_a = [__assign({}, output)];
|
|
2284
2284
|
_c = {};
|
|
2285
|
-
return [4,
|
|
2285
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2286
2286
|
case 1:
|
|
2287
2287
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2288
2288
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2400,7 +2400,7 @@ var deserializeAws_restJson1GetDeploymentCommandError = function (output, contex
|
|
|
2400
2400
|
case 0:
|
|
2401
2401
|
_a = [__assign({}, output)];
|
|
2402
2402
|
_c = {};
|
|
2403
|
-
return [4,
|
|
2403
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2404
2404
|
case 1:
|
|
2405
2405
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2406
2406
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2485,7 +2485,7 @@ var deserializeAws_restJson1GetDeploymentStrategyCommandError = function (output
|
|
|
2485
2485
|
case 0:
|
|
2486
2486
|
_a = [__assign({}, output)];
|
|
2487
2487
|
_c = {};
|
|
2488
|
-
return [4,
|
|
2488
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2489
2489
|
case 1:
|
|
2490
2490
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2491
2491
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2564,7 +2564,7 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
|
|
|
2564
2564
|
case 0:
|
|
2565
2565
|
_a = [__assign({}, output)];
|
|
2566
2566
|
_c = {};
|
|
2567
|
-
return [4,
|
|
2567
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2568
2568
|
case 1:
|
|
2569
2569
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2570
2570
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2646,7 +2646,7 @@ var deserializeAws_restJson1GetExtensionCommandError = function (output, context
|
|
|
2646
2646
|
case 0:
|
|
2647
2647
|
_a = [__assign({}, output)];
|
|
2648
2648
|
_c = {};
|
|
2649
|
-
return [4,
|
|
2649
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2650
2650
|
case 1:
|
|
2651
2651
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2652
2652
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2725,7 +2725,7 @@ var deserializeAws_restJson1GetExtensionAssociationCommandError = function (outp
|
|
|
2725
2725
|
case 0:
|
|
2726
2726
|
_a = [__assign({}, output)];
|
|
2727
2727
|
_c = {};
|
|
2728
|
-
return [4,
|
|
2728
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2729
2729
|
case 1:
|
|
2730
2730
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2731
2731
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2793,7 +2793,7 @@ var deserializeAws_restJson1GetHostedConfigurationVersionCommandError = function
|
|
|
2793
2793
|
case 0:
|
|
2794
2794
|
_a = [__assign({}, output)];
|
|
2795
2795
|
_c = {};
|
|
2796
|
-
return [4,
|
|
2796
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2797
2797
|
case 1:
|
|
2798
2798
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2799
2799
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2860,7 +2860,7 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
2860
2860
|
case 0:
|
|
2861
2861
|
_a = [__assign({}, output)];
|
|
2862
2862
|
_c = {};
|
|
2863
|
-
return [4,
|
|
2863
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2864
2864
|
case 1:
|
|
2865
2865
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2866
2866
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2923,7 +2923,7 @@ var deserializeAws_restJson1ListConfigurationProfilesCommandError = function (ou
|
|
|
2923
2923
|
case 0:
|
|
2924
2924
|
_a = [__assign({}, output)];
|
|
2925
2925
|
_c = {};
|
|
2926
|
-
return [4,
|
|
2926
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2927
2927
|
case 1:
|
|
2928
2928
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2929
2929
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2990,7 +2990,7 @@ var deserializeAws_restJson1ListDeploymentsCommandError = function (output, cont
|
|
|
2990
2990
|
case 0:
|
|
2991
2991
|
_a = [__assign({}, output)];
|
|
2992
2992
|
_c = {};
|
|
2993
|
-
return [4,
|
|
2993
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2994
2994
|
case 1:
|
|
2995
2995
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2996
2996
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3057,7 +3057,7 @@ var deserializeAws_restJson1ListDeploymentStrategiesCommandError = function (out
|
|
|
3057
3057
|
case 0:
|
|
3058
3058
|
_a = [__assign({}, output)];
|
|
3059
3059
|
_c = {};
|
|
3060
|
-
return [4,
|
|
3060
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3061
3061
|
case 1:
|
|
3062
3062
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3063
3063
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3120,7 +3120,7 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
|
|
|
3120
3120
|
case 0:
|
|
3121
3121
|
_a = [__assign({}, output)];
|
|
3122
3122
|
_c = {};
|
|
3123
|
-
return [4,
|
|
3123
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3124
3124
|
case 1:
|
|
3125
3125
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3126
3126
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3187,7 +3187,7 @@ var deserializeAws_restJson1ListExtensionAssociationsCommandError = function (ou
|
|
|
3187
3187
|
case 0:
|
|
3188
3188
|
_a = [__assign({}, output)];
|
|
3189
3189
|
_c = {};
|
|
3190
|
-
return [4,
|
|
3190
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3191
3191
|
case 1:
|
|
3192
3192
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3193
3193
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3250,7 +3250,7 @@ var deserializeAws_restJson1ListExtensionsCommandError = function (output, conte
|
|
|
3250
3250
|
case 0:
|
|
3251
3251
|
_a = [__assign({}, output)];
|
|
3252
3252
|
_c = {};
|
|
3253
|
-
return [4,
|
|
3253
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3254
3254
|
case 1:
|
|
3255
3255
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3256
3256
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3313,7 +3313,7 @@ var deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = functi
|
|
|
3313
3313
|
case 0:
|
|
3314
3314
|
_a = [__assign({}, output)];
|
|
3315
3315
|
_c = {};
|
|
3316
|
-
return [4,
|
|
3316
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3317
3317
|
case 1:
|
|
3318
3318
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3319
3319
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3377,7 +3377,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3377
3377
|
case 0:
|
|
3378
3378
|
_a = [__assign({}, output)];
|
|
3379
3379
|
_c = {};
|
|
3380
|
-
return [4,
|
|
3380
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3381
3381
|
case 1:
|
|
3382
3382
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3383
3383
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3495,7 +3495,7 @@ var deserializeAws_restJson1StartDeploymentCommandError = function (output, cont
|
|
|
3495
3495
|
case 0:
|
|
3496
3496
|
_a = [__assign({}, output)];
|
|
3497
3497
|
_c = {};
|
|
3498
|
-
return [4,
|
|
3498
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3499
3499
|
case 1:
|
|
3500
3500
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3501
3501
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3617,7 +3617,7 @@ var deserializeAws_restJson1StopDeploymentCommandError = function (output, conte
|
|
|
3617
3617
|
case 0:
|
|
3618
3618
|
_a = [__assign({}, output)];
|
|
3619
3619
|
_c = {};
|
|
3620
|
-
return [4,
|
|
3620
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3621
3621
|
case 1:
|
|
3622
3622
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3623
3623
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3676,7 +3676,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3676
3676
|
case 0:
|
|
3677
3677
|
_a = [__assign({}, output)];
|
|
3678
3678
|
_c = {};
|
|
3679
|
-
return [4,
|
|
3679
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3680
3680
|
case 1:
|
|
3681
3681
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3682
3682
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3735,7 +3735,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3735
3735
|
case 0:
|
|
3736
3736
|
_a = [__assign({}, output)];
|
|
3737
3737
|
_c = {};
|
|
3738
|
-
return [4,
|
|
3738
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3739
3739
|
case 1:
|
|
3740
3740
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3741
3741
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3805,7 +3805,7 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
|
|
|
3805
3805
|
case 0:
|
|
3806
3806
|
_a = [__assign({}, output)];
|
|
3807
3807
|
_c = {};
|
|
3808
|
-
return [4,
|
|
3808
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3809
3809
|
case 1:
|
|
3810
3810
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3811
3811
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3890,7 +3890,7 @@ var deserializeAws_restJson1UpdateConfigurationProfileCommandError = function (o
|
|
|
3890
3890
|
case 0:
|
|
3891
3891
|
_a = [__assign({}, output)];
|
|
3892
3892
|
_c = {};
|
|
3893
|
-
return [4,
|
|
3893
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3894
3894
|
case 1:
|
|
3895
3895
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3896
3896
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3975,7 +3975,7 @@ var deserializeAws_restJson1UpdateDeploymentStrategyCommandError = function (out
|
|
|
3975
3975
|
case 0:
|
|
3976
3976
|
_a = [__assign({}, output)];
|
|
3977
3977
|
_c = {};
|
|
3978
|
-
return [4,
|
|
3978
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3979
3979
|
case 1:
|
|
3980
3980
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3981
3981
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4054,7 +4054,7 @@ var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, co
|
|
|
4054
4054
|
case 0:
|
|
4055
4055
|
_a = [__assign({}, output)];
|
|
4056
4056
|
_c = {};
|
|
4057
|
-
return [4,
|
|
4057
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4058
4058
|
case 1:
|
|
4059
4059
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4060
4060
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4136,7 +4136,7 @@ var deserializeAws_restJson1UpdateExtensionCommandError = function (output, cont
|
|
|
4136
4136
|
case 0:
|
|
4137
4137
|
_a = [__assign({}, output)];
|
|
4138
4138
|
_c = {};
|
|
4139
|
-
return [4,
|
|
4139
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4140
4140
|
case 1:
|
|
4141
4141
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4142
4142
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4219,7 +4219,7 @@ var deserializeAws_restJson1UpdateExtensionAssociationCommandError = function (o
|
|
|
4219
4219
|
case 0:
|
|
4220
4220
|
_a = [__assign({}, output)];
|
|
4221
4221
|
_c = {};
|
|
4222
|
-
return [4,
|
|
4222
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4223
4223
|
case 1:
|
|
4224
4224
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4225
4225
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4278,7 +4278,7 @@ var deserializeAws_restJson1ValidateConfigurationCommandError = function (output
|
|
|
4278
4278
|
case 0:
|
|
4279
4279
|
_a = [__assign({}, output)];
|
|
4280
4280
|
_c = {};
|
|
4281
|
-
return [4,
|
|
4281
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4282
4282
|
case 1:
|
|
4283
4283
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4284
4284
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4879,6 +4879,19 @@ var parseBody = function (streamBody, context) {
|
|
|
4879
4879
|
return {};
|
|
4880
4880
|
});
|
|
4881
4881
|
};
|
|
4882
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4883
|
+
var value;
|
|
4884
|
+
var _a;
|
|
4885
|
+
return __generator(this, function (_b) {
|
|
4886
|
+
switch (_b.label) {
|
|
4887
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
4888
|
+
case 1:
|
|
4889
|
+
value = _b.sent();
|
|
4890
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4891
|
+
return [2, value];
|
|
4892
|
+
}
|
|
4893
|
+
});
|
|
4894
|
+
}); };
|
|
4882
4895
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4883
4896
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4884
4897
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appconfig",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appconfig 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",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.178.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.178.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.178.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.180.0",
|
|
41
41
|
"@aws-sdk/types": "3.178.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.178.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.170.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.170.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.170.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.180.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.180.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-browser": "3.178.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-node": "3.178.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.170.0",
|