@aws-sdk/client-schemas 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +37 -31
- package/dist-es/Schemas.js +126 -133
- package/dist-es/SchemasClient.js +22 -28
- package/dist-es/commands/CreateDiscovererCommand.js +21 -28
- package/dist-es/commands/CreateRegistryCommand.js +21 -28
- package/dist-es/commands/CreateSchemaCommand.js +21 -28
- package/dist-es/commands/DeleteDiscovererCommand.js +22 -29
- package/dist-es/commands/DeleteRegistryCommand.js +22 -29
- package/dist-es/commands/DeleteResourcePolicyCommand.js +22 -29
- package/dist-es/commands/DeleteSchemaCommand.js +22 -29
- package/dist-es/commands/DeleteSchemaVersionCommand.js +22 -29
- package/dist-es/commands/DescribeCodeBindingCommand.js +21 -28
- package/dist-es/commands/DescribeDiscovererCommand.js +21 -28
- package/dist-es/commands/DescribeRegistryCommand.js +21 -28
- package/dist-es/commands/DescribeSchemaCommand.js +21 -28
- package/dist-es/commands/ExportSchemaCommand.js +21 -28
- package/dist-es/commands/GetCodeBindingSourceCommand.js +21 -28
- package/dist-es/commands/GetDiscoveredSchemaCommand.js +21 -28
- package/dist-es/commands/GetResourcePolicyCommand.js +21 -28
- package/dist-es/commands/ListDiscoverersCommand.js +21 -28
- package/dist-es/commands/ListRegistriesCommand.js +21 -28
- package/dist-es/commands/ListSchemaVersionsCommand.js +21 -28
- package/dist-es/commands/ListSchemasCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutCodeBindingCommand.js +21 -28
- package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
- package/dist-es/commands/SearchSchemasCommand.js +21 -28
- package/dist-es/commands/StartDiscovererCommand.js +21 -28
- package/dist-es/commands/StopDiscovererCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateDiscovererCommand.js +21 -28
- package/dist-es/commands/UpdateRegistryCommand.js +21 -28
- package/dist-es/commands/UpdateSchemaCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SchemasServiceException.js +5 -10
- package/dist-es/models/models_0.js +313 -192
- package/dist-es/pagination/ListDiscoverersPaginator.js +25 -68
- package/dist-es/pagination/ListRegistriesPaginator.js +25 -68
- package/dist-es/pagination/ListSchemaVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListSchemasPaginator.js +25 -68
- package/dist-es/pagination/SearchSchemasPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2431 -3432
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForCodeBindingExists.js +48 -68
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-schemas
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-schemas
|
|
@@ -717,7 +717,7 @@ exports.deserializeAws_restJson1CreateDiscovererCommand = deserializeAws_restJso
|
|
|
717
717
|
const deserializeAws_restJson1CreateDiscovererCommandError = async (output, context) => {
|
|
718
718
|
const parsedOutput = {
|
|
719
719
|
...output,
|
|
720
|
-
body: await
|
|
720
|
+
body: await parseErrorBody(output.body, context),
|
|
721
721
|
};
|
|
722
722
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
723
|
switch (errorCode) {
|
|
@@ -775,7 +775,7 @@ exports.deserializeAws_restJson1CreateRegistryCommand = deserializeAws_restJson1
|
|
|
775
775
|
const deserializeAws_restJson1CreateRegistryCommandError = async (output, context) => {
|
|
776
776
|
const parsedOutput = {
|
|
777
777
|
...output,
|
|
778
|
-
body: await
|
|
778
|
+
body: await parseErrorBody(output.body, context),
|
|
779
779
|
};
|
|
780
780
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
781
781
|
switch (errorCode) {
|
|
@@ -845,7 +845,7 @@ exports.deserializeAws_restJson1CreateSchemaCommand = deserializeAws_restJson1Cr
|
|
|
845
845
|
const deserializeAws_restJson1CreateSchemaCommandError = async (output, context) => {
|
|
846
846
|
const parsedOutput = {
|
|
847
847
|
...output,
|
|
848
|
-
body: await
|
|
848
|
+
body: await parseErrorBody(output.body, context),
|
|
849
849
|
};
|
|
850
850
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
851
|
switch (errorCode) {
|
|
@@ -885,7 +885,7 @@ exports.deserializeAws_restJson1DeleteDiscovererCommand = deserializeAws_restJso
|
|
|
885
885
|
const deserializeAws_restJson1DeleteDiscovererCommandError = async (output, context) => {
|
|
886
886
|
const parsedOutput = {
|
|
887
887
|
...output,
|
|
888
|
-
body: await
|
|
888
|
+
body: await parseErrorBody(output.body, context),
|
|
889
889
|
};
|
|
890
890
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
891
|
switch (errorCode) {
|
|
@@ -931,7 +931,7 @@ exports.deserializeAws_restJson1DeleteRegistryCommand = deserializeAws_restJson1
|
|
|
931
931
|
const deserializeAws_restJson1DeleteRegistryCommandError = async (output, context) => {
|
|
932
932
|
const parsedOutput = {
|
|
933
933
|
...output,
|
|
934
|
-
body: await
|
|
934
|
+
body: await parseErrorBody(output.body, context),
|
|
935
935
|
};
|
|
936
936
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
937
|
switch (errorCode) {
|
|
@@ -977,7 +977,7 @@ exports.deserializeAws_restJson1DeleteResourcePolicyCommand = deserializeAws_res
|
|
|
977
977
|
const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
978
978
|
const parsedOutput = {
|
|
979
979
|
...output,
|
|
980
|
-
body: await
|
|
980
|
+
body: await parseErrorBody(output.body, context),
|
|
981
981
|
};
|
|
982
982
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
983
|
switch (errorCode) {
|
|
@@ -1023,7 +1023,7 @@ exports.deserializeAws_restJson1DeleteSchemaCommand = deserializeAws_restJson1De
|
|
|
1023
1023
|
const deserializeAws_restJson1DeleteSchemaCommandError = async (output, context) => {
|
|
1024
1024
|
const parsedOutput = {
|
|
1025
1025
|
...output,
|
|
1026
|
-
body: await
|
|
1026
|
+
body: await parseErrorBody(output.body, context),
|
|
1027
1027
|
};
|
|
1028
1028
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
1029
|
switch (errorCode) {
|
|
@@ -1069,7 +1069,7 @@ exports.deserializeAws_restJson1DeleteSchemaVersionCommand = deserializeAws_rest
|
|
|
1069
1069
|
const deserializeAws_restJson1DeleteSchemaVersionCommandError = async (output, context) => {
|
|
1070
1070
|
const parsedOutput = {
|
|
1071
1071
|
...output,
|
|
1072
|
-
body: await
|
|
1072
|
+
body: await parseErrorBody(output.body, context),
|
|
1073
1073
|
};
|
|
1074
1074
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1075
1075
|
switch (errorCode) {
|
|
@@ -1127,7 +1127,7 @@ exports.deserializeAws_restJson1DescribeCodeBindingCommand = deserializeAws_rest
|
|
|
1127
1127
|
const deserializeAws_restJson1DescribeCodeBindingCommandError = async (output, context) => {
|
|
1128
1128
|
const parsedOutput = {
|
|
1129
1129
|
...output,
|
|
1130
|
-
body: await
|
|
1130
|
+
body: await parseErrorBody(output.body, context),
|
|
1131
1131
|
};
|
|
1132
1132
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
1133
|
switch (errorCode) {
|
|
@@ -1194,7 +1194,7 @@ exports.deserializeAws_restJson1DescribeDiscovererCommand = deserializeAws_restJ
|
|
|
1194
1194
|
const deserializeAws_restJson1DescribeDiscovererCommandError = async (output, context) => {
|
|
1195
1195
|
const parsedOutput = {
|
|
1196
1196
|
...output,
|
|
1197
|
-
body: await
|
|
1197
|
+
body: await parseErrorBody(output.body, context),
|
|
1198
1198
|
};
|
|
1199
1199
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
1200
|
switch (errorCode) {
|
|
@@ -1252,7 +1252,7 @@ exports.deserializeAws_restJson1DescribeRegistryCommand = deserializeAws_restJso
|
|
|
1252
1252
|
const deserializeAws_restJson1DescribeRegistryCommandError = async (output, context) => {
|
|
1253
1253
|
const parsedOutput = {
|
|
1254
1254
|
...output,
|
|
1255
|
-
body: await
|
|
1255
|
+
body: await parseErrorBody(output.body, context),
|
|
1256
1256
|
};
|
|
1257
1257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1258
1258
|
switch (errorCode) {
|
|
@@ -1325,7 +1325,7 @@ exports.deserializeAws_restJson1DescribeSchemaCommand = deserializeAws_restJson1
|
|
|
1325
1325
|
const deserializeAws_restJson1DescribeSchemaCommandError = async (output, context) => {
|
|
1326
1326
|
const parsedOutput = {
|
|
1327
1327
|
...output,
|
|
1328
|
-
body: await
|
|
1328
|
+
body: await parseErrorBody(output.body, context),
|
|
1329
1329
|
};
|
|
1330
1330
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1331
1331
|
switch (errorCode) {
|
|
@@ -1386,7 +1386,7 @@ exports.deserializeAws_restJson1ExportSchemaCommand = deserializeAws_restJson1Ex
|
|
|
1386
1386
|
const deserializeAws_restJson1ExportSchemaCommandError = async (output, context) => {
|
|
1387
1387
|
const parsedOutput = {
|
|
1388
1388
|
...output,
|
|
1389
|
-
body: await
|
|
1389
|
+
body: await parseErrorBody(output.body, context),
|
|
1390
1390
|
};
|
|
1391
1391
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
1392
|
switch (errorCode) {
|
|
@@ -1436,7 +1436,7 @@ exports.deserializeAws_restJson1GetCodeBindingSourceCommand = deserializeAws_res
|
|
|
1436
1436
|
const deserializeAws_restJson1GetCodeBindingSourceCommandError = async (output, context) => {
|
|
1437
1437
|
const parsedOutput = {
|
|
1438
1438
|
...output,
|
|
1439
|
-
body: await
|
|
1439
|
+
body: await parseErrorBody(output.body, context),
|
|
1440
1440
|
};
|
|
1441
1441
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
1442
|
switch (errorCode) {
|
|
@@ -1485,7 +1485,7 @@ exports.deserializeAws_restJson1GetDiscoveredSchemaCommand = deserializeAws_rest
|
|
|
1485
1485
|
const deserializeAws_restJson1GetDiscoveredSchemaCommandError = async (output, context) => {
|
|
1486
1486
|
const parsedOutput = {
|
|
1487
1487
|
...output,
|
|
1488
|
-
body: await
|
|
1488
|
+
body: await parseErrorBody(output.body, context),
|
|
1489
1489
|
};
|
|
1490
1490
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1491
1491
|
switch (errorCode) {
|
|
@@ -1534,7 +1534,7 @@ exports.deserializeAws_restJson1GetResourcePolicyCommand = deserializeAws_restJs
|
|
|
1534
1534
|
const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, context) => {
|
|
1535
1535
|
const parsedOutput = {
|
|
1536
1536
|
...output,
|
|
1537
|
-
body: await
|
|
1537
|
+
body: await parseErrorBody(output.body, context),
|
|
1538
1538
|
};
|
|
1539
1539
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
1540
|
switch (errorCode) {
|
|
@@ -1586,7 +1586,7 @@ exports.deserializeAws_restJson1ListDiscoverersCommand = deserializeAws_restJson
|
|
|
1586
1586
|
const deserializeAws_restJson1ListDiscoverersCommandError = async (output, context) => {
|
|
1587
1587
|
const parsedOutput = {
|
|
1588
1588
|
...output,
|
|
1589
|
-
body: await
|
|
1589
|
+
body: await parseErrorBody(output.body, context),
|
|
1590
1590
|
};
|
|
1591
1591
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1592
1592
|
switch (errorCode) {
|
|
@@ -1635,7 +1635,7 @@ exports.deserializeAws_restJson1ListRegistriesCommand = deserializeAws_restJson1
|
|
|
1635
1635
|
const deserializeAws_restJson1ListRegistriesCommandError = async (output, context) => {
|
|
1636
1636
|
const parsedOutput = {
|
|
1637
1637
|
...output,
|
|
1638
|
-
body: await
|
|
1638
|
+
body: await parseErrorBody(output.body, context),
|
|
1639
1639
|
};
|
|
1640
1640
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
1641
|
switch (errorCode) {
|
|
@@ -1684,7 +1684,7 @@ exports.deserializeAws_restJson1ListSchemasCommand = deserializeAws_restJson1Lis
|
|
|
1684
1684
|
const deserializeAws_restJson1ListSchemasCommandError = async (output, context) => {
|
|
1685
1685
|
const parsedOutput = {
|
|
1686
1686
|
...output,
|
|
1687
|
-
body: await
|
|
1687
|
+
body: await parseErrorBody(output.body, context),
|
|
1688
1688
|
};
|
|
1689
1689
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
1690
|
switch (errorCode) {
|
|
@@ -1733,7 +1733,7 @@ exports.deserializeAws_restJson1ListSchemaVersionsCommand = deserializeAws_restJ
|
|
|
1733
1733
|
const deserializeAws_restJson1ListSchemaVersionsCommandError = async (output, context) => {
|
|
1734
1734
|
const parsedOutput = {
|
|
1735
1735
|
...output,
|
|
1736
|
-
body: await
|
|
1736
|
+
body: await parseErrorBody(output.body, context),
|
|
1737
1737
|
};
|
|
1738
1738
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1739
1739
|
switch (errorCode) {
|
|
@@ -1782,7 +1782,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1782
1782
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1783
1783
|
const parsedOutput = {
|
|
1784
1784
|
...output,
|
|
1785
|
-
body: await
|
|
1785
|
+
body: await parseErrorBody(output.body, context),
|
|
1786
1786
|
};
|
|
1787
1787
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1788
1788
|
switch (errorCode) {
|
|
@@ -1834,7 +1834,7 @@ exports.deserializeAws_restJson1PutCodeBindingCommand = deserializeAws_restJson1
|
|
|
1834
1834
|
const deserializeAws_restJson1PutCodeBindingCommandError = async (output, context) => {
|
|
1835
1835
|
const parsedOutput = {
|
|
1836
1836
|
...output,
|
|
1837
|
-
body: await
|
|
1837
|
+
body: await parseErrorBody(output.body, context),
|
|
1838
1838
|
};
|
|
1839
1839
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1840
1840
|
switch (errorCode) {
|
|
@@ -1889,7 +1889,7 @@ exports.deserializeAws_restJson1PutResourcePolicyCommand = deserializeAws_restJs
|
|
|
1889
1889
|
const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, context) => {
|
|
1890
1890
|
const parsedOutput = {
|
|
1891
1891
|
...output,
|
|
1892
|
-
body: await
|
|
1892
|
+
body: await parseErrorBody(output.body, context),
|
|
1893
1893
|
};
|
|
1894
1894
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
1895
|
switch (errorCode) {
|
|
@@ -1944,7 +1944,7 @@ exports.deserializeAws_restJson1SearchSchemasCommand = deserializeAws_restJson1S
|
|
|
1944
1944
|
const deserializeAws_restJson1SearchSchemasCommandError = async (output, context) => {
|
|
1945
1945
|
const parsedOutput = {
|
|
1946
1946
|
...output,
|
|
1947
|
-
body: await
|
|
1947
|
+
body: await parseErrorBody(output.body, context),
|
|
1948
1948
|
};
|
|
1949
1949
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
1950
|
switch (errorCode) {
|
|
@@ -1993,7 +1993,7 @@ exports.deserializeAws_restJson1StartDiscovererCommand = deserializeAws_restJson
|
|
|
1993
1993
|
const deserializeAws_restJson1StartDiscovererCommandError = async (output, context) => {
|
|
1994
1994
|
const parsedOutput = {
|
|
1995
1995
|
...output,
|
|
1996
|
-
body: await
|
|
1996
|
+
body: await parseErrorBody(output.body, context),
|
|
1997
1997
|
};
|
|
1998
1998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1999
1999
|
switch (errorCode) {
|
|
@@ -2045,7 +2045,7 @@ exports.deserializeAws_restJson1StopDiscovererCommand = deserializeAws_restJson1
|
|
|
2045
2045
|
const deserializeAws_restJson1StopDiscovererCommandError = async (output, context) => {
|
|
2046
2046
|
const parsedOutput = {
|
|
2047
2047
|
...output,
|
|
2048
|
-
body: await
|
|
2048
|
+
body: await parseErrorBody(output.body, context),
|
|
2049
2049
|
};
|
|
2050
2050
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2051
2051
|
switch (errorCode) {
|
|
@@ -2091,7 +2091,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2091
2091
|
const deserializeAws_restJson1TagResourceCommandError = 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) {
|
|
@@ -2131,7 +2131,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2131
2131
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2132
2132
|
const parsedOutput = {
|
|
2133
2133
|
...output,
|
|
2134
|
-
body: await
|
|
2134
|
+
body: await parseErrorBody(output.body, context),
|
|
2135
2135
|
};
|
|
2136
2136
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2137
2137
|
switch (errorCode) {
|
|
@@ -2192,7 +2192,7 @@ exports.deserializeAws_restJson1UpdateDiscovererCommand = deserializeAws_restJso
|
|
|
2192
2192
|
const deserializeAws_restJson1UpdateDiscovererCommandError = async (output, context) => {
|
|
2193
2193
|
const parsedOutput = {
|
|
2194
2194
|
...output,
|
|
2195
|
-
body: await
|
|
2195
|
+
body: await parseErrorBody(output.body, context),
|
|
2196
2196
|
};
|
|
2197
2197
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2198
2198
|
switch (errorCode) {
|
|
@@ -2250,7 +2250,7 @@ exports.deserializeAws_restJson1UpdateRegistryCommand = deserializeAws_restJson1
|
|
|
2250
2250
|
const deserializeAws_restJson1UpdateRegistryCommandError = async (output, context) => {
|
|
2251
2251
|
const parsedOutput = {
|
|
2252
2252
|
...output,
|
|
2253
|
-
body: await
|
|
2253
|
+
body: await parseErrorBody(output.body, context),
|
|
2254
2254
|
};
|
|
2255
2255
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2256
2256
|
switch (errorCode) {
|
|
@@ -2320,7 +2320,7 @@ exports.deserializeAws_restJson1UpdateSchemaCommand = deserializeAws_restJson1Up
|
|
|
2320
2320
|
const deserializeAws_restJson1UpdateSchemaCommandError = async (output, context) => {
|
|
2321
2321
|
const parsedOutput = {
|
|
2322
2322
|
...output,
|
|
2323
|
-
body: await
|
|
2323
|
+
body: await parseErrorBody(output.body, context),
|
|
2324
2324
|
};
|
|
2325
2325
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2326
2326
|
switch (errorCode) {
|
|
@@ -2673,6 +2673,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2673
2673
|
}
|
|
2674
2674
|
return {};
|
|
2675
2675
|
});
|
|
2676
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2677
|
+
var _a;
|
|
2678
|
+
const value = await parseBody(errorBody, context);
|
|
2679
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2680
|
+
return value;
|
|
2681
|
+
};
|
|
2676
2682
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2677
2683
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2678
2684
|
const sanitizeErrorCode = (rawValue) => {
|