@aws-sdk/client-workspaces-web 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 +50 -44
- package/dist-es/protocols/Aws_restJson1.js +57 -44
- 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-workspaces-web
|
|
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-workspaces-web
|
|
@@ -966,7 +966,7 @@ exports.deserializeAws_restJson1AssociateBrowserSettingsCommand = deserializeAws
|
|
|
966
966
|
const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (output, context) => {
|
|
967
967
|
const parsedOutput = {
|
|
968
968
|
...output,
|
|
969
|
-
body: await
|
|
969
|
+
body: await parseErrorBody(output.body, context),
|
|
970
970
|
};
|
|
971
971
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
972
972
|
switch (errorCode) {
|
|
@@ -1018,7 +1018,7 @@ exports.deserializeAws_restJson1AssociateNetworkSettingsCommand = deserializeAws
|
|
|
1018
1018
|
const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (output, context) => {
|
|
1019
1019
|
const parsedOutput = {
|
|
1020
1020
|
...output,
|
|
1021
|
-
body: await
|
|
1021
|
+
body: await parseErrorBody(output.body, context),
|
|
1022
1022
|
};
|
|
1023
1023
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
1024
|
switch (errorCode) {
|
|
@@ -1070,7 +1070,7 @@ exports.deserializeAws_restJson1AssociateTrustStoreCommand = deserializeAws_rest
|
|
|
1070
1070
|
const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, context) => {
|
|
1071
1071
|
const parsedOutput = {
|
|
1072
1072
|
...output,
|
|
1073
|
-
body: await
|
|
1073
|
+
body: await parseErrorBody(output.body, context),
|
|
1074
1074
|
};
|
|
1075
1075
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1076
1076
|
switch (errorCode) {
|
|
@@ -1119,7 +1119,7 @@ exports.deserializeAws_restJson1AssociateUserSettingsCommand = deserializeAws_re
|
|
|
1119
1119
|
const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output, context) => {
|
|
1120
1120
|
const parsedOutput = {
|
|
1121
1121
|
...output,
|
|
1122
|
-
body: await
|
|
1122
|
+
body: await parseErrorBody(output.body, context),
|
|
1123
1123
|
};
|
|
1124
1124
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
1125
|
switch (errorCode) {
|
|
@@ -1168,7 +1168,7 @@ exports.deserializeAws_restJson1CreateBrowserSettingsCommand = deserializeAws_re
|
|
|
1168
1168
|
const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output, context) => {
|
|
1169
1169
|
const parsedOutput = {
|
|
1170
1170
|
...output,
|
|
1171
|
-
body: await
|
|
1171
|
+
body: await parseErrorBody(output.body, context),
|
|
1172
1172
|
};
|
|
1173
1173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
1174
|
switch (errorCode) {
|
|
@@ -1220,7 +1220,7 @@ exports.deserializeAws_restJson1CreateIdentityProviderCommand = deserializeAws_r
|
|
|
1220
1220
|
const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output, context) => {
|
|
1221
1221
|
const parsedOutput = {
|
|
1222
1222
|
...output,
|
|
1223
|
-
body: await
|
|
1223
|
+
body: await parseErrorBody(output.body, context),
|
|
1224
1224
|
};
|
|
1225
1225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
1226
|
switch (errorCode) {
|
|
@@ -1272,7 +1272,7 @@ exports.deserializeAws_restJson1CreateNetworkSettingsCommand = deserializeAws_re
|
|
|
1272
1272
|
const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output, context) => {
|
|
1273
1273
|
const parsedOutput = {
|
|
1274
1274
|
...output,
|
|
1275
|
-
body: await
|
|
1275
|
+
body: await parseErrorBody(output.body, context),
|
|
1276
1276
|
};
|
|
1277
1277
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
1278
|
switch (errorCode) {
|
|
@@ -1324,7 +1324,7 @@ exports.deserializeAws_restJson1CreatePortalCommand = deserializeAws_restJson1Cr
|
|
|
1324
1324
|
const deserializeAws_restJson1CreatePortalCommandError = async (output, context) => {
|
|
1325
1325
|
const parsedOutput = {
|
|
1326
1326
|
...output,
|
|
1327
|
-
body: await
|
|
1327
|
+
body: await parseErrorBody(output.body, context),
|
|
1328
1328
|
};
|
|
1329
1329
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1330
1330
|
switch (errorCode) {
|
|
@@ -1376,7 +1376,7 @@ exports.deserializeAws_restJson1CreateTrustStoreCommand = deserializeAws_restJso
|
|
|
1376
1376
|
const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, context) => {
|
|
1377
1377
|
const parsedOutput = {
|
|
1378
1378
|
...output,
|
|
1379
|
-
body: await
|
|
1379
|
+
body: await parseErrorBody(output.body, context),
|
|
1380
1380
|
};
|
|
1381
1381
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
1382
|
switch (errorCode) {
|
|
@@ -1425,7 +1425,7 @@ exports.deserializeAws_restJson1CreateUserSettingsCommand = deserializeAws_restJ
|
|
|
1425
1425
|
const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, context) => {
|
|
1426
1426
|
const parsedOutput = {
|
|
1427
1427
|
...output,
|
|
1428
|
-
body: await
|
|
1428
|
+
body: await parseErrorBody(output.body, context),
|
|
1429
1429
|
};
|
|
1430
1430
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1431
1431
|
switch (errorCode) {
|
|
@@ -1471,7 +1471,7 @@ exports.deserializeAws_restJson1DeleteBrowserSettingsCommand = deserializeAws_re
|
|
|
1471
1471
|
const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output, context) => {
|
|
1472
1472
|
const parsedOutput = {
|
|
1473
1473
|
...output,
|
|
1474
|
-
body: await
|
|
1474
|
+
body: await parseErrorBody(output.body, context),
|
|
1475
1475
|
};
|
|
1476
1476
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1477
1477
|
switch (errorCode) {
|
|
@@ -1514,7 +1514,7 @@ exports.deserializeAws_restJson1DeleteIdentityProviderCommand = deserializeAws_r
|
|
|
1514
1514
|
const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output, context) => {
|
|
1515
1515
|
const parsedOutput = {
|
|
1516
1516
|
...output,
|
|
1517
|
-
body: await
|
|
1517
|
+
body: await parseErrorBody(output.body, context),
|
|
1518
1518
|
};
|
|
1519
1519
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
1520
|
switch (errorCode) {
|
|
@@ -1557,7 +1557,7 @@ exports.deserializeAws_restJson1DeleteNetworkSettingsCommand = deserializeAws_re
|
|
|
1557
1557
|
const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output, context) => {
|
|
1558
1558
|
const parsedOutput = {
|
|
1559
1559
|
...output,
|
|
1560
|
-
body: await
|
|
1560
|
+
body: await parseErrorBody(output.body, context),
|
|
1561
1561
|
};
|
|
1562
1562
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
1563
|
switch (errorCode) {
|
|
@@ -1600,7 +1600,7 @@ exports.deserializeAws_restJson1DeletePortalCommand = deserializeAws_restJson1De
|
|
|
1600
1600
|
const deserializeAws_restJson1DeletePortalCommandError = async (output, context) => {
|
|
1601
1601
|
const parsedOutput = {
|
|
1602
1602
|
...output,
|
|
1603
|
-
body: await
|
|
1603
|
+
body: await parseErrorBody(output.body, context),
|
|
1604
1604
|
};
|
|
1605
1605
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
1606
|
switch (errorCode) {
|
|
@@ -1643,7 +1643,7 @@ exports.deserializeAws_restJson1DeleteTrustStoreCommand = deserializeAws_restJso
|
|
|
1643
1643
|
const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, context) => {
|
|
1644
1644
|
const parsedOutput = {
|
|
1645
1645
|
...output,
|
|
1646
|
-
body: await
|
|
1646
|
+
body: await parseErrorBody(output.body, context),
|
|
1647
1647
|
};
|
|
1648
1648
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
1649
|
switch (errorCode) {
|
|
@@ -1686,7 +1686,7 @@ exports.deserializeAws_restJson1DeleteUserSettingsCommand = deserializeAws_restJ
|
|
|
1686
1686
|
const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, context) => {
|
|
1687
1687
|
const parsedOutput = {
|
|
1688
1688
|
...output,
|
|
1689
|
-
body: await
|
|
1689
|
+
body: await parseErrorBody(output.body, context),
|
|
1690
1690
|
};
|
|
1691
1691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
1692
|
switch (errorCode) {
|
|
@@ -1729,7 +1729,7 @@ exports.deserializeAws_restJson1DisassociateBrowserSettingsCommand = deserialize
|
|
|
1729
1729
|
const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = 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) {
|
|
@@ -1772,7 +1772,7 @@ exports.deserializeAws_restJson1DisassociateNetworkSettingsCommand = deserialize
|
|
|
1772
1772
|
const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (output, context) => {
|
|
1773
1773
|
const parsedOutput = {
|
|
1774
1774
|
...output,
|
|
1775
|
-
body: await
|
|
1775
|
+
body: await parseErrorBody(output.body, context),
|
|
1776
1776
|
};
|
|
1777
1777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1778
1778
|
switch (errorCode) {
|
|
@@ -1815,7 +1815,7 @@ exports.deserializeAws_restJson1DisassociateTrustStoreCommand = deserializeAws_r
|
|
|
1815
1815
|
const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output, context) => {
|
|
1816
1816
|
const parsedOutput = {
|
|
1817
1817
|
...output,
|
|
1818
|
-
body: await
|
|
1818
|
+
body: await parseErrorBody(output.body, context),
|
|
1819
1819
|
};
|
|
1820
1820
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1821
1821
|
switch (errorCode) {
|
|
@@ -1858,7 +1858,7 @@ exports.deserializeAws_restJson1DisassociateUserSettingsCommand = deserializeAws
|
|
|
1858
1858
|
const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (output, context) => {
|
|
1859
1859
|
const parsedOutput = {
|
|
1860
1860
|
...output,
|
|
1861
|
-
body: await
|
|
1861
|
+
body: await parseErrorBody(output.body, context),
|
|
1862
1862
|
};
|
|
1863
1863
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1864
1864
|
switch (errorCode) {
|
|
@@ -1904,7 +1904,7 @@ exports.deserializeAws_restJson1GetBrowserSettingsCommand = deserializeAws_restJ
|
|
|
1904
1904
|
const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, context) => {
|
|
1905
1905
|
const parsedOutput = {
|
|
1906
1906
|
...output,
|
|
1907
|
-
body: await
|
|
1907
|
+
body: await parseErrorBody(output.body, context),
|
|
1908
1908
|
};
|
|
1909
1909
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1910
1910
|
switch (errorCode) {
|
|
@@ -1950,7 +1950,7 @@ exports.deserializeAws_restJson1GetIdentityProviderCommand = deserializeAws_rest
|
|
|
1950
1950
|
const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, context) => {
|
|
1951
1951
|
const parsedOutput = {
|
|
1952
1952
|
...output,
|
|
1953
|
-
body: await
|
|
1953
|
+
body: await parseErrorBody(output.body, context),
|
|
1954
1954
|
};
|
|
1955
1955
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
1956
|
switch (errorCode) {
|
|
@@ -1996,7 +1996,7 @@ exports.deserializeAws_restJson1GetNetworkSettingsCommand = deserializeAws_restJ
|
|
|
1996
1996
|
const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, context) => {
|
|
1997
1997
|
const parsedOutput = {
|
|
1998
1998
|
...output,
|
|
1999
|
-
body: await
|
|
1999
|
+
body: await parseErrorBody(output.body, context),
|
|
2000
2000
|
};
|
|
2001
2001
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2002
2002
|
switch (errorCode) {
|
|
@@ -2042,7 +2042,7 @@ exports.deserializeAws_restJson1GetPortalCommand = deserializeAws_restJson1GetPo
|
|
|
2042
2042
|
const deserializeAws_restJson1GetPortalCommandError = async (output, context) => {
|
|
2043
2043
|
const parsedOutput = {
|
|
2044
2044
|
...output,
|
|
2045
|
-
body: await
|
|
2045
|
+
body: await parseErrorBody(output.body, context),
|
|
2046
2046
|
};
|
|
2047
2047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2048
2048
|
switch (errorCode) {
|
|
@@ -2091,7 +2091,7 @@ exports.deserializeAws_restJson1GetPortalServiceProviderMetadataCommand = deseri
|
|
|
2091
2091
|
const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = 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_restJson1GetTrustStoreCommand = deserializeAws_restJson1G
|
|
|
2137
2137
|
const deserializeAws_restJson1GetTrustStoreCommandError = 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) {
|
|
@@ -2186,7 +2186,7 @@ exports.deserializeAws_restJson1GetTrustStoreCertificateCommand = deserializeAws
|
|
|
2186
2186
|
const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (output, context) => {
|
|
2187
2187
|
const parsedOutput = {
|
|
2188
2188
|
...output,
|
|
2189
|
-
body: await
|
|
2189
|
+
body: await parseErrorBody(output.body, context),
|
|
2190
2190
|
};
|
|
2191
2191
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
2192
|
switch (errorCode) {
|
|
@@ -2232,7 +2232,7 @@ exports.deserializeAws_restJson1GetUserSettingsCommand = deserializeAws_restJson
|
|
|
2232
2232
|
const deserializeAws_restJson1GetUserSettingsCommandError = async (output, context) => {
|
|
2233
2233
|
const parsedOutput = {
|
|
2234
2234
|
...output,
|
|
2235
|
-
body: await
|
|
2235
|
+
body: await parseErrorBody(output.body, context),
|
|
2236
2236
|
};
|
|
2237
2237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
2238
|
switch (errorCode) {
|
|
@@ -2281,7 +2281,7 @@ exports.deserializeAws_restJson1ListBrowserSettingsCommand = deserializeAws_rest
|
|
|
2281
2281
|
const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, context) => {
|
|
2282
2282
|
const parsedOutput = {
|
|
2283
2283
|
...output,
|
|
2284
|
-
body: await
|
|
2284
|
+
body: await parseErrorBody(output.body, context),
|
|
2285
2285
|
};
|
|
2286
2286
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2287
2287
|
switch (errorCode) {
|
|
@@ -2327,7 +2327,7 @@ exports.deserializeAws_restJson1ListIdentityProvidersCommand = deserializeAws_re
|
|
|
2327
2327
|
const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output, context) => {
|
|
2328
2328
|
const parsedOutput = {
|
|
2329
2329
|
...output,
|
|
2330
|
-
body: await
|
|
2330
|
+
body: await parseErrorBody(output.body, context),
|
|
2331
2331
|
};
|
|
2332
2332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2333
2333
|
switch (errorCode) {
|
|
@@ -2373,7 +2373,7 @@ exports.deserializeAws_restJson1ListNetworkSettingsCommand = deserializeAws_rest
|
|
|
2373
2373
|
const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, context) => {
|
|
2374
2374
|
const parsedOutput = {
|
|
2375
2375
|
...output,
|
|
2376
|
-
body: await
|
|
2376
|
+
body: await parseErrorBody(output.body, context),
|
|
2377
2377
|
};
|
|
2378
2378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2379
2379
|
switch (errorCode) {
|
|
@@ -2419,7 +2419,7 @@ exports.deserializeAws_restJson1ListPortalsCommand = deserializeAws_restJson1Lis
|
|
|
2419
2419
|
const deserializeAws_restJson1ListPortalsCommandError = async (output, context) => {
|
|
2420
2420
|
const parsedOutput = {
|
|
2421
2421
|
...output,
|
|
2422
|
-
body: await
|
|
2422
|
+
body: await parseErrorBody(output.body, context),
|
|
2423
2423
|
};
|
|
2424
2424
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2425
2425
|
switch (errorCode) {
|
|
@@ -2462,7 +2462,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2462
2462
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2463
2463
|
const parsedOutput = {
|
|
2464
2464
|
...output,
|
|
2465
|
-
body: await
|
|
2465
|
+
body: await parseErrorBody(output.body, context),
|
|
2466
2466
|
};
|
|
2467
2467
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2468
2468
|
switch (errorCode) {
|
|
@@ -2514,7 +2514,7 @@ exports.deserializeAws_restJson1ListTrustStoreCertificatesCommand = deserializeA
|
|
|
2514
2514
|
const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (output, context) => {
|
|
2515
2515
|
const parsedOutput = {
|
|
2516
2516
|
...output,
|
|
2517
|
-
body: await
|
|
2517
|
+
body: await parseErrorBody(output.body, context),
|
|
2518
2518
|
};
|
|
2519
2519
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2520
2520
|
switch (errorCode) {
|
|
@@ -2563,7 +2563,7 @@ exports.deserializeAws_restJson1ListTrustStoresCommand = deserializeAws_restJson
|
|
|
2563
2563
|
const deserializeAws_restJson1ListTrustStoresCommandError = async (output, context) => {
|
|
2564
2564
|
const parsedOutput = {
|
|
2565
2565
|
...output,
|
|
2566
|
-
body: await
|
|
2566
|
+
body: await parseErrorBody(output.body, context),
|
|
2567
2567
|
};
|
|
2568
2568
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2569
2569
|
switch (errorCode) {
|
|
@@ -2609,7 +2609,7 @@ exports.deserializeAws_restJson1ListUserSettingsCommand = deserializeAws_restJso
|
|
|
2609
2609
|
const deserializeAws_restJson1ListUserSettingsCommandError = async (output, context) => {
|
|
2610
2610
|
const parsedOutput = {
|
|
2611
2611
|
...output,
|
|
2612
|
-
body: await
|
|
2612
|
+
body: await parseErrorBody(output.body, context),
|
|
2613
2613
|
};
|
|
2614
2614
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2615
2615
|
switch (errorCode) {
|
|
@@ -2649,7 +2649,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2649
2649
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2650
2650
|
const parsedOutput = {
|
|
2651
2651
|
...output,
|
|
2652
|
-
body: await
|
|
2652
|
+
body: await parseErrorBody(output.body, context),
|
|
2653
2653
|
};
|
|
2654
2654
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2655
2655
|
switch (errorCode) {
|
|
@@ -2695,7 +2695,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2695
2695
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2696
2696
|
const parsedOutput = {
|
|
2697
2697
|
...output,
|
|
2698
|
-
body: await
|
|
2698
|
+
body: await parseErrorBody(output.body, context),
|
|
2699
2699
|
};
|
|
2700
2700
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2701
2701
|
switch (errorCode) {
|
|
@@ -2741,7 +2741,7 @@ exports.deserializeAws_restJson1UpdateBrowserSettingsCommand = deserializeAws_re
|
|
|
2741
2741
|
const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output, context) => {
|
|
2742
2742
|
const parsedOutput = {
|
|
2743
2743
|
...output,
|
|
2744
|
-
body: await
|
|
2744
|
+
body: await parseErrorBody(output.body, context),
|
|
2745
2745
|
};
|
|
2746
2746
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2747
2747
|
switch (errorCode) {
|
|
@@ -2787,7 +2787,7 @@ exports.deserializeAws_restJson1UpdateIdentityProviderCommand = deserializeAws_r
|
|
|
2787
2787
|
const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output, context) => {
|
|
2788
2788
|
const parsedOutput = {
|
|
2789
2789
|
...output,
|
|
2790
|
-
body: await
|
|
2790
|
+
body: await parseErrorBody(output.body, context),
|
|
2791
2791
|
};
|
|
2792
2792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2793
2793
|
switch (errorCode) {
|
|
@@ -2833,7 +2833,7 @@ exports.deserializeAws_restJson1UpdateNetworkSettingsCommand = deserializeAws_re
|
|
|
2833
2833
|
const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output, context) => {
|
|
2834
2834
|
const parsedOutput = {
|
|
2835
2835
|
...output,
|
|
2836
|
-
body: await
|
|
2836
|
+
body: await parseErrorBody(output.body, context),
|
|
2837
2837
|
};
|
|
2838
2838
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2839
2839
|
switch (errorCode) {
|
|
@@ -2879,7 +2879,7 @@ exports.deserializeAws_restJson1UpdatePortalCommand = deserializeAws_restJson1Up
|
|
|
2879
2879
|
const deserializeAws_restJson1UpdatePortalCommandError = async (output, context) => {
|
|
2880
2880
|
const parsedOutput = {
|
|
2881
2881
|
...output,
|
|
2882
|
-
body: await
|
|
2882
|
+
body: await parseErrorBody(output.body, context),
|
|
2883
2883
|
};
|
|
2884
2884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2885
2885
|
switch (errorCode) {
|
|
@@ -2925,7 +2925,7 @@ exports.deserializeAws_restJson1UpdateTrustStoreCommand = deserializeAws_restJso
|
|
|
2925
2925
|
const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, context) => {
|
|
2926
2926
|
const parsedOutput = {
|
|
2927
2927
|
...output,
|
|
2928
|
-
body: await
|
|
2928
|
+
body: await parseErrorBody(output.body, context),
|
|
2929
2929
|
};
|
|
2930
2930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2931
2931
|
switch (errorCode) {
|
|
@@ -2974,7 +2974,7 @@ exports.deserializeAws_restJson1UpdateUserSettingsCommand = deserializeAws_restJ
|
|
|
2974
2974
|
const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, context) => {
|
|
2975
2975
|
const parsedOutput = {
|
|
2976
2976
|
...output,
|
|
2977
|
-
body: await
|
|
2977
|
+
body: await parseErrorBody(output.body, context),
|
|
2978
2978
|
};
|
|
2979
2979
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2980
2980
|
switch (errorCode) {
|
|
@@ -3546,6 +3546,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3546
3546
|
}
|
|
3547
3547
|
return {};
|
|
3548
3548
|
});
|
|
3549
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3550
|
+
var _a;
|
|
3551
|
+
const value = await parseBody(errorBody, context);
|
|
3552
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3553
|
+
return value;
|
|
3554
|
+
};
|
|
3549
3555
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3550
3556
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3551
3557
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1128,7 +1128,7 @@ var deserializeAws_restJson1AssociateBrowserSettingsCommandError = function (out
|
|
|
1128
1128
|
case 0:
|
|
1129
1129
|
_a = [__assign({}, output)];
|
|
1130
1130
|
_c = {};
|
|
1131
|
-
return [4,
|
|
1131
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1132
1132
|
case 1:
|
|
1133
1133
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1134
1134
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1207,7 +1207,7 @@ var deserializeAws_restJson1AssociateNetworkSettingsCommandError = function (out
|
|
|
1207
1207
|
case 0:
|
|
1208
1208
|
_a = [__assign({}, output)];
|
|
1209
1209
|
_c = {};
|
|
1210
|
-
return [4,
|
|
1210
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1211
1211
|
case 1:
|
|
1212
1212
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1213
1213
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1286,7 +1286,7 @@ var deserializeAws_restJson1AssociateTrustStoreCommandError = function (output,
|
|
|
1286
1286
|
case 0:
|
|
1287
1287
|
_a = [__assign({}, output)];
|
|
1288
1288
|
_c = {};
|
|
1289
|
-
return [4,
|
|
1289
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1290
1290
|
case 1:
|
|
1291
1291
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1292
1292
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1361,7 +1361,7 @@ var deserializeAws_restJson1AssociateUserSettingsCommandError = function (output
|
|
|
1361
1361
|
case 0:
|
|
1362
1362
|
_a = [__assign({}, output)];
|
|
1363
1363
|
_c = {};
|
|
1364
|
-
return [4,
|
|
1364
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1365
1365
|
case 1:
|
|
1366
1366
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1367
1367
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1437,7 +1437,7 @@ var deserializeAws_restJson1CreateBrowserSettingsCommandError = function (output
|
|
|
1437
1437
|
case 0:
|
|
1438
1438
|
_a = [__assign({}, output)];
|
|
1439
1439
|
_c = {};
|
|
1440
|
-
return [4,
|
|
1440
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1441
1441
|
case 1:
|
|
1442
1442
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1443
1443
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1517,7 +1517,7 @@ var deserializeAws_restJson1CreateIdentityProviderCommandError = function (outpu
|
|
|
1517
1517
|
case 0:
|
|
1518
1518
|
_a = [__assign({}, output)];
|
|
1519
1519
|
_c = {};
|
|
1520
|
-
return [4,
|
|
1520
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1521
1521
|
case 1:
|
|
1522
1522
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1523
1523
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1597,7 +1597,7 @@ var deserializeAws_restJson1CreateNetworkSettingsCommandError = function (output
|
|
|
1597
1597
|
case 0:
|
|
1598
1598
|
_a = [__assign({}, output)];
|
|
1599
1599
|
_c = {};
|
|
1600
|
-
return [4,
|
|
1600
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1601
1601
|
case 1:
|
|
1602
1602
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1603
1603
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1676,7 +1676,7 @@ var deserializeAws_restJson1CreatePortalCommandError = function (output, context
|
|
|
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);
|
|
@@ -1756,7 +1756,7 @@ var deserializeAws_restJson1CreateTrustStoreCommandError = function (output, con
|
|
|
1756
1756
|
case 0:
|
|
1757
1757
|
_a = [__assign({}, output)];
|
|
1758
1758
|
_c = {};
|
|
1759
|
-
return [4,
|
|
1759
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1760
1760
|
case 1:
|
|
1761
1761
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1762
1762
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1832,7 +1832,7 @@ var deserializeAws_restJson1CreateUserSettingsCommandError = function (output, c
|
|
|
1832
1832
|
case 0:
|
|
1833
1833
|
_a = [__assign({}, output)];
|
|
1834
1834
|
_c = {};
|
|
1835
|
-
return [4,
|
|
1835
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1836
1836
|
case 1:
|
|
1837
1837
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1838
1838
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1903,7 +1903,7 @@ var deserializeAws_restJson1DeleteBrowserSettingsCommandError = function (output
|
|
|
1903
1903
|
case 0:
|
|
1904
1904
|
_a = [__assign({}, output)];
|
|
1905
1905
|
_c = {};
|
|
1906
|
-
return [4,
|
|
1906
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1907
1907
|
case 1:
|
|
1908
1908
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1909
1909
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1970,7 +1970,7 @@ var deserializeAws_restJson1DeleteIdentityProviderCommandError = function (outpu
|
|
|
1970
1970
|
case 0:
|
|
1971
1971
|
_a = [__assign({}, output)];
|
|
1972
1972
|
_c = {};
|
|
1973
|
-
return [4,
|
|
1973
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1974
1974
|
case 1:
|
|
1975
1975
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1976
1976
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2037,7 +2037,7 @@ var deserializeAws_restJson1DeleteNetworkSettingsCommandError = function (output
|
|
|
2037
2037
|
case 0:
|
|
2038
2038
|
_a = [__assign({}, output)];
|
|
2039
2039
|
_c = {};
|
|
2040
|
-
return [4,
|
|
2040
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2041
2041
|
case 1:
|
|
2042
2042
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2043
2043
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2104,7 +2104,7 @@ var deserializeAws_restJson1DeletePortalCommandError = function (output, context
|
|
|
2104
2104
|
case 0:
|
|
2105
2105
|
_a = [__assign({}, output)];
|
|
2106
2106
|
_c = {};
|
|
2107
|
-
return [4,
|
|
2107
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2108
2108
|
case 1:
|
|
2109
2109
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2110
2110
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2171,7 +2171,7 @@ var deserializeAws_restJson1DeleteTrustStoreCommandError = function (output, con
|
|
|
2171
2171
|
case 0:
|
|
2172
2172
|
_a = [__assign({}, output)];
|
|
2173
2173
|
_c = {};
|
|
2174
|
-
return [4,
|
|
2174
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2175
2175
|
case 1:
|
|
2176
2176
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2177
2177
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2238,7 +2238,7 @@ var deserializeAws_restJson1DeleteUserSettingsCommandError = function (output, c
|
|
|
2238
2238
|
case 0:
|
|
2239
2239
|
_a = [__assign({}, output)];
|
|
2240
2240
|
_c = {};
|
|
2241
|
-
return [4,
|
|
2241
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2242
2242
|
case 1:
|
|
2243
2243
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2244
2244
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2305,7 +2305,7 @@ var deserializeAws_restJson1DisassociateBrowserSettingsCommandError = function (
|
|
|
2305
2305
|
case 0:
|
|
2306
2306
|
_a = [__assign({}, output)];
|
|
2307
2307
|
_c = {};
|
|
2308
|
-
return [4,
|
|
2308
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2309
2309
|
case 1:
|
|
2310
2310
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2311
2311
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2372,7 +2372,7 @@ var deserializeAws_restJson1DisassociateNetworkSettingsCommandError = function (
|
|
|
2372
2372
|
case 0:
|
|
2373
2373
|
_a = [__assign({}, output)];
|
|
2374
2374
|
_c = {};
|
|
2375
|
-
return [4,
|
|
2375
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2376
2376
|
case 1:
|
|
2377
2377
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2378
2378
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2439,7 +2439,7 @@ var deserializeAws_restJson1DisassociateTrustStoreCommandError = function (outpu
|
|
|
2439
2439
|
case 0:
|
|
2440
2440
|
_a = [__assign({}, output)];
|
|
2441
2441
|
_c = {};
|
|
2442
|
-
return [4,
|
|
2442
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2443
2443
|
case 1:
|
|
2444
2444
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2445
2445
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2506,7 +2506,7 @@ var deserializeAws_restJson1DisassociateUserSettingsCommandError = function (out
|
|
|
2506
2506
|
case 0:
|
|
2507
2507
|
_a = [__assign({}, output)];
|
|
2508
2508
|
_c = {};
|
|
2509
|
-
return [4,
|
|
2509
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2510
2510
|
case 1:
|
|
2511
2511
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2512
2512
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2578,7 +2578,7 @@ var deserializeAws_restJson1GetBrowserSettingsCommandError = function (output, c
|
|
|
2578
2578
|
case 0:
|
|
2579
2579
|
_a = [__assign({}, output)];
|
|
2580
2580
|
_c = {};
|
|
2581
|
-
return [4,
|
|
2581
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2582
2582
|
case 1:
|
|
2583
2583
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2584
2584
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2650,7 +2650,7 @@ var deserializeAws_restJson1GetIdentityProviderCommandError = function (output,
|
|
|
2650
2650
|
case 0:
|
|
2651
2651
|
_a = [__assign({}, output)];
|
|
2652
2652
|
_c = {};
|
|
2653
|
-
return [4,
|
|
2653
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2654
2654
|
case 1:
|
|
2655
2655
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2656
2656
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2722,7 +2722,7 @@ var deserializeAws_restJson1GetNetworkSettingsCommandError = function (output, c
|
|
|
2722
2722
|
case 0:
|
|
2723
2723
|
_a = [__assign({}, output)];
|
|
2724
2724
|
_c = {};
|
|
2725
|
-
return [4,
|
|
2725
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2726
2726
|
case 1:
|
|
2727
2727
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2728
2728
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2794,7 +2794,7 @@ var deserializeAws_restJson1GetPortalCommandError = function (output, context) {
|
|
|
2794
2794
|
case 0:
|
|
2795
2795
|
_a = [__assign({}, output)];
|
|
2796
2796
|
_c = {};
|
|
2797
|
-
return [4,
|
|
2797
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2798
2798
|
case 1:
|
|
2799
2799
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2800
2800
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2869,7 +2869,7 @@ var deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = funct
|
|
|
2869
2869
|
case 0:
|
|
2870
2870
|
_a = [__assign({}, output)];
|
|
2871
2871
|
_c = {};
|
|
2872
|
-
return [4,
|
|
2872
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2873
2873
|
case 1:
|
|
2874
2874
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2875
2875
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2941,7 +2941,7 @@ var deserializeAws_restJson1GetTrustStoreCommandError = function (output, contex
|
|
|
2941
2941
|
case 0:
|
|
2942
2942
|
_a = [__assign({}, output)];
|
|
2943
2943
|
_c = {};
|
|
2944
|
-
return [4,
|
|
2944
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2945
2945
|
case 1:
|
|
2946
2946
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2947
2947
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3016,7 +3016,7 @@ var deserializeAws_restJson1GetTrustStoreCertificateCommandError = function (out
|
|
|
3016
3016
|
case 0:
|
|
3017
3017
|
_a = [__assign({}, output)];
|
|
3018
3018
|
_c = {};
|
|
3019
|
-
return [4,
|
|
3019
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3020
3020
|
case 1:
|
|
3021
3021
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3022
3022
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3088,7 +3088,7 @@ var deserializeAws_restJson1GetUserSettingsCommandError = function (output, cont
|
|
|
3088
3088
|
case 0:
|
|
3089
3089
|
_a = [__assign({}, output)];
|
|
3090
3090
|
_c = {};
|
|
3091
|
-
return [4,
|
|
3091
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3092
3092
|
case 1:
|
|
3093
3093
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3094
3094
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3163,7 +3163,7 @@ var deserializeAws_restJson1ListBrowserSettingsCommandError = function (output,
|
|
|
3163
3163
|
case 0:
|
|
3164
3164
|
_a = [__assign({}, output)];
|
|
3165
3165
|
_c = {};
|
|
3166
|
-
return [4,
|
|
3166
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3167
3167
|
case 1:
|
|
3168
3168
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3169
3169
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3234,7 +3234,7 @@ var deserializeAws_restJson1ListIdentityProvidersCommandError = function (output
|
|
|
3234
3234
|
case 0:
|
|
3235
3235
|
_a = [__assign({}, output)];
|
|
3236
3236
|
_c = {};
|
|
3237
|
-
return [4,
|
|
3237
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3238
3238
|
case 1:
|
|
3239
3239
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3240
3240
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3305,7 +3305,7 @@ var deserializeAws_restJson1ListNetworkSettingsCommandError = function (output,
|
|
|
3305
3305
|
case 0:
|
|
3306
3306
|
_a = [__assign({}, output)];
|
|
3307
3307
|
_c = {};
|
|
3308
|
-
return [4,
|
|
3308
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3309
3309
|
case 1:
|
|
3310
3310
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3311
3311
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3376,7 +3376,7 @@ var deserializeAws_restJson1ListPortalsCommandError = function (output, context)
|
|
|
3376
3376
|
case 0:
|
|
3377
3377
|
_a = [__assign({}, output)];
|
|
3378
3378
|
_c = {};
|
|
3379
|
-
return [4,
|
|
3379
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3380
3380
|
case 1:
|
|
3381
3381
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3382
3382
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3444,7 +3444,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3444
3444
|
case 0:
|
|
3445
3445
|
_a = [__assign({}, output)];
|
|
3446
3446
|
_c = {};
|
|
3447
|
-
return [4,
|
|
3447
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3448
3448
|
case 1:
|
|
3449
3449
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3450
3450
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3522,7 +3522,7 @@ var deserializeAws_restJson1ListTrustStoreCertificatesCommandError = function (o
|
|
|
3522
3522
|
case 0:
|
|
3523
3523
|
_a = [__assign({}, output)];
|
|
3524
3524
|
_c = {};
|
|
3525
|
-
return [4,
|
|
3525
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3526
3526
|
case 1:
|
|
3527
3527
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3528
3528
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3597,7 +3597,7 @@ var deserializeAws_restJson1ListTrustStoresCommandError = function (output, cont
|
|
|
3597
3597
|
case 0:
|
|
3598
3598
|
_a = [__assign({}, output)];
|
|
3599
3599
|
_c = {};
|
|
3600
|
-
return [4,
|
|
3600
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3601
3601
|
case 1:
|
|
3602
3602
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3603
3603
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3668,7 +3668,7 @@ var deserializeAws_restJson1ListUserSettingsCommandError = function (output, con
|
|
|
3668
3668
|
case 0:
|
|
3669
3669
|
_a = [__assign({}, output)];
|
|
3670
3670
|
_c = {};
|
|
3671
|
-
return [4,
|
|
3671
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3672
3672
|
case 1:
|
|
3673
3673
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3674
3674
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3731,7 +3731,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3731
3731
|
case 0:
|
|
3732
3732
|
_a = [__assign({}, output)];
|
|
3733
3733
|
_c = {};
|
|
3734
|
-
return [4,
|
|
3734
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3735
3735
|
case 1:
|
|
3736
3736
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3737
3737
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3802,7 +3802,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3802
3802
|
case 0:
|
|
3803
3803
|
_a = [__assign({}, output)];
|
|
3804
3804
|
_c = {};
|
|
3805
|
-
return [4,
|
|
3805
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3806
3806
|
case 1:
|
|
3807
3807
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3808
3808
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3874,7 +3874,7 @@ var deserializeAws_restJson1UpdateBrowserSettingsCommandError = function (output
|
|
|
3874
3874
|
case 0:
|
|
3875
3875
|
_a = [__assign({}, output)];
|
|
3876
3876
|
_c = {};
|
|
3877
|
-
return [4,
|
|
3877
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3878
3878
|
case 1:
|
|
3879
3879
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3880
3880
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3946,7 +3946,7 @@ var deserializeAws_restJson1UpdateIdentityProviderCommandError = function (outpu
|
|
|
3946
3946
|
case 0:
|
|
3947
3947
|
_a = [__assign({}, output)];
|
|
3948
3948
|
_c = {};
|
|
3949
|
-
return [4,
|
|
3949
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3950
3950
|
case 1:
|
|
3951
3951
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3952
3952
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4018,7 +4018,7 @@ var deserializeAws_restJson1UpdateNetworkSettingsCommandError = function (output
|
|
|
4018
4018
|
case 0:
|
|
4019
4019
|
_a = [__assign({}, output)];
|
|
4020
4020
|
_c = {};
|
|
4021
|
-
return [4,
|
|
4021
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4022
4022
|
case 1:
|
|
4023
4023
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4024
4024
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4090,7 +4090,7 @@ var deserializeAws_restJson1UpdatePortalCommandError = function (output, context
|
|
|
4090
4090
|
case 0:
|
|
4091
4091
|
_a = [__assign({}, output)];
|
|
4092
4092
|
_c = {};
|
|
4093
|
-
return [4,
|
|
4093
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4094
4094
|
case 1:
|
|
4095
4095
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4096
4096
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4162,7 +4162,7 @@ var deserializeAws_restJson1UpdateTrustStoreCommandError = function (output, con
|
|
|
4162
4162
|
case 0:
|
|
4163
4163
|
_a = [__assign({}, output)];
|
|
4164
4164
|
_c = {};
|
|
4165
|
-
return [4,
|
|
4165
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4166
4166
|
case 1:
|
|
4167
4167
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4168
4168
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4238,7 +4238,7 @@ var deserializeAws_restJson1UpdateUserSettingsCommandError = function (output, c
|
|
|
4238
4238
|
case 0:
|
|
4239
4239
|
_a = [__assign({}, output)];
|
|
4240
4240
|
_c = {};
|
|
4241
|
-
return [4,
|
|
4241
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4242
4242
|
case 1:
|
|
4243
4243
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4244
4244
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4823,6 +4823,19 @@ var parseBody = function (streamBody, context) {
|
|
|
4823
4823
|
return {};
|
|
4824
4824
|
});
|
|
4825
4825
|
};
|
|
4826
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4827
|
+
var value;
|
|
4828
|
+
var _a;
|
|
4829
|
+
return __generator(this, function (_b) {
|
|
4830
|
+
switch (_b.label) {
|
|
4831
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
4832
|
+
case 1:
|
|
4833
|
+
value = _b.sent();
|
|
4834
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4835
|
+
return [2, value];
|
|
4836
|
+
}
|
|
4837
|
+
});
|
|
4838
|
+
}); };
|
|
4826
4839
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4827
4840
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4828
4841
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-workspaces-web",
|
|
3
3
|
"description": "AWS SDK for JavaScript Workspaces Web 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",
|