@aws-sdk/client-efs 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 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-efs
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-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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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 parseBody(output.body, context),
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) => {
@@ -829,7 +829,7 @@ var deserializeAws_restJson1CreateAccessPointCommandError = function (output, co
829
829
  case 0:
830
830
  _a = [__assign({}, output)];
831
831
  _c = {};
832
- return [4, parseBody(output.body, context)];
832
+ return [4, parseErrorBody(output.body, context)];
833
833
  case 1:
834
834
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
835
835
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -957,7 +957,7 @@ var deserializeAws_restJson1CreateFileSystemCommandError = function (output, con
957
957
  case 0:
958
958
  _a = [__assign({}, output)];
959
959
  _c = {};
960
- return [4, parseBody(output.body, context)];
960
+ return [4, parseErrorBody(output.body, context)];
961
961
  case 1:
962
962
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
963
963
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1064,7 +1064,7 @@ var deserializeAws_restJson1CreateMountTargetCommandError = function (output, co
1064
1064
  case 0:
1065
1065
  _a = [__assign({}, output)];
1066
1066
  _c = {};
1067
- return [4, parseBody(output.body, context)];
1067
+ return [4, parseErrorBody(output.body, context)];
1068
1068
  case 1:
1069
1069
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1070
1070
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1183,7 +1183,7 @@ var deserializeAws_restJson1CreateReplicationConfigurationCommandError = functio
1183
1183
  case 0:
1184
1184
  _a = [__assign({}, output)];
1185
1185
  _c = {};
1186
- return [4, parseBody(output.body, context)];
1186
+ return [4, parseErrorBody(output.body, context)];
1187
1187
  case 1:
1188
1188
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1189
1189
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1270,7 +1270,7 @@ var deserializeAws_restJson1CreateTagsCommandError = function (output, context)
1270
1270
  case 0:
1271
1271
  _a = [__assign({}, output)];
1272
1272
  _c = {};
1273
- return [4, parseBody(output.body, context)];
1273
+ return [4, parseErrorBody(output.body, context)];
1274
1274
  case 1:
1275
1275
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1276
1276
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1329,7 +1329,7 @@ var deserializeAws_restJson1DeleteAccessPointCommandError = function (output, co
1329
1329
  case 0:
1330
1330
  _a = [__assign({}, output)];
1331
1331
  _c = {};
1332
- return [4, parseBody(output.body, context)];
1332
+ return [4, parseErrorBody(output.body, context)];
1333
1333
  case 1:
1334
1334
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1335
1335
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1388,7 +1388,7 @@ var deserializeAws_restJson1DeleteFileSystemCommandError = function (output, con
1388
1388
  case 0:
1389
1389
  _a = [__assign({}, output)];
1390
1390
  _c = {};
1391
- return [4, parseBody(output.body, context)];
1391
+ return [4, parseErrorBody(output.body, context)];
1392
1392
  case 1:
1393
1393
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1394
1394
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1451,7 +1451,7 @@ var deserializeAws_restJson1DeleteFileSystemPolicyCommandError = function (outpu
1451
1451
  case 0:
1452
1452
  _a = [__assign({}, output)];
1453
1453
  _c = {};
1454
- return [4, parseBody(output.body, context)];
1454
+ return [4, parseErrorBody(output.body, context)];
1455
1455
  case 1:
1456
1456
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1457
1457
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1514,7 +1514,7 @@ var deserializeAws_restJson1DeleteMountTargetCommandError = function (output, co
1514
1514
  case 0:
1515
1515
  _a = [__assign({}, output)];
1516
1516
  _c = {};
1517
- return [4, parseBody(output.body, context)];
1517
+ return [4, parseErrorBody(output.body, context)];
1518
1518
  case 1:
1519
1519
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1520
1520
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1577,7 +1577,7 @@ var deserializeAws_restJson1DeleteReplicationConfigurationCommandError = functio
1577
1577
  case 0:
1578
1578
  _a = [__assign({}, output)];
1579
1579
  _c = {};
1580
- return [4, parseBody(output.body, context)];
1580
+ return [4, parseErrorBody(output.body, context)];
1581
1581
  case 1:
1582
1582
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1583
1583
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1640,7 +1640,7 @@ var deserializeAws_restJson1DeleteTagsCommandError = function (output, context)
1640
1640
  case 0:
1641
1641
  _a = [__assign({}, output)];
1642
1642
  _c = {};
1643
- return [4, parseBody(output.body, context)];
1643
+ return [4, parseErrorBody(output.body, context)];
1644
1644
  case 1:
1645
1645
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1646
1646
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1707,7 +1707,7 @@ var deserializeAws_restJson1DescribeAccessPointsCommandError = function (output,
1707
1707
  case 0:
1708
1708
  _a = [__assign({}, output)];
1709
1709
  _c = {};
1710
- return [4, parseBody(output.body, context)];
1710
+ return [4, parseErrorBody(output.body, context)];
1711
1711
  case 1:
1712
1712
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1713
1713
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1778,7 +1778,7 @@ var deserializeAws_restJson1DescribeAccountPreferencesCommandError = function (o
1778
1778
  case 0:
1779
1779
  _a = [__assign({}, output)];
1780
1780
  _c = {};
1781
- return [4, parseBody(output.body, context)];
1781
+ return [4, parseErrorBody(output.body, context)];
1782
1782
  case 1:
1783
1783
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1784
1784
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1834,7 +1834,7 @@ var deserializeAws_restJson1DescribeBackupPolicyCommandError = function (output,
1834
1834
  case 0:
1835
1835
  _a = [__assign({}, output)];
1836
1836
  _c = {};
1837
- return [4, parseBody(output.body, context)];
1837
+ return [4, parseErrorBody(output.body, context)];
1838
1838
  case 1:
1839
1839
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1840
1840
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1909,7 +1909,7 @@ var deserializeAws_restJson1DescribeFileSystemPolicyCommandError = function (out
1909
1909
  case 0:
1910
1910
  _a = [__assign({}, output)];
1911
1911
  _c = {};
1912
- return [4, parseBody(output.body, context)];
1912
+ return [4, parseErrorBody(output.body, context)];
1913
1913
  case 1:
1914
1914
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1915
1915
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1983,7 +1983,7 @@ var deserializeAws_restJson1DescribeFileSystemsCommandError = function (output,
1983
1983
  case 0:
1984
1984
  _a = [__assign({}, output)];
1985
1985
  _c = {};
1986
- return [4, parseBody(output.body, context)];
1986
+ return [4, parseErrorBody(output.body, context)];
1987
1987
  case 1:
1988
1988
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1989
1989
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2047,7 +2047,7 @@ var deserializeAws_restJson1DescribeLifecycleConfigurationCommandError = functio
2047
2047
  case 0:
2048
2048
  _a = [__assign({}, output)];
2049
2049
  _c = {};
2050
- return [4, parseBody(output.body, context)];
2050
+ return [4, parseErrorBody(output.body, context)];
2051
2051
  case 1:
2052
2052
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2053
2053
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2117,7 +2117,7 @@ var deserializeAws_restJson1DescribeMountTargetsCommandError = function (output,
2117
2117
  case 0:
2118
2118
  _a = [__assign({}, output)];
2119
2119
  _c = {};
2120
- return [4, parseBody(output.body, context)];
2120
+ return [4, parseErrorBody(output.body, context)];
2121
2121
  case 1:
2122
2122
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2123
2123
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2189,7 +2189,7 @@ var deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommandError = func
2189
2189
  case 0:
2190
2190
  _a = [__assign({}, output)];
2191
2191
  _c = {};
2192
- return [4, parseBody(output.body, context)];
2192
+ return [4, parseErrorBody(output.body, context)];
2193
2193
  case 1:
2194
2194
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2195
2195
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2260,7 +2260,7 @@ var deserializeAws_restJson1DescribeReplicationConfigurationsCommandError = func
2260
2260
  case 0:
2261
2261
  _a = [__assign({}, output)];
2262
2262
  _c = {};
2263
- return [4, parseBody(output.body, context)];
2263
+ return [4, parseErrorBody(output.body, context)];
2264
2264
  case 1:
2265
2265
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2266
2266
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2338,7 +2338,7 @@ var deserializeAws_restJson1DescribeTagsCommandError = function (output, context
2338
2338
  case 0:
2339
2339
  _a = [__assign({}, output)];
2340
2340
  _c = {};
2341
- return [4, parseBody(output.body, context)];
2341
+ return [4, parseErrorBody(output.body, context)];
2342
2342
  case 1:
2343
2343
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2344
2344
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2405,7 +2405,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2405
2405
  case 0:
2406
2406
  _a = [__assign({}, output)];
2407
2407
  _c = {};
2408
- return [4, parseBody(output.body, context)];
2408
+ return [4, parseErrorBody(output.body, context)];
2409
2409
  case 1:
2410
2410
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2411
2411
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2468,7 +2468,7 @@ var deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommandError = functi
2468
2468
  case 0:
2469
2469
  _a = [__assign({}, output)];
2470
2470
  _c = {};
2471
- return [4, parseBody(output.body, context)];
2471
+ return [4, parseErrorBody(output.body, context)];
2472
2472
  case 1:
2473
2473
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2474
2474
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2544,7 +2544,7 @@ var deserializeAws_restJson1PutAccountPreferencesCommandError = function (output
2544
2544
  case 0:
2545
2545
  _a = [__assign({}, output)];
2546
2546
  _c = {};
2547
- return [4, parseBody(output.body, context)];
2547
+ return [4, parseErrorBody(output.body, context)];
2548
2548
  case 1:
2549
2549
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2550
2550
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2604,7 +2604,7 @@ var deserializeAws_restJson1PutBackupPolicyCommandError = function (output, cont
2604
2604
  case 0:
2605
2605
  _a = [__assign({}, output)];
2606
2606
  _c = {};
2607
- return [4, parseBody(output.body, context)];
2607
+ return [4, parseErrorBody(output.body, context)];
2608
2608
  case 1:
2609
2609
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2610
2610
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2679,7 +2679,7 @@ var deserializeAws_restJson1PutFileSystemPolicyCommandError = function (output,
2679
2679
  case 0:
2680
2680
  _a = [__assign({}, output)];
2681
2681
  _c = {};
2682
- return [4, parseBody(output.body, context)];
2682
+ return [4, parseErrorBody(output.body, context)];
2683
2683
  case 1:
2684
2684
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2685
2685
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2751,7 +2751,7 @@ var deserializeAws_restJson1PutLifecycleConfigurationCommandError = function (ou
2751
2751
  case 0:
2752
2752
  _a = [__assign({}, output)];
2753
2753
  _c = {};
2754
- return [4, parseBody(output.body, context)];
2754
+ return [4, parseErrorBody(output.body, context)];
2755
2755
  case 1:
2756
2756
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2757
2757
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2814,7 +2814,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2814
2814
  case 0:
2815
2815
  _a = [__assign({}, output)];
2816
2816
  _c = {};
2817
- return [4, parseBody(output.body, context)];
2817
+ return [4, parseErrorBody(output.body, context)];
2818
2818
  case 1:
2819
2819
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2820
2820
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2877,7 +2877,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2877
2877
  case 0:
2878
2878
  _a = [__assign({}, output)];
2879
2879
  _c = {};
2880
- return [4, parseBody(output.body, context)];
2880
+ return [4, parseErrorBody(output.body, context)];
2881
2881
  case 1:
2882
2882
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2883
2883
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2993,7 +2993,7 @@ var deserializeAws_restJson1UpdateFileSystemCommandError = function (output, con
2993
2993
  case 0:
2994
2994
  _a = [__assign({}, output)];
2995
2995
  _c = {};
2996
- return [4, parseBody(output.body, context)];
2996
+ return [4, parseErrorBody(output.body, context)];
2997
2997
  case 1:
2998
2998
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2999
2999
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3836,6 +3836,19 @@ var parseBody = function (streamBody, context) {
3836
3836
  return {};
3837
3837
  });
3838
3838
  };
3839
+ var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
3840
+ var value;
3841
+ var _a;
3842
+ return __generator(this, function (_b) {
3843
+ switch (_b.label) {
3844
+ case 0: return [4, parseBody(errorBody, context)];
3845
+ case 1:
3846
+ value = _b.sent();
3847
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
3848
+ return [2, value];
3849
+ }
3850
+ });
3851
+ }); };
3839
3852
  var loadRestJsonErrorCode = function (output, data) {
3840
3853
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
3841
3854
  var sanitizeErrorCode = function (rawValue) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-efs",
3
3
  "description": "AWS SDK for JavaScript Efs Client for Node.js, Browser and React Native",
4
- "version": "3.179.0",
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.179.0",
22
+ "@aws-sdk/client-sts": "3.181.0",
23
23
  "@aws-sdk/config-resolver": "3.178.0",
24
- "@aws-sdk/credential-provider-node": "3.178.0",
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.178.0",
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.178.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.178.0",
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",