@aws-sdk/client-workspaces-web 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 +50 -44
- package/dist-es/WorkSpacesWeb.js +178 -185
- package/dist-es/WorkSpacesWebClient.js +22 -28
- package/dist-es/commands/AssociateBrowserSettingsCommand.js +21 -28
- package/dist-es/commands/AssociateNetworkSettingsCommand.js +21 -28
- package/dist-es/commands/AssociateTrustStoreCommand.js +21 -28
- package/dist-es/commands/AssociateUserSettingsCommand.js +21 -28
- package/dist-es/commands/CreateBrowserSettingsCommand.js +21 -28
- package/dist-es/commands/CreateIdentityProviderCommand.js +21 -28
- package/dist-es/commands/CreateNetworkSettingsCommand.js +21 -28
- package/dist-es/commands/CreatePortalCommand.js +21 -28
- package/dist-es/commands/CreateTrustStoreCommand.js +21 -28
- package/dist-es/commands/CreateUserSettingsCommand.js +21 -28
- package/dist-es/commands/DeleteBrowserSettingsCommand.js +21 -28
- package/dist-es/commands/DeleteIdentityProviderCommand.js +21 -28
- package/dist-es/commands/DeleteNetworkSettingsCommand.js +21 -28
- package/dist-es/commands/DeletePortalCommand.js +21 -28
- package/dist-es/commands/DeleteTrustStoreCommand.js +21 -28
- package/dist-es/commands/DeleteUserSettingsCommand.js +21 -28
- package/dist-es/commands/DisassociateBrowserSettingsCommand.js +21 -28
- package/dist-es/commands/DisassociateNetworkSettingsCommand.js +21 -28
- package/dist-es/commands/DisassociateTrustStoreCommand.js +21 -28
- package/dist-es/commands/DisassociateUserSettingsCommand.js +21 -28
- package/dist-es/commands/GetBrowserSettingsCommand.js +21 -28
- package/dist-es/commands/GetIdentityProviderCommand.js +21 -28
- package/dist-es/commands/GetNetworkSettingsCommand.js +21 -28
- package/dist-es/commands/GetPortalCommand.js +21 -28
- package/dist-es/commands/GetPortalServiceProviderMetadataCommand.js +21 -28
- package/dist-es/commands/GetTrustStoreCertificateCommand.js +21 -28
- package/dist-es/commands/GetTrustStoreCommand.js +21 -28
- package/dist-es/commands/GetUserSettingsCommand.js +21 -28
- package/dist-es/commands/ListBrowserSettingsCommand.js +21 -28
- package/dist-es/commands/ListIdentityProvidersCommand.js +21 -28
- package/dist-es/commands/ListNetworkSettingsCommand.js +21 -28
- package/dist-es/commands/ListPortalsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTrustStoreCertificatesCommand.js +21 -28
- package/dist-es/commands/ListTrustStoresCommand.js +21 -28
- package/dist-es/commands/ListUserSettingsCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateBrowserSettingsCommand.js +21 -28
- package/dist-es/commands/UpdateIdentityProviderCommand.js +21 -28
- package/dist-es/commands/UpdateNetworkSettingsCommand.js +21 -28
- package/dist-es/commands/UpdatePortalCommand.js +21 -28
- package/dist-es/commands/UpdateTrustStoreCommand.js +21 -28
- package/dist-es/commands/UpdateUserSettingsCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/WorkSpacesWebServiceException.js +5 -10
- package/dist-es/models/models_0.js +449 -210
- package/dist-es/pagination/ListBrowserSettingsPaginator.js +25 -68
- package/dist-es/pagination/ListIdentityProvidersPaginator.js +25 -68
- package/dist-es/pagination/ListNetworkSettingsPaginator.js +25 -68
- package/dist-es/pagination/ListPortalsPaginator.js +25 -68
- package/dist-es/pagination/ListTrustStoreCertificatesPaginator.js +25 -68
- package/dist-es/pagination/ListTrustStoresPaginator.js +25 -68
- package/dist-es/pagination/ListUserSettingsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +3076 -4455
- 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-workspaces-web
|
|
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-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) => {
|