@aws-sdk/client-finspace-data 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/FinspaceData.js +126 -133
- package/dist-es/FinspaceDataClient.js +22 -28
- package/dist-es/commands/AssociateUserToPermissionGroupCommand.js +21 -28
- package/dist-es/commands/CreateChangesetCommand.js +21 -28
- package/dist-es/commands/CreateDataViewCommand.js +21 -28
- package/dist-es/commands/CreateDatasetCommand.js +21 -28
- package/dist-es/commands/CreatePermissionGroupCommand.js +21 -28
- package/dist-es/commands/CreateUserCommand.js +21 -28
- package/dist-es/commands/DeleteDatasetCommand.js +21 -28
- package/dist-es/commands/DeletePermissionGroupCommand.js +21 -28
- package/dist-es/commands/DisableUserCommand.js +21 -28
- package/dist-es/commands/DisassociateUserFromPermissionGroupCommand.js +21 -28
- package/dist-es/commands/EnableUserCommand.js +21 -28
- package/dist-es/commands/GetChangesetCommand.js +21 -28
- package/dist-es/commands/GetDataViewCommand.js +21 -28
- package/dist-es/commands/GetDatasetCommand.js +21 -28
- package/dist-es/commands/GetExternalDataViewAccessDetailsCommand.js +21 -28
- package/dist-es/commands/GetPermissionGroupCommand.js +21 -28
- package/dist-es/commands/GetProgrammaticAccessCredentialsCommand.js +21 -28
- package/dist-es/commands/GetUserCommand.js +21 -28
- package/dist-es/commands/GetWorkingLocationCommand.js +21 -28
- package/dist-es/commands/ListChangesetsCommand.js +21 -28
- package/dist-es/commands/ListDataViewsCommand.js +21 -28
- package/dist-es/commands/ListDatasetsCommand.js +21 -28
- package/dist-es/commands/ListPermissionGroupsByUserCommand.js +21 -28
- package/dist-es/commands/ListPermissionGroupsCommand.js +21 -28
- package/dist-es/commands/ListUsersByPermissionGroupCommand.js +21 -28
- package/dist-es/commands/ListUsersCommand.js +21 -28
- package/dist-es/commands/ResetUserPasswordCommand.js +21 -28
- package/dist-es/commands/UpdateChangesetCommand.js +21 -28
- package/dist-es/commands/UpdateDatasetCommand.js +21 -28
- package/dist-es/commands/UpdatePermissionGroupCommand.js +21 -28
- package/dist-es/commands/UpdateUserCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/FinspaceDataServiceException.js +5 -10
- package/dist-es/models/models_0.js +361 -166
- package/dist-es/pagination/ListChangesetsPaginator.js +25 -68
- package/dist-es/pagination/ListDataViewsPaginator.js +25 -68
- package/dist-es/pagination/ListDatasetsPaginator.js +25 -68
- package/dist-es/pagination/ListPermissionGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListUsersPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2530 -3501
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-finspace-data
|
|
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-finspace-data
|
|
@@ -752,7 +752,7 @@ exports.deserializeAws_restJson1AssociateUserToPermissionGroupCommand = deserial
|
|
|
752
752
|
const deserializeAws_restJson1AssociateUserToPermissionGroupCommandError = async (output, context) => {
|
|
753
753
|
const parsedOutput = {
|
|
754
754
|
...output,
|
|
755
|
-
body: await
|
|
755
|
+
body: await parseErrorBody(output.body, context),
|
|
756
756
|
};
|
|
757
757
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
758
758
|
switch (errorCode) {
|
|
@@ -804,7 +804,7 @@ exports.deserializeAws_restJson1CreateChangesetCommand = deserializeAws_restJson
|
|
|
804
804
|
const deserializeAws_restJson1CreateChangesetCommandError = async (output, context) => {
|
|
805
805
|
const parsedOutput = {
|
|
806
806
|
...output,
|
|
807
|
-
body: await
|
|
807
|
+
body: await parseErrorBody(output.body, context),
|
|
808
808
|
};
|
|
809
809
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
810
|
switch (errorCode) {
|
|
@@ -856,7 +856,7 @@ exports.deserializeAws_restJson1CreateDatasetCommand = deserializeAws_restJson1C
|
|
|
856
856
|
const deserializeAws_restJson1CreateDatasetCommandError = async (output, context) => {
|
|
857
857
|
const parsedOutput = {
|
|
858
858
|
...output,
|
|
859
|
-
body: await
|
|
859
|
+
body: await parseErrorBody(output.body, context),
|
|
860
860
|
};
|
|
861
861
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
862
|
switch (errorCode) {
|
|
@@ -911,7 +911,7 @@ exports.deserializeAws_restJson1CreateDataViewCommand = deserializeAws_restJson1
|
|
|
911
911
|
const deserializeAws_restJson1CreateDataViewCommandError = async (output, context) => {
|
|
912
912
|
const parsedOutput = {
|
|
913
913
|
...output,
|
|
914
|
-
body: await
|
|
914
|
+
body: await parseErrorBody(output.body, context),
|
|
915
915
|
};
|
|
916
916
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
917
|
switch (errorCode) {
|
|
@@ -960,7 +960,7 @@ exports.deserializeAws_restJson1CreatePermissionGroupCommand = deserializeAws_re
|
|
|
960
960
|
const deserializeAws_restJson1CreatePermissionGroupCommandError = async (output, context) => {
|
|
961
961
|
const parsedOutput = {
|
|
962
962
|
...output,
|
|
963
|
-
body: await
|
|
963
|
+
body: await parseErrorBody(output.body, context),
|
|
964
964
|
};
|
|
965
965
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
966
|
switch (errorCode) {
|
|
@@ -1009,7 +1009,7 @@ exports.deserializeAws_restJson1CreateUserCommand = deserializeAws_restJson1Crea
|
|
|
1009
1009
|
const deserializeAws_restJson1CreateUserCommandError = async (output, context) => {
|
|
1010
1010
|
const parsedOutput = {
|
|
1011
1011
|
...output,
|
|
1012
|
-
body: await
|
|
1012
|
+
body: await parseErrorBody(output.body, context),
|
|
1013
1013
|
};
|
|
1014
1014
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
1015
|
switch (errorCode) {
|
|
@@ -1058,7 +1058,7 @@ exports.deserializeAws_restJson1DeleteDatasetCommand = deserializeAws_restJson1D
|
|
|
1058
1058
|
const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context) => {
|
|
1059
1059
|
const parsedOutput = {
|
|
1060
1060
|
...output,
|
|
1061
|
-
body: await
|
|
1061
|
+
body: await parseErrorBody(output.body, context),
|
|
1062
1062
|
};
|
|
1063
1063
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
1064
|
switch (errorCode) {
|
|
@@ -1110,7 +1110,7 @@ exports.deserializeAws_restJson1DeletePermissionGroupCommand = deserializeAws_re
|
|
|
1110
1110
|
const deserializeAws_restJson1DeletePermissionGroupCommandError = async (output, context) => {
|
|
1111
1111
|
const parsedOutput = {
|
|
1112
1112
|
...output,
|
|
1113
|
-
body: await
|
|
1113
|
+
body: await parseErrorBody(output.body, context),
|
|
1114
1114
|
};
|
|
1115
1115
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1116
1116
|
switch (errorCode) {
|
|
@@ -1162,7 +1162,7 @@ exports.deserializeAws_restJson1DisableUserCommand = deserializeAws_restJson1Dis
|
|
|
1162
1162
|
const deserializeAws_restJson1DisableUserCommandError = async (output, context) => {
|
|
1163
1163
|
const parsedOutput = {
|
|
1164
1164
|
...output,
|
|
1165
|
-
body: await
|
|
1165
|
+
body: await parseErrorBody(output.body, context),
|
|
1166
1166
|
};
|
|
1167
1167
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
1168
|
switch (errorCode) {
|
|
@@ -1211,7 +1211,7 @@ exports.deserializeAws_restJson1DisassociateUserFromPermissionGroupCommand = des
|
|
|
1211
1211
|
const deserializeAws_restJson1DisassociateUserFromPermissionGroupCommandError = async (output, context) => {
|
|
1212
1212
|
const parsedOutput = {
|
|
1213
1213
|
...output,
|
|
1214
|
-
body: await
|
|
1214
|
+
body: await parseErrorBody(output.body, context),
|
|
1215
1215
|
};
|
|
1216
1216
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
1217
|
switch (errorCode) {
|
|
@@ -1260,7 +1260,7 @@ exports.deserializeAws_restJson1EnableUserCommand = deserializeAws_restJson1Enab
|
|
|
1260
1260
|
const deserializeAws_restJson1EnableUserCommandError = async (output, context) => {
|
|
1261
1261
|
const parsedOutput = {
|
|
1262
1262
|
...output,
|
|
1263
|
-
body: await
|
|
1263
|
+
body: await parseErrorBody(output.body, context),
|
|
1264
1264
|
};
|
|
1265
1265
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1266
1266
|
switch (errorCode) {
|
|
@@ -1348,7 +1348,7 @@ exports.deserializeAws_restJson1GetChangesetCommand = deserializeAws_restJson1Ge
|
|
|
1348
1348
|
const deserializeAws_restJson1GetChangesetCommandError = async (output, context) => {
|
|
1349
1349
|
const parsedOutput = {
|
|
1350
1350
|
...output,
|
|
1351
|
-
body: await
|
|
1351
|
+
body: await parseErrorBody(output.body, context),
|
|
1352
1352
|
};
|
|
1353
1353
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1354
|
switch (errorCode) {
|
|
@@ -1424,7 +1424,7 @@ exports.deserializeAws_restJson1GetDatasetCommand = deserializeAws_restJson1GetD
|
|
|
1424
1424
|
const deserializeAws_restJson1GetDatasetCommandError = async (output, context) => {
|
|
1425
1425
|
const parsedOutput = {
|
|
1426
1426
|
...output,
|
|
1427
|
-
body: await
|
|
1427
|
+
body: await parseErrorBody(output.body, context),
|
|
1428
1428
|
};
|
|
1429
1429
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
1430
|
switch (errorCode) {
|
|
@@ -1506,7 +1506,7 @@ exports.deserializeAws_restJson1GetDataViewCommand = deserializeAws_restJson1Get
|
|
|
1506
1506
|
const deserializeAws_restJson1GetDataViewCommandError = async (output, context) => {
|
|
1507
1507
|
const parsedOutput = {
|
|
1508
1508
|
...output,
|
|
1509
|
-
body: await
|
|
1509
|
+
body: await parseErrorBody(output.body, context),
|
|
1510
1510
|
};
|
|
1511
1511
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
1512
|
switch (errorCode) {
|
|
@@ -1555,7 +1555,7 @@ exports.deserializeAws_restJson1GetExternalDataViewAccessDetailsCommand = deseri
|
|
|
1555
1555
|
const deserializeAws_restJson1GetExternalDataViewAccessDetailsCommandError = async (output, context) => {
|
|
1556
1556
|
const parsedOutput = {
|
|
1557
1557
|
...output,
|
|
1558
|
-
body: await
|
|
1558
|
+
body: await parseErrorBody(output.body, context),
|
|
1559
1559
|
};
|
|
1560
1560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
1561
|
switch (errorCode) {
|
|
@@ -1601,7 +1601,7 @@ exports.deserializeAws_restJson1GetPermissionGroupCommand = deserializeAws_restJ
|
|
|
1601
1601
|
const deserializeAws_restJson1GetPermissionGroupCommandError = async (output, context) => {
|
|
1602
1602
|
const parsedOutput = {
|
|
1603
1603
|
...output,
|
|
1604
|
-
body: await
|
|
1604
|
+
body: await parseErrorBody(output.body, context),
|
|
1605
1605
|
};
|
|
1606
1606
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1607
1607
|
switch (errorCode) {
|
|
@@ -1650,7 +1650,7 @@ exports.deserializeAws_restJson1GetProgrammaticAccessCredentialsCommand = deseri
|
|
|
1650
1650
|
const deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = async (output, context) => {
|
|
1651
1651
|
const parsedOutput = {
|
|
1652
1652
|
...output,
|
|
1653
|
-
body: await
|
|
1653
|
+
body: await parseErrorBody(output.body, context),
|
|
1654
1654
|
};
|
|
1655
1655
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
1656
|
switch (errorCode) {
|
|
@@ -1729,7 +1729,7 @@ exports.deserializeAws_restJson1GetUserCommand = deserializeAws_restJson1GetUser
|
|
|
1729
1729
|
const deserializeAws_restJson1GetUserCommandError = async (output, context) => {
|
|
1730
1730
|
const parsedOutput = {
|
|
1731
1731
|
...output,
|
|
1732
|
-
body: await
|
|
1732
|
+
body: await parseErrorBody(output.body, context),
|
|
1733
1733
|
};
|
|
1734
1734
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
1735
|
switch (errorCode) {
|
|
@@ -1781,7 +1781,7 @@ exports.deserializeAws_restJson1GetWorkingLocationCommand = deserializeAws_restJ
|
|
|
1781
1781
|
const deserializeAws_restJson1GetWorkingLocationCommandError = async (output, context) => {
|
|
1782
1782
|
const parsedOutput = {
|
|
1783
1783
|
...output,
|
|
1784
|
-
body: await
|
|
1784
|
+
body: await parseErrorBody(output.body, context),
|
|
1785
1785
|
};
|
|
1786
1786
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1787
1787
|
switch (errorCode) {
|
|
@@ -1827,7 +1827,7 @@ exports.deserializeAws_restJson1ListChangesetsCommand = deserializeAws_restJson1
|
|
|
1827
1827
|
const deserializeAws_restJson1ListChangesetsCommandError = async (output, context) => {
|
|
1828
1828
|
const parsedOutput = {
|
|
1829
1829
|
...output,
|
|
1830
|
-
body: await
|
|
1830
|
+
body: await parseErrorBody(output.body, context),
|
|
1831
1831
|
};
|
|
1832
1832
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1833
1833
|
switch (errorCode) {
|
|
@@ -1879,7 +1879,7 @@ exports.deserializeAws_restJson1ListDatasetsCommand = deserializeAws_restJson1Li
|
|
|
1879
1879
|
const deserializeAws_restJson1ListDatasetsCommandError = async (output, context) => {
|
|
1880
1880
|
const parsedOutput = {
|
|
1881
1881
|
...output,
|
|
1882
|
-
body: await
|
|
1882
|
+
body: await parseErrorBody(output.body, context),
|
|
1883
1883
|
};
|
|
1884
1884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
1885
|
switch (errorCode) {
|
|
@@ -1928,7 +1928,7 @@ exports.deserializeAws_restJson1ListDataViewsCommand = deserializeAws_restJson1L
|
|
|
1928
1928
|
const deserializeAws_restJson1ListDataViewsCommandError = async (output, context) => {
|
|
1929
1929
|
const parsedOutput = {
|
|
1930
1930
|
...output,
|
|
1931
|
-
body: await
|
|
1931
|
+
body: await parseErrorBody(output.body, context),
|
|
1932
1932
|
};
|
|
1933
1933
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1934
1934
|
switch (errorCode) {
|
|
@@ -1977,7 +1977,7 @@ exports.deserializeAws_restJson1ListPermissionGroupsCommand = deserializeAws_res
|
|
|
1977
1977
|
const deserializeAws_restJson1ListPermissionGroupsCommandError = async (output, context) => {
|
|
1978
1978
|
const parsedOutput = {
|
|
1979
1979
|
...output,
|
|
1980
|
-
body: await
|
|
1980
|
+
body: await parseErrorBody(output.body, context),
|
|
1981
1981
|
};
|
|
1982
1982
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1983
1983
|
switch (errorCode) {
|
|
@@ -2023,7 +2023,7 @@ exports.deserializeAws_restJson1ListPermissionGroupsByUserCommand = deserializeA
|
|
|
2023
2023
|
const deserializeAws_restJson1ListPermissionGroupsByUserCommandError = async (output, context) => {
|
|
2024
2024
|
const parsedOutput = {
|
|
2025
2025
|
...output,
|
|
2026
|
-
body: await
|
|
2026
|
+
body: await parseErrorBody(output.body, context),
|
|
2027
2027
|
};
|
|
2028
2028
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
2029
|
switch (errorCode) {
|
|
@@ -2072,7 +2072,7 @@ exports.deserializeAws_restJson1ListUsersCommand = deserializeAws_restJson1ListU
|
|
|
2072
2072
|
const deserializeAws_restJson1ListUsersCommandError = async (output, context) => {
|
|
2073
2073
|
const parsedOutput = {
|
|
2074
2074
|
...output,
|
|
2075
|
-
body: await
|
|
2075
|
+
body: await parseErrorBody(output.body, context),
|
|
2076
2076
|
};
|
|
2077
2077
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2078
2078
|
switch (errorCode) {
|
|
@@ -2118,7 +2118,7 @@ exports.deserializeAws_restJson1ListUsersByPermissionGroupCommand = deserializeA
|
|
|
2118
2118
|
const deserializeAws_restJson1ListUsersByPermissionGroupCommandError = async (output, context) => {
|
|
2119
2119
|
const parsedOutput = {
|
|
2120
2120
|
...output,
|
|
2121
|
-
body: await
|
|
2121
|
+
body: await parseErrorBody(output.body, context),
|
|
2122
2122
|
};
|
|
2123
2123
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2124
2124
|
switch (errorCode) {
|
|
@@ -2167,7 +2167,7 @@ exports.deserializeAws_restJson1ResetUserPasswordCommand = deserializeAws_restJs
|
|
|
2167
2167
|
const deserializeAws_restJson1ResetUserPasswordCommandError = async (output, context) => {
|
|
2168
2168
|
const parsedOutput = {
|
|
2169
2169
|
...output,
|
|
2170
|
-
body: await
|
|
2170
|
+
body: await parseErrorBody(output.body, context),
|
|
2171
2171
|
};
|
|
2172
2172
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
2173
|
switch (errorCode) {
|
|
@@ -2219,7 +2219,7 @@ exports.deserializeAws_restJson1UpdateChangesetCommand = deserializeAws_restJson
|
|
|
2219
2219
|
const deserializeAws_restJson1UpdateChangesetCommandError = async (output, context) => {
|
|
2220
2220
|
const parsedOutput = {
|
|
2221
2221
|
...output,
|
|
2222
|
-
body: await
|
|
2222
|
+
body: await parseErrorBody(output.body, context),
|
|
2223
2223
|
};
|
|
2224
2224
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
2225
|
switch (errorCode) {
|
|
@@ -2268,7 +2268,7 @@ exports.deserializeAws_restJson1UpdateDatasetCommand = deserializeAws_restJson1U
|
|
|
2268
2268
|
const deserializeAws_restJson1UpdateDatasetCommandError = async (output, context) => {
|
|
2269
2269
|
const parsedOutput = {
|
|
2270
2270
|
...output,
|
|
2271
|
-
body: await
|
|
2271
|
+
body: await parseErrorBody(output.body, context),
|
|
2272
2272
|
};
|
|
2273
2273
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2274
2274
|
switch (errorCode) {
|
|
@@ -2317,7 +2317,7 @@ exports.deserializeAws_restJson1UpdatePermissionGroupCommand = deserializeAws_re
|
|
|
2317
2317
|
const deserializeAws_restJson1UpdatePermissionGroupCommandError = async (output, context) => {
|
|
2318
2318
|
const parsedOutput = {
|
|
2319
2319
|
...output,
|
|
2320
|
-
body: await
|
|
2320
|
+
body: await parseErrorBody(output.body, context),
|
|
2321
2321
|
};
|
|
2322
2322
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
2323
|
switch (errorCode) {
|
|
@@ -2366,7 +2366,7 @@ exports.deserializeAws_restJson1UpdateUserCommand = deserializeAws_restJson1Upda
|
|
|
2366
2366
|
const deserializeAws_restJson1UpdateUserCommandError = async (output, context) => {
|
|
2367
2367
|
const parsedOutput = {
|
|
2368
2368
|
...output,
|
|
2369
|
-
body: await
|
|
2369
|
+
body: await parseErrorBody(output.body, context),
|
|
2370
2370
|
};
|
|
2371
2371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2372
2372
|
switch (errorCode) {
|
|
@@ -2983,6 +2983,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2983
2983
|
}
|
|
2984
2984
|
return {};
|
|
2985
2985
|
});
|
|
2986
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2987
|
+
var _a;
|
|
2988
|
+
const value = await parseBody(errorBody, context);
|
|
2989
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2990
|
+
return value;
|
|
2991
|
+
};
|
|
2986
2992
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2987
2993
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2988
2994
|
const sanitizeErrorCode = (rawValue) => {
|