@aws-sdk/client-efs 3.523.0 → 3.529.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.
Files changed (53) hide show
  1. package/dist-cjs/index.js +24 -64
  2. package/dist-es/protocols/Aws_restJson1.js +1 -40
  3. package/package.json +17 -17
  4. package/dist-cjs/EFS.js +0 -1
  5. package/dist-cjs/EFSClient.js +0 -1
  6. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  7. package/dist-cjs/commands/CreateAccessPointCommand.js +0 -1
  8. package/dist-cjs/commands/CreateFileSystemCommand.js +0 -1
  9. package/dist-cjs/commands/CreateMountTargetCommand.js +0 -1
  10. package/dist-cjs/commands/CreateReplicationConfigurationCommand.js +0 -1
  11. package/dist-cjs/commands/CreateTagsCommand.js +0 -1
  12. package/dist-cjs/commands/DeleteAccessPointCommand.js +0 -1
  13. package/dist-cjs/commands/DeleteFileSystemCommand.js +0 -1
  14. package/dist-cjs/commands/DeleteFileSystemPolicyCommand.js +0 -1
  15. package/dist-cjs/commands/DeleteMountTargetCommand.js +0 -1
  16. package/dist-cjs/commands/DeleteReplicationConfigurationCommand.js +0 -1
  17. package/dist-cjs/commands/DeleteTagsCommand.js +0 -1
  18. package/dist-cjs/commands/DescribeAccessPointsCommand.js +0 -1
  19. package/dist-cjs/commands/DescribeAccountPreferencesCommand.js +0 -1
  20. package/dist-cjs/commands/DescribeBackupPolicyCommand.js +0 -1
  21. package/dist-cjs/commands/DescribeFileSystemPolicyCommand.js +0 -1
  22. package/dist-cjs/commands/DescribeFileSystemsCommand.js +0 -1
  23. package/dist-cjs/commands/DescribeLifecycleConfigurationCommand.js +0 -1
  24. package/dist-cjs/commands/DescribeMountTargetSecurityGroupsCommand.js +0 -1
  25. package/dist-cjs/commands/DescribeMountTargetsCommand.js +0 -1
  26. package/dist-cjs/commands/DescribeReplicationConfigurationsCommand.js +0 -1
  27. package/dist-cjs/commands/DescribeTagsCommand.js +0 -1
  28. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  29. package/dist-cjs/commands/ModifyMountTargetSecurityGroupsCommand.js +0 -1
  30. package/dist-cjs/commands/PutAccountPreferencesCommand.js +0 -1
  31. package/dist-cjs/commands/PutBackupPolicyCommand.js +0 -1
  32. package/dist-cjs/commands/PutFileSystemPolicyCommand.js +0 -1
  33. package/dist-cjs/commands/PutLifecycleConfigurationCommand.js +0 -1
  34. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  35. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  36. package/dist-cjs/commands/UpdateFileSystemCommand.js +0 -1
  37. package/dist-cjs/commands/UpdateFileSystemProtectionCommand.js +0 -1
  38. package/dist-cjs/commands/index.js +0 -1
  39. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  40. package/dist-cjs/extensionConfiguration.js +0 -1
  41. package/dist-cjs/models/EFSServiceException.js +0 -1
  42. package/dist-cjs/models/index.js +0 -1
  43. package/dist-cjs/models/models_0.js +0 -1
  44. package/dist-cjs/pagination/DescribeAccessPointsPaginator.js +0 -1
  45. package/dist-cjs/pagination/DescribeFileSystemsPaginator.js +0 -1
  46. package/dist-cjs/pagination/DescribeMountTargetsPaginator.js +0 -1
  47. package/dist-cjs/pagination/DescribeReplicationConfigurationsPaginator.js +0 -1
  48. package/dist-cjs/pagination/DescribeTagsPaginator.js +0 -1
  49. package/dist-cjs/pagination/Interfaces.js +0 -1
  50. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -1
  51. package/dist-cjs/pagination/index.js +0 -1
  52. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  53. package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js CHANGED
@@ -261,6 +261,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
261
261
  var import_types = require("@smithy/types");
262
262
 
263
263
  // src/protocols/Aws_restJson1.ts
264
+ var import_core2 = require("@aws-sdk/core");
264
265
 
265
266
 
266
267
  var import_uuid = require("uuid");
@@ -1399,7 +1400,7 @@ var de_CreateAccessPointCommand = /* @__PURE__ */ __name(async (output, context)
1399
1400
  const contents = (0, import_smithy_client.map)({
1400
1401
  $metadata: deserializeMetadata(output)
1401
1402
  });
1402
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1403
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1403
1404
  const doc = (0, import_smithy_client.take)(data, {
1404
1405
  AccessPointArn: import_smithy_client.expectString,
1405
1406
  AccessPointId: import_smithy_client.expectString,
@@ -1422,7 +1423,7 @@ var de_CreateFileSystemCommand = /* @__PURE__ */ __name(async (output, context)
1422
1423
  const contents = (0, import_smithy_client.map)({
1423
1424
  $metadata: deserializeMetadata(output)
1424
1425
  });
1425
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1426
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1426
1427
  const doc = (0, import_smithy_client.take)(data, {
1427
1428
  AvailabilityZoneId: import_smithy_client.expectString,
1428
1429
  AvailabilityZoneName: import_smithy_client.expectString,
@@ -1453,7 +1454,7 @@ var de_CreateMountTargetCommand = /* @__PURE__ */ __name(async (output, context)
1453
1454
  const contents = (0, import_smithy_client.map)({
1454
1455
  $metadata: deserializeMetadata(output)
1455
1456
  });
1456
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1457
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1457
1458
  const doc = (0, import_smithy_client.take)(data, {
1458
1459
  AvailabilityZoneId: import_smithy_client.expectString,
1459
1460
  AvailabilityZoneName: import_smithy_client.expectString,
@@ -1476,7 +1477,7 @@ var de_CreateReplicationConfigurationCommand = /* @__PURE__ */ __name(async (out
1476
1477
  const contents = (0, import_smithy_client.map)({
1477
1478
  $metadata: deserializeMetadata(output)
1478
1479
  });
1479
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1480
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1480
1481
  const doc = (0, import_smithy_client.take)(data, {
1481
1482
  CreationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1482
1483
  Destinations: (_) => de_Destinations(_, context),
@@ -1565,7 +1566,7 @@ var de_DescribeAccessPointsCommand = /* @__PURE__ */ __name(async (output, conte
1565
1566
  const contents = (0, import_smithy_client.map)({
1566
1567
  $metadata: deserializeMetadata(output)
1567
1568
  });
1568
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1569
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1569
1570
  const doc = (0, import_smithy_client.take)(data, {
1570
1571
  AccessPoints: import_smithy_client._json,
1571
1572
  NextToken: import_smithy_client.expectString
@@ -1580,7 +1581,7 @@ var de_DescribeAccountPreferencesCommand = /* @__PURE__ */ __name(async (output,
1580
1581
  const contents = (0, import_smithy_client.map)({
1581
1582
  $metadata: deserializeMetadata(output)
1582
1583
  });
1583
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1584
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1584
1585
  const doc = (0, import_smithy_client.take)(data, {
1585
1586
  NextToken: import_smithy_client.expectString,
1586
1587
  ResourceIdPreference: import_smithy_client._json
@@ -1595,7 +1596,7 @@ var de_DescribeBackupPolicyCommand = /* @__PURE__ */ __name(async (output, conte
1595
1596
  const contents = (0, import_smithy_client.map)({
1596
1597
  $metadata: deserializeMetadata(output)
1597
1598
  });
1598
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1599
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1599
1600
  const doc = (0, import_smithy_client.take)(data, {
1600
1601
  BackupPolicy: import_smithy_client._json
1601
1602
  });
@@ -1609,7 +1610,7 @@ var de_DescribeFileSystemPolicyCommand = /* @__PURE__ */ __name(async (output, c
1609
1610
  const contents = (0, import_smithy_client.map)({
1610
1611
  $metadata: deserializeMetadata(output)
1611
1612
  });
1612
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1613
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1613
1614
  const doc = (0, import_smithy_client.take)(data, {
1614
1615
  FileSystemId: import_smithy_client.expectString,
1615
1616
  Policy: import_smithy_client.expectString
@@ -1624,7 +1625,7 @@ var de_DescribeFileSystemsCommand = /* @__PURE__ */ __name(async (output, contex
1624
1625
  const contents = (0, import_smithy_client.map)({
1625
1626
  $metadata: deserializeMetadata(output)
1626
1627
  });
1627
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1628
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1628
1629
  const doc = (0, import_smithy_client.take)(data, {
1629
1630
  FileSystems: (_) => de_FileSystemDescriptions(_, context),
1630
1631
  Marker: import_smithy_client.expectString,
@@ -1640,7 +1641,7 @@ var de_DescribeLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (out
1640
1641
  const contents = (0, import_smithy_client.map)({
1641
1642
  $metadata: deserializeMetadata(output)
1642
1643
  });
1643
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1644
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1644
1645
  const doc = (0, import_smithy_client.take)(data, {
1645
1646
  LifecyclePolicies: import_smithy_client._json
1646
1647
  });
@@ -1654,7 +1655,7 @@ var de_DescribeMountTargetsCommand = /* @__PURE__ */ __name(async (output, conte
1654
1655
  const contents = (0, import_smithy_client.map)({
1655
1656
  $metadata: deserializeMetadata(output)
1656
1657
  });
1657
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1658
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1658
1659
  const doc = (0, import_smithy_client.take)(data, {
1659
1660
  Marker: import_smithy_client.expectString,
1660
1661
  MountTargets: import_smithy_client._json,
@@ -1670,7 +1671,7 @@ var de_DescribeMountTargetSecurityGroupsCommand = /* @__PURE__ */ __name(async (
1670
1671
  const contents = (0, import_smithy_client.map)({
1671
1672
  $metadata: deserializeMetadata(output)
1672
1673
  });
1673
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1674
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1674
1675
  const doc = (0, import_smithy_client.take)(data, {
1675
1676
  SecurityGroups: import_smithy_client._json
1676
1677
  });
@@ -1684,7 +1685,7 @@ var de_DescribeReplicationConfigurationsCommand = /* @__PURE__ */ __name(async (
1684
1685
  const contents = (0, import_smithy_client.map)({
1685
1686
  $metadata: deserializeMetadata(output)
1686
1687
  });
1687
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1688
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1688
1689
  const doc = (0, import_smithy_client.take)(data, {
1689
1690
  NextToken: import_smithy_client.expectString,
1690
1691
  Replications: (_) => de_ReplicationConfigurationDescriptions(_, context)
@@ -1699,7 +1700,7 @@ var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
1699
1700
  const contents = (0, import_smithy_client.map)({
1700
1701
  $metadata: deserializeMetadata(output)
1701
1702
  });
1702
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1703
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1703
1704
  const doc = (0, import_smithy_client.take)(data, {
1704
1705
  Marker: import_smithy_client.expectString,
1705
1706
  NextMarker: import_smithy_client.expectString,
@@ -1715,7 +1716,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1715
1716
  const contents = (0, import_smithy_client.map)({
1716
1717
  $metadata: deserializeMetadata(output)
1717
1718
  });
1718
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1719
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1719
1720
  const doc = (0, import_smithy_client.take)(data, {
1720
1721
  NextToken: import_smithy_client.expectString,
1721
1722
  Tags: import_smithy_client._json
@@ -1740,7 +1741,7 @@ var de_PutAccountPreferencesCommand = /* @__PURE__ */ __name(async (output, cont
1740
1741
  const contents = (0, import_smithy_client.map)({
1741
1742
  $metadata: deserializeMetadata(output)
1742
1743
  });
1743
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1744
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1744
1745
  const doc = (0, import_smithy_client.take)(data, {
1745
1746
  ResourceIdPreference: import_smithy_client._json
1746
1747
  });
@@ -1754,7 +1755,7 @@ var de_PutBackupPolicyCommand = /* @__PURE__ */ __name(async (output, context) =
1754
1755
  const contents = (0, import_smithy_client.map)({
1755
1756
  $metadata: deserializeMetadata(output)
1756
1757
  });
1757
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1758
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1758
1759
  const doc = (0, import_smithy_client.take)(data, {
1759
1760
  BackupPolicy: import_smithy_client._json
1760
1761
  });
@@ -1768,7 +1769,7 @@ var de_PutFileSystemPolicyCommand = /* @__PURE__ */ __name(async (output, contex
1768
1769
  const contents = (0, import_smithy_client.map)({
1769
1770
  $metadata: deserializeMetadata(output)
1770
1771
  });
1771
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1772
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1772
1773
  const doc = (0, import_smithy_client.take)(data, {
1773
1774
  FileSystemId: import_smithy_client.expectString,
1774
1775
  Policy: import_smithy_client.expectString
@@ -1783,7 +1784,7 @@ var de_PutLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (output,
1783
1784
  const contents = (0, import_smithy_client.map)({
1784
1785
  $metadata: deserializeMetadata(output)
1785
1786
  });
1786
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1787
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1787
1788
  const doc = (0, import_smithy_client.take)(data, {
1788
1789
  LifecyclePolicies: import_smithy_client._json
1789
1790
  });
@@ -1817,7 +1818,7 @@ var de_UpdateFileSystemCommand = /* @__PURE__ */ __name(async (output, context)
1817
1818
  const contents = (0, import_smithy_client.map)({
1818
1819
  $metadata: deserializeMetadata(output)
1819
1820
  });
1820
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1821
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1821
1822
  const doc = (0, import_smithy_client.take)(data, {
1822
1823
  AvailabilityZoneId: import_smithy_client.expectString,
1823
1824
  AvailabilityZoneName: import_smithy_client.expectString,
@@ -1848,7 +1849,7 @@ var de_UpdateFileSystemProtectionCommand = /* @__PURE__ */ __name(async (output,
1848
1849
  const contents = (0, import_smithy_client.map)({
1849
1850
  $metadata: deserializeMetadata(output)
1850
1851
  });
1851
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1852
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1852
1853
  const doc = (0, import_smithy_client.take)(data, {
1853
1854
  ReplicationOverwriteProtection: import_smithy_client.expectString
1854
1855
  });
@@ -1858,9 +1859,9 @@ var de_UpdateFileSystemProtectionCommand = /* @__PURE__ */ __name(async (output,
1858
1859
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1859
1860
  const parsedOutput = {
1860
1861
  ...output,
1861
- body: await parseErrorBody(output.body, context)
1862
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1862
1863
  };
1863
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1864
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1864
1865
  switch (errorCode) {
1865
1866
  case "AccessPointAlreadyExists":
1866
1867
  case "com.amazonaws.efs#AccessPointAlreadyExists":
@@ -2491,7 +2492,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2491
2492
  extendedRequestId: output.headers["x-amz-id-2"],
2492
2493
  cfId: output.headers["x-amz-cf-id"]
2493
2494
  }), "deserializeMetadata");
2494
- var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2495
2495
  var _API = "AccessPointId";
2496
2496
  var _CT = "CreationToken";
2497
2497
  var _FSI = "FileSystemId";
@@ -2502,46 +2502,6 @@ var _MTI = "MountTargetId";
2502
2502
  var _NT = "NextToken";
2503
2503
  var _TK = "TagKeys";
2504
2504
  var _tK = "tagKeys";
2505
- var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2506
- if (encoded.length) {
2507
- return JSON.parse(encoded);
2508
- }
2509
- return {};
2510
- }), "parseBody");
2511
- var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2512
- const value = await parseBody(errorBody, context);
2513
- value.message = value.message ?? value.Message;
2514
- return value;
2515
- }, "parseErrorBody");
2516
- var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2517
- const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2518
- const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2519
- let cleanValue = rawValue;
2520
- if (typeof cleanValue === "number") {
2521
- cleanValue = cleanValue.toString();
2522
- }
2523
- if (cleanValue.indexOf(",") >= 0) {
2524
- cleanValue = cleanValue.split(",")[0];
2525
- }
2526
- if (cleanValue.indexOf(":") >= 0) {
2527
- cleanValue = cleanValue.split(":")[0];
2528
- }
2529
- if (cleanValue.indexOf("#") >= 0) {
2530
- cleanValue = cleanValue.split("#")[1];
2531
- }
2532
- return cleanValue;
2533
- }, "sanitizeErrorCode");
2534
- const headerKey = findKey(output.headers, "x-amzn-errortype");
2535
- if (headerKey !== void 0) {
2536
- return sanitizeErrorCode(output.headers[headerKey]);
2537
- }
2538
- if (data.code !== void 0) {
2539
- return sanitizeErrorCode(data.code);
2540
- }
2541
- if (data["__type"] !== void 0) {
2542
- return sanitizeErrorCode(data["__type"]);
2543
- }
2544
- }, "loadRestJsonErrorCode");
2545
2505
 
2546
2506
  // src/commands/CreateAccessPointCommand.ts
2547
2507
  var _CreateAccessPointCommand = class _CreateAccessPointCommand extends import_smithy_client.Command.classBuilder().ep({
@@ -1,3 +1,4 @@
1
+ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
1
2
  import { requestBuilder as rb } from "@smithy/core";
2
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
4
  import { v4 as generateIdempotencyToken } from "uuid";
@@ -1525,43 +1526,3 @@ const _MTI = "MountTargetId";
1525
1526
  const _NT = "NextToken";
1526
1527
  const _TK = "TagKeys";
1527
1528
  const _tK = "tagKeys";
1528
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1529
- if (encoded.length) {
1530
- return JSON.parse(encoded);
1531
- }
1532
- return {};
1533
- });
1534
- const parseErrorBody = async (errorBody, context) => {
1535
- const value = await parseBody(errorBody, context);
1536
- value.message = value.message ?? value.Message;
1537
- return value;
1538
- };
1539
- const loadRestJsonErrorCode = (output, data) => {
1540
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1541
- const sanitizeErrorCode = (rawValue) => {
1542
- let cleanValue = rawValue;
1543
- if (typeof cleanValue === "number") {
1544
- cleanValue = cleanValue.toString();
1545
- }
1546
- if (cleanValue.indexOf(",") >= 0) {
1547
- cleanValue = cleanValue.split(",")[0];
1548
- }
1549
- if (cleanValue.indexOf(":") >= 0) {
1550
- cleanValue = cleanValue.split(":")[0];
1551
- }
1552
- if (cleanValue.indexOf("#") >= 0) {
1553
- cleanValue = cleanValue.split("#")[1];
1554
- }
1555
- return cleanValue;
1556
- };
1557
- const headerKey = findKey(output.headers, "x-amzn-errortype");
1558
- if (headerKey !== undefined) {
1559
- return sanitizeErrorCode(output.headers[headerKey]);
1560
- }
1561
- if (data.code !== undefined) {
1562
- return sanitizeErrorCode(data.code);
1563
- }
1564
- if (data["__type"] !== undefined) {
1565
- return sanitizeErrorCode(data["__type"]);
1566
- }
1567
- };
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.523.0",
4
+ "version": "3.529.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-efs",
@@ -20,40 +20,40 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.523.0",
24
- "@aws-sdk/core": "3.523.0",
25
- "@aws-sdk/credential-provider-node": "3.523.0",
23
+ "@aws-sdk/client-sts": "3.529.0",
24
+ "@aws-sdk/core": "3.529.0",
25
+ "@aws-sdk/credential-provider-node": "3.529.0",
26
26
  "@aws-sdk/middleware-host-header": "3.523.0",
27
27
  "@aws-sdk/middleware-logger": "3.523.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
- "@aws-sdk/middleware-user-agent": "3.523.0",
30
- "@aws-sdk/region-config-resolver": "3.523.0",
29
+ "@aws-sdk/middleware-user-agent": "3.525.0",
30
+ "@aws-sdk/region-config-resolver": "3.525.0",
31
31
  "@aws-sdk/types": "3.523.0",
32
- "@aws-sdk/util-endpoints": "3.523.0",
32
+ "@aws-sdk/util-endpoints": "3.525.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.523.0",
34
- "@aws-sdk/util-user-agent-node": "3.523.0",
35
- "@smithy/config-resolver": "^2.1.3",
36
- "@smithy/core": "^1.3.4",
34
+ "@aws-sdk/util-user-agent-node": "3.525.0",
35
+ "@smithy/config-resolver": "^2.1.4",
36
+ "@smithy/core": "^1.3.5",
37
37
  "@smithy/fetch-http-handler": "^2.4.3",
38
38
  "@smithy/hash-node": "^2.1.3",
39
39
  "@smithy/invalid-dependency": "^2.1.3",
40
40
  "@smithy/middleware-content-length": "^2.1.3",
41
- "@smithy/middleware-endpoint": "^2.4.3",
42
- "@smithy/middleware-retry": "^2.1.3",
41
+ "@smithy/middleware-endpoint": "^2.4.4",
42
+ "@smithy/middleware-retry": "^2.1.4",
43
43
  "@smithy/middleware-serde": "^2.1.3",
44
44
  "@smithy/middleware-stack": "^2.1.3",
45
- "@smithy/node-config-provider": "^2.2.3",
45
+ "@smithy/node-config-provider": "^2.2.4",
46
46
  "@smithy/node-http-handler": "^2.4.1",
47
47
  "@smithy/protocol-http": "^3.2.1",
48
- "@smithy/smithy-client": "^2.4.1",
48
+ "@smithy/smithy-client": "^2.4.2",
49
49
  "@smithy/types": "^2.10.1",
50
50
  "@smithy/url-parser": "^2.1.3",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.3",
55
- "@smithy/util-defaults-mode-node": "^2.2.2",
56
- "@smithy/util-endpoints": "^1.1.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.4",
55
+ "@smithy/util-defaults-mode-node": "^2.2.3",
56
+ "@smithy/util-endpoints": "^1.1.4",
57
57
  "@smithy/util-middleware": "^2.1.3",
58
58
  "@smithy/util-retry": "^2.1.3",
59
59
  "@smithy/util-utf8": "^2.1.1",
package/dist-cjs/EFS.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");