@aws-sdk/client-efs 3.35.0 → 3.36.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 (221) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist-cjs/EFS.js +0 -1
  3. package/dist-cjs/EFSClient.js +0 -1
  4. package/dist-cjs/commands/CreateAccessPointCommand.js +0 -1
  5. package/dist-cjs/commands/CreateFileSystemCommand.js +0 -1
  6. package/dist-cjs/commands/CreateMountTargetCommand.js +0 -1
  7. package/dist-cjs/commands/CreateTagsCommand.js +0 -1
  8. package/dist-cjs/commands/DeleteAccessPointCommand.js +0 -1
  9. package/dist-cjs/commands/DeleteFileSystemCommand.js +0 -1
  10. package/dist-cjs/commands/DeleteFileSystemPolicyCommand.js +0 -1
  11. package/dist-cjs/commands/DeleteMountTargetCommand.js +0 -1
  12. package/dist-cjs/commands/DeleteTagsCommand.js +0 -1
  13. package/dist-cjs/commands/DescribeAccessPointsCommand.js +0 -1
  14. package/dist-cjs/commands/DescribeAccountPreferencesCommand.js +0 -1
  15. package/dist-cjs/commands/DescribeBackupPolicyCommand.js +0 -1
  16. package/dist-cjs/commands/DescribeFileSystemPolicyCommand.js +0 -1
  17. package/dist-cjs/commands/DescribeFileSystemsCommand.js +0 -1
  18. package/dist-cjs/commands/DescribeLifecycleConfigurationCommand.js +0 -1
  19. package/dist-cjs/commands/DescribeMountTargetSecurityGroupsCommand.js +0 -1
  20. package/dist-cjs/commands/DescribeMountTargetsCommand.js +0 -1
  21. package/dist-cjs/commands/DescribeTagsCommand.js +0 -1
  22. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  23. package/dist-cjs/commands/ModifyMountTargetSecurityGroupsCommand.js +0 -1
  24. package/dist-cjs/commands/PutAccountPreferencesCommand.js +0 -1
  25. package/dist-cjs/commands/PutBackupPolicyCommand.js +0 -1
  26. package/dist-cjs/commands/PutFileSystemPolicyCommand.js +0 -1
  27. package/dist-cjs/commands/PutLifecycleConfigurationCommand.js +0 -1
  28. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  29. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  30. package/dist-cjs/commands/UpdateFileSystemCommand.js +0 -1
  31. package/dist-cjs/endpoints.js +0 -1
  32. package/dist-cjs/index.js +0 -1
  33. package/dist-cjs/models/index.js +0 -1
  34. package/dist-cjs/models/models_0.js +0 -1
  35. package/dist-cjs/pagination/DescribeAccessPointsPaginator.js +0 -1
  36. package/dist-cjs/pagination/DescribeFileSystemsPaginator.js +0 -1
  37. package/dist-cjs/pagination/DescribeTagsPaginator.js +0 -1
  38. package/dist-cjs/pagination/Interfaces.js +0 -1
  39. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -1
  40. package/dist-cjs/protocols/Aws_restJson1.js +8 -1
  41. package/dist-cjs/runtimeConfig.browser.js +2 -3
  42. package/dist-cjs/runtimeConfig.js +3 -4
  43. package/dist-cjs/runtimeConfig.native.js +0 -1
  44. package/dist-cjs/runtimeConfig.shared.js +0 -1
  45. package/dist-es/EFS.js +0 -1
  46. package/dist-es/EFSClient.js +0 -1
  47. package/dist-es/commands/CreateAccessPointCommand.js +0 -1
  48. package/dist-es/commands/CreateFileSystemCommand.js +0 -1
  49. package/dist-es/commands/CreateMountTargetCommand.js +0 -1
  50. package/dist-es/commands/CreateTagsCommand.js +0 -1
  51. package/dist-es/commands/DeleteAccessPointCommand.js +0 -1
  52. package/dist-es/commands/DeleteFileSystemCommand.js +0 -1
  53. package/dist-es/commands/DeleteFileSystemPolicyCommand.js +0 -1
  54. package/dist-es/commands/DeleteMountTargetCommand.js +0 -1
  55. package/dist-es/commands/DeleteTagsCommand.js +0 -1
  56. package/dist-es/commands/DescribeAccessPointsCommand.js +0 -1
  57. package/dist-es/commands/DescribeAccountPreferencesCommand.js +0 -1
  58. package/dist-es/commands/DescribeBackupPolicyCommand.js +0 -1
  59. package/dist-es/commands/DescribeFileSystemPolicyCommand.js +0 -1
  60. package/dist-es/commands/DescribeFileSystemsCommand.js +0 -1
  61. package/dist-es/commands/DescribeLifecycleConfigurationCommand.js +0 -1
  62. package/dist-es/commands/DescribeMountTargetSecurityGroupsCommand.js +0 -1
  63. package/dist-es/commands/DescribeMountTargetsCommand.js +0 -1
  64. package/dist-es/commands/DescribeTagsCommand.js +0 -1
  65. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  66. package/dist-es/commands/ModifyMountTargetSecurityGroupsCommand.js +0 -1
  67. package/dist-es/commands/PutAccountPreferencesCommand.js +0 -1
  68. package/dist-es/commands/PutBackupPolicyCommand.js +0 -1
  69. package/dist-es/commands/PutFileSystemPolicyCommand.js +0 -1
  70. package/dist-es/commands/PutLifecycleConfigurationCommand.js +0 -1
  71. package/dist-es/commands/TagResourceCommand.js +0 -1
  72. package/dist-es/commands/UntagResourceCommand.js +0 -1
  73. package/dist-es/commands/UpdateFileSystemCommand.js +0 -1
  74. package/dist-es/endpoints.js +0 -1
  75. package/dist-es/index.js +0 -1
  76. package/dist-es/models/index.js +0 -1
  77. package/dist-es/models/models_0.js +0 -1
  78. package/dist-es/pagination/DescribeAccessPointsPaginator.js +0 -1
  79. package/dist-es/pagination/DescribeFileSystemsPaginator.js +0 -1
  80. package/dist-es/pagination/DescribeTagsPaginator.js +0 -1
  81. package/dist-es/pagination/Interfaces.js +0 -1
  82. package/dist-es/pagination/ListTagsForResourcePaginator.js +0 -1
  83. package/dist-es/protocols/Aws_restJson1.js +22 -15
  84. package/dist-es/runtimeConfig.browser.js +1 -2
  85. package/dist-es/runtimeConfig.js +2 -3
  86. package/dist-es/runtimeConfig.native.js +0 -1
  87. package/dist-es/runtimeConfig.shared.js +0 -1
  88. package/package.json +33 -30
  89. package/dist-cjs/EFS.js.map +0 -1
  90. package/dist-cjs/EFSClient.js.map +0 -1
  91. package/dist-cjs/commands/CreateAccessPointCommand.js.map +0 -1
  92. package/dist-cjs/commands/CreateFileSystemCommand.js.map +0 -1
  93. package/dist-cjs/commands/CreateMountTargetCommand.js.map +0 -1
  94. package/dist-cjs/commands/CreateTagsCommand.js.map +0 -1
  95. package/dist-cjs/commands/DeleteAccessPointCommand.js.map +0 -1
  96. package/dist-cjs/commands/DeleteFileSystemCommand.js.map +0 -1
  97. package/dist-cjs/commands/DeleteFileSystemPolicyCommand.js.map +0 -1
  98. package/dist-cjs/commands/DeleteMountTargetCommand.js.map +0 -1
  99. package/dist-cjs/commands/DeleteTagsCommand.js.map +0 -1
  100. package/dist-cjs/commands/DescribeAccessPointsCommand.js.map +0 -1
  101. package/dist-cjs/commands/DescribeAccountPreferencesCommand.js.map +0 -1
  102. package/dist-cjs/commands/DescribeBackupPolicyCommand.js.map +0 -1
  103. package/dist-cjs/commands/DescribeFileSystemPolicyCommand.js.map +0 -1
  104. package/dist-cjs/commands/DescribeFileSystemsCommand.js.map +0 -1
  105. package/dist-cjs/commands/DescribeLifecycleConfigurationCommand.js.map +0 -1
  106. package/dist-cjs/commands/DescribeMountTargetSecurityGroupsCommand.js.map +0 -1
  107. package/dist-cjs/commands/DescribeMountTargetsCommand.js.map +0 -1
  108. package/dist-cjs/commands/DescribeTagsCommand.js.map +0 -1
  109. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  110. package/dist-cjs/commands/ModifyMountTargetSecurityGroupsCommand.js.map +0 -1
  111. package/dist-cjs/commands/PutAccountPreferencesCommand.js.map +0 -1
  112. package/dist-cjs/commands/PutBackupPolicyCommand.js.map +0 -1
  113. package/dist-cjs/commands/PutFileSystemPolicyCommand.js.map +0 -1
  114. package/dist-cjs/commands/PutLifecycleConfigurationCommand.js.map +0 -1
  115. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  116. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  117. package/dist-cjs/commands/UpdateFileSystemCommand.js.map +0 -1
  118. package/dist-cjs/endpoints.js.map +0 -1
  119. package/dist-cjs/index.js.map +0 -1
  120. package/dist-cjs/models/index.js.map +0 -1
  121. package/dist-cjs/models/models_0.js.map +0 -1
  122. package/dist-cjs/pagination/DescribeAccessPointsPaginator.js.map +0 -1
  123. package/dist-cjs/pagination/DescribeFileSystemsPaginator.js.map +0 -1
  124. package/dist-cjs/pagination/DescribeTagsPaginator.js.map +0 -1
  125. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  126. package/dist-cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
  127. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  128. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  129. package/dist-cjs/runtimeConfig.js.map +0 -1
  130. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  131. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  132. package/dist-es/EFS.js.map +0 -1
  133. package/dist-es/EFSClient.js.map +0 -1
  134. package/dist-es/commands/CreateAccessPointCommand.js.map +0 -1
  135. package/dist-es/commands/CreateFileSystemCommand.js.map +0 -1
  136. package/dist-es/commands/CreateMountTargetCommand.js.map +0 -1
  137. package/dist-es/commands/CreateTagsCommand.js.map +0 -1
  138. package/dist-es/commands/DeleteAccessPointCommand.js.map +0 -1
  139. package/dist-es/commands/DeleteFileSystemCommand.js.map +0 -1
  140. package/dist-es/commands/DeleteFileSystemPolicyCommand.js.map +0 -1
  141. package/dist-es/commands/DeleteMountTargetCommand.js.map +0 -1
  142. package/dist-es/commands/DeleteTagsCommand.js.map +0 -1
  143. package/dist-es/commands/DescribeAccessPointsCommand.js.map +0 -1
  144. package/dist-es/commands/DescribeAccountPreferencesCommand.js.map +0 -1
  145. package/dist-es/commands/DescribeBackupPolicyCommand.js.map +0 -1
  146. package/dist-es/commands/DescribeFileSystemPolicyCommand.js.map +0 -1
  147. package/dist-es/commands/DescribeFileSystemsCommand.js.map +0 -1
  148. package/dist-es/commands/DescribeLifecycleConfigurationCommand.js.map +0 -1
  149. package/dist-es/commands/DescribeMountTargetSecurityGroupsCommand.js.map +0 -1
  150. package/dist-es/commands/DescribeMountTargetsCommand.js.map +0 -1
  151. package/dist-es/commands/DescribeTagsCommand.js.map +0 -1
  152. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  153. package/dist-es/commands/ModifyMountTargetSecurityGroupsCommand.js.map +0 -1
  154. package/dist-es/commands/PutAccountPreferencesCommand.js.map +0 -1
  155. package/dist-es/commands/PutBackupPolicyCommand.js.map +0 -1
  156. package/dist-es/commands/PutFileSystemPolicyCommand.js.map +0 -1
  157. package/dist-es/commands/PutLifecycleConfigurationCommand.js.map +0 -1
  158. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  159. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  160. package/dist-es/commands/UpdateFileSystemCommand.js.map +0 -1
  161. package/dist-es/endpoints.js.map +0 -1
  162. package/dist-es/index.js.map +0 -1
  163. package/dist-es/models/index.js.map +0 -1
  164. package/dist-es/models/models_0.js.map +0 -1
  165. package/dist-es/pagination/DescribeAccessPointsPaginator.js.map +0 -1
  166. package/dist-es/pagination/DescribeFileSystemsPaginator.js.map +0 -1
  167. package/dist-es/pagination/DescribeTagsPaginator.js.map +0 -1
  168. package/dist-es/pagination/Interfaces.js.map +0 -1
  169. package/dist-es/pagination/ListTagsForResourcePaginator.js.map +0 -1
  170. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  171. package/dist-es/runtimeConfig.browser.js.map +0 -1
  172. package/dist-es/runtimeConfig.js.map +0 -1
  173. package/dist-es/runtimeConfig.native.js.map +0 -1
  174. package/dist-es/runtimeConfig.shared.js.map +0 -1
  175. package/jest.config.js +0 -4
  176. package/src/EFS.ts +0 -1386
  177. package/src/EFSClient.ts +0 -363
  178. package/src/commands/CreateAccessPointCommand.ts +0 -102
  179. package/src/commands/CreateFileSystemCommand.ts +0 -148
  180. package/src/commands/CreateMountTargetCommand.ts +0 -236
  181. package/src/commands/CreateTagsCommand.ts +0 -106
  182. package/src/commands/DeleteAccessPointCommand.ts +0 -98
  183. package/src/commands/DeleteFileSystemCommand.ts +0 -109
  184. package/src/commands/DeleteFileSystemPolicyCommand.ts +0 -98
  185. package/src/commands/DeleteMountTargetCommand.ts +0 -128
  186. package/src/commands/DeleteTagsCommand.ts +0 -107
  187. package/src/commands/DescribeAccessPointsCommand.ts +0 -98
  188. package/src/commands/DescribeAccountPreferencesCommand.ts +0 -99
  189. package/src/commands/DescribeBackupPolicyCommand.ts +0 -95
  190. package/src/commands/DescribeFileSystemPolicyCommand.ts +0 -96
  191. package/src/commands/DescribeFileSystemsCommand.ts +0 -117
  192. package/src/commands/DescribeLifecycleConfigurationCommand.ts +0 -110
  193. package/src/commands/DescribeMountTargetSecurityGroupsCommand.ts +0 -121
  194. package/src/commands/DescribeMountTargetsCommand.ts +0 -102
  195. package/src/commands/DescribeTagsCommand.ts +0 -105
  196. package/src/commands/ListTagsForResourceCommand.ts +0 -96
  197. package/src/commands/ModifyMountTargetSecurityGroupsCommand.ts +0 -120
  198. package/src/commands/PutAccountPreferencesCommand.ts +0 -98
  199. package/src/commands/PutBackupPolicyCommand.ts +0 -95
  200. package/src/commands/PutFileSystemPolicyCommand.ts +0 -104
  201. package/src/commands/PutLifecycleConfigurationCommand.ts +0 -128
  202. package/src/commands/TagResourceCommand.ts +0 -96
  203. package/src/commands/UntagResourceCommand.ts +0 -96
  204. package/src/commands/UpdateFileSystemCommand.ts +0 -96
  205. package/src/endpoints.ts +0 -183
  206. package/src/index.ts +0 -35
  207. package/src/models/index.ts +0 -1
  208. package/src/models/models_0.ts +0 -2185
  209. package/src/pagination/DescribeAccessPointsPaginator.ts +0 -59
  210. package/src/pagination/DescribeFileSystemsPaginator.ts +0 -59
  211. package/src/pagination/DescribeTagsPaginator.ts +0 -59
  212. package/src/pagination/Interfaces.ts +0 -8
  213. package/src/pagination/ListTagsForResourcePaginator.ts +0 -59
  214. package/src/protocols/Aws_restJson1.ts +0 -4420
  215. package/src/runtimeConfig.browser.ts +0 -41
  216. package/src/runtimeConfig.native.ts +0 -17
  217. package/src/runtimeConfig.shared.ts +0 -17
  218. package/src/runtimeConfig.ts +0 -46
  219. package/tsconfig.es.json +0 -10
  220. package/tsconfig.json +0 -33
  221. package/tsconfig.types.json +0 -9
@@ -1,236 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { EFSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EFSClient";
15
- import { CreateMountTargetRequest, MountTargetDescription } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1CreateMountTargetCommand,
18
- serializeAws_restJson1CreateMountTargetCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface CreateMountTargetCommandInput extends CreateMountTargetRequest {}
22
- export interface CreateMountTargetCommandOutput extends MountTargetDescription, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Creates a mount target for a file system. You can then mount the file system on EC2
26
- * instances by using the mount target.</p>
27
- * <p>You can create one mount target in each Availability Zone in your VPC. All EC2
28
- * instances in a VPC within a given Availability Zone share a single mount target for a given
29
- * file system. If you have multiple subnets in an Availability Zone, you create a mount target
30
- * in one of the subnets. EC2 instances do not need to be in the same subnet as the mount target
31
- * in order to access their file system.</p>
32
- * <p>You can create only one mount target for an EFS file system using One Zone storage
33
- * classes. You must create that mount target in the same Availability Zone in which the file
34
- * system is located. Use the <code>AvailabilityZoneName</code> and
35
- * <code>AvailabiltyZoneId</code> properties in the <a>DescribeFileSystems</a>
36
- * response object to get this information. Use the <code>subnetId</code> associated with the
37
- * file system's Availability Zone when creating the mount target.</p>
38
- * <p>For more information, see <a href="https://docs.aws.amazon.com/efs/latest/ug/how-it-works.html">Amazon EFS: How it Works</a>. </p>
39
- * <p>To create a mount target for a file system, the file system's lifecycle state must be
40
- * <code>available</code>. For more information, see <a>DescribeFileSystems</a>.</p>
41
- * <p>In the request, provide the following:</p>
42
- * <ul>
43
- * <li>
44
- * <p>The file system ID for which you are creating the mount
45
- * target.</p>
46
- * </li>
47
- * <li>
48
- * <p>A subnet ID, which determines the following:</p>
49
- * <ul>
50
- * <li>
51
- * <p>The VPC in which Amazon EFS creates the mount target</p>
52
- * </li>
53
- * <li>
54
- * <p>The Availability Zone in which Amazon EFS creates the mount target</p>
55
- * </li>
56
- * <li>
57
- * <p>The IP address range from which Amazon EFS selects the IP address of the mount target
58
- * (if you don't specify an IP address in the request)</p>
59
- * </li>
60
- * </ul>
61
- * </li>
62
- * </ul>
63
- *
64
- * <p>After creating the mount target, Amazon EFS returns a response that includes, a
65
- * <code>MountTargetId</code> and an <code>IpAddress</code>. You use this IP address when
66
- * mounting the file system in an EC2 instance. You can also use the mount target's DNS name
67
- * when mounting the file system. The EC2 instance on which you mount the file system by using
68
- * the mount target can resolve the mount target's DNS name to its IP address. For more
69
- * information, see <a href="https://docs.aws.amazon.com/efs/latest/ug/how-it-works.html#how-it-works-implementation">How it Works:
70
- * Implementation Overview</a>. </p>
71
- * <p>Note that you can create mount targets for a file system in only one VPC, and there can
72
- * be only one mount target per Availability Zone. That is, if the file system already has one or
73
- * more mount targets created for it, the subnet specified in the request to add another mount
74
- * target must meet the following requirements:</p>
75
- * <ul>
76
- * <li>
77
- * <p>Must belong to the same VPC as the subnets of the existing mount targets</p>
78
- * </li>
79
- * <li>
80
- * <p>Must not be in the same Availability Zone as any of the subnets of the existing
81
- * mount targets</p>
82
- * </li>
83
- * </ul>
84
- *
85
- * <p>If the request satisfies the requirements, Amazon EFS does the following:</p>
86
- * <ul>
87
- * <li>
88
- * <p>Creates a new mount target in the specified subnet.</p>
89
- * </li>
90
- * <li>
91
- * <p>Also creates a new network interface in the subnet as follows:</p>
92
- * <ul>
93
- * <li>
94
- * <p>If the request provides an <code>IpAddress</code>, Amazon EFS assigns that IP
95
- * address to the network interface. Otherwise, Amazon EFS assigns a free address in the
96
- * subnet (in the same way that the Amazon EC2 <code>CreateNetworkInterface</code> call
97
- * does when a request does not specify a primary private IP address).</p>
98
- * </li>
99
- * <li>
100
- * <p>If the request provides <code>SecurityGroups</code>, this network interface is
101
- * associated with those security groups. Otherwise, it belongs to the default security
102
- * group for the subnet's VPC.</p>
103
- * </li>
104
- * <li>
105
- * <p>Assigns the description <code>Mount target <i>fsmt-id</i> for
106
- * file system <i>fs-id</i>
107
- * </code> where <code>
108
- * <i>fsmt-id</i>
109
- * </code> is the mount target ID, and <code>
110
- * <i>fs-id</i>
111
- * </code> is the <code>FileSystemId</code>.</p>
112
- * </li>
113
- * <li>
114
- * <p>Sets the <code>requesterManaged</code> property of the network interface to
115
- * <code>true</code>, and the <code>requesterId</code> value to
116
- * <code>EFS</code>.</p>
117
- * </li>
118
- * </ul>
119
- * <p>Each Amazon EFS mount target has one corresponding requester-managed EC2 network
120
- * interface. After the network interface is created, Amazon EFS sets the
121
- * <code>NetworkInterfaceId</code> field in the mount target's description to the
122
- * network interface ID, and the <code>IpAddress</code> field to its address. If network
123
- * interface creation fails, the entire <code>CreateMountTarget</code> operation
124
- * fails.</p>
125
- * </li>
126
- * </ul>
127
- * <note>
128
- * <p>The <code>CreateMountTarget</code> call returns only after creating the network
129
- * interface, but while the mount target state is still <code>creating</code>, you can check
130
- * the mount target creation status by calling the <a>DescribeMountTargets</a> operation, which among other things returns the mount
131
- * target state.</p>
132
- * </note>
133
- * <p>We recommend that you create a mount target in each of the Availability Zones. There
134
- * are cost considerations for using a file system in an Availability Zone through a mount target
135
- * created in another Availability Zone. For more information, see <a href="http://aws.amazon.com/efs/">Amazon EFS</a>. In addition, by always using a mount target local to the
136
- * instance's Availability Zone, you eliminate a partial failure scenario. If the
137
- * Availability Zone in which your mount target is created goes down, then you can't access
138
- * your file system through that mount target. </p>
139
- * <p>This operation requires permissions for the following action on the file
140
- * system:</p>
141
- * <ul>
142
- * <li>
143
- * <p>
144
- * <code>elasticfilesystem:CreateMountTarget</code>
145
- * </p>
146
- * </li>
147
- * </ul>
148
- * <p>This operation also requires permissions for the following Amazon EC2
149
- * actions:</p>
150
- * <ul>
151
- * <li>
152
- * <p>
153
- * <code>ec2:DescribeSubnets</code>
154
- * </p>
155
- * </li>
156
- * <li>
157
- * <p>
158
- * <code>ec2:DescribeNetworkInterfaces</code>
159
- * </p>
160
- * </li>
161
- * <li>
162
- * <p>
163
- * <code>ec2:CreateNetworkInterface</code>
164
- * </p>
165
- * </li>
166
- * </ul>
167
- * @example
168
- * Use a bare-bones client and the command you need to make an API call.
169
- * ```javascript
170
- * import { EFSClient, CreateMountTargetCommand } from "@aws-sdk/client-efs"; // ES Modules import
171
- * // const { EFSClient, CreateMountTargetCommand } = require("@aws-sdk/client-efs"); // CommonJS import
172
- * const client = new EFSClient(config);
173
- * const command = new CreateMountTargetCommand(input);
174
- * const response = await client.send(command);
175
- * ```
176
- *
177
- * @see {@link CreateMountTargetCommandInput} for command's `input` shape.
178
- * @see {@link CreateMountTargetCommandOutput} for command's `response` shape.
179
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
180
- *
181
- */
182
- export class CreateMountTargetCommand extends $Command<
183
- CreateMountTargetCommandInput,
184
- CreateMountTargetCommandOutput,
185
- EFSClientResolvedConfig
186
- > {
187
- // Start section: command_properties
188
- // End section: command_properties
189
-
190
- constructor(readonly input: CreateMountTargetCommandInput) {
191
- // Start section: command_constructor
192
- super();
193
- // End section: command_constructor
194
- }
195
-
196
- /**
197
- * @internal
198
- */
199
- resolveMiddleware(
200
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
201
- configuration: EFSClientResolvedConfig,
202
- options?: __HttpHandlerOptions
203
- ): Handler<CreateMountTargetCommandInput, CreateMountTargetCommandOutput> {
204
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
205
-
206
- const stack = clientStack.concat(this.middlewareStack);
207
-
208
- const { logger } = configuration;
209
- const clientName = "EFSClient";
210
- const commandName = "CreateMountTargetCommand";
211
- const handlerExecutionContext: HandlerExecutionContext = {
212
- logger,
213
- clientName,
214
- commandName,
215
- inputFilterSensitiveLog: CreateMountTargetRequest.filterSensitiveLog,
216
- outputFilterSensitiveLog: MountTargetDescription.filterSensitiveLog,
217
- };
218
- const { requestHandler } = configuration;
219
- return stack.resolve(
220
- (request: FinalizeHandlerArguments<any>) =>
221
- requestHandler.handle(request.request as __HttpRequest, options || {}),
222
- handlerExecutionContext
223
- );
224
- }
225
-
226
- private serialize(input: CreateMountTargetCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
227
- return serializeAws_restJson1CreateMountTargetCommand(input, context);
228
- }
229
-
230
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateMountTargetCommandOutput> {
231
- return deserializeAws_restJson1CreateMountTargetCommand(output, context);
232
- }
233
-
234
- // Start section: command_body_extra
235
- // End section: command_body_extra
236
- }
@@ -1,106 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { EFSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EFSClient";
15
- import { CreateTagsRequest } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1CreateTagsCommand,
18
- serializeAws_restJson1CreateTagsCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface CreateTagsCommandInput extends CreateTagsRequest {}
22
- export interface CreateTagsCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * @deprecated
26
- *
27
- * <note>
28
- * <p>DEPRECATED - CreateTags is deprecated and not maintained. Please use the
29
- * API action to create tags for EFS resources.</p>
30
- * </note>
31
- * <p>Creates or overwrites tags associated with a file system. Each tag is a key-value pair. If
32
- * a tag key specified in the request already exists on the file system, this operation
33
- * overwrites its value with the value provided in the request. If you add the <code>Name</code>
34
- * tag to your file system, Amazon EFS returns it in the response to the <a>DescribeFileSystems</a> operation. </p>
35
- * <p>This operation requires permission for the <code>elasticfilesystem:CreateTags</code>
36
- * action.</p>
37
- * @example
38
- * Use a bare-bones client and the command you need to make an API call.
39
- * ```javascript
40
- * import { EFSClient, CreateTagsCommand } from "@aws-sdk/client-efs"; // ES Modules import
41
- * // const { EFSClient, CreateTagsCommand } = require("@aws-sdk/client-efs"); // CommonJS import
42
- * const client = new EFSClient(config);
43
- * const command = new CreateTagsCommand(input);
44
- * const response = await client.send(command);
45
- * ```
46
- *
47
- * @see {@link CreateTagsCommandInput} for command's `input` shape.
48
- * @see {@link CreateTagsCommandOutput} for command's `response` shape.
49
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
50
- *
51
- */
52
- export class CreateTagsCommand extends $Command<
53
- CreateTagsCommandInput,
54
- CreateTagsCommandOutput,
55
- EFSClientResolvedConfig
56
- > {
57
- // Start section: command_properties
58
- // End section: command_properties
59
-
60
- constructor(readonly input: CreateTagsCommandInput) {
61
- // Start section: command_constructor
62
- super();
63
- // End section: command_constructor
64
- }
65
-
66
- /**
67
- * @internal
68
- */
69
- resolveMiddleware(
70
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
71
- configuration: EFSClientResolvedConfig,
72
- options?: __HttpHandlerOptions
73
- ): Handler<CreateTagsCommandInput, CreateTagsCommandOutput> {
74
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
75
-
76
- const stack = clientStack.concat(this.middlewareStack);
77
-
78
- const { logger } = configuration;
79
- const clientName = "EFSClient";
80
- const commandName = "CreateTagsCommand";
81
- const handlerExecutionContext: HandlerExecutionContext = {
82
- logger,
83
- clientName,
84
- commandName,
85
- inputFilterSensitiveLog: CreateTagsRequest.filterSensitiveLog,
86
- outputFilterSensitiveLog: (output: any) => output,
87
- };
88
- const { requestHandler } = configuration;
89
- return stack.resolve(
90
- (request: FinalizeHandlerArguments<any>) =>
91
- requestHandler.handle(request.request as __HttpRequest, options || {}),
92
- handlerExecutionContext
93
- );
94
- }
95
-
96
- private serialize(input: CreateTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
97
- return serializeAws_restJson1CreateTagsCommand(input, context);
98
- }
99
-
100
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateTagsCommandOutput> {
101
- return deserializeAws_restJson1CreateTagsCommand(output, context);
102
- }
103
-
104
- // Start section: command_body_extra
105
- // End section: command_body_extra
106
- }
@@ -1,98 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { EFSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EFSClient";
15
- import { DeleteAccessPointRequest } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1DeleteAccessPointCommand,
18
- serializeAws_restJson1DeleteAccessPointCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface DeleteAccessPointCommandInput extends DeleteAccessPointRequest {}
22
- export interface DeleteAccessPointCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Deletes the specified access point. After deletion is complete, new clients can no
26
- * longer connect to the access points. Clients connected to the access point at the time of
27
- * deletion will continue to function until they terminate their connection.</p>
28
- * <p>This operation requires permissions for the <code>elasticfilesystem:DeleteAccessPoint</code> action.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { EFSClient, DeleteAccessPointCommand } from "@aws-sdk/client-efs"; // ES Modules import
33
- * // const { EFSClient, DeleteAccessPointCommand } = require("@aws-sdk/client-efs"); // CommonJS import
34
- * const client = new EFSClient(config);
35
- * const command = new DeleteAccessPointCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link DeleteAccessPointCommandInput} for command's `input` shape.
40
- * @see {@link DeleteAccessPointCommandOutput} for command's `response` shape.
41
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class DeleteAccessPointCommand extends $Command<
45
- DeleteAccessPointCommandInput,
46
- DeleteAccessPointCommandOutput,
47
- EFSClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: DeleteAccessPointCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: EFSClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<DeleteAccessPointCommandInput, DeleteAccessPointCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "EFSClient";
72
- const commandName = "DeleteAccessPointCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: DeleteAccessPointRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: (output: any) => output,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: DeleteAccessPointCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_restJson1DeleteAccessPointCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteAccessPointCommandOutput> {
93
- return deserializeAws_restJson1DeleteAccessPointCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,109 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { EFSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EFSClient";
15
- import { DeleteFileSystemRequest } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1DeleteFileSystemCommand,
18
- serializeAws_restJson1DeleteFileSystemCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface DeleteFileSystemCommandInput extends DeleteFileSystemRequest {}
22
- export interface DeleteFileSystemCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Deletes a file system, permanently severing access to its contents. Upon return, the
26
- * file system no longer exists and you can't access any contents of the deleted file
27
- * system.</p>
28
- * <p> You can't delete a file system that is in use. That is, if the file system has
29
- * any mount targets, you must first delete them. For more information, see <a>DescribeMountTargets</a> and <a>DeleteMountTarget</a>. </p>
30
- *
31
- * <note>
32
- * <p>The <code>DeleteFileSystem</code> call returns while the file system state is still
33
- * <code>deleting</code>. You can check the file system deletion status by calling the <a>DescribeFileSystems</a> operation, which returns a list of file systems in your
34
- * account. If you pass file system ID or creation token for the deleted file system, the <a>DescribeFileSystems</a> returns a <code>404 FileSystemNotFound</code>
35
- * error.</p>
36
- * </note>
37
- *
38
- * <p>This operation requires permissions for the
39
- * <code>elasticfilesystem:DeleteFileSystem</code> action.</p>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { EFSClient, DeleteFileSystemCommand } from "@aws-sdk/client-efs"; // ES Modules import
44
- * // const { EFSClient, DeleteFileSystemCommand } = require("@aws-sdk/client-efs"); // CommonJS import
45
- * const client = new EFSClient(config);
46
- * const command = new DeleteFileSystemCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link DeleteFileSystemCommandInput} for command's `input` shape.
51
- * @see {@link DeleteFileSystemCommandOutput} for command's `response` shape.
52
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
- export class DeleteFileSystemCommand extends $Command<
56
- DeleteFileSystemCommandInput,
57
- DeleteFileSystemCommandOutput,
58
- EFSClientResolvedConfig
59
- > {
60
- // Start section: command_properties
61
- // End section: command_properties
62
-
63
- constructor(readonly input: DeleteFileSystemCommandInput) {
64
- // Start section: command_constructor
65
- super();
66
- // End section: command_constructor
67
- }
68
-
69
- /**
70
- * @internal
71
- */
72
- resolveMiddleware(
73
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
74
- configuration: EFSClientResolvedConfig,
75
- options?: __HttpHandlerOptions
76
- ): Handler<DeleteFileSystemCommandInput, DeleteFileSystemCommandOutput> {
77
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
78
-
79
- const stack = clientStack.concat(this.middlewareStack);
80
-
81
- const { logger } = configuration;
82
- const clientName = "EFSClient";
83
- const commandName = "DeleteFileSystemCommand";
84
- const handlerExecutionContext: HandlerExecutionContext = {
85
- logger,
86
- clientName,
87
- commandName,
88
- inputFilterSensitiveLog: DeleteFileSystemRequest.filterSensitiveLog,
89
- outputFilterSensitiveLog: (output: any) => output,
90
- };
91
- const { requestHandler } = configuration;
92
- return stack.resolve(
93
- (request: FinalizeHandlerArguments<any>) =>
94
- requestHandler.handle(request.request as __HttpRequest, options || {}),
95
- handlerExecutionContext
96
- );
97
- }
98
-
99
- private serialize(input: DeleteFileSystemCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
100
- return serializeAws_restJson1DeleteFileSystemCommand(input, context);
101
- }
102
-
103
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteFileSystemCommandOutput> {
104
- return deserializeAws_restJson1DeleteFileSystemCommand(output, context);
105
- }
106
-
107
- // Start section: command_body_extra
108
- // End section: command_body_extra
109
- }
@@ -1,98 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { EFSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EFSClient";
15
- import { DeleteFileSystemPolicyRequest } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1DeleteFileSystemPolicyCommand,
18
- serializeAws_restJson1DeleteFileSystemPolicyCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface DeleteFileSystemPolicyCommandInput extends DeleteFileSystemPolicyRequest {}
22
- export interface DeleteFileSystemPolicyCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Deletes the <code>FileSystemPolicy</code> for the specified file system.
26
- * The default <code>FileSystemPolicy</code> goes into effect once the existing policy is deleted.
27
- * For more information about the default file system policy, see <a href="https://docs.aws.amazon.com/efs/latest/ug/res-based-policies-efs.html">Using Resource-based Policies with EFS</a>.</p>
28
- * <p>This operation requires permissions for the <code>elasticfilesystem:DeleteFileSystemPolicy</code> action.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { EFSClient, DeleteFileSystemPolicyCommand } from "@aws-sdk/client-efs"; // ES Modules import
33
- * // const { EFSClient, DeleteFileSystemPolicyCommand } = require("@aws-sdk/client-efs"); // CommonJS import
34
- * const client = new EFSClient(config);
35
- * const command = new DeleteFileSystemPolicyCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link DeleteFileSystemPolicyCommandInput} for command's `input` shape.
40
- * @see {@link DeleteFileSystemPolicyCommandOutput} for command's `response` shape.
41
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class DeleteFileSystemPolicyCommand extends $Command<
45
- DeleteFileSystemPolicyCommandInput,
46
- DeleteFileSystemPolicyCommandOutput,
47
- EFSClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: DeleteFileSystemPolicyCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: EFSClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<DeleteFileSystemPolicyCommandInput, DeleteFileSystemPolicyCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "EFSClient";
72
- const commandName = "DeleteFileSystemPolicyCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: DeleteFileSystemPolicyRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: (output: any) => output,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: DeleteFileSystemPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_restJson1DeleteFileSystemPolicyCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteFileSystemPolicyCommandOutput> {
93
- return deserializeAws_restJson1DeleteFileSystemPolicyCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }