@aws-sdk/client-appsync 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 +56 -50
- package/dist-es/protocols/Aws_restJson1.js +63 -50
- 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-appsync
|
|
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-appsync
|
|
@@ -1173,7 +1173,7 @@ exports.deserializeAws_restJson1AssociateApiCommand = deserializeAws_restJson1As
|
|
|
1173
1173
|
const deserializeAws_restJson1AssociateApiCommandError = async (output, context) => {
|
|
1174
1174
|
const parsedOutput = {
|
|
1175
1175
|
...output,
|
|
1176
|
-
body: await
|
|
1176
|
+
body: await parseErrorBody(output.body, context),
|
|
1177
1177
|
};
|
|
1178
1178
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
1179
|
switch (errorCode) {
|
|
@@ -1216,7 +1216,7 @@ exports.deserializeAws_restJson1CreateApiCacheCommand = deserializeAws_restJson1
|
|
|
1216
1216
|
const deserializeAws_restJson1CreateApiCacheCommandError = async (output, context) => {
|
|
1217
1217
|
const parsedOutput = {
|
|
1218
1218
|
...output,
|
|
1219
|
-
body: await
|
|
1219
|
+
body: await parseErrorBody(output.body, context),
|
|
1220
1220
|
};
|
|
1221
1221
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1222
1222
|
switch (errorCode) {
|
|
@@ -1262,7 +1262,7 @@ exports.deserializeAws_restJson1CreateApiKeyCommand = deserializeAws_restJson1Cr
|
|
|
1262
1262
|
const deserializeAws_restJson1CreateApiKeyCommandError = async (output, context) => {
|
|
1263
1263
|
const parsedOutput = {
|
|
1264
1264
|
...output,
|
|
1265
|
-
body: await
|
|
1265
|
+
body: await parseErrorBody(output.body, context),
|
|
1266
1266
|
};
|
|
1267
1267
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
1268
|
switch (errorCode) {
|
|
@@ -1314,7 +1314,7 @@ exports.deserializeAws_restJson1CreateDataSourceCommand = deserializeAws_restJso
|
|
|
1314
1314
|
const deserializeAws_restJson1CreateDataSourceCommandError = async (output, context) => {
|
|
1315
1315
|
const parsedOutput = {
|
|
1316
1316
|
...output,
|
|
1317
|
-
body: await
|
|
1317
|
+
body: await parseErrorBody(output.body, context),
|
|
1318
1318
|
};
|
|
1319
1319
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
1320
|
switch (errorCode) {
|
|
@@ -1360,7 +1360,7 @@ exports.deserializeAws_restJson1CreateDomainNameCommand = deserializeAws_restJso
|
|
|
1360
1360
|
const deserializeAws_restJson1CreateDomainNameCommandError = async (output, context) => {
|
|
1361
1361
|
const parsedOutput = {
|
|
1362
1362
|
...output,
|
|
1363
|
-
body: await
|
|
1363
|
+
body: await parseErrorBody(output.body, context),
|
|
1364
1364
|
};
|
|
1365
1365
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1366
1366
|
switch (errorCode) {
|
|
@@ -1400,7 +1400,7 @@ exports.deserializeAws_restJson1CreateFunctionCommand = deserializeAws_restJson1
|
|
|
1400
1400
|
const deserializeAws_restJson1CreateFunctionCommandError = async (output, context) => {
|
|
1401
1401
|
const parsedOutput = {
|
|
1402
1402
|
...output,
|
|
1403
|
-
body: await
|
|
1403
|
+
body: await parseErrorBody(output.body, context),
|
|
1404
1404
|
};
|
|
1405
1405
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
1406
|
switch (errorCode) {
|
|
@@ -1443,7 +1443,7 @@ exports.deserializeAws_restJson1CreateGraphqlApiCommand = deserializeAws_restJso
|
|
|
1443
1443
|
const deserializeAws_restJson1CreateGraphqlApiCommandError = async (output, context) => {
|
|
1444
1444
|
const parsedOutput = {
|
|
1445
1445
|
...output,
|
|
1446
|
-
body: await
|
|
1446
|
+
body: await parseErrorBody(output.body, context),
|
|
1447
1447
|
};
|
|
1448
1448
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
1449
|
switch (errorCode) {
|
|
@@ -1492,7 +1492,7 @@ exports.deserializeAws_restJson1CreateResolverCommand = deserializeAws_restJson1
|
|
|
1492
1492
|
const deserializeAws_restJson1CreateResolverCommandError = 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) {
|
|
@@ -1535,7 +1535,7 @@ exports.deserializeAws_restJson1CreateTypeCommand = deserializeAws_restJson1Crea
|
|
|
1535
1535
|
const deserializeAws_restJson1CreateTypeCommandError = 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) {
|
|
@@ -1578,7 +1578,7 @@ exports.deserializeAws_restJson1DeleteApiCacheCommand = deserializeAws_restJson1
|
|
|
1578
1578
|
const deserializeAws_restJson1DeleteApiCacheCommandError = async (output, context) => {
|
|
1579
1579
|
const parsedOutput = {
|
|
1580
1580
|
...output,
|
|
1581
|
-
body: await
|
|
1581
|
+
body: await parseErrorBody(output.body, context),
|
|
1582
1582
|
};
|
|
1583
1583
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
1584
|
switch (errorCode) {
|
|
@@ -1621,7 +1621,7 @@ exports.deserializeAws_restJson1DeleteApiKeyCommand = deserializeAws_restJson1De
|
|
|
1621
1621
|
const deserializeAws_restJson1DeleteApiKeyCommandError = async (output, context) => {
|
|
1622
1622
|
const parsedOutput = {
|
|
1623
1623
|
...output,
|
|
1624
|
-
body: await
|
|
1624
|
+
body: await parseErrorBody(output.body, context),
|
|
1625
1625
|
};
|
|
1626
1626
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
1627
|
switch (errorCode) {
|
|
@@ -1661,7 +1661,7 @@ exports.deserializeAws_restJson1DeleteDataSourceCommand = deserializeAws_restJso
|
|
|
1661
1661
|
const deserializeAws_restJson1DeleteDataSourceCommandError = async (output, context) => {
|
|
1662
1662
|
const parsedOutput = {
|
|
1663
1663
|
...output,
|
|
1664
|
-
body: await
|
|
1664
|
+
body: await parseErrorBody(output.body, context),
|
|
1665
1665
|
};
|
|
1666
1666
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1667
1667
|
switch (errorCode) {
|
|
@@ -1704,7 +1704,7 @@ exports.deserializeAws_restJson1DeleteDomainNameCommand = deserializeAws_restJso
|
|
|
1704
1704
|
const deserializeAws_restJson1DeleteDomainNameCommandError = async (output, context) => {
|
|
1705
1705
|
const parsedOutput = {
|
|
1706
1706
|
...output,
|
|
1707
|
-
body: await
|
|
1707
|
+
body: await parseErrorBody(output.body, context),
|
|
1708
1708
|
};
|
|
1709
1709
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
1710
|
switch (errorCode) {
|
|
@@ -1747,7 +1747,7 @@ exports.deserializeAws_restJson1DeleteFunctionCommand = deserializeAws_restJson1
|
|
|
1747
1747
|
const deserializeAws_restJson1DeleteFunctionCommandError = async (output, context) => {
|
|
1748
1748
|
const parsedOutput = {
|
|
1749
1749
|
...output,
|
|
1750
|
-
body: await
|
|
1750
|
+
body: await parseErrorBody(output.body, context),
|
|
1751
1751
|
};
|
|
1752
1752
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1753
1753
|
switch (errorCode) {
|
|
@@ -1787,7 +1787,7 @@ exports.deserializeAws_restJson1DeleteGraphqlApiCommand = deserializeAws_restJso
|
|
|
1787
1787
|
const deserializeAws_restJson1DeleteGraphqlApiCommandError = async (output, context) => {
|
|
1788
1788
|
const parsedOutput = {
|
|
1789
1789
|
...output,
|
|
1790
|
-
body: await
|
|
1790
|
+
body: await parseErrorBody(output.body, context),
|
|
1791
1791
|
};
|
|
1792
1792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
1793
|
switch (errorCode) {
|
|
@@ -1833,7 +1833,7 @@ exports.deserializeAws_restJson1DeleteResolverCommand = deserializeAws_restJson1
|
|
|
1833
1833
|
const deserializeAws_restJson1DeleteResolverCommandError = async (output, context) => {
|
|
1834
1834
|
const parsedOutput = {
|
|
1835
1835
|
...output,
|
|
1836
|
-
body: await
|
|
1836
|
+
body: await parseErrorBody(output.body, context),
|
|
1837
1837
|
};
|
|
1838
1838
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
1839
|
switch (errorCode) {
|
|
@@ -1873,7 +1873,7 @@ exports.deserializeAws_restJson1DeleteTypeCommand = deserializeAws_restJson1Dele
|
|
|
1873
1873
|
const deserializeAws_restJson1DeleteTypeCommandError = async (output, context) => {
|
|
1874
1874
|
const parsedOutput = {
|
|
1875
1875
|
...output,
|
|
1876
|
-
body: await
|
|
1876
|
+
body: await parseErrorBody(output.body, context),
|
|
1877
1877
|
};
|
|
1878
1878
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1879
1879
|
switch (errorCode) {
|
|
@@ -1916,7 +1916,7 @@ exports.deserializeAws_restJson1DisassociateApiCommand = deserializeAws_restJson
|
|
|
1916
1916
|
const deserializeAws_restJson1DisassociateApiCommandError = async (output, context) => {
|
|
1917
1917
|
const parsedOutput = {
|
|
1918
1918
|
...output,
|
|
1919
|
-
body: await
|
|
1919
|
+
body: await parseErrorBody(output.body, context),
|
|
1920
1920
|
};
|
|
1921
1921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1922
1922
|
switch (errorCode) {
|
|
@@ -1965,7 +1965,7 @@ exports.deserializeAws_restJson1EvaluateMappingTemplateCommand = deserializeAws_
|
|
|
1965
1965
|
const deserializeAws_restJson1EvaluateMappingTemplateCommandError = async (output, context) => {
|
|
1966
1966
|
const parsedOutput = {
|
|
1967
1967
|
...output,
|
|
1968
|
-
body: await
|
|
1968
|
+
body: await parseErrorBody(output.body, context),
|
|
1969
1969
|
};
|
|
1970
1970
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1971
1971
|
switch (errorCode) {
|
|
@@ -2002,7 +2002,7 @@ exports.deserializeAws_restJson1FlushApiCacheCommand = deserializeAws_restJson1F
|
|
|
2002
2002
|
const deserializeAws_restJson1FlushApiCacheCommandError = async (output, context) => {
|
|
2003
2003
|
const parsedOutput = {
|
|
2004
2004
|
...output,
|
|
2005
|
-
body: await
|
|
2005
|
+
body: await parseErrorBody(output.body, context),
|
|
2006
2006
|
};
|
|
2007
2007
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2008
2008
|
switch (errorCode) {
|
|
@@ -2048,7 +2048,7 @@ exports.deserializeAws_restJson1GetApiAssociationCommand = deserializeAws_restJs
|
|
|
2048
2048
|
const deserializeAws_restJson1GetApiAssociationCommandError = async (output, context) => {
|
|
2049
2049
|
const parsedOutput = {
|
|
2050
2050
|
...output,
|
|
2051
|
-
body: await
|
|
2051
|
+
body: await parseErrorBody(output.body, context),
|
|
2052
2052
|
};
|
|
2053
2053
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2054
2054
|
switch (errorCode) {
|
|
@@ -2091,7 +2091,7 @@ exports.deserializeAws_restJson1GetApiCacheCommand = deserializeAws_restJson1Get
|
|
|
2091
2091
|
const deserializeAws_restJson1GetApiCacheCommandError = async (output, context) => {
|
|
2092
2092
|
const parsedOutput = {
|
|
2093
2093
|
...output,
|
|
2094
|
-
body: await
|
|
2094
|
+
body: await parseErrorBody(output.body, context),
|
|
2095
2095
|
};
|
|
2096
2096
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2097
2097
|
switch (errorCode) {
|
|
@@ -2137,7 +2137,7 @@ exports.deserializeAws_restJson1GetDataSourceCommand = deserializeAws_restJson1G
|
|
|
2137
2137
|
const deserializeAws_restJson1GetDataSourceCommandError = async (output, context) => {
|
|
2138
2138
|
const parsedOutput = {
|
|
2139
2139
|
...output,
|
|
2140
|
-
body: await
|
|
2140
|
+
body: await parseErrorBody(output.body, context),
|
|
2141
2141
|
};
|
|
2142
2142
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
2143
|
switch (errorCode) {
|
|
@@ -2183,7 +2183,7 @@ exports.deserializeAws_restJson1GetDomainNameCommand = deserializeAws_restJson1G
|
|
|
2183
2183
|
const deserializeAws_restJson1GetDomainNameCommandError = async (output, context) => {
|
|
2184
2184
|
const parsedOutput = {
|
|
2185
2185
|
...output,
|
|
2186
|
-
body: await
|
|
2186
|
+
body: await parseErrorBody(output.body, context),
|
|
2187
2187
|
};
|
|
2188
2188
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2189
2189
|
switch (errorCode) {
|
|
@@ -2226,7 +2226,7 @@ exports.deserializeAws_restJson1GetFunctionCommand = deserializeAws_restJson1Get
|
|
|
2226
2226
|
const deserializeAws_restJson1GetFunctionCommandError = async (output, context) => {
|
|
2227
2227
|
const parsedOutput = {
|
|
2228
2228
|
...output,
|
|
2229
|
-
body: await
|
|
2229
|
+
body: await parseErrorBody(output.body, context),
|
|
2230
2230
|
};
|
|
2231
2231
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2232
2232
|
switch (errorCode) {
|
|
@@ -2266,7 +2266,7 @@ exports.deserializeAws_restJson1GetGraphqlApiCommand = deserializeAws_restJson1G
|
|
|
2266
2266
|
const deserializeAws_restJson1GetGraphqlApiCommandError = async (output, context) => {
|
|
2267
2267
|
const parsedOutput = {
|
|
2268
2268
|
...output,
|
|
2269
|
-
body: await
|
|
2269
|
+
body: await parseErrorBody(output.body, context),
|
|
2270
2270
|
};
|
|
2271
2271
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
2272
|
switch (errorCode) {
|
|
@@ -2310,7 +2310,7 @@ exports.deserializeAws_restJson1GetIntrospectionSchemaCommand = deserializeAws_r
|
|
|
2310
2310
|
const deserializeAws_restJson1GetIntrospectionSchemaCommandError = async (output, context) => {
|
|
2311
2311
|
const parsedOutput = {
|
|
2312
2312
|
...output,
|
|
2313
|
-
body: await
|
|
2313
|
+
body: await parseErrorBody(output.body, context),
|
|
2314
2314
|
};
|
|
2315
2315
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2316
2316
|
switch (errorCode) {
|
|
@@ -2353,7 +2353,7 @@ exports.deserializeAws_restJson1GetResolverCommand = deserializeAws_restJson1Get
|
|
|
2353
2353
|
const deserializeAws_restJson1GetResolverCommandError = async (output, context) => {
|
|
2354
2354
|
const parsedOutput = {
|
|
2355
2355
|
...output,
|
|
2356
|
-
body: await
|
|
2356
|
+
body: await parseErrorBody(output.body, context),
|
|
2357
2357
|
};
|
|
2358
2358
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2359
2359
|
switch (errorCode) {
|
|
@@ -2396,7 +2396,7 @@ exports.deserializeAws_restJson1GetSchemaCreationStatusCommand = deserializeAws_
|
|
|
2396
2396
|
const deserializeAws_restJson1GetSchemaCreationStatusCommandError = async (output, context) => {
|
|
2397
2397
|
const parsedOutput = {
|
|
2398
2398
|
...output,
|
|
2399
|
-
body: await
|
|
2399
|
+
body: await parseErrorBody(output.body, context),
|
|
2400
2400
|
};
|
|
2401
2401
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2402
2402
|
switch (errorCode) {
|
|
@@ -2439,7 +2439,7 @@ exports.deserializeAws_restJson1GetTypeCommand = deserializeAws_restJson1GetType
|
|
|
2439
2439
|
const deserializeAws_restJson1GetTypeCommandError = async (output, context) => {
|
|
2440
2440
|
const parsedOutput = {
|
|
2441
2441
|
...output,
|
|
2442
|
-
body: await
|
|
2442
|
+
body: await parseErrorBody(output.body, context),
|
|
2443
2443
|
};
|
|
2444
2444
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2445
2445
|
switch (errorCode) {
|
|
@@ -2488,7 +2488,7 @@ exports.deserializeAws_restJson1ListApiKeysCommand = deserializeAws_restJson1Lis
|
|
|
2488
2488
|
const deserializeAws_restJson1ListApiKeysCommandError = async (output, context) => {
|
|
2489
2489
|
const parsedOutput = {
|
|
2490
2490
|
...output,
|
|
2491
|
-
body: await
|
|
2491
|
+
body: await parseErrorBody(output.body, context),
|
|
2492
2492
|
};
|
|
2493
2493
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2494
2494
|
switch (errorCode) {
|
|
@@ -2534,7 +2534,7 @@ exports.deserializeAws_restJson1ListDataSourcesCommand = deserializeAws_restJson
|
|
|
2534
2534
|
const deserializeAws_restJson1ListDataSourcesCommandError = async (output, context) => {
|
|
2535
2535
|
const parsedOutput = {
|
|
2536
2536
|
...output,
|
|
2537
|
-
body: await
|
|
2537
|
+
body: await parseErrorBody(output.body, context),
|
|
2538
2538
|
};
|
|
2539
2539
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2540
2540
|
switch (errorCode) {
|
|
@@ -2580,7 +2580,7 @@ exports.deserializeAws_restJson1ListDomainNamesCommand = deserializeAws_restJson
|
|
|
2580
2580
|
const deserializeAws_restJson1ListDomainNamesCommandError = async (output, context) => {
|
|
2581
2581
|
const parsedOutput = {
|
|
2582
2582
|
...output,
|
|
2583
|
-
body: await
|
|
2583
|
+
body: await parseErrorBody(output.body, context),
|
|
2584
2584
|
};
|
|
2585
2585
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2586
2586
|
switch (errorCode) {
|
|
@@ -2623,7 +2623,7 @@ exports.deserializeAws_restJson1ListFunctionsCommand = deserializeAws_restJson1L
|
|
|
2623
2623
|
const deserializeAws_restJson1ListFunctionsCommandError = async (output, context) => {
|
|
2624
2624
|
const parsedOutput = {
|
|
2625
2625
|
...output,
|
|
2626
|
-
body: await
|
|
2626
|
+
body: await parseErrorBody(output.body, context),
|
|
2627
2627
|
};
|
|
2628
2628
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2629
2629
|
switch (errorCode) {
|
|
@@ -2669,7 +2669,7 @@ exports.deserializeAws_restJson1ListGraphqlApisCommand = deserializeAws_restJson
|
|
|
2669
2669
|
const deserializeAws_restJson1ListGraphqlApisCommandError = async (output, context) => {
|
|
2670
2670
|
const parsedOutput = {
|
|
2671
2671
|
...output,
|
|
2672
|
-
body: await
|
|
2672
|
+
body: await parseErrorBody(output.body, context),
|
|
2673
2673
|
};
|
|
2674
2674
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2675
2675
|
switch (errorCode) {
|
|
@@ -2712,7 +2712,7 @@ exports.deserializeAws_restJson1ListResolversCommand = deserializeAws_restJson1L
|
|
|
2712
2712
|
const deserializeAws_restJson1ListResolversCommandError = async (output, context) => {
|
|
2713
2713
|
const parsedOutput = {
|
|
2714
2714
|
...output,
|
|
2715
|
-
body: await
|
|
2715
|
+
body: await parseErrorBody(output.body, context),
|
|
2716
2716
|
};
|
|
2717
2717
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2718
2718
|
switch (errorCode) {
|
|
@@ -2758,7 +2758,7 @@ exports.deserializeAws_restJson1ListResolversByFunctionCommand = deserializeAws_
|
|
|
2758
2758
|
const deserializeAws_restJson1ListResolversByFunctionCommandError = async (output, context) => {
|
|
2759
2759
|
const parsedOutput = {
|
|
2760
2760
|
...output,
|
|
2761
|
-
body: await
|
|
2761
|
+
body: await parseErrorBody(output.body, context),
|
|
2762
2762
|
};
|
|
2763
2763
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2764
2764
|
switch (errorCode) {
|
|
@@ -2801,7 +2801,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2801
2801
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2802
2802
|
const parsedOutput = {
|
|
2803
2803
|
...output,
|
|
2804
|
-
body: await
|
|
2804
|
+
body: await parseErrorBody(output.body, context),
|
|
2805
2805
|
};
|
|
2806
2806
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2807
2807
|
switch (errorCode) {
|
|
@@ -2853,7 +2853,7 @@ exports.deserializeAws_restJson1ListTypesCommand = deserializeAws_restJson1ListT
|
|
|
2853
2853
|
const deserializeAws_restJson1ListTypesCommandError = async (output, context) => {
|
|
2854
2854
|
const parsedOutput = {
|
|
2855
2855
|
...output,
|
|
2856
|
-
body: await
|
|
2856
|
+
body: await parseErrorBody(output.body, context),
|
|
2857
2857
|
};
|
|
2858
2858
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2859
2859
|
switch (errorCode) {
|
|
@@ -2899,7 +2899,7 @@ exports.deserializeAws_restJson1StartSchemaCreationCommand = deserializeAws_rest
|
|
|
2899
2899
|
const deserializeAws_restJson1StartSchemaCreationCommandError = async (output, context) => {
|
|
2900
2900
|
const parsedOutput = {
|
|
2901
2901
|
...output,
|
|
2902
|
-
body: await
|
|
2902
|
+
body: await parseErrorBody(output.body, context),
|
|
2903
2903
|
};
|
|
2904
2904
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2905
2905
|
switch (errorCode) {
|
|
@@ -2942,7 +2942,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2942
2942
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2943
2943
|
const parsedOutput = {
|
|
2944
2944
|
...output,
|
|
2945
|
-
body: await
|
|
2945
|
+
body: await parseErrorBody(output.body, context),
|
|
2946
2946
|
};
|
|
2947
2947
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2948
2948
|
switch (errorCode) {
|
|
@@ -2988,7 +2988,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2988
2988
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2989
2989
|
const parsedOutput = {
|
|
2990
2990
|
...output,
|
|
2991
|
-
body: await
|
|
2991
|
+
body: await parseErrorBody(output.body, context),
|
|
2992
2992
|
};
|
|
2993
2993
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2994
2994
|
switch (errorCode) {
|
|
@@ -3037,7 +3037,7 @@ exports.deserializeAws_restJson1UpdateApiCacheCommand = deserializeAws_restJson1
|
|
|
3037
3037
|
const deserializeAws_restJson1UpdateApiCacheCommandError = async (output, context) => {
|
|
3038
3038
|
const parsedOutput = {
|
|
3039
3039
|
...output,
|
|
3040
|
-
body: await
|
|
3040
|
+
body: await parseErrorBody(output.body, context),
|
|
3041
3041
|
};
|
|
3042
3042
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3043
3043
|
switch (errorCode) {
|
|
@@ -3083,7 +3083,7 @@ exports.deserializeAws_restJson1UpdateApiKeyCommand = deserializeAws_restJson1Up
|
|
|
3083
3083
|
const deserializeAws_restJson1UpdateApiKeyCommandError = async (output, context) => {
|
|
3084
3084
|
const parsedOutput = {
|
|
3085
3085
|
...output,
|
|
3086
|
-
body: await
|
|
3086
|
+
body: await parseErrorBody(output.body, context),
|
|
3087
3087
|
};
|
|
3088
3088
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3089
3089
|
switch (errorCode) {
|
|
@@ -3132,7 +3132,7 @@ exports.deserializeAws_restJson1UpdateDataSourceCommand = deserializeAws_restJso
|
|
|
3132
3132
|
const deserializeAws_restJson1UpdateDataSourceCommandError = async (output, context) => {
|
|
3133
3133
|
const parsedOutput = {
|
|
3134
3134
|
...output,
|
|
3135
|
-
body: await
|
|
3135
|
+
body: await parseErrorBody(output.body, context),
|
|
3136
3136
|
};
|
|
3137
3137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3138
3138
|
switch (errorCode) {
|
|
@@ -3178,7 +3178,7 @@ exports.deserializeAws_restJson1UpdateDomainNameCommand = deserializeAws_restJso
|
|
|
3178
3178
|
const deserializeAws_restJson1UpdateDomainNameCommandError = async (output, context) => {
|
|
3179
3179
|
const parsedOutput = {
|
|
3180
3180
|
...output,
|
|
3181
|
-
body: await
|
|
3181
|
+
body: await parseErrorBody(output.body, context),
|
|
3182
3182
|
};
|
|
3183
3183
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3184
3184
|
switch (errorCode) {
|
|
@@ -3224,7 +3224,7 @@ exports.deserializeAws_restJson1UpdateFunctionCommand = deserializeAws_restJson1
|
|
|
3224
3224
|
const deserializeAws_restJson1UpdateFunctionCommandError = async (output, context) => {
|
|
3225
3225
|
const parsedOutput = {
|
|
3226
3226
|
...output,
|
|
3227
|
-
body: await
|
|
3227
|
+
body: await parseErrorBody(output.body, context),
|
|
3228
3228
|
};
|
|
3229
3229
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3230
3230
|
switch (errorCode) {
|
|
@@ -3267,7 +3267,7 @@ exports.deserializeAws_restJson1UpdateGraphqlApiCommand = deserializeAws_restJso
|
|
|
3267
3267
|
const deserializeAws_restJson1UpdateGraphqlApiCommandError = async (output, context) => {
|
|
3268
3268
|
const parsedOutput = {
|
|
3269
3269
|
...output,
|
|
3270
|
-
body: await
|
|
3270
|
+
body: await parseErrorBody(output.body, context),
|
|
3271
3271
|
};
|
|
3272
3272
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3273
3273
|
switch (errorCode) {
|
|
@@ -3316,7 +3316,7 @@ exports.deserializeAws_restJson1UpdateResolverCommand = deserializeAws_restJson1
|
|
|
3316
3316
|
const deserializeAws_restJson1UpdateResolverCommandError = async (output, context) => {
|
|
3317
3317
|
const parsedOutput = {
|
|
3318
3318
|
...output,
|
|
3319
|
-
body: await
|
|
3319
|
+
body: await parseErrorBody(output.body, context),
|
|
3320
3320
|
};
|
|
3321
3321
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3322
3322
|
switch (errorCode) {
|
|
@@ -3359,7 +3359,7 @@ exports.deserializeAws_restJson1UpdateTypeCommand = deserializeAws_restJson1Upda
|
|
|
3359
3359
|
const deserializeAws_restJson1UpdateTypeCommandError = async (output, context) => {
|
|
3360
3360
|
const parsedOutput = {
|
|
3361
3361
|
...output,
|
|
3362
|
-
body: await
|
|
3362
|
+
body: await parseErrorBody(output.body, context),
|
|
3363
3363
|
};
|
|
3364
3364
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3365
3365
|
switch (errorCode) {
|
|
@@ -4146,6 +4146,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4146
4146
|
}
|
|
4147
4147
|
return {};
|
|
4148
4148
|
});
|
|
4149
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4150
|
+
var _a;
|
|
4151
|
+
const value = await parseBody(errorBody, context);
|
|
4152
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4153
|
+
return value;
|
|
4154
|
+
};
|
|
4149
4155
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4150
4156
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4151
4157
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1320,7 +1320,7 @@ var deserializeAws_restJson1AssociateApiCommandError = function (output, context
|
|
|
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);
|
|
@@ -1388,7 +1388,7 @@ var deserializeAws_restJson1CreateApiCacheCommandError = function (output, conte
|
|
|
1388
1388
|
case 0:
|
|
1389
1389
|
_a = [__assign({}, output)];
|
|
1390
1390
|
_c = {};
|
|
1391
|
-
return [4,
|
|
1391
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1392
1392
|
case 1:
|
|
1393
1393
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1394
1394
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1460,7 +1460,7 @@ var deserializeAws_restJson1CreateApiKeyCommandError = function (output, context
|
|
|
1460
1460
|
case 0:
|
|
1461
1461
|
_a = [__assign({}, output)];
|
|
1462
1462
|
_c = {};
|
|
1463
|
-
return [4,
|
|
1463
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1464
1464
|
case 1:
|
|
1465
1465
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1466
1466
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1540,7 +1540,7 @@ var deserializeAws_restJson1CreateDataSourceCommandError = function (output, con
|
|
|
1540
1540
|
case 0:
|
|
1541
1541
|
_a = [__assign({}, output)];
|
|
1542
1542
|
_c = {};
|
|
1543
|
-
return [4,
|
|
1543
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1544
1544
|
case 1:
|
|
1545
1545
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1546
1546
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1612,7 +1612,7 @@ var deserializeAws_restJson1CreateDomainNameCommandError = function (output, con
|
|
|
1612
1612
|
case 0:
|
|
1613
1613
|
_a = [__assign({}, output)];
|
|
1614
1614
|
_c = {};
|
|
1615
|
-
return [4,
|
|
1615
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1616
1616
|
case 1:
|
|
1617
1617
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1618
1618
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1676,7 +1676,7 @@ var deserializeAws_restJson1CreateFunctionCommandError = function (output, conte
|
|
|
1676
1676
|
case 0:
|
|
1677
1677
|
_a = [__assign({}, output)];
|
|
1678
1678
|
_c = {};
|
|
1679
|
-
return [4,
|
|
1679
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1680
1680
|
case 1:
|
|
1681
1681
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1682
1682
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1744,7 +1744,7 @@ var deserializeAws_restJson1CreateGraphqlApiCommandError = function (output, con
|
|
|
1744
1744
|
case 0:
|
|
1745
1745
|
_a = [__assign({}, output)];
|
|
1746
1746
|
_c = {};
|
|
1747
|
-
return [4,
|
|
1747
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1748
1748
|
case 1:
|
|
1749
1749
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1750
1750
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1820,7 +1820,7 @@ var deserializeAws_restJson1CreateResolverCommandError = function (output, conte
|
|
|
1820
1820
|
case 0:
|
|
1821
1821
|
_a = [__assign({}, output)];
|
|
1822
1822
|
_c = {};
|
|
1823
|
-
return [4,
|
|
1823
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1824
1824
|
case 1:
|
|
1825
1825
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1826
1826
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1888,7 +1888,7 @@ var deserializeAws_restJson1CreateTypeCommandError = function (output, context)
|
|
|
1888
1888
|
case 0:
|
|
1889
1889
|
_a = [__assign({}, output)];
|
|
1890
1890
|
_c = {};
|
|
1891
|
-
return [4,
|
|
1891
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1892
1892
|
case 1:
|
|
1893
1893
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1894
1894
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1955,7 +1955,7 @@ var deserializeAws_restJson1DeleteApiCacheCommandError = function (output, conte
|
|
|
1955
1955
|
case 0:
|
|
1956
1956
|
_a = [__assign({}, output)];
|
|
1957
1957
|
_c = {};
|
|
1958
|
-
return [4,
|
|
1958
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1959
1959
|
case 1:
|
|
1960
1960
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1961
1961
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2022,7 +2022,7 @@ var deserializeAws_restJson1DeleteApiKeyCommandError = function (output, context
|
|
|
2022
2022
|
case 0:
|
|
2023
2023
|
_a = [__assign({}, output)];
|
|
2024
2024
|
_c = {};
|
|
2025
|
-
return [4,
|
|
2025
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2026
2026
|
case 1:
|
|
2027
2027
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2028
2028
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2085,7 +2085,7 @@ var deserializeAws_restJson1DeleteDataSourceCommandError = function (output, con
|
|
|
2085
2085
|
case 0:
|
|
2086
2086
|
_a = [__assign({}, output)];
|
|
2087
2087
|
_c = {};
|
|
2088
|
-
return [4,
|
|
2088
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2089
2089
|
case 1:
|
|
2090
2090
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2091
2091
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2152,7 +2152,7 @@ var deserializeAws_restJson1DeleteDomainNameCommandError = function (output, con
|
|
|
2152
2152
|
case 0:
|
|
2153
2153
|
_a = [__assign({}, output)];
|
|
2154
2154
|
_c = {};
|
|
2155
|
-
return [4,
|
|
2155
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2156
2156
|
case 1:
|
|
2157
2157
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2158
2158
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2219,7 +2219,7 @@ var deserializeAws_restJson1DeleteFunctionCommandError = function (output, conte
|
|
|
2219
2219
|
case 0:
|
|
2220
2220
|
_a = [__assign({}, output)];
|
|
2221
2221
|
_c = {};
|
|
2222
|
-
return [4,
|
|
2222
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2223
2223
|
case 1:
|
|
2224
2224
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2225
2225
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2282,7 +2282,7 @@ var deserializeAws_restJson1DeleteGraphqlApiCommandError = function (output, con
|
|
|
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);
|
|
@@ -2353,7 +2353,7 @@ var deserializeAws_restJson1DeleteResolverCommandError = function (output, conte
|
|
|
2353
2353
|
case 0:
|
|
2354
2354
|
_a = [__assign({}, output)];
|
|
2355
2355
|
_c = {};
|
|
2356
|
-
return [4,
|
|
2356
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2357
2357
|
case 1:
|
|
2358
2358
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2359
2359
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2416,7 +2416,7 @@ var deserializeAws_restJson1DeleteTypeCommandError = function (output, context)
|
|
|
2416
2416
|
case 0:
|
|
2417
2417
|
_a = [__assign({}, output)];
|
|
2418
2418
|
_c = {};
|
|
2419
|
-
return [4,
|
|
2419
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2420
2420
|
case 1:
|
|
2421
2421
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2422
2422
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2483,7 +2483,7 @@ var deserializeAws_restJson1DisassociateApiCommandError = function (output, cont
|
|
|
2483
2483
|
case 0:
|
|
2484
2484
|
_a = [__assign({}, output)];
|
|
2485
2485
|
_c = {};
|
|
2486
|
-
return [4,
|
|
2486
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2487
2487
|
case 1:
|
|
2488
2488
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2489
2489
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2558,7 +2558,7 @@ var deserializeAws_restJson1EvaluateMappingTemplateCommandError = function (outp
|
|
|
2558
2558
|
case 0:
|
|
2559
2559
|
_a = [__assign({}, output)];
|
|
2560
2560
|
_c = {};
|
|
2561
|
-
return [4,
|
|
2561
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2562
2562
|
case 1:
|
|
2563
2563
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2564
2564
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2617,7 +2617,7 @@ var deserializeAws_restJson1FlushApiCacheCommandError = function (output, contex
|
|
|
2617
2617
|
case 0:
|
|
2618
2618
|
_a = [__assign({}, output)];
|
|
2619
2619
|
_c = {};
|
|
2620
|
-
return [4,
|
|
2620
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2621
2621
|
case 1:
|
|
2622
2622
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2623
2623
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2689,7 +2689,7 @@ var deserializeAws_restJson1GetApiAssociationCommandError = function (output, co
|
|
|
2689
2689
|
case 0:
|
|
2690
2690
|
_a = [__assign({}, output)];
|
|
2691
2691
|
_c = {};
|
|
2692
|
-
return [4,
|
|
2692
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2693
2693
|
case 1:
|
|
2694
2694
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2695
2695
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2757,7 +2757,7 @@ var deserializeAws_restJson1GetApiCacheCommandError = function (output, context)
|
|
|
2757
2757
|
case 0:
|
|
2758
2758
|
_a = [__assign({}, output)];
|
|
2759
2759
|
_c = {};
|
|
2760
|
-
return [4,
|
|
2760
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2761
2761
|
case 1:
|
|
2762
2762
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2763
2763
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2829,7 +2829,7 @@ var deserializeAws_restJson1GetDataSourceCommandError = function (output, contex
|
|
|
2829
2829
|
case 0:
|
|
2830
2830
|
_a = [__assign({}, output)];
|
|
2831
2831
|
_c = {};
|
|
2832
|
-
return [4,
|
|
2832
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2833
2833
|
case 1:
|
|
2834
2834
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2835
2835
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2901,7 +2901,7 @@ var deserializeAws_restJson1GetDomainNameCommandError = function (output, contex
|
|
|
2901
2901
|
case 0:
|
|
2902
2902
|
_a = [__assign({}, output)];
|
|
2903
2903
|
_c = {};
|
|
2904
|
-
return [4,
|
|
2904
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2905
2905
|
case 1:
|
|
2906
2906
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2907
2907
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2969,7 +2969,7 @@ var deserializeAws_restJson1GetFunctionCommandError = function (output, context)
|
|
|
2969
2969
|
case 0:
|
|
2970
2970
|
_a = [__assign({}, output)];
|
|
2971
2971
|
_c = {};
|
|
2972
|
-
return [4,
|
|
2972
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2973
2973
|
case 1:
|
|
2974
2974
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2975
2975
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3033,7 +3033,7 @@ var deserializeAws_restJson1GetGraphqlApiCommandError = function (output, contex
|
|
|
3033
3033
|
case 0:
|
|
3034
3034
|
_a = [__assign({}, output)];
|
|
3035
3035
|
_c = {};
|
|
3036
|
-
return [4,
|
|
3036
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3037
3037
|
case 1:
|
|
3038
3038
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3039
3039
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3101,7 +3101,7 @@ var deserializeAws_restJson1GetIntrospectionSchemaCommandError = function (outpu
|
|
|
3101
3101
|
case 0:
|
|
3102
3102
|
_a = [__assign({}, output)];
|
|
3103
3103
|
_c = {};
|
|
3104
|
-
return [4,
|
|
3104
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3105
3105
|
case 1:
|
|
3106
3106
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3107
3107
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3169,7 +3169,7 @@ var deserializeAws_restJson1GetResolverCommandError = function (output, context)
|
|
|
3169
3169
|
case 0:
|
|
3170
3170
|
_a = [__assign({}, output)];
|
|
3171
3171
|
_c = {};
|
|
3172
|
-
return [4,
|
|
3172
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3173
3173
|
case 1:
|
|
3174
3174
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3175
3175
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3236,7 +3236,7 @@ var deserializeAws_restJson1GetSchemaCreationStatusCommandError = function (outp
|
|
|
3236
3236
|
case 0:
|
|
3237
3237
|
_a = [__assign({}, output)];
|
|
3238
3238
|
_c = {};
|
|
3239
|
-
return [4,
|
|
3239
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3240
3240
|
case 1:
|
|
3241
3241
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3242
3242
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3304,7 +3304,7 @@ var deserializeAws_restJson1GetTypeCommandError = function (output, context) { r
|
|
|
3304
3304
|
case 0:
|
|
3305
3305
|
_a = [__assign({}, output)];
|
|
3306
3306
|
_c = {};
|
|
3307
|
-
return [4,
|
|
3307
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3308
3308
|
case 1:
|
|
3309
3309
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3310
3310
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3379,7 +3379,7 @@ var deserializeAws_restJson1ListApiKeysCommandError = function (output, context)
|
|
|
3379
3379
|
case 0:
|
|
3380
3380
|
_a = [__assign({}, output)];
|
|
3381
3381
|
_c = {};
|
|
3382
|
-
return [4,
|
|
3382
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3383
3383
|
case 1:
|
|
3384
3384
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3385
3385
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3450,7 +3450,7 @@ var deserializeAws_restJson1ListDataSourcesCommandError = function (output, cont
|
|
|
3450
3450
|
case 0:
|
|
3451
3451
|
_a = [__assign({}, output)];
|
|
3452
3452
|
_c = {};
|
|
3453
|
-
return [4,
|
|
3453
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3454
3454
|
case 1:
|
|
3455
3455
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3456
3456
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3521,7 +3521,7 @@ var deserializeAws_restJson1ListDomainNamesCommandError = function (output, cont
|
|
|
3521
3521
|
case 0:
|
|
3522
3522
|
_a = [__assign({}, output)];
|
|
3523
3523
|
_c = {};
|
|
3524
|
-
return [4,
|
|
3524
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3525
3525
|
case 1:
|
|
3526
3526
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3527
3527
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3588,7 +3588,7 @@ var deserializeAws_restJson1ListFunctionsCommandError = function (output, contex
|
|
|
3588
3588
|
case 0:
|
|
3589
3589
|
_a = [__assign({}, output)];
|
|
3590
3590
|
_c = {};
|
|
3591
|
-
return [4,
|
|
3591
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3592
3592
|
case 1:
|
|
3593
3593
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3594
3594
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3659,7 +3659,7 @@ var deserializeAws_restJson1ListGraphqlApisCommandError = function (output, cont
|
|
|
3659
3659
|
case 0:
|
|
3660
3660
|
_a = [__assign({}, output)];
|
|
3661
3661
|
_c = {};
|
|
3662
|
-
return [4,
|
|
3662
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3663
3663
|
case 1:
|
|
3664
3664
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3665
3665
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3726,7 +3726,7 @@ var deserializeAws_restJson1ListResolversCommandError = function (output, contex
|
|
|
3726
3726
|
case 0:
|
|
3727
3727
|
_a = [__assign({}, output)];
|
|
3728
3728
|
_c = {};
|
|
3729
|
-
return [4,
|
|
3729
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3730
3730
|
case 1:
|
|
3731
3731
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3732
3732
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3797,7 +3797,7 @@ var deserializeAws_restJson1ListResolversByFunctionCommandError = function (outp
|
|
|
3797
3797
|
case 0:
|
|
3798
3798
|
_a = [__assign({}, output)];
|
|
3799
3799
|
_c = {};
|
|
3800
|
-
return [4,
|
|
3800
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3801
3801
|
case 1:
|
|
3802
3802
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3803
3803
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3865,7 +3865,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3865
3865
|
case 0:
|
|
3866
3866
|
_a = [__assign({}, output)];
|
|
3867
3867
|
_c = {};
|
|
3868
|
-
return [4,
|
|
3868
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3869
3869
|
case 1:
|
|
3870
3870
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3871
3871
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3944,7 +3944,7 @@ var deserializeAws_restJson1ListTypesCommandError = function (output, context) {
|
|
|
3944
3944
|
case 0:
|
|
3945
3945
|
_a = [__assign({}, output)];
|
|
3946
3946
|
_c = {};
|
|
3947
|
-
return [4,
|
|
3947
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3948
3948
|
case 1:
|
|
3949
3949
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3950
3950
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4016,7 +4016,7 @@ var deserializeAws_restJson1StartSchemaCreationCommandError = function (output,
|
|
|
4016
4016
|
case 0:
|
|
4017
4017
|
_a = [__assign({}, output)];
|
|
4018
4018
|
_c = {};
|
|
4019
|
-
return [4,
|
|
4019
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4020
4020
|
case 1:
|
|
4021
4021
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4022
4022
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4083,7 +4083,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
4083
4083
|
case 0:
|
|
4084
4084
|
_a = [__assign({}, output)];
|
|
4085
4085
|
_c = {};
|
|
4086
|
-
return [4,
|
|
4086
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4087
4087
|
case 1:
|
|
4088
4088
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4089
4089
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4154,7 +4154,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4154
4154
|
case 0:
|
|
4155
4155
|
_a = [__assign({}, output)];
|
|
4156
4156
|
_c = {};
|
|
4157
|
-
return [4,
|
|
4157
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4158
4158
|
case 1:
|
|
4159
4159
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4160
4160
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4230,7 +4230,7 @@ var deserializeAws_restJson1UpdateApiCacheCommandError = function (output, conte
|
|
|
4230
4230
|
case 0:
|
|
4231
4231
|
_a = [__assign({}, output)];
|
|
4232
4232
|
_c = {};
|
|
4233
|
-
return [4,
|
|
4233
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4234
4234
|
case 1:
|
|
4235
4235
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4236
4236
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4302,7 +4302,7 @@ var deserializeAws_restJson1UpdateApiKeyCommandError = function (output, context
|
|
|
4302
4302
|
case 0:
|
|
4303
4303
|
_a = [__assign({}, output)];
|
|
4304
4304
|
_c = {};
|
|
4305
|
-
return [4,
|
|
4305
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4306
4306
|
case 1:
|
|
4307
4307
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4308
4308
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4378,7 +4378,7 @@ var deserializeAws_restJson1UpdateDataSourceCommandError = function (output, con
|
|
|
4378
4378
|
case 0:
|
|
4379
4379
|
_a = [__assign({}, output)];
|
|
4380
4380
|
_c = {};
|
|
4381
|
-
return [4,
|
|
4381
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4382
4382
|
case 1:
|
|
4383
4383
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4384
4384
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4450,7 +4450,7 @@ var deserializeAws_restJson1UpdateDomainNameCommandError = function (output, con
|
|
|
4450
4450
|
case 0:
|
|
4451
4451
|
_a = [__assign({}, output)];
|
|
4452
4452
|
_c = {};
|
|
4453
|
-
return [4,
|
|
4453
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4454
4454
|
case 1:
|
|
4455
4455
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4456
4456
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4522,7 +4522,7 @@ var deserializeAws_restJson1UpdateFunctionCommandError = function (output, conte
|
|
|
4522
4522
|
case 0:
|
|
4523
4523
|
_a = [__assign({}, output)];
|
|
4524
4524
|
_c = {};
|
|
4525
|
-
return [4,
|
|
4525
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4526
4526
|
case 1:
|
|
4527
4527
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4528
4528
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4590,7 +4590,7 @@ var deserializeAws_restJson1UpdateGraphqlApiCommandError = function (output, con
|
|
|
4590
4590
|
case 0:
|
|
4591
4591
|
_a = [__assign({}, output)];
|
|
4592
4592
|
_c = {};
|
|
4593
|
-
return [4,
|
|
4593
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4594
4594
|
case 1:
|
|
4595
4595
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4596
4596
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4666,7 +4666,7 @@ var deserializeAws_restJson1UpdateResolverCommandError = function (output, conte
|
|
|
4666
4666
|
case 0:
|
|
4667
4667
|
_a = [__assign({}, output)];
|
|
4668
4668
|
_c = {};
|
|
4669
|
-
return [4,
|
|
4669
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4670
4670
|
case 1:
|
|
4671
4671
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4672
4672
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4734,7 +4734,7 @@ var deserializeAws_restJson1UpdateTypeCommandError = function (output, context)
|
|
|
4734
4734
|
case 0:
|
|
4735
4735
|
_a = [__assign({}, output)];
|
|
4736
4736
|
_c = {};
|
|
4737
|
-
return [4,
|
|
4737
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4738
4738
|
case 1:
|
|
4739
4739
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4740
4740
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5463,6 +5463,19 @@ var parseBody = function (streamBody, context) {
|
|
|
5463
5463
|
return {};
|
|
5464
5464
|
});
|
|
5465
5465
|
};
|
|
5466
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5467
|
+
var value;
|
|
5468
|
+
var _a;
|
|
5469
|
+
return __generator(this, function (_b) {
|
|
5470
|
+
switch (_b.label) {
|
|
5471
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
5472
|
+
case 1:
|
|
5473
|
+
value = _b.sent();
|
|
5474
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5475
|
+
return [2, value];
|
|
5476
|
+
}
|
|
5477
|
+
});
|
|
5478
|
+
}); };
|
|
5466
5479
|
var loadRestJsonErrorCode = function (output, data) {
|
|
5467
5480
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
5468
5481
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appsync",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appsync 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",
|