@aws-sdk/client-efs 3.1179.0 → 3.1180.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 (31) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +55 -6
  3. package/dist-es/EFS.js +2 -0
  4. package/dist-es/commands/CreateMountSessionCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +4 -0
  7. package/dist-es/schemas/schemas_0.js +40 -5
  8. package/dist-types/EFS.d.ts +7 -0
  9. package/dist-types/EFSClient.d.ts +3 -2
  10. package/dist-types/commands/CreateFileSystemCommand.d.ts +5 -0
  11. package/dist-types/commands/CreateMountSessionCommand.d.ts +109 -0
  12. package/dist-types/commands/CreateMountTargetCommand.d.ts +39 -92
  13. package/dist-types/commands/DeleteMountTargetCommand.d.ts +9 -2
  14. package/dist-types/commands/DeleteReplicationConfigurationCommand.d.ts +5 -0
  15. package/dist-types/commands/DescribeBackupPolicyCommand.d.ts +2 -1
  16. package/dist-types/commands/DescribeFileSystemPolicyCommand.d.ts +2 -1
  17. package/dist-types/commands/DescribeMountTargetsCommand.d.ts +2 -0
  18. package/dist-types/commands/ModifyMountTargetSecurityGroupsCommand.d.ts +8 -1
  19. package/dist-types/commands/index.d.ts +1 -0
  20. package/dist-types/models/enums.d.ts +12 -0
  21. package/dist-types/models/errors.d.ts +8 -7
  22. package/dist-types/models/models_0.d.ts +129 -31
  23. package/dist-types/schemas/schemas_0.d.ts +4 -0
  24. package/dist-types/ts3.4/EFS.d.ts +17 -0
  25. package/dist-types/ts3.4/EFSClient.d.ts +6 -0
  26. package/dist-types/ts3.4/commands/CreateMountSessionCommand.d.ts +39 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  28. package/dist-types/ts3.4/models/enums.d.ts +5 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +20 -0
  30. package/dist-types/ts3.4/schemas/schemas_0.d.ts +4 -0
  31. package/package.json +1 -1
package/README.md CHANGED
@@ -202,6 +202,13 @@ CreateFileSystem
202
202
  </details>
203
203
  <details>
204
204
  <summary>
205
+ CreateMountSession
206
+ </summary>
207
+
208
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/efs/command/CreateMountSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-efs/Interface/CreateMountSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-efs/Interface/CreateMountSessionCommandOutput/)
209
+ </details>
210
+ <details>
211
+ <summary>
205
212
  CreateMountTarget
206
213
  </summary>
207
214
 
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1178.0";
72
+ var version = "3.1179.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -720,6 +720,9 @@ const _CE = "ConflictException";
720
720
  const _CFS = "CreateFileSystem";
721
721
  const _CFSR = "CreateFileSystemRequest";
722
722
  const _CI = "CreationInfo";
723
+ const _CMS = "CreateMountSession";
724
+ const _CMSR = "CreateMountSessionRequest";
725
+ const _CMSRr = "CreateMountSessionResponse";
723
726
  const _CMT = "CreateMountTarget";
724
727
  const _CMTR = "CreateMountTargetRequest";
725
728
  const _CRC = "CreateReplicationConfiguration";
@@ -776,6 +779,7 @@ const _DTes = "DescribeTags";
776
779
  const _De = "Destination";
777
780
  const _E = "Encrypted";
778
781
  const _EC = "ErrorCode";
782
+ const _En = "Endpoints";
779
783
  const _FS = "FileSystems";
780
784
  const _FSA = "FileSystemArn";
781
785
  const _FSAE = "FileSystemAlreadyExists";
@@ -794,6 +798,8 @@ const _IA = "IpAddress";
794
798
  const _IAIU = "IpAddressInUse";
795
799
  const _IAT = "IpAddressType";
796
800
  const _IAp = "Ipv6Address";
801
+ const _IApv = "Ipv4Address";
802
+ const _IAs = "IssuedAt";
797
803
  const _IFSLCS = "IncorrectFileSystemLifeCycleState";
798
804
  const _IMTS = "IncorrectMountTargetState";
799
805
  const _IPE = "InvalidPolicyException";
@@ -814,18 +820,22 @@ const _MI = "MaxItems";
814
820
  const _MMTSG = "ModifyMountTargetSecurityGroups";
815
821
  const _MMTSGR = "ModifyMountTargetSecurityGroupsRequest";
816
822
  const _MR = "MaxResults";
817
- const _MT = "MountTargets";
823
+ const _MSE = "MountSessionEndpoint";
824
+ const _MSEo = "MountSessionEndpoints";
825
+ const _MT = "MountToken";
818
826
  const _MTC = "MountTargetConflict";
819
827
  const _MTD = "MountTargetDescription";
820
828
  const _MTDo = "MountTargetDescriptions";
821
829
  const _MTI = "MountTargetId";
822
830
  const _MTNF = "MountTargetNotFound";
831
+ const _MTo = "MountTargets";
823
832
  const _Ma = "Marker";
824
833
  const _N = "Name";
825
834
  const _NFAIS = "NoFreeAddressesInSubnet";
826
835
  const _NII = "NetworkInterfaceId";
827
836
  const _NILE = "NetworkInterfaceLimitExceeded";
828
837
  const _NM = "NextMarker";
838
+ const _NO = "NetworkOrigin";
829
839
  const _NOMT = "NumberOfMountTargets";
830
840
  const _NT = "NextToken";
831
841
  const _OG = "OwnerGid";
@@ -836,6 +846,7 @@ const _P = "Permissions";
836
846
  const _PAP = "PutAccountPreferences";
837
847
  const _PAPR = "PutAccountPreferencesRequest";
838
848
  const _PAPRu = "PutAccountPreferencesResponse";
849
+ const _PAZI = "PreferredAvailabilityZoneId";
839
850
  const _PBP = "PutBackupPolicy";
840
851
  const _PBPR = "PutBackupPolicyRequest";
841
852
  const _PFSP = "PutFileSystemPolicy";
@@ -848,6 +859,7 @@ const _PTIM = "ProvisionedThroughputInMibps";
848
859
  const _PU = "PosixUser";
849
860
  const _Pa = "Path";
850
861
  const _Po = "Policy";
862
+ const _Por = "Port";
851
863
  const _R = "Replications";
852
864
  const _RA = "RoleArn";
853
865
  const _RAE = "ReplicationAlreadyExists";
@@ -1111,6 +1123,7 @@ const errorTypeRegistries = [
1111
1123
  _s_registry,
1112
1124
  n0_registry,
1113
1125
  ];
1126
+ var MountToken = [0, n0, _MT, 8, 0];
1114
1127
  var AccessPointDescription$ = [3, n0, _APD,
1115
1128
  0,
1116
1129
  [_CT, _N, _T, _API, _APA, _FSI, _PU, _RD, _OI, _LCS],
@@ -1136,6 +1149,16 @@ var CreateFileSystemRequest$ = [3, n0, _CFSR,
1136
1149
  [_CTr, _PM, _E, _KKI, _TM, _PTIM, _AZN, _B, _T],
1137
1150
  [[0, 4], 0, 2, 0, 0, 1, 0, 2, () => Tags]
1138
1151
  ];
1152
+ var CreateMountSessionRequest$ = [3, n0, _CMSR,
1153
+ 0,
1154
+ [_FSI, _PAZI, _NO],
1155
+ [[0, 1], 0, 0], 1
1156
+ ];
1157
+ var CreateMountSessionResponse$ = [3, n0, _CMSRr,
1158
+ 0,
1159
+ [_FSI, _PAZI, _En],
1160
+ [0, 0, [() => MountSessionEndpoints, 0]]
1161
+ ];
1139
1162
  var CreateMountTargetRequest$ = [3, n0, _CMTR,
1140
1163
  0,
1141
1164
  [_FSI, _SI, _IA, _IAp, _IAT, _SG],
@@ -1199,7 +1222,7 @@ var DescribeAccessPointsResponse$ = [3, n0, _DAPRes,
1199
1222
  var DescribeAccountPreferencesRequest$ = [3, n0, _DAPResc,
1200
1223
  0,
1201
1224
  [_NT, _MR],
1202
- [0, 1]
1225
+ [[0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]]
1203
1226
  ];
1204
1227
  var DescribeAccountPreferencesResponse$ = [3, n0, _DAPRescr,
1205
1228
  0,
@@ -1248,7 +1271,7 @@ var DescribeMountTargetsRequest$ = [3, n0, _DMTRe,
1248
1271
  ];
1249
1272
  var DescribeMountTargetsResponse$ = [3, n0, _DMTRes,
1250
1273
  0,
1251
- [_Ma, _MT, _NM],
1274
+ [_Ma, _MTo, _NM],
1252
1275
  [0, () => MountTargetDescriptions, 0]
1253
1276
  ];
1254
1277
  var DescribeReplicationConfigurationsRequest$ = [3, n0, _DRCRe,
@@ -1326,10 +1349,15 @@ var ModifyMountTargetSecurityGroupsRequest$ = [3, n0, _MMTSGR,
1326
1349
  [_MTI, _SG],
1327
1350
  [[0, 1], 64 | 0], 1
1328
1351
  ];
1352
+ var MountSessionEndpoint$ = [3, n0, _MSE,
1353
+ 0,
1354
+ [_AZI, _IApv, _IAp, _Por, _MT, _IAs],
1355
+ [0, 0, 0, 1, [() => MountToken, 0], 4]
1356
+ ];
1329
1357
  var MountTargetDescription$ = [3, n0, _MTD,
1330
1358
  0,
1331
- [_MTI, _FSI, _SI, _LCS, _OI, _IA, _IAp, _NII, _AZI, _AZN, _VI],
1332
- [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 4
1359
+ [_MTI, _FSI, _SI, _LCS, _OI, _IA, _IAp, _NII, _AZI, _AZN, _VI, _SM],
1360
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 4
1333
1361
  ];
1334
1362
  var PosixUser$ = [3, n0, _PU,
1335
1363
  0,
@@ -1417,6 +1445,10 @@ var FileSystemDescriptions = [1, n0, _FSDi,
1417
1445
  var LifecyclePolicies = [1, n0, _LP,
1418
1446
  0, () => LifecyclePolicy$
1419
1447
  ];
1448
+ var MountSessionEndpoints = [1, n0, _MSEo,
1449
+ 0, [() => MountSessionEndpoint$,
1450
+ 0]
1451
+ ];
1420
1452
  var MountTargetDescriptions = [1, n0, _MTDo,
1421
1453
  0, () => MountTargetDescription$
1422
1454
  ];
@@ -1432,6 +1464,9 @@ var CreateAccessPoint$ = [9, n0, _CAP,
1432
1464
  var CreateFileSystem$ = [9, n0, _CFS,
1433
1465
  { [_h]: ["POST", "/2015-02-01/file-systems", 201] }, () => CreateFileSystemRequest$, () => FileSystemDescription$
1434
1466
  ];
1467
+ var CreateMountSession$ = [9, n0, _CMS,
1468
+ { [_h]: ["POST", "/2015-02-01/file-systems/{FileSystemId}/mount-sessions", 200] }, () => CreateMountSessionRequest$, () => CreateMountSessionResponse$
1469
+ ];
1435
1470
  var CreateMountTarget$ = [9, n0, _CMT,
1436
1471
  { [_h]: ["POST", "/2015-02-01/mount-targets", 200] }, () => CreateMountTargetRequest$, () => MountTargetDescription$
1437
1472
  ];
@@ -1677,6 +1712,9 @@ class CreateAccessPointCommand extends command(_ep0, _mw0, "CreateAccessPoint",
1677
1712
  class CreateFileSystemCommand extends command(_ep0, _mw0, "CreateFileSystem", CreateFileSystem$) {
1678
1713
  }
1679
1714
 
1715
+ class CreateMountSessionCommand extends command(_ep0, _mw0, "CreateMountSession", CreateMountSession$) {
1716
+ }
1717
+
1680
1718
  class CreateMountTargetCommand extends command(_ep0, _mw0, "CreateMountTarget", CreateMountTarget$) {
1681
1719
  }
1682
1720
 
@@ -1779,6 +1817,7 @@ const paginateListTagsForResource = createPaginator(EFSClient, ListTagsForResour
1779
1817
  const commands = {
1780
1818
  CreateAccessPointCommand,
1781
1819
  CreateFileSystemCommand,
1820
+ CreateMountSessionCommand,
1782
1821
  CreateMountTargetCommand,
1783
1822
  CreateReplicationConfigurationCommand,
1784
1823
  CreateTagsCommand,
@@ -1849,6 +1888,10 @@ const ReplicationOverwriteProtection = {
1849
1888
  ENABLED: "ENABLED",
1850
1889
  REPLICATING: "REPLICATING",
1851
1890
  };
1891
+ const NetworkOrigin = {
1892
+ AWS_NETWORK: "AWS_NETWORK",
1893
+ EXTERNAL_NETWORK: "EXTERNAL_NETWORK",
1894
+ };
1852
1895
  const IpAddressType = {
1853
1896
  DUAL_STACK: "DUAL_STACK",
1854
1897
  IPV4_ONLY: "IPV4_ONLY",
@@ -1921,6 +1964,10 @@ exports.CreateAccessPointRequest$ = CreateAccessPointRequest$;
1921
1964
  exports.CreateFileSystem$ = CreateFileSystem$;
1922
1965
  exports.CreateFileSystemCommand = CreateFileSystemCommand;
1923
1966
  exports.CreateFileSystemRequest$ = CreateFileSystemRequest$;
1967
+ exports.CreateMountSession$ = CreateMountSession$;
1968
+ exports.CreateMountSessionCommand = CreateMountSessionCommand;
1969
+ exports.CreateMountSessionRequest$ = CreateMountSessionRequest$;
1970
+ exports.CreateMountSessionResponse$ = CreateMountSessionResponse$;
1924
1971
  exports.CreateMountTarget$ = CreateMountTarget$;
1925
1972
  exports.CreateMountTargetCommand = CreateMountTargetCommand;
1926
1973
  exports.CreateMountTargetRequest$ = CreateMountTargetRequest$;
@@ -2030,6 +2077,7 @@ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
2030
2077
  exports.ModifyMountTargetSecurityGroups$ = ModifyMountTargetSecurityGroups$;
2031
2078
  exports.ModifyMountTargetSecurityGroupsCommand = ModifyMountTargetSecurityGroupsCommand;
2032
2079
  exports.ModifyMountTargetSecurityGroupsRequest$ = ModifyMountTargetSecurityGroupsRequest$;
2080
+ exports.MountSessionEndpoint$ = MountSessionEndpoint$;
2033
2081
  exports.MountTargetConflict = MountTargetConflict;
2034
2082
  exports.MountTargetConflict$ = MountTargetConflict$;
2035
2083
  exports.MountTargetDescription$ = MountTargetDescription$;
@@ -2037,6 +2085,7 @@ exports.MountTargetNotFound = MountTargetNotFound;
2037
2085
  exports.MountTargetNotFound$ = MountTargetNotFound$;
2038
2086
  exports.NetworkInterfaceLimitExceeded = NetworkInterfaceLimitExceeded;
2039
2087
  exports.NetworkInterfaceLimitExceeded$ = NetworkInterfaceLimitExceeded$;
2088
+ exports.NetworkOrigin = NetworkOrigin;
2040
2089
  exports.NoFreeAddressesInSubnet = NoFreeAddressesInSubnet;
2041
2090
  exports.NoFreeAddressesInSubnet$ = NoFreeAddressesInSubnet$;
2042
2091
  exports.PerformanceMode = PerformanceMode;
package/dist-es/EFS.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { CreateAccessPointCommand, } from "./commands/CreateAccessPointCommand";
3
3
  import { CreateFileSystemCommand, } from "./commands/CreateFileSystemCommand";
4
+ import { CreateMountSessionCommand, } from "./commands/CreateMountSessionCommand";
4
5
  import { CreateMountTargetCommand, } from "./commands/CreateMountTargetCommand";
5
6
  import { CreateReplicationConfigurationCommand, } from "./commands/CreateReplicationConfigurationCommand";
6
7
  import { CreateTagsCommand, } from "./commands/CreateTagsCommand";
@@ -40,6 +41,7 @@ import { paginateListTagsForResource } from "./pagination/ListTagsForResourcePag
40
41
  const commands = {
41
42
  CreateAccessPointCommand,
42
43
  CreateFileSystemCommand,
44
+ CreateMountSessionCommand,
43
45
  CreateMountTargetCommand,
44
46
  CreateReplicationConfigurationCommand,
45
47
  CreateTagsCommand,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateMountSession$ } from "../schemas/schemas_0";
3
+ export class CreateMountSessionCommand extends command(_ep0, _mw0, "CreateMountSession", CreateMountSession$) {
4
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./CreateAccessPointCommand";
2
2
  export * from "./CreateFileSystemCommand";
3
+ export * from "./CreateMountSessionCommand";
3
4
  export * from "./CreateMountTargetCommand";
4
5
  export * from "./CreateReplicationConfigurationCommand";
5
6
  export * from "./CreateTagsCommand";
@@ -26,6 +26,10 @@ export const ReplicationOverwriteProtection = {
26
26
  ENABLED: "ENABLED",
27
27
  REPLICATING: "REPLICATING",
28
28
  };
29
+ export const NetworkOrigin = {
30
+ AWS_NETWORK: "AWS_NETWORK",
31
+ EXTERNAL_NETWORK: "EXTERNAL_NETWORK",
32
+ };
29
33
  export const IpAddressType = {
30
34
  DUAL_STACK: "DUAL_STACK",
31
35
  IPV4_ONLY: "IPV4_ONLY",
@@ -20,6 +20,9 @@ const _CE = "ConflictException";
20
20
  const _CFS = "CreateFileSystem";
21
21
  const _CFSR = "CreateFileSystemRequest";
22
22
  const _CI = "CreationInfo";
23
+ const _CMS = "CreateMountSession";
24
+ const _CMSR = "CreateMountSessionRequest";
25
+ const _CMSRr = "CreateMountSessionResponse";
23
26
  const _CMT = "CreateMountTarget";
24
27
  const _CMTR = "CreateMountTargetRequest";
25
28
  const _CRC = "CreateReplicationConfiguration";
@@ -76,6 +79,7 @@ const _DTes = "DescribeTags";
76
79
  const _De = "Destination";
77
80
  const _E = "Encrypted";
78
81
  const _EC = "ErrorCode";
82
+ const _En = "Endpoints";
79
83
  const _FS = "FileSystems";
80
84
  const _FSA = "FileSystemArn";
81
85
  const _FSAE = "FileSystemAlreadyExists";
@@ -94,6 +98,8 @@ const _IA = "IpAddress";
94
98
  const _IAIU = "IpAddressInUse";
95
99
  const _IAT = "IpAddressType";
96
100
  const _IAp = "Ipv6Address";
101
+ const _IApv = "Ipv4Address";
102
+ const _IAs = "IssuedAt";
97
103
  const _IFSLCS = "IncorrectFileSystemLifeCycleState";
98
104
  const _IMTS = "IncorrectMountTargetState";
99
105
  const _IPE = "InvalidPolicyException";
@@ -114,18 +120,22 @@ const _MI = "MaxItems";
114
120
  const _MMTSG = "ModifyMountTargetSecurityGroups";
115
121
  const _MMTSGR = "ModifyMountTargetSecurityGroupsRequest";
116
122
  const _MR = "MaxResults";
117
- const _MT = "MountTargets";
123
+ const _MSE = "MountSessionEndpoint";
124
+ const _MSEo = "MountSessionEndpoints";
125
+ const _MT = "MountToken";
118
126
  const _MTC = "MountTargetConflict";
119
127
  const _MTD = "MountTargetDescription";
120
128
  const _MTDo = "MountTargetDescriptions";
121
129
  const _MTI = "MountTargetId";
122
130
  const _MTNF = "MountTargetNotFound";
131
+ const _MTo = "MountTargets";
123
132
  const _Ma = "Marker";
124
133
  const _N = "Name";
125
134
  const _NFAIS = "NoFreeAddressesInSubnet";
126
135
  const _NII = "NetworkInterfaceId";
127
136
  const _NILE = "NetworkInterfaceLimitExceeded";
128
137
  const _NM = "NextMarker";
138
+ const _NO = "NetworkOrigin";
129
139
  const _NOMT = "NumberOfMountTargets";
130
140
  const _NT = "NextToken";
131
141
  const _OG = "OwnerGid";
@@ -136,6 +146,7 @@ const _P = "Permissions";
136
146
  const _PAP = "PutAccountPreferences";
137
147
  const _PAPR = "PutAccountPreferencesRequest";
138
148
  const _PAPRu = "PutAccountPreferencesResponse";
149
+ const _PAZI = "PreferredAvailabilityZoneId";
139
150
  const _PBP = "PutBackupPolicy";
140
151
  const _PBPR = "PutBackupPolicyRequest";
141
152
  const _PFSP = "PutFileSystemPolicy";
@@ -148,6 +159,7 @@ const _PTIM = "ProvisionedThroughputInMibps";
148
159
  const _PU = "PosixUser";
149
160
  const _Pa = "Path";
150
161
  const _Po = "Policy";
162
+ const _Por = "Port";
151
163
  const _R = "Replications";
152
164
  const _RA = "RoleArn";
153
165
  const _RAE = "ReplicationAlreadyExists";
@@ -414,6 +426,7 @@ export const errorTypeRegistries = [
414
426
  _s_registry,
415
427
  n0_registry,
416
428
  ];
429
+ var MountToken = [0, n0, _MT, 8, 0];
417
430
  export var AccessPointDescription$ = [3, n0, _APD,
418
431
  0,
419
432
  [_CT, _N, _T, _API, _APA, _FSI, _PU, _RD, _OI, _LCS],
@@ -439,6 +452,16 @@ export var CreateFileSystemRequest$ = [3, n0, _CFSR,
439
452
  [_CTr, _PM, _E, _KKI, _TM, _PTIM, _AZN, _B, _T],
440
453
  [[0, 4], 0, 2, 0, 0, 1, 0, 2, () => Tags]
441
454
  ];
455
+ export var CreateMountSessionRequest$ = [3, n0, _CMSR,
456
+ 0,
457
+ [_FSI, _PAZI, _NO],
458
+ [[0, 1], 0, 0], 1
459
+ ];
460
+ export var CreateMountSessionResponse$ = [3, n0, _CMSRr,
461
+ 0,
462
+ [_FSI, _PAZI, _En],
463
+ [0, 0, [() => MountSessionEndpoints, 0]]
464
+ ];
442
465
  export var CreateMountTargetRequest$ = [3, n0, _CMTR,
443
466
  0,
444
467
  [_FSI, _SI, _IA, _IAp, _IAT, _SG],
@@ -502,7 +525,7 @@ export var DescribeAccessPointsResponse$ = [3, n0, _DAPRes,
502
525
  export var DescribeAccountPreferencesRequest$ = [3, n0, _DAPResc,
503
526
  0,
504
527
  [_NT, _MR],
505
- [0, 1]
528
+ [[0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]]
506
529
  ];
507
530
  export var DescribeAccountPreferencesResponse$ = [3, n0, _DAPRescr,
508
531
  0,
@@ -551,7 +574,7 @@ export var DescribeMountTargetsRequest$ = [3, n0, _DMTRe,
551
574
  ];
552
575
  export var DescribeMountTargetsResponse$ = [3, n0, _DMTRes,
553
576
  0,
554
- [_Ma, _MT, _NM],
577
+ [_Ma, _MTo, _NM],
555
578
  [0, () => MountTargetDescriptions, 0]
556
579
  ];
557
580
  export var DescribeReplicationConfigurationsRequest$ = [3, n0, _DRCRe,
@@ -629,10 +652,15 @@ export var ModifyMountTargetSecurityGroupsRequest$ = [3, n0, _MMTSGR,
629
652
  [_MTI, _SG],
630
653
  [[0, 1], 64 | 0], 1
631
654
  ];
655
+ export var MountSessionEndpoint$ = [3, n0, _MSE,
656
+ 0,
657
+ [_AZI, _IApv, _IAp, _Por, _MT, _IAs],
658
+ [0, 0, 0, 1, [() => MountToken, 0], 4]
659
+ ];
632
660
  export var MountTargetDescription$ = [3, n0, _MTD,
633
661
  0,
634
- [_MTI, _FSI, _SI, _LCS, _OI, _IA, _IAp, _NII, _AZI, _AZN, _VI],
635
- [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 4
662
+ [_MTI, _FSI, _SI, _LCS, _OI, _IA, _IAp, _NII, _AZI, _AZN, _VI, _SM],
663
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 4
636
664
  ];
637
665
  export var PosixUser$ = [3, n0, _PU,
638
666
  0,
@@ -720,6 +748,10 @@ var FileSystemDescriptions = [1, n0, _FSDi,
720
748
  var LifecyclePolicies = [1, n0, _LP,
721
749
  0, () => LifecyclePolicy$
722
750
  ];
751
+ var MountSessionEndpoints = [1, n0, _MSEo,
752
+ 0, [() => MountSessionEndpoint$,
753
+ 0]
754
+ ];
723
755
  var MountTargetDescriptions = [1, n0, _MTDo,
724
756
  0, () => MountTargetDescription$
725
757
  ];
@@ -739,6 +771,9 @@ export var CreateAccessPoint$ = [9, n0, _CAP,
739
771
  export var CreateFileSystem$ = [9, n0, _CFS,
740
772
  { [_h]: ["POST", "/2015-02-01/file-systems", 201] }, () => CreateFileSystemRequest$, () => FileSystemDescription$
741
773
  ];
774
+ export var CreateMountSession$ = [9, n0, _CMS,
775
+ { [_h]: ["POST", "/2015-02-01/file-systems/{FileSystemId}/mount-sessions", 200] }, () => CreateMountSessionRequest$, () => CreateMountSessionResponse$
776
+ ];
742
777
  export var CreateMountTarget$ = [9, n0, _CMT,
743
778
  { [_h]: ["POST", "/2015-02-01/mount-targets", 200] }, () => CreateMountTargetRequest$, () => MountTargetDescription$
744
779
  ];
@@ -1,6 +1,7 @@
1
1
  import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type CreateAccessPointCommandInput, type CreateAccessPointCommandOutput } from "./commands/CreateAccessPointCommand";
3
3
  import { type CreateFileSystemCommandInput, type CreateFileSystemCommandOutput } from "./commands/CreateFileSystemCommand";
4
+ import { type CreateMountSessionCommandInput, type CreateMountSessionCommandOutput } from "./commands/CreateMountSessionCommand";
4
5
  import { type CreateMountTargetCommandInput, type CreateMountTargetCommandOutput } from "./commands/CreateMountTargetCommand";
5
6
  import { type CreateReplicationConfigurationCommandInput, type CreateReplicationConfigurationCommandOutput } from "./commands/CreateReplicationConfigurationCommand";
6
7
  import { type CreateTagsCommandInput, type CreateTagsCommandOutput } from "./commands/CreateTagsCommand";
@@ -50,6 +51,12 @@ export interface EFS {
50
51
  createFileSystem(args: CreateFileSystemCommandInput, options?: EFSRequestOptions): Promise<CreateFileSystemCommandOutput>;
51
52
  createFileSystem(args: CreateFileSystemCommandInput, cb: (err: any, data?: CreateFileSystemCommandOutput) => void): void;
52
53
  createFileSystem(args: CreateFileSystemCommandInput, options: EFSRequestOptions, cb: (err: any, data?: CreateFileSystemCommandOutput) => void): void;
54
+ /**
55
+ * @see {@link CreateMountSessionCommand}
56
+ */
57
+ createMountSession(args: CreateMountSessionCommandInput, options?: EFSRequestOptions): Promise<CreateMountSessionCommandOutput>;
58
+ createMountSession(args: CreateMountSessionCommandInput, cb: (err: any, data?: CreateMountSessionCommandOutput) => void): void;
59
+ createMountSession(args: CreateMountSessionCommandInput, options: EFSRequestOptions, cb: (err: any, data?: CreateMountSessionCommandOutput) => void): void;
53
60
  /**
54
61
  * @see {@link CreateMountTargetCommand}
55
62
  */
@@ -8,6 +8,7 @@ import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengt
8
8
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
9
9
  import type { CreateAccessPointCommandInput, CreateAccessPointCommandOutput } from "./commands/CreateAccessPointCommand";
10
10
  import type { CreateFileSystemCommandInput, CreateFileSystemCommandOutput } from "./commands/CreateFileSystemCommand";
11
+ import type { CreateMountSessionCommandInput, CreateMountSessionCommandOutput } from "./commands/CreateMountSessionCommand";
11
12
  import type { CreateMountTargetCommandInput, CreateMountTargetCommandOutput } from "./commands/CreateMountTargetCommand";
12
13
  import type { CreateReplicationConfigurationCommandInput, CreateReplicationConfigurationCommandOutput } from "./commands/CreateReplicationConfigurationCommand";
13
14
  import type { CreateTagsCommandInput, CreateTagsCommandOutput } from "./commands/CreateTagsCommand";
@@ -43,11 +44,11 @@ export { __Client };
43
44
  /**
44
45
  * @public
45
46
  */
46
- export type ServiceInputTypes = CreateAccessPointCommandInput | CreateFileSystemCommandInput | CreateMountTargetCommandInput | CreateReplicationConfigurationCommandInput | CreateTagsCommandInput | DeleteAccessPointCommandInput | DeleteFileSystemCommandInput | DeleteFileSystemPolicyCommandInput | DeleteMountTargetCommandInput | DeleteReplicationConfigurationCommandInput | DeleteTagsCommandInput | DescribeAccessPointsCommandInput | DescribeAccountPreferencesCommandInput | DescribeBackupPolicyCommandInput | DescribeFileSystemPolicyCommandInput | DescribeFileSystemsCommandInput | DescribeLifecycleConfigurationCommandInput | DescribeMountTargetSecurityGroupsCommandInput | DescribeMountTargetsCommandInput | DescribeReplicationConfigurationsCommandInput | DescribeTagsCommandInput | ListTagsForResourceCommandInput | ModifyMountTargetSecurityGroupsCommandInput | PutAccountPreferencesCommandInput | PutBackupPolicyCommandInput | PutFileSystemPolicyCommandInput | PutLifecycleConfigurationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateFileSystemCommandInput | UpdateFileSystemProtectionCommandInput;
47
+ export type ServiceInputTypes = CreateAccessPointCommandInput | CreateFileSystemCommandInput | CreateMountSessionCommandInput | CreateMountTargetCommandInput | CreateReplicationConfigurationCommandInput | CreateTagsCommandInput | DeleteAccessPointCommandInput | DeleteFileSystemCommandInput | DeleteFileSystemPolicyCommandInput | DeleteMountTargetCommandInput | DeleteReplicationConfigurationCommandInput | DeleteTagsCommandInput | DescribeAccessPointsCommandInput | DescribeAccountPreferencesCommandInput | DescribeBackupPolicyCommandInput | DescribeFileSystemPolicyCommandInput | DescribeFileSystemsCommandInput | DescribeLifecycleConfigurationCommandInput | DescribeMountTargetSecurityGroupsCommandInput | DescribeMountTargetsCommandInput | DescribeReplicationConfigurationsCommandInput | DescribeTagsCommandInput | ListTagsForResourceCommandInput | ModifyMountTargetSecurityGroupsCommandInput | PutAccountPreferencesCommandInput | PutBackupPolicyCommandInput | PutFileSystemPolicyCommandInput | PutLifecycleConfigurationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateFileSystemCommandInput | UpdateFileSystemProtectionCommandInput;
47
48
  /**
48
49
  * @public
49
50
  */
50
- export type ServiceOutputTypes = CreateAccessPointCommandOutput | CreateFileSystemCommandOutput | CreateMountTargetCommandOutput | CreateReplicationConfigurationCommandOutput | CreateTagsCommandOutput | DeleteAccessPointCommandOutput | DeleteFileSystemCommandOutput | DeleteFileSystemPolicyCommandOutput | DeleteMountTargetCommandOutput | DeleteReplicationConfigurationCommandOutput | DeleteTagsCommandOutput | DescribeAccessPointsCommandOutput | DescribeAccountPreferencesCommandOutput | DescribeBackupPolicyCommandOutput | DescribeFileSystemPolicyCommandOutput | DescribeFileSystemsCommandOutput | DescribeLifecycleConfigurationCommandOutput | DescribeMountTargetSecurityGroupsCommandOutput | DescribeMountTargetsCommandOutput | DescribeReplicationConfigurationsCommandOutput | DescribeTagsCommandOutput | ListTagsForResourceCommandOutput | ModifyMountTargetSecurityGroupsCommandOutput | PutAccountPreferencesCommandOutput | PutBackupPolicyCommandOutput | PutFileSystemPolicyCommandOutput | PutLifecycleConfigurationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateFileSystemCommandOutput | UpdateFileSystemProtectionCommandOutput;
51
+ export type ServiceOutputTypes = CreateAccessPointCommandOutput | CreateFileSystemCommandOutput | CreateMountSessionCommandOutput | CreateMountTargetCommandOutput | CreateReplicationConfigurationCommandOutput | CreateTagsCommandOutput | DeleteAccessPointCommandOutput | DeleteFileSystemCommandOutput | DeleteFileSystemPolicyCommandOutput | DeleteMountTargetCommandOutput | DeleteReplicationConfigurationCommandOutput | DeleteTagsCommandOutput | DescribeAccessPointsCommandOutput | DescribeAccountPreferencesCommandOutput | DescribeBackupPolicyCommandOutput | DescribeFileSystemPolicyCommandOutput | DescribeFileSystemsCommandOutput | DescribeLifecycleConfigurationCommandOutput | DescribeMountTargetSecurityGroupsCommandOutput | DescribeMountTargetsCommandOutput | DescribeReplicationConfigurationsCommandOutput | DescribeTagsCommandOutput | ListTagsForResourceCommandOutput | ModifyMountTargetSecurityGroupsCommandOutput | PutAccountPreferencesCommandOutput | PutBackupPolicyCommandOutput | PutFileSystemPolicyCommandOutput | PutLifecycleConfigurationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateFileSystemCommandOutput | UpdateFileSystemProtectionCommandOutput;
51
52
  /**
52
53
  * @public
53
54
  */
@@ -172,6 +172,11 @@ declare const CreateFileSystemCommand_base: {
172
172
  * @throws {@link InternalServerError} (server fault)
173
173
  * <p>Returned if an error occurred on the server side.</p>
174
174
  *
175
+ * @throws {@link ThrottlingException} (client fault)
176
+ * <p>Returned when the <code>CreateAccessPoint</code> API action is called too quickly and
177
+ * the number of Access Points on the file system is nearing the
178
+ * <a href="https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region">limit of 120</a>.</p>
179
+ *
175
180
  * @throws {@link ThroughputLimitExceeded} (client fault)
176
181
  * <p>Returned if the throughput mode or amount of provisioned throughput can't be changed
177
182
  * because the throughput limit of 1024 MiB/s has been reached.</p>
@@ -0,0 +1,109 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateMountSessionRequest, CreateMountSessionResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateMountSessionCommand}.
11
+ */
12
+ export interface CreateMountSessionCommandInput extends CreateMountSessionRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateMountSessionCommand}.
18
+ */
19
+ export interface CreateMountSessionCommandOutput extends CreateMountSessionResponse, __MetadataBearer {
20
+ }
21
+ declare const CreateMountSessionCommand_base: {
22
+ new (input: CreateMountSessionCommandInput): import("@smithy/core/client").CommandImpl<CreateMountSessionCommandInput, CreateMountSessionCommandOutput, import("..").EFSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateMountSessionCommandInput): import("@smithy/core/client").CommandImpl<CreateMountSessionCommandInput, CreateMountSessionCommandOutput, import("..").EFSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates a mount session for an Amazon EFS file system and returns a set of
28
+ * endpoints that you can use to mount the file system. Each endpoint includes an IP address, a
29
+ * port, and a mount token that a client presents when it connects to the endpoint.</p>
30
+ * <p>To create a mount session, the file system's lifecycle state must be
31
+ * <code>available</code>. For more information, see <a>DescribeFileSystems</a>.</p>
32
+ * <p>This operation requires permissions for the
33
+ * <code>elasticfilesystem:CreateMountSession</code> action.</p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { EFSClient, CreateMountSessionCommand } from "@aws-sdk/client-efs"; // ES Modules import
38
+ * // const { EFSClient, CreateMountSessionCommand } = require("@aws-sdk/client-efs"); // CommonJS import
39
+ * // import type { EFSClientConfig } from "@aws-sdk/client-efs";
40
+ * const config = {}; // type is EFSClientConfig
41
+ * const client = new EFSClient(config);
42
+ * const input = { // CreateMountSessionRequest
43
+ * FileSystemId: "STRING_VALUE", // required
44
+ * PreferredAvailabilityZoneId: "STRING_VALUE",
45
+ * NetworkOrigin: "AWS_NETWORK" || "EXTERNAL_NETWORK",
46
+ * };
47
+ * const command = new CreateMountSessionCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // CreateMountSessionResponse
50
+ * // FileSystemId: "STRING_VALUE",
51
+ * // PreferredAvailabilityZoneId: "STRING_VALUE",
52
+ * // Endpoints: [ // MountSessionEndpoints
53
+ * // { // MountSessionEndpoint
54
+ * // AvailabilityZoneId: "STRING_VALUE",
55
+ * // Ipv4Address: "STRING_VALUE",
56
+ * // Ipv6Address: "STRING_VALUE",
57
+ * // Port: Number("int"),
58
+ * // MountToken: "STRING_VALUE",
59
+ * // IssuedAt: new Date("TIMESTAMP"),
60
+ * // },
61
+ * // ],
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param CreateMountSessionCommandInput - {@link CreateMountSessionCommandInput}
67
+ * @returns {@link CreateMountSessionCommandOutput}
68
+ * @see {@link CreateMountSessionCommandInput} for command's `input` shape.
69
+ * @see {@link CreateMountSessionCommandOutput} for command's `response` shape.
70
+ * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
71
+ *
72
+ * @throws {@link BadRequest} (client fault)
73
+ * <p>Returned if the request is malformed or contains an error such as an invalid
74
+ * parameter value or a missing required parameter.</p>
75
+ *
76
+ * @throws {@link FileSystemNotFound} (client fault)
77
+ * <p>Returned if the specified <code>FileSystemId</code> value doesn't exist in the
78
+ * requester's Amazon Web Services account.</p>
79
+ *
80
+ * @throws {@link IncorrectFileSystemLifeCycleState} (client fault)
81
+ * <p>Returned if the file system's lifecycle state is not "available".</p>
82
+ *
83
+ * @throws {@link InternalServerError} (server fault)
84
+ * <p>Returned if an error occurred on the server side.</p>
85
+ *
86
+ * @throws {@link ThrottlingException} (client fault)
87
+ * <p>Returned when the <code>CreateAccessPoint</code> API action is called too quickly and
88
+ * the number of Access Points on the file system is nearing the
89
+ * <a href="https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region">limit of 120</a>.</p>
90
+ *
91
+ * @throws {@link EFSServiceException}
92
+ * <p>Base exception class for all service exceptions from EFS service.</p>
93
+ *
94
+ *
95
+ * @public
96
+ */
97
+ export declare class CreateMountSessionCommand extends CreateMountSessionCommand_base {
98
+ /** @internal type navigation helper, not in runtime. */
99
+ protected static __types: {
100
+ api: {
101
+ input: CreateMountSessionRequest;
102
+ output: CreateMountSessionResponse;
103
+ };
104
+ sdk: {
105
+ input: CreateMountSessionCommandInput;
106
+ output: CreateMountSessionCommandOutput;
107
+ };
108
+ };
109
+ }