@aws-sdk/client-efs 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 +36 -30
- package/dist-es/EFS.js +122 -129
- package/dist-es/EFSClient.js +22 -28
- package/dist-es/commands/CreateAccessPointCommand.js +21 -28
- package/dist-es/commands/CreateFileSystemCommand.js +21 -28
- package/dist-es/commands/CreateMountTargetCommand.js +21 -28
- package/dist-es/commands/CreateReplicationConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateTagsCommand.js +22 -29
- package/dist-es/commands/DeleteAccessPointCommand.js +22 -29
- package/dist-es/commands/DeleteFileSystemCommand.js +22 -29
- package/dist-es/commands/DeleteFileSystemPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteMountTargetCommand.js +22 -29
- package/dist-es/commands/DeleteReplicationConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteTagsCommand.js +22 -29
- package/dist-es/commands/DescribeAccessPointsCommand.js +21 -28
- package/dist-es/commands/DescribeAccountPreferencesCommand.js +21 -28
- package/dist-es/commands/DescribeBackupPolicyCommand.js +21 -28
- package/dist-es/commands/DescribeFileSystemPolicyCommand.js +21 -28
- package/dist-es/commands/DescribeFileSystemsCommand.js +21 -28
- package/dist-es/commands/DescribeLifecycleConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeMountTargetSecurityGroupsCommand.js +21 -28
- package/dist-es/commands/DescribeMountTargetsCommand.js +21 -28
- package/dist-es/commands/DescribeReplicationConfigurationsCommand.js +21 -28
- package/dist-es/commands/DescribeTagsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ModifyMountTargetSecurityGroupsCommand.js +22 -29
- package/dist-es/commands/PutAccountPreferencesCommand.js +21 -28
- package/dist-es/commands/PutBackupPolicyCommand.js +21 -28
- package/dist-es/commands/PutFileSystemPolicyCommand.js +21 -28
- package/dist-es/commands/PutLifecycleConfigurationCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateFileSystemCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/EFSServiceException.js +5 -10
- package/dist-es/models/models_0.js +560 -449
- package/dist-es/pagination/DescribeAccessPointsPaginator.js +25 -68
- package/dist-es/pagination/DescribeFileSystemsPaginator.js +25 -68
- package/dist-es/pagination/DescribeTagsPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2631 -3530
- 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-efs
|
|
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-efs
|
|
@@ -714,7 +714,7 @@ exports.deserializeAws_restJson1CreateAccessPointCommand = deserializeAws_restJs
|
|
|
714
714
|
const deserializeAws_restJson1CreateAccessPointCommandError = async (output, context) => {
|
|
715
715
|
const parsedOutput = {
|
|
716
716
|
...output,
|
|
717
|
-
body: await
|
|
717
|
+
body: await parseErrorBody(output.body, context),
|
|
718
718
|
};
|
|
719
719
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
720
|
switch (errorCode) {
|
|
@@ -814,7 +814,7 @@ exports.deserializeAws_restJson1CreateFileSystemCommand = deserializeAws_restJso
|
|
|
814
814
|
const deserializeAws_restJson1CreateFileSystemCommandError = async (output, context) => {
|
|
815
815
|
const parsedOutput = {
|
|
816
816
|
...output,
|
|
817
|
-
body: await
|
|
817
|
+
body: await parseErrorBody(output.body, context),
|
|
818
818
|
};
|
|
819
819
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
820
820
|
switch (errorCode) {
|
|
@@ -893,7 +893,7 @@ exports.deserializeAws_restJson1CreateMountTargetCommand = deserializeAws_restJs
|
|
|
893
893
|
const deserializeAws_restJson1CreateMountTargetCommandError = async (output, context) => {
|
|
894
894
|
const parsedOutput = {
|
|
895
895
|
...output,
|
|
896
|
-
body: await
|
|
896
|
+
body: await parseErrorBody(output.body, context),
|
|
897
897
|
};
|
|
898
898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
899
899
|
switch (errorCode) {
|
|
@@ -978,7 +978,7 @@ exports.deserializeAws_restJson1CreateReplicationConfigurationCommand = deserial
|
|
|
978
978
|
const deserializeAws_restJson1CreateReplicationConfigurationCommandError = async (output, context) => {
|
|
979
979
|
const parsedOutput = {
|
|
980
980
|
...output,
|
|
981
|
-
body: await
|
|
981
|
+
body: await parseErrorBody(output.body, context),
|
|
982
982
|
};
|
|
983
983
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
984
|
switch (errorCode) {
|
|
@@ -1036,7 +1036,7 @@ exports.deserializeAws_restJson1CreateTagsCommand = deserializeAws_restJson1Crea
|
|
|
1036
1036
|
const deserializeAws_restJson1CreateTagsCommandError = async (output, context) => {
|
|
1037
1037
|
const parsedOutput = {
|
|
1038
1038
|
...output,
|
|
1039
|
-
body: await
|
|
1039
|
+
body: await parseErrorBody(output.body, context),
|
|
1040
1040
|
};
|
|
1041
1041
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
1042
|
switch (errorCode) {
|
|
@@ -1073,7 +1073,7 @@ exports.deserializeAws_restJson1DeleteAccessPointCommand = deserializeAws_restJs
|
|
|
1073
1073
|
const deserializeAws_restJson1DeleteAccessPointCommandError = async (output, context) => {
|
|
1074
1074
|
const parsedOutput = {
|
|
1075
1075
|
...output,
|
|
1076
|
-
body: await
|
|
1076
|
+
body: await parseErrorBody(output.body, context),
|
|
1077
1077
|
};
|
|
1078
1078
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
1079
|
switch (errorCode) {
|
|
@@ -1110,7 +1110,7 @@ exports.deserializeAws_restJson1DeleteFileSystemCommand = deserializeAws_restJso
|
|
|
1110
1110
|
const deserializeAws_restJson1DeleteFileSystemCommandError = async (output, context) => {
|
|
1111
1111
|
const parsedOutput = {
|
|
1112
1112
|
...output,
|
|
1113
|
-
body: await
|
|
1113
|
+
body: await parseErrorBody(output.body, context),
|
|
1114
1114
|
};
|
|
1115
1115
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1116
1116
|
switch (errorCode) {
|
|
@@ -1150,7 +1150,7 @@ exports.deserializeAws_restJson1DeleteFileSystemPolicyCommand = deserializeAws_r
|
|
|
1150
1150
|
const deserializeAws_restJson1DeleteFileSystemPolicyCommandError = async (output, context) => {
|
|
1151
1151
|
const parsedOutput = {
|
|
1152
1152
|
...output,
|
|
1153
|
-
body: await
|
|
1153
|
+
body: await parseErrorBody(output.body, context),
|
|
1154
1154
|
};
|
|
1155
1155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
1156
|
switch (errorCode) {
|
|
@@ -1190,7 +1190,7 @@ exports.deserializeAws_restJson1DeleteMountTargetCommand = deserializeAws_restJs
|
|
|
1190
1190
|
const deserializeAws_restJson1DeleteMountTargetCommandError = async (output, context) => {
|
|
1191
1191
|
const parsedOutput = {
|
|
1192
1192
|
...output,
|
|
1193
|
-
body: await
|
|
1193
|
+
body: await parseErrorBody(output.body, context),
|
|
1194
1194
|
};
|
|
1195
1195
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
1196
|
switch (errorCode) {
|
|
@@ -1230,7 +1230,7 @@ exports.deserializeAws_restJson1DeleteReplicationConfigurationCommand = deserial
|
|
|
1230
1230
|
const deserializeAws_restJson1DeleteReplicationConfigurationCommandError = async (output, context) => {
|
|
1231
1231
|
const parsedOutput = {
|
|
1232
1232
|
...output,
|
|
1233
|
-
body: await
|
|
1233
|
+
body: await parseErrorBody(output.body, context),
|
|
1234
1234
|
};
|
|
1235
1235
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
1236
|
switch (errorCode) {
|
|
@@ -1270,7 +1270,7 @@ exports.deserializeAws_restJson1DeleteTagsCommand = deserializeAws_restJson1Dele
|
|
|
1270
1270
|
const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) => {
|
|
1271
1271
|
const parsedOutput = {
|
|
1272
1272
|
...output,
|
|
1273
|
-
body: await
|
|
1273
|
+
body: await parseErrorBody(output.body, context),
|
|
1274
1274
|
};
|
|
1275
1275
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
1276
|
switch (errorCode) {
|
|
@@ -1313,7 +1313,7 @@ exports.deserializeAws_restJson1DescribeAccessPointsCommand = deserializeAws_res
|
|
|
1313
1313
|
const deserializeAws_restJson1DescribeAccessPointsCommandError = async (output, context) => {
|
|
1314
1314
|
const parsedOutput = {
|
|
1315
1315
|
...output,
|
|
1316
|
-
body: await
|
|
1316
|
+
body: await parseErrorBody(output.body, context),
|
|
1317
1317
|
};
|
|
1318
1318
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1319
1319
|
switch (errorCode) {
|
|
@@ -1359,7 +1359,7 @@ exports.deserializeAws_restJson1DescribeAccountPreferencesCommand = deserializeA
|
|
|
1359
1359
|
const deserializeAws_restJson1DescribeAccountPreferencesCommandError = async (output, context) => {
|
|
1360
1360
|
const parsedOutput = {
|
|
1361
1361
|
...output,
|
|
1362
|
-
body: await
|
|
1362
|
+
body: await parseErrorBody(output.body, context),
|
|
1363
1363
|
};
|
|
1364
1364
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
1365
|
switch (errorCode) {
|
|
@@ -1393,7 +1393,7 @@ exports.deserializeAws_restJson1DescribeBackupPolicyCommand = deserializeAws_res
|
|
|
1393
1393
|
const deserializeAws_restJson1DescribeBackupPolicyCommandError = async (output, context) => {
|
|
1394
1394
|
const parsedOutput = {
|
|
1395
1395
|
...output,
|
|
1396
|
-
body: await
|
|
1396
|
+
body: await parseErrorBody(output.body, context),
|
|
1397
1397
|
};
|
|
1398
1398
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
1399
|
switch (errorCode) {
|
|
@@ -1442,7 +1442,7 @@ exports.deserializeAws_restJson1DescribeFileSystemPolicyCommand = deserializeAws
|
|
|
1442
1442
|
const deserializeAws_restJson1DescribeFileSystemPolicyCommandError = async (output, context) => {
|
|
1443
1443
|
const parsedOutput = {
|
|
1444
1444
|
...output,
|
|
1445
|
-
body: await
|
|
1445
|
+
body: await parseErrorBody(output.body, context),
|
|
1446
1446
|
};
|
|
1447
1447
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
1448
|
switch (errorCode) {
|
|
@@ -1491,7 +1491,7 @@ exports.deserializeAws_restJson1DescribeFileSystemsCommand = deserializeAws_rest
|
|
|
1491
1491
|
const deserializeAws_restJson1DescribeFileSystemsCommandError = async (output, context) => {
|
|
1492
1492
|
const parsedOutput = {
|
|
1493
1493
|
...output,
|
|
1494
|
-
body: await
|
|
1494
|
+
body: await parseErrorBody(output.body, context),
|
|
1495
1495
|
};
|
|
1496
1496
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
1497
|
switch (errorCode) {
|
|
@@ -1531,7 +1531,7 @@ exports.deserializeAws_restJson1DescribeLifecycleConfigurationCommand = deserial
|
|
|
1531
1531
|
const deserializeAws_restJson1DescribeLifecycleConfigurationCommandError = async (output, context) => {
|
|
1532
1532
|
const parsedOutput = {
|
|
1533
1533
|
...output,
|
|
1534
|
-
body: await
|
|
1534
|
+
body: await parseErrorBody(output.body, context),
|
|
1535
1535
|
};
|
|
1536
1536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
1537
|
switch (errorCode) {
|
|
@@ -1577,7 +1577,7 @@ exports.deserializeAws_restJson1DescribeMountTargetsCommand = deserializeAws_res
|
|
|
1577
1577
|
const deserializeAws_restJson1DescribeMountTargetsCommandError = async (output, context) => {
|
|
1578
1578
|
const parsedOutput = {
|
|
1579
1579
|
...output,
|
|
1580
|
-
body: await
|
|
1580
|
+
body: await parseErrorBody(output.body, context),
|
|
1581
1581
|
};
|
|
1582
1582
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1583
1583
|
switch (errorCode) {
|
|
@@ -1623,7 +1623,7 @@ exports.deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = deser
|
|
|
1623
1623
|
const deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommandError = async (output, context) => {
|
|
1624
1624
|
const parsedOutput = {
|
|
1625
1625
|
...output,
|
|
1626
|
-
body: await
|
|
1626
|
+
body: await parseErrorBody(output.body, context),
|
|
1627
1627
|
};
|
|
1628
1628
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
1629
|
switch (errorCode) {
|
|
@@ -1669,7 +1669,7 @@ exports.deserializeAws_restJson1DescribeReplicationConfigurationsCommand = deser
|
|
|
1669
1669
|
const deserializeAws_restJson1DescribeReplicationConfigurationsCommandError = async (output, context) => {
|
|
1670
1670
|
const parsedOutput = {
|
|
1671
1671
|
...output,
|
|
1672
|
-
body: await
|
|
1672
|
+
body: await parseErrorBody(output.body, context),
|
|
1673
1673
|
};
|
|
1674
1674
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
1675
|
switch (errorCode) {
|
|
@@ -1721,7 +1721,7 @@ exports.deserializeAws_restJson1DescribeTagsCommand = deserializeAws_restJson1De
|
|
|
1721
1721
|
const deserializeAws_restJson1DescribeTagsCommandError = 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) {
|
|
@@ -1764,7 +1764,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1764
1764
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1765
1765
|
const parsedOutput = {
|
|
1766
1766
|
...output,
|
|
1767
|
-
body: await
|
|
1767
|
+
body: await parseErrorBody(output.body, context),
|
|
1768
1768
|
};
|
|
1769
1769
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
1770
|
switch (errorCode) {
|
|
@@ -1804,7 +1804,7 @@ exports.deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = deseria
|
|
|
1804
1804
|
const deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommandError = async (output, context) => {
|
|
1805
1805
|
const parsedOutput = {
|
|
1806
1806
|
...output,
|
|
1807
|
-
body: await
|
|
1807
|
+
body: await parseErrorBody(output.body, context),
|
|
1808
1808
|
};
|
|
1809
1809
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1810
1810
|
switch (errorCode) {
|
|
@@ -1853,7 +1853,7 @@ exports.deserializeAws_restJson1PutAccountPreferencesCommand = deserializeAws_re
|
|
|
1853
1853
|
const deserializeAws_restJson1PutAccountPreferencesCommandError = async (output, context) => {
|
|
1854
1854
|
const parsedOutput = {
|
|
1855
1855
|
...output,
|
|
1856
|
-
body: await
|
|
1856
|
+
body: await parseErrorBody(output.body, context),
|
|
1857
1857
|
};
|
|
1858
1858
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1859
1859
|
switch (errorCode) {
|
|
@@ -1890,7 +1890,7 @@ exports.deserializeAws_restJson1PutBackupPolicyCommand = deserializeAws_restJson
|
|
|
1890
1890
|
const deserializeAws_restJson1PutBackupPolicyCommandError = async (output, context) => {
|
|
1891
1891
|
const parsedOutput = {
|
|
1892
1892
|
...output,
|
|
1893
|
-
body: await
|
|
1893
|
+
body: await parseErrorBody(output.body, context),
|
|
1894
1894
|
};
|
|
1895
1895
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
1896
|
switch (errorCode) {
|
|
@@ -1939,7 +1939,7 @@ exports.deserializeAws_restJson1PutFileSystemPolicyCommand = deserializeAws_rest
|
|
|
1939
1939
|
const deserializeAws_restJson1PutFileSystemPolicyCommandError = async (output, context) => {
|
|
1940
1940
|
const parsedOutput = {
|
|
1941
1941
|
...output,
|
|
1942
|
-
body: await
|
|
1942
|
+
body: await parseErrorBody(output.body, context),
|
|
1943
1943
|
};
|
|
1944
1944
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1945
1945
|
switch (errorCode) {
|
|
@@ -1985,7 +1985,7 @@ exports.deserializeAws_restJson1PutLifecycleConfigurationCommand = deserializeAw
|
|
|
1985
1985
|
const deserializeAws_restJson1PutLifecycleConfigurationCommandError = async (output, context) => {
|
|
1986
1986
|
const parsedOutput = {
|
|
1987
1987
|
...output,
|
|
1988
|
-
body: await
|
|
1988
|
+
body: await parseErrorBody(output.body, context),
|
|
1989
1989
|
};
|
|
1990
1990
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1991
1991
|
switch (errorCode) {
|
|
@@ -2025,7 +2025,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2025
2025
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2026
2026
|
const parsedOutput = {
|
|
2027
2027
|
...output,
|
|
2028
|
-
body: await
|
|
2028
|
+
body: await parseErrorBody(output.body, context),
|
|
2029
2029
|
};
|
|
2030
2030
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2031
2031
|
switch (errorCode) {
|
|
@@ -2065,7 +2065,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2065
2065
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2066
2066
|
const parsedOutput = {
|
|
2067
2067
|
...output,
|
|
2068
|
-
body: await
|
|
2068
|
+
body: await parseErrorBody(output.body, context),
|
|
2069
2069
|
};
|
|
2070
2070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
2071
|
switch (errorCode) {
|
|
@@ -2156,7 +2156,7 @@ exports.deserializeAws_restJson1UpdateFileSystemCommand = deserializeAws_restJso
|
|
|
2156
2156
|
const deserializeAws_restJson1UpdateFileSystemCommandError = async (output, context) => {
|
|
2157
2157
|
const parsedOutput = {
|
|
2158
2158
|
...output,
|
|
2159
|
-
body: await
|
|
2159
|
+
body: await parseErrorBody(output.body, context),
|
|
2160
2160
|
};
|
|
2161
2161
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
2162
|
switch (errorCode) {
|
|
@@ -3001,6 +3001,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3001
3001
|
}
|
|
3002
3002
|
return {};
|
|
3003
3003
|
});
|
|
3004
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3005
|
+
var _a;
|
|
3006
|
+
const value = await parseBody(errorBody, context);
|
|
3007
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3008
|
+
return value;
|
|
3009
|
+
};
|
|
3004
3010
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3005
3011
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3006
3012
|
const sanitizeErrorCode = (rawValue) => {
|