@aws-sdk/client-workmail 3.180.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 +12 -0
- package/dist-cjs/protocols/Aws_json1_1.js +79 -73
- package/dist-es/protocols/Aws_json1_1.js +86 -73
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-sdk/client-workmail
|
|
@@ -755,7 +755,7 @@ exports.deserializeAws_json1_1AssociateDelegateToResourceCommand = deserializeAw
|
|
|
755
755
|
const deserializeAws_json1_1AssociateDelegateToResourceCommandError = async (output, context) => {
|
|
756
756
|
const parsedOutput = {
|
|
757
757
|
...output,
|
|
758
|
-
body: await
|
|
758
|
+
body: await parseErrorBody(output.body, context),
|
|
759
759
|
};
|
|
760
760
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
761
|
switch (errorCode) {
|
|
@@ -801,7 +801,7 @@ exports.deserializeAws_json1_1AssociateMemberToGroupCommand = deserializeAws_jso
|
|
|
801
801
|
const deserializeAws_json1_1AssociateMemberToGroupCommandError = async (output, context) => {
|
|
802
802
|
const parsedOutput = {
|
|
803
803
|
...output,
|
|
804
|
-
body: await
|
|
804
|
+
body: await parseErrorBody(output.body, context),
|
|
805
805
|
};
|
|
806
806
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
807
807
|
switch (errorCode) {
|
|
@@ -856,7 +856,7 @@ exports.deserializeAws_json1_1CancelMailboxExportJobCommand = deserializeAws_jso
|
|
|
856
856
|
const deserializeAws_json1_1CancelMailboxExportJobCommandError = 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) {
|
|
@@ -899,7 +899,7 @@ exports.deserializeAws_json1_1CreateAliasCommand = deserializeAws_json1_1CreateA
|
|
|
899
899
|
const deserializeAws_json1_1CreateAliasCommandError = async (output, context) => {
|
|
900
900
|
const parsedOutput = {
|
|
901
901
|
...output,
|
|
902
|
-
body: await
|
|
902
|
+
body: await parseErrorBody(output.body, context),
|
|
903
903
|
};
|
|
904
904
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
905
|
switch (errorCode) {
|
|
@@ -957,7 +957,7 @@ exports.deserializeAws_json1_1CreateAvailabilityConfigurationCommand = deseriali
|
|
|
957
957
|
const deserializeAws_json1_1CreateAvailabilityConfigurationCommandError = async (output, context) => {
|
|
958
958
|
const parsedOutput = {
|
|
959
959
|
...output,
|
|
960
|
-
body: await
|
|
960
|
+
body: await parseErrorBody(output.body, context),
|
|
961
961
|
};
|
|
962
962
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
963
|
switch (errorCode) {
|
|
@@ -1003,7 +1003,7 @@ exports.deserializeAws_json1_1CreateGroupCommand = deserializeAws_json1_1CreateG
|
|
|
1003
1003
|
const deserializeAws_json1_1CreateGroupCommandError = async (output, context) => {
|
|
1004
1004
|
const parsedOutput = {
|
|
1005
1005
|
...output,
|
|
1006
|
-
body: await
|
|
1006
|
+
body: await parseErrorBody(output.body, context),
|
|
1007
1007
|
};
|
|
1008
1008
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
1009
|
switch (errorCode) {
|
|
@@ -1058,7 +1058,7 @@ exports.deserializeAws_json1_1CreateMobileDeviceAccessRuleCommand = deserializeA
|
|
|
1058
1058
|
const deserializeAws_json1_1CreateMobileDeviceAccessRuleCommandError = 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) {
|
|
@@ -1101,7 +1101,7 @@ exports.deserializeAws_json1_1CreateOrganizationCommand = deserializeAws_json1_1
|
|
|
1101
1101
|
const deserializeAws_json1_1CreateOrganizationCommandError = async (output, context) => {
|
|
1102
1102
|
const parsedOutput = {
|
|
1103
1103
|
...output,
|
|
1104
|
-
body: await
|
|
1104
|
+
body: await parseErrorBody(output.body, context),
|
|
1105
1105
|
};
|
|
1106
1106
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
1107
|
switch (errorCode) {
|
|
@@ -1147,7 +1147,7 @@ exports.deserializeAws_json1_1CreateResourceCommand = deserializeAws_json1_1Crea
|
|
|
1147
1147
|
const deserializeAws_json1_1CreateResourceCommandError = async (output, context) => {
|
|
1148
1148
|
const parsedOutput = {
|
|
1149
1149
|
...output,
|
|
1150
|
-
body: await
|
|
1150
|
+
body: await parseErrorBody(output.body, context),
|
|
1151
1151
|
};
|
|
1152
1152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
1153
|
switch (errorCode) {
|
|
@@ -1199,7 +1199,7 @@ exports.deserializeAws_json1_1CreateUserCommand = deserializeAws_json1_1CreateUs
|
|
|
1199
1199
|
const deserializeAws_json1_1CreateUserCommandError = async (output, context) => {
|
|
1200
1200
|
const parsedOutput = {
|
|
1201
1201
|
...output,
|
|
1202
|
-
body: await
|
|
1202
|
+
body: await parseErrorBody(output.body, context),
|
|
1203
1203
|
};
|
|
1204
1204
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1205
1205
|
switch (errorCode) {
|
|
@@ -1257,7 +1257,7 @@ exports.deserializeAws_json1_1DeleteAccessControlRuleCommand = deserializeAws_js
|
|
|
1257
1257
|
const deserializeAws_json1_1DeleteAccessControlRuleCommandError = async (output, context) => {
|
|
1258
1258
|
const parsedOutput = {
|
|
1259
1259
|
...output,
|
|
1260
|
-
body: await
|
|
1260
|
+
body: await parseErrorBody(output.body, context),
|
|
1261
1261
|
};
|
|
1262
1262
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
1263
|
switch (errorCode) {
|
|
@@ -1294,7 +1294,7 @@ exports.deserializeAws_json1_1DeleteAliasCommand = deserializeAws_json1_1DeleteA
|
|
|
1294
1294
|
const deserializeAws_json1_1DeleteAliasCommandError = async (output, context) => {
|
|
1295
1295
|
const parsedOutput = {
|
|
1296
1296
|
...output,
|
|
1297
|
-
body: await
|
|
1297
|
+
body: await parseErrorBody(output.body, context),
|
|
1298
1298
|
};
|
|
1299
1299
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1300
1300
|
switch (errorCode) {
|
|
@@ -1340,7 +1340,7 @@ exports.deserializeAws_json1_1DeleteAvailabilityConfigurationCommand = deseriali
|
|
|
1340
1340
|
const deserializeAws_json1_1DeleteAvailabilityConfigurationCommandError = async (output, context) => {
|
|
1341
1341
|
const parsedOutput = {
|
|
1342
1342
|
...output,
|
|
1343
|
-
body: await
|
|
1343
|
+
body: await parseErrorBody(output.body, context),
|
|
1344
1344
|
};
|
|
1345
1345
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1346
1346
|
switch (errorCode) {
|
|
@@ -1377,7 +1377,7 @@ exports.deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommand = deseri
|
|
|
1377
1377
|
const deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommandError = async (output, context) => {
|
|
1378
1378
|
const parsedOutput = {
|
|
1379
1379
|
...output,
|
|
1380
|
-
body: await
|
|
1380
|
+
body: await parseErrorBody(output.body, context),
|
|
1381
1381
|
};
|
|
1382
1382
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
1383
|
switch (errorCode) {
|
|
@@ -1417,7 +1417,7 @@ exports.deserializeAws_json1_1DeleteGroupCommand = deserializeAws_json1_1DeleteG
|
|
|
1417
1417
|
const deserializeAws_json1_1DeleteGroupCommandError = async (output, context) => {
|
|
1418
1418
|
const parsedOutput = {
|
|
1419
1419
|
...output,
|
|
1420
|
-
body: await
|
|
1420
|
+
body: await parseErrorBody(output.body, context),
|
|
1421
1421
|
};
|
|
1422
1422
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
1423
|
switch (errorCode) {
|
|
@@ -1469,7 +1469,7 @@ exports.deserializeAws_json1_1DeleteMailboxPermissionsCommand = deserializeAws_j
|
|
|
1469
1469
|
const deserializeAws_json1_1DeleteMailboxPermissionsCommandError = async (output, context) => {
|
|
1470
1470
|
const parsedOutput = {
|
|
1471
1471
|
...output,
|
|
1472
|
-
body: await
|
|
1472
|
+
body: await parseErrorBody(output.body, context),
|
|
1473
1473
|
};
|
|
1474
1474
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
1475
|
switch (errorCode) {
|
|
@@ -1515,7 +1515,7 @@ exports.deserializeAws_json1_1DeleteMobileDeviceAccessOverrideCommand = deserial
|
|
|
1515
1515
|
const deserializeAws_json1_1DeleteMobileDeviceAccessOverrideCommandError = async (output, context) => {
|
|
1516
1516
|
const parsedOutput = {
|
|
1517
1517
|
...output,
|
|
1518
|
-
body: await
|
|
1518
|
+
body: await parseErrorBody(output.body, context),
|
|
1519
1519
|
};
|
|
1520
1520
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1521
1521
|
switch (errorCode) {
|
|
@@ -1558,7 +1558,7 @@ exports.deserializeAws_json1_1DeleteMobileDeviceAccessRuleCommand = deserializeA
|
|
|
1558
1558
|
const deserializeAws_json1_1DeleteMobileDeviceAccessRuleCommandError = async (output, context) => {
|
|
1559
1559
|
const parsedOutput = {
|
|
1560
1560
|
...output,
|
|
1561
|
-
body: await
|
|
1561
|
+
body: await parseErrorBody(output.body, context),
|
|
1562
1562
|
};
|
|
1563
1563
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
1564
|
switch (errorCode) {
|
|
@@ -1598,7 +1598,7 @@ exports.deserializeAws_json1_1DeleteOrganizationCommand = deserializeAws_json1_1
|
|
|
1598
1598
|
const deserializeAws_json1_1DeleteOrganizationCommandError = async (output, context) => {
|
|
1599
1599
|
const parsedOutput = {
|
|
1600
1600
|
...output,
|
|
1601
|
-
body: await
|
|
1601
|
+
body: await parseErrorBody(output.body, context),
|
|
1602
1602
|
};
|
|
1603
1603
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
1604
|
switch (errorCode) {
|
|
@@ -1638,7 +1638,7 @@ exports.deserializeAws_json1_1DeleteResourceCommand = deserializeAws_json1_1Dele
|
|
|
1638
1638
|
const deserializeAws_json1_1DeleteResourceCommandError = async (output, context) => {
|
|
1639
1639
|
const parsedOutput = {
|
|
1640
1640
|
...output,
|
|
1641
|
-
body: await
|
|
1641
|
+
body: await parseErrorBody(output.body, context),
|
|
1642
1642
|
};
|
|
1643
1643
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1644
1644
|
switch (errorCode) {
|
|
@@ -1681,7 +1681,7 @@ exports.deserializeAws_json1_1DeleteRetentionPolicyCommand = deserializeAws_json
|
|
|
1681
1681
|
const deserializeAws_json1_1DeleteRetentionPolicyCommandError = async (output, context) => {
|
|
1682
1682
|
const parsedOutput = {
|
|
1683
1683
|
...output,
|
|
1684
|
-
body: await
|
|
1684
|
+
body: await parseErrorBody(output.body, context),
|
|
1685
1685
|
};
|
|
1686
1686
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1687
1687
|
switch (errorCode) {
|
|
@@ -1721,7 +1721,7 @@ exports.deserializeAws_json1_1DeleteUserCommand = deserializeAws_json1_1DeleteUs
|
|
|
1721
1721
|
const deserializeAws_json1_1DeleteUserCommandError = async (output, context) => {
|
|
1722
1722
|
const parsedOutput = {
|
|
1723
1723
|
...output,
|
|
1724
|
-
body: await
|
|
1724
|
+
body: await parseErrorBody(output.body, context),
|
|
1725
1725
|
};
|
|
1726
1726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
1727
|
switch (errorCode) {
|
|
@@ -1773,7 +1773,7 @@ exports.deserializeAws_json1_1DeregisterFromWorkMailCommand = deserializeAws_jso
|
|
|
1773
1773
|
const deserializeAws_json1_1DeregisterFromWorkMailCommandError = async (output, context) => {
|
|
1774
1774
|
const parsedOutput = {
|
|
1775
1775
|
...output,
|
|
1776
|
-
body: await
|
|
1776
|
+
body: await parseErrorBody(output.body, context),
|
|
1777
1777
|
};
|
|
1778
1778
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1779
1779
|
switch (errorCode) {
|
|
@@ -1819,7 +1819,7 @@ exports.deserializeAws_json1_1DeregisterMailDomainCommand = deserializeAws_json1
|
|
|
1819
1819
|
const deserializeAws_json1_1DeregisterMailDomainCommandError = async (output, context) => {
|
|
1820
1820
|
const parsedOutput = {
|
|
1821
1821
|
...output,
|
|
1822
|
-
body: await
|
|
1822
|
+
body: await parseErrorBody(output.body, context),
|
|
1823
1823
|
};
|
|
1824
1824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1825
1825
|
switch (errorCode) {
|
|
@@ -1865,7 +1865,7 @@ exports.deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommand = dese
|
|
|
1865
1865
|
const deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommandError = async (output, context) => {
|
|
1866
1866
|
const parsedOutput = {
|
|
1867
1867
|
...output,
|
|
1868
|
-
body: await
|
|
1868
|
+
body: await parseErrorBody(output.body, context),
|
|
1869
1869
|
};
|
|
1870
1870
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
1871
|
switch (errorCode) {
|
|
@@ -1908,7 +1908,7 @@ exports.deserializeAws_json1_1DescribeGroupCommand = deserializeAws_json1_1Descr
|
|
|
1908
1908
|
const deserializeAws_json1_1DescribeGroupCommandError = async (output, context) => {
|
|
1909
1909
|
const parsedOutput = {
|
|
1910
1910
|
...output,
|
|
1911
|
-
body: await
|
|
1911
|
+
body: await parseErrorBody(output.body, context),
|
|
1912
1912
|
};
|
|
1913
1913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
1914
|
switch (errorCode) {
|
|
@@ -1951,7 +1951,7 @@ exports.deserializeAws_json1_1DescribeInboundDmarcSettingsCommand = deserializeA
|
|
|
1951
1951
|
const deserializeAws_json1_1DescribeInboundDmarcSettingsCommandError = async (output, context) => {
|
|
1952
1952
|
const parsedOutput = {
|
|
1953
1953
|
...output,
|
|
1954
|
-
body: await
|
|
1954
|
+
body: await parseErrorBody(output.body, context),
|
|
1955
1955
|
};
|
|
1956
1956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
1957
|
switch (errorCode) {
|
|
@@ -1988,7 +1988,7 @@ exports.deserializeAws_json1_1DescribeMailboxExportJobCommand = deserializeAws_j
|
|
|
1988
1988
|
const deserializeAws_json1_1DescribeMailboxExportJobCommandError = async (output, context) => {
|
|
1989
1989
|
const parsedOutput = {
|
|
1990
1990
|
...output,
|
|
1991
|
-
body: await
|
|
1991
|
+
body: await parseErrorBody(output.body, context),
|
|
1992
1992
|
};
|
|
1993
1993
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1994
1994
|
switch (errorCode) {
|
|
@@ -2031,7 +2031,7 @@ exports.deserializeAws_json1_1DescribeOrganizationCommand = deserializeAws_json1
|
|
|
2031
2031
|
const deserializeAws_json1_1DescribeOrganizationCommandError = async (output, context) => {
|
|
2032
2032
|
const parsedOutput = {
|
|
2033
2033
|
...output,
|
|
2034
|
-
body: await
|
|
2034
|
+
body: await parseErrorBody(output.body, context),
|
|
2035
2035
|
};
|
|
2036
2036
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2037
2037
|
switch (errorCode) {
|
|
@@ -2068,7 +2068,7 @@ exports.deserializeAws_json1_1DescribeResourceCommand = deserializeAws_json1_1De
|
|
|
2068
2068
|
const deserializeAws_json1_1DescribeResourceCommandError = async (output, context) => {
|
|
2069
2069
|
const parsedOutput = {
|
|
2070
2070
|
...output,
|
|
2071
|
-
body: await
|
|
2071
|
+
body: await parseErrorBody(output.body, context),
|
|
2072
2072
|
};
|
|
2073
2073
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
2074
|
switch (errorCode) {
|
|
@@ -2111,7 +2111,7 @@ exports.deserializeAws_json1_1DescribeUserCommand = deserializeAws_json1_1Descri
|
|
|
2111
2111
|
const deserializeAws_json1_1DescribeUserCommandError = async (output, context) => {
|
|
2112
2112
|
const parsedOutput = {
|
|
2113
2113
|
...output,
|
|
2114
|
-
body: await
|
|
2114
|
+
body: await parseErrorBody(output.body, context),
|
|
2115
2115
|
};
|
|
2116
2116
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
2117
|
switch (errorCode) {
|
|
@@ -2154,7 +2154,7 @@ exports.deserializeAws_json1_1DisassociateDelegateFromResourceCommand = deserial
|
|
|
2154
2154
|
const deserializeAws_json1_1DisassociateDelegateFromResourceCommandError = async (output, context) => {
|
|
2155
2155
|
const parsedOutput = {
|
|
2156
2156
|
...output,
|
|
2157
|
-
body: await
|
|
2157
|
+
body: await parseErrorBody(output.body, context),
|
|
2158
2158
|
};
|
|
2159
2159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
2160
|
switch (errorCode) {
|
|
@@ -2200,7 +2200,7 @@ exports.deserializeAws_json1_1DisassociateMemberFromGroupCommand = deserializeAw
|
|
|
2200
2200
|
const deserializeAws_json1_1DisassociateMemberFromGroupCommandError = async (output, context) => {
|
|
2201
2201
|
const parsedOutput = {
|
|
2202
2202
|
...output,
|
|
2203
|
-
body: await
|
|
2203
|
+
body: await parseErrorBody(output.body, context),
|
|
2204
2204
|
};
|
|
2205
2205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2206
2206
|
switch (errorCode) {
|
|
@@ -2255,7 +2255,7 @@ exports.deserializeAws_json1_1GetAccessControlEffectCommand = deserializeAws_jso
|
|
|
2255
2255
|
const deserializeAws_json1_1GetAccessControlEffectCommandError = async (output, context) => {
|
|
2256
2256
|
const parsedOutput = {
|
|
2257
2257
|
...output,
|
|
2258
|
-
body: await
|
|
2258
|
+
body: await parseErrorBody(output.body, context),
|
|
2259
2259
|
};
|
|
2260
2260
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2261
2261
|
switch (errorCode) {
|
|
@@ -2298,7 +2298,7 @@ exports.deserializeAws_json1_1GetDefaultRetentionPolicyCommand = deserializeAws_
|
|
|
2298
2298
|
const deserializeAws_json1_1GetDefaultRetentionPolicyCommandError = async (output, context) => {
|
|
2299
2299
|
const parsedOutput = {
|
|
2300
2300
|
...output,
|
|
2301
|
-
body: await
|
|
2301
|
+
body: await parseErrorBody(output.body, context),
|
|
2302
2302
|
};
|
|
2303
2303
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2304
2304
|
switch (errorCode) {
|
|
@@ -2341,7 +2341,7 @@ exports.deserializeAws_json1_1GetMailboxDetailsCommand = deserializeAws_json1_1G
|
|
|
2341
2341
|
const deserializeAws_json1_1GetMailboxDetailsCommandError = async (output, context) => {
|
|
2342
2342
|
const parsedOutput = {
|
|
2343
2343
|
...output,
|
|
2344
|
-
body: await
|
|
2344
|
+
body: await parseErrorBody(output.body, context),
|
|
2345
2345
|
};
|
|
2346
2346
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2347
2347
|
switch (errorCode) {
|
|
@@ -2381,7 +2381,7 @@ exports.deserializeAws_json1_1GetMailDomainCommand = deserializeAws_json1_1GetMa
|
|
|
2381
2381
|
const deserializeAws_json1_1GetMailDomainCommandError = async (output, context) => {
|
|
2382
2382
|
const parsedOutput = {
|
|
2383
2383
|
...output,
|
|
2384
|
-
body: await
|
|
2384
|
+
body: await parseErrorBody(output.body, context),
|
|
2385
2385
|
};
|
|
2386
2386
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2387
2387
|
switch (errorCode) {
|
|
@@ -2424,7 +2424,7 @@ exports.deserializeAws_json1_1GetMobileDeviceAccessEffectCommand = deserializeAw
|
|
|
2424
2424
|
const deserializeAws_json1_1GetMobileDeviceAccessEffectCommandError = async (output, context) => {
|
|
2425
2425
|
const parsedOutput = {
|
|
2426
2426
|
...output,
|
|
2427
|
-
body: await
|
|
2427
|
+
body: await parseErrorBody(output.body, context),
|
|
2428
2428
|
};
|
|
2429
2429
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2430
2430
|
switch (errorCode) {
|
|
@@ -2464,7 +2464,7 @@ exports.deserializeAws_json1_1GetMobileDeviceAccessOverrideCommand = deserialize
|
|
|
2464
2464
|
const deserializeAws_json1_1GetMobileDeviceAccessOverrideCommandError = async (output, context) => {
|
|
2465
2465
|
const parsedOutput = {
|
|
2466
2466
|
...output,
|
|
2467
|
-
body: await
|
|
2467
|
+
body: await parseErrorBody(output.body, context),
|
|
2468
2468
|
};
|
|
2469
2469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
2470
|
switch (errorCode) {
|
|
@@ -2510,7 +2510,7 @@ exports.deserializeAws_json1_1ListAccessControlRulesCommand = deserializeAws_jso
|
|
|
2510
2510
|
const deserializeAws_json1_1ListAccessControlRulesCommandError = async (output, context) => {
|
|
2511
2511
|
const parsedOutput = {
|
|
2512
2512
|
...output,
|
|
2513
|
-
body: await
|
|
2513
|
+
body: await parseErrorBody(output.body, context),
|
|
2514
2514
|
};
|
|
2515
2515
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
2516
|
switch (errorCode) {
|
|
@@ -2547,7 +2547,7 @@ exports.deserializeAws_json1_1ListAliasesCommand = deserializeAws_json1_1ListAli
|
|
|
2547
2547
|
const deserializeAws_json1_1ListAliasesCommandError = async (output, context) => {
|
|
2548
2548
|
const parsedOutput = {
|
|
2549
2549
|
...output,
|
|
2550
|
-
body: await
|
|
2550
|
+
body: await parseErrorBody(output.body, context),
|
|
2551
2551
|
};
|
|
2552
2552
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2553
2553
|
switch (errorCode) {
|
|
@@ -2593,7 +2593,7 @@ exports.deserializeAws_json1_1ListAvailabilityConfigurationsCommand = deserializ
|
|
|
2593
2593
|
const deserializeAws_json1_1ListAvailabilityConfigurationsCommandError = async (output, context) => {
|
|
2594
2594
|
const parsedOutput = {
|
|
2595
2595
|
...output,
|
|
2596
|
-
body: await
|
|
2596
|
+
body: await parseErrorBody(output.body, context),
|
|
2597
2597
|
};
|
|
2598
2598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2599
2599
|
switch (errorCode) {
|
|
@@ -2630,7 +2630,7 @@ exports.deserializeAws_json1_1ListGroupMembersCommand = deserializeAws_json1_1Li
|
|
|
2630
2630
|
const deserializeAws_json1_1ListGroupMembersCommandError = async (output, context) => {
|
|
2631
2631
|
const parsedOutput = {
|
|
2632
2632
|
...output,
|
|
2633
|
-
body: await
|
|
2633
|
+
body: await parseErrorBody(output.body, context),
|
|
2634
2634
|
};
|
|
2635
2635
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2636
2636
|
switch (errorCode) {
|
|
@@ -2676,7 +2676,7 @@ exports.deserializeAws_json1_1ListGroupsCommand = deserializeAws_json1_1ListGrou
|
|
|
2676
2676
|
const deserializeAws_json1_1ListGroupsCommandError = async (output, context) => {
|
|
2677
2677
|
const parsedOutput = {
|
|
2678
2678
|
...output,
|
|
2679
|
-
body: await
|
|
2679
|
+
body: await parseErrorBody(output.body, context),
|
|
2680
2680
|
};
|
|
2681
2681
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2682
2682
|
switch (errorCode) {
|
|
@@ -2719,7 +2719,7 @@ exports.deserializeAws_json1_1ListMailboxExportJobsCommand = deserializeAws_json
|
|
|
2719
2719
|
const deserializeAws_json1_1ListMailboxExportJobsCommandError = async (output, context) => {
|
|
2720
2720
|
const parsedOutput = {
|
|
2721
2721
|
...output,
|
|
2722
|
-
body: await
|
|
2722
|
+
body: await parseErrorBody(output.body, context),
|
|
2723
2723
|
};
|
|
2724
2724
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
2725
|
switch (errorCode) {
|
|
@@ -2759,7 +2759,7 @@ exports.deserializeAws_json1_1ListMailboxPermissionsCommand = deserializeAws_jso
|
|
|
2759
2759
|
const deserializeAws_json1_1ListMailboxPermissionsCommandError = async (output, context) => {
|
|
2760
2760
|
const parsedOutput = {
|
|
2761
2761
|
...output,
|
|
2762
|
-
body: await
|
|
2762
|
+
body: await parseErrorBody(output.body, context),
|
|
2763
2763
|
};
|
|
2764
2764
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2765
2765
|
switch (errorCode) {
|
|
@@ -2802,7 +2802,7 @@ exports.deserializeAws_json1_1ListMailDomainsCommand = deserializeAws_json1_1Lis
|
|
|
2802
2802
|
const deserializeAws_json1_1ListMailDomainsCommandError = async (output, context) => {
|
|
2803
2803
|
const parsedOutput = {
|
|
2804
2804
|
...output,
|
|
2805
|
-
body: await
|
|
2805
|
+
body: await parseErrorBody(output.body, context),
|
|
2806
2806
|
};
|
|
2807
2807
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2808
2808
|
switch (errorCode) {
|
|
@@ -2842,7 +2842,7 @@ exports.deserializeAws_json1_1ListMobileDeviceAccessOverridesCommand = deseriali
|
|
|
2842
2842
|
const deserializeAws_json1_1ListMobileDeviceAccessOverridesCommandError = async (output, context) => {
|
|
2843
2843
|
const parsedOutput = {
|
|
2844
2844
|
...output,
|
|
2845
|
-
body: await
|
|
2845
|
+
body: await parseErrorBody(output.body, context),
|
|
2846
2846
|
};
|
|
2847
2847
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2848
2848
|
switch (errorCode) {
|
|
@@ -2885,7 +2885,7 @@ exports.deserializeAws_json1_1ListMobileDeviceAccessRulesCommand = deserializeAw
|
|
|
2885
2885
|
const deserializeAws_json1_1ListMobileDeviceAccessRulesCommandError = async (output, context) => {
|
|
2886
2886
|
const parsedOutput = {
|
|
2887
2887
|
...output,
|
|
2888
|
-
body: await
|
|
2888
|
+
body: await parseErrorBody(output.body, context),
|
|
2889
2889
|
};
|
|
2890
2890
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2891
2891
|
switch (errorCode) {
|
|
@@ -2925,7 +2925,7 @@ exports.deserializeAws_json1_1ListOrganizationsCommand = deserializeAws_json1_1L
|
|
|
2925
2925
|
const deserializeAws_json1_1ListOrganizationsCommandError = 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) {
|
|
@@ -2959,7 +2959,7 @@ exports.deserializeAws_json1_1ListResourceDelegatesCommand = deserializeAws_json
|
|
|
2959
2959
|
const deserializeAws_json1_1ListResourceDelegatesCommandError = async (output, context) => {
|
|
2960
2960
|
const parsedOutput = {
|
|
2961
2961
|
...output,
|
|
2962
|
-
body: await
|
|
2962
|
+
body: await parseErrorBody(output.body, context),
|
|
2963
2963
|
};
|
|
2964
2964
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2965
2965
|
switch (errorCode) {
|
|
@@ -3005,7 +3005,7 @@ exports.deserializeAws_json1_1ListResourcesCommand = deserializeAws_json1_1ListR
|
|
|
3005
3005
|
const deserializeAws_json1_1ListResourcesCommandError = async (output, context) => {
|
|
3006
3006
|
const parsedOutput = {
|
|
3007
3007
|
...output,
|
|
3008
|
-
body: await
|
|
3008
|
+
body: await parseErrorBody(output.body, context),
|
|
3009
3009
|
};
|
|
3010
3010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3011
3011
|
switch (errorCode) {
|
|
@@ -3045,7 +3045,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
3045
3045
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
3046
3046
|
const parsedOutput = {
|
|
3047
3047
|
...output,
|
|
3048
|
-
body: await
|
|
3048
|
+
body: await parseErrorBody(output.body, context),
|
|
3049
3049
|
};
|
|
3050
3050
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3051
3051
|
switch (errorCode) {
|
|
@@ -3079,7 +3079,7 @@ exports.deserializeAws_json1_1ListUsersCommand = deserializeAws_json1_1ListUsers
|
|
|
3079
3079
|
const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
3080
3080
|
const parsedOutput = {
|
|
3081
3081
|
...output,
|
|
3082
|
-
body: await
|
|
3082
|
+
body: await parseErrorBody(output.body, context),
|
|
3083
3083
|
};
|
|
3084
3084
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3085
3085
|
switch (errorCode) {
|
|
@@ -3119,7 +3119,7 @@ exports.deserializeAws_json1_1PutAccessControlRuleCommand = deserializeAws_json1
|
|
|
3119
3119
|
const deserializeAws_json1_1PutAccessControlRuleCommandError = async (output, context) => {
|
|
3120
3120
|
const parsedOutput = {
|
|
3121
3121
|
...output,
|
|
3122
|
-
body: await
|
|
3122
|
+
body: await parseErrorBody(output.body, context),
|
|
3123
3123
|
};
|
|
3124
3124
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3125
3125
|
switch (errorCode) {
|
|
@@ -3165,7 +3165,7 @@ exports.deserializeAws_json1_1PutEmailMonitoringConfigurationCommand = deseriali
|
|
|
3165
3165
|
const deserializeAws_json1_1PutEmailMonitoringConfigurationCommandError = async (output, context) => {
|
|
3166
3166
|
const parsedOutput = {
|
|
3167
3167
|
...output,
|
|
3168
|
-
body: await
|
|
3168
|
+
body: await parseErrorBody(output.body, context),
|
|
3169
3169
|
};
|
|
3170
3170
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3171
3171
|
switch (errorCode) {
|
|
@@ -3208,7 +3208,7 @@ exports.deserializeAws_json1_1PutInboundDmarcSettingsCommand = deserializeAws_js
|
|
|
3208
3208
|
const deserializeAws_json1_1PutInboundDmarcSettingsCommandError = async (output, context) => {
|
|
3209
3209
|
const parsedOutput = {
|
|
3210
3210
|
...output,
|
|
3211
|
-
body: await
|
|
3211
|
+
body: await parseErrorBody(output.body, context),
|
|
3212
3212
|
};
|
|
3213
3213
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3214
3214
|
switch (errorCode) {
|
|
@@ -3245,7 +3245,7 @@ exports.deserializeAws_json1_1PutMailboxPermissionsCommand = deserializeAws_json
|
|
|
3245
3245
|
const deserializeAws_json1_1PutMailboxPermissionsCommandError = async (output, context) => {
|
|
3246
3246
|
const parsedOutput = {
|
|
3247
3247
|
...output,
|
|
3248
|
-
body: await
|
|
3248
|
+
body: await parseErrorBody(output.body, context),
|
|
3249
3249
|
};
|
|
3250
3250
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3251
3251
|
switch (errorCode) {
|
|
@@ -3291,7 +3291,7 @@ exports.deserializeAws_json1_1PutMobileDeviceAccessOverrideCommand = deserialize
|
|
|
3291
3291
|
const deserializeAws_json1_1PutMobileDeviceAccessOverrideCommandError = async (output, context) => {
|
|
3292
3292
|
const parsedOutput = {
|
|
3293
3293
|
...output,
|
|
3294
|
-
body: await
|
|
3294
|
+
body: await parseErrorBody(output.body, context),
|
|
3295
3295
|
};
|
|
3296
3296
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3297
3297
|
switch (errorCode) {
|
|
@@ -3337,7 +3337,7 @@ exports.deserializeAws_json1_1PutRetentionPolicyCommand = deserializeAws_json1_1
|
|
|
3337
3337
|
const deserializeAws_json1_1PutRetentionPolicyCommandError = async (output, context) => {
|
|
3338
3338
|
const parsedOutput = {
|
|
3339
3339
|
...output,
|
|
3340
|
-
body: await
|
|
3340
|
+
body: await parseErrorBody(output.body, context),
|
|
3341
3341
|
};
|
|
3342
3342
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3343
3343
|
switch (errorCode) {
|
|
@@ -3380,7 +3380,7 @@ exports.deserializeAws_json1_1RegisterMailDomainCommand = deserializeAws_json1_1
|
|
|
3380
3380
|
const deserializeAws_json1_1RegisterMailDomainCommandError = async (output, context) => {
|
|
3381
3381
|
const parsedOutput = {
|
|
3382
3382
|
...output,
|
|
3383
|
-
body: await
|
|
3383
|
+
body: await parseErrorBody(output.body, context),
|
|
3384
3384
|
};
|
|
3385
3385
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3386
3386
|
switch (errorCode) {
|
|
@@ -3426,7 +3426,7 @@ exports.deserializeAws_json1_1RegisterToWorkMailCommand = deserializeAws_json1_1
|
|
|
3426
3426
|
const deserializeAws_json1_1RegisterToWorkMailCommandError = async (output, context) => {
|
|
3427
3427
|
const parsedOutput = {
|
|
3428
3428
|
...output,
|
|
3429
|
-
body: await
|
|
3429
|
+
body: await parseErrorBody(output.body, context),
|
|
3430
3430
|
};
|
|
3431
3431
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3432
3432
|
switch (errorCode) {
|
|
@@ -3490,7 +3490,7 @@ exports.deserializeAws_json1_1ResetPasswordCommand = deserializeAws_json1_1Reset
|
|
|
3490
3490
|
const deserializeAws_json1_1ResetPasswordCommandError = async (output, context) => {
|
|
3491
3491
|
const parsedOutput = {
|
|
3492
3492
|
...output,
|
|
3493
|
-
body: await
|
|
3493
|
+
body: await parseErrorBody(output.body, context),
|
|
3494
3494
|
};
|
|
3495
3495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3496
3496
|
switch (errorCode) {
|
|
@@ -3548,7 +3548,7 @@ exports.deserializeAws_json1_1StartMailboxExportJobCommand = deserializeAws_json
|
|
|
3548
3548
|
const deserializeAws_json1_1StartMailboxExportJobCommandError = async (output, context) => {
|
|
3549
3549
|
const parsedOutput = {
|
|
3550
3550
|
...output,
|
|
3551
|
-
body: await
|
|
3551
|
+
body: await parseErrorBody(output.body, context),
|
|
3552
3552
|
};
|
|
3553
3553
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3554
3554
|
switch (errorCode) {
|
|
@@ -3594,7 +3594,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
3594
3594
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
3595
3595
|
const parsedOutput = {
|
|
3596
3596
|
...output,
|
|
3597
|
-
body: await
|
|
3597
|
+
body: await parseErrorBody(output.body, context),
|
|
3598
3598
|
};
|
|
3599
3599
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3600
3600
|
switch (errorCode) {
|
|
@@ -3634,7 +3634,7 @@ exports.deserializeAws_json1_1TestAvailabilityConfigurationCommand = deserialize
|
|
|
3634
3634
|
const deserializeAws_json1_1TestAvailabilityConfigurationCommandError = async (output, context) => {
|
|
3635
3635
|
const parsedOutput = {
|
|
3636
3636
|
...output,
|
|
3637
|
-
body: await
|
|
3637
|
+
body: await parseErrorBody(output.body, context),
|
|
3638
3638
|
};
|
|
3639
3639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3640
3640
|
switch (errorCode) {
|
|
@@ -3677,7 +3677,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
3677
3677
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
3678
3678
|
const parsedOutput = {
|
|
3679
3679
|
...output,
|
|
3680
|
-
body: await
|
|
3680
|
+
body: await parseErrorBody(output.body, context),
|
|
3681
3681
|
};
|
|
3682
3682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3683
3683
|
switch (errorCode) {
|
|
@@ -3711,7 +3711,7 @@ exports.deserializeAws_json1_1UpdateAvailabilityConfigurationCommand = deseriali
|
|
|
3711
3711
|
const deserializeAws_json1_1UpdateAvailabilityConfigurationCommandError = async (output, context) => {
|
|
3712
3712
|
const parsedOutput = {
|
|
3713
3713
|
...output,
|
|
3714
|
-
body: await
|
|
3714
|
+
body: await parseErrorBody(output.body, context),
|
|
3715
3715
|
};
|
|
3716
3716
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3717
3717
|
switch (errorCode) {
|
|
@@ -3754,7 +3754,7 @@ exports.deserializeAws_json1_1UpdateDefaultMailDomainCommand = deserializeAws_js
|
|
|
3754
3754
|
const deserializeAws_json1_1UpdateDefaultMailDomainCommandError = async (output, context) => {
|
|
3755
3755
|
const parsedOutput = {
|
|
3756
3756
|
...output,
|
|
3757
|
-
body: await
|
|
3757
|
+
body: await parseErrorBody(output.body, context),
|
|
3758
3758
|
};
|
|
3759
3759
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3760
3760
|
switch (errorCode) {
|
|
@@ -3800,7 +3800,7 @@ exports.deserializeAws_json1_1UpdateMailboxQuotaCommand = deserializeAws_json1_1
|
|
|
3800
3800
|
const deserializeAws_json1_1UpdateMailboxQuotaCommandError = async (output, context) => {
|
|
3801
3801
|
const parsedOutput = {
|
|
3802
3802
|
...output,
|
|
3803
|
-
body: await
|
|
3803
|
+
body: await parseErrorBody(output.body, context),
|
|
3804
3804
|
};
|
|
3805
3805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3806
3806
|
switch (errorCode) {
|
|
@@ -3846,7 +3846,7 @@ exports.deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommand = deserializeA
|
|
|
3846
3846
|
const deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommandError = async (output, context) => {
|
|
3847
3847
|
const parsedOutput = {
|
|
3848
3848
|
...output,
|
|
3849
|
-
body: await
|
|
3849
|
+
body: await parseErrorBody(output.body, context),
|
|
3850
3850
|
};
|
|
3851
3851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3852
3852
|
switch (errorCode) {
|
|
@@ -3889,7 +3889,7 @@ exports.deserializeAws_json1_1UpdatePrimaryEmailAddressCommand = deserializeAws_
|
|
|
3889
3889
|
const deserializeAws_json1_1UpdatePrimaryEmailAddressCommandError = async (output, context) => {
|
|
3890
3890
|
const parsedOutput = {
|
|
3891
3891
|
...output,
|
|
3892
|
-
body: await
|
|
3892
|
+
body: await parseErrorBody(output.body, context),
|
|
3893
3893
|
};
|
|
3894
3894
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3895
3895
|
switch (errorCode) {
|
|
@@ -3953,7 +3953,7 @@ exports.deserializeAws_json1_1UpdateResourceCommand = deserializeAws_json1_1Upda
|
|
|
3953
3953
|
const deserializeAws_json1_1UpdateResourceCommandError = async (output, context) => {
|
|
3954
3954
|
const parsedOutput = {
|
|
3955
3955
|
...output,
|
|
3956
|
-
body: await
|
|
3956
|
+
body: await parseErrorBody(output.body, context),
|
|
3957
3957
|
};
|
|
3958
3958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3959
3959
|
switch (errorCode) {
|
|
@@ -5968,6 +5968,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5968
5968
|
}
|
|
5969
5969
|
return {};
|
|
5970
5970
|
});
|
|
5971
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
5972
|
+
var _a;
|
|
5973
|
+
const value = await parseBody(errorBody, context);
|
|
5974
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5975
|
+
return value;
|
|
5976
|
+
};
|
|
5971
5977
|
const loadRestJsonErrorCode = (output, data) => {
|
|
5972
5978
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
5973
5979
|
const sanitizeErrorCode = (rawValue) => {
|