aws_sdk_fsx/operation/create_file_system/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_file_system::_create_file_system_output::CreateFileSystemOutputBuilder;
3
4pub use crate::operation::create_file_system::_create_file_system_input::CreateFileSystemInputBuilder;
5
6impl crate::operation::create_file_system::builders::CreateFileSystemInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_file_system::CreateFileSystemOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_file_system::CreateFileSystemError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_file_system();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `CreateFileSystem`.
24///
25/// <p>Creates a new, empty Amazon FSx file system. You can create the following supported Amazon FSx file systems using the <code>CreateFileSystem</code> API operation:</p>
26/// <ul>
27/// <li>
28/// <p>Amazon FSx for Lustre</p></li>
29/// <li>
30/// <p>Amazon FSx for NetApp ONTAP</p></li>
31/// <li>
32/// <p>Amazon FSx for OpenZFS</p></li>
33/// <li>
34/// <p>Amazon FSx for Windows File Server</p></li>
35/// </ul>
36/// <p>This operation requires a client request token in the request that Amazon FSx uses to ensure idempotent creation. This means that calling the operation multiple times with the same client request token has no effect. By using the idempotent operation, you can retry a <code>CreateFileSystem</code> operation without the risk of creating an extra file system. This approach can be useful when an initial call fails in a way that makes it unclear whether a file system was created. Examples are if a transport level timeout occurred, or your connection was reset. If you use the same client request token and the initial call created a file system, the client receives success as long as the parameters are the same.</p>
37/// <p>If a file system with the specified client request token exists and the parameters match, <code>CreateFileSystem</code> returns the description of the existing file system. If a file system with the specified client request token exists and the parameters don't match, this call returns <code>IncompatibleParameterError</code>. If a file system with the specified client request token doesn't exist, <code>CreateFileSystem</code> does the following:</p>
38/// <ul>
39/// <li>
40/// <p>Creates a new, empty Amazon FSx file system with an assigned ID, and an initial lifecycle state of <code>CREATING</code>.</p></li>
41/// <li>
42/// <p>Returns the description of the file system in JSON format.</p></li>
43/// </ul><note>
44/// <p>The <code>CreateFileSystem</code> call returns while the file system's lifecycle state is still <code>CREATING</code>. You can check the file-system creation status by calling the <a href="https://docs.aws.amazon.com/fsx/latest/APIReference/API_DescribeFileSystems.html">DescribeFileSystems</a> operation, which returns the file system state along with other information.</p>
45/// </note>
46#[derive(::std::clone::Clone, ::std::fmt::Debug)]
47pub struct CreateFileSystemFluentBuilder {
48 handle: ::std::sync::Arc<crate::client::Handle>,
49 inner: crate::operation::create_file_system::builders::CreateFileSystemInputBuilder,
50 config_override: ::std::option::Option<crate::config::Builder>,
51}
52impl
53 crate::client::customize::internal::CustomizableSend<
54 crate::operation::create_file_system::CreateFileSystemOutput,
55 crate::operation::create_file_system::CreateFileSystemError,
56 > for CreateFileSystemFluentBuilder
57{
58 fn send(
59 self,
60 config_override: crate::config::Builder,
61 ) -> crate::client::customize::internal::BoxFuture<
62 crate::client::customize::internal::SendResult<
63 crate::operation::create_file_system::CreateFileSystemOutput,
64 crate::operation::create_file_system::CreateFileSystemError,
65 >,
66 > {
67 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
68 }
69}
70impl CreateFileSystemFluentBuilder {
71 /// Creates a new `CreateFileSystemFluentBuilder`.
72 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
73 Self {
74 handle,
75 inner: ::std::default::Default::default(),
76 config_override: ::std::option::Option::None,
77 }
78 }
79 /// Access the CreateFileSystem as a reference.
80 pub fn as_input(&self) -> &crate::operation::create_file_system::builders::CreateFileSystemInputBuilder {
81 &self.inner
82 }
83 /// Sends the request and returns the response.
84 ///
85 /// If an error occurs, an `SdkError` will be returned with additional details that
86 /// can be matched against.
87 ///
88 /// By default, any retryable failures will be retried twice. Retry behavior
89 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
90 /// set when configuring the client.
91 pub async fn send(
92 self,
93 ) -> ::std::result::Result<
94 crate::operation::create_file_system::CreateFileSystemOutput,
95 ::aws_smithy_runtime_api::client::result::SdkError<
96 crate::operation::create_file_system::CreateFileSystemError,
97 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
98 >,
99 > {
100 let input = self
101 .inner
102 .build()
103 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
104 let runtime_plugins = crate::operation::create_file_system::CreateFileSystem::operation_runtime_plugins(
105 self.handle.runtime_plugins.clone(),
106 &self.handle.conf,
107 self.config_override,
108 );
109 crate::operation::create_file_system::CreateFileSystem::orchestrate(&runtime_plugins, input).await
110 }
111
112 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
113 pub fn customize(
114 self,
115 ) -> crate::client::customize::CustomizableOperation<
116 crate::operation::create_file_system::CreateFileSystemOutput,
117 crate::operation::create_file_system::CreateFileSystemError,
118 Self,
119 > {
120 crate::client::customize::CustomizableOperation::new(self)
121 }
122 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
123 self.set_config_override(::std::option::Option::Some(config_override.into()));
124 self
125 }
126
127 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
128 self.config_override = config_override;
129 self
130 }
131 /// <p>A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p>
132 pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
133 self.inner = self.inner.client_request_token(input.into());
134 self
135 }
136 /// <p>A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p>
137 pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
138 self.inner = self.inner.set_client_request_token(input);
139 self
140 }
141 /// <p>A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p>
142 pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
143 self.inner.get_client_request_token()
144 }
145 /// <p>The type of Amazon FSx file system to create. Valid values are <code>WINDOWS</code>, <code>LUSTRE</code>, <code>ONTAP</code>, and <code>OPENZFS</code>.</p>
146 pub fn file_system_type(mut self, input: crate::types::FileSystemType) -> Self {
147 self.inner = self.inner.file_system_type(input);
148 self
149 }
150 /// <p>The type of Amazon FSx file system to create. Valid values are <code>WINDOWS</code>, <code>LUSTRE</code>, <code>ONTAP</code>, and <code>OPENZFS</code>.</p>
151 pub fn set_file_system_type(mut self, input: ::std::option::Option<crate::types::FileSystemType>) -> Self {
152 self.inner = self.inner.set_file_system_type(input);
153 self
154 }
155 /// <p>The type of Amazon FSx file system to create. Valid values are <code>WINDOWS</code>, <code>LUSTRE</code>, <code>ONTAP</code>, and <code>OPENZFS</code>.</p>
156 pub fn get_file_system_type(&self) -> &::std::option::Option<crate::types::FileSystemType> {
157 self.inner.get_file_system_type()
158 }
159 /// <p>Sets the storage capacity of the file system that you're creating, in gibibytes (GiB).</p>
160 /// <p><b>FSx for Lustre file systems</b> - The amount of storage capacity that you can configure depends on the value that you set for <code>StorageType</code> and the Lustre <code>DeploymentType</code>, as follows:</p>
161 /// <ul>
162 /// <li>
163 /// <p>For <code>SCRATCH_2</code>, <code>PERSISTENT_2</code>, and <code>PERSISTENT_1</code> deployment types using SSD storage type, the valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB.</p></li>
164 /// <li>
165 /// <p>For <code>PERSISTENT_1</code> HDD file systems, valid values are increments of 6000 GiB for 12 MB/s/TiB file systems and increments of 1800 GiB for 40 MB/s/TiB file systems.</p></li>
166 /// <li>
167 /// <p>For <code>SCRATCH_1</code> deployment type, valid values are 1200 GiB, 2400 GiB, and increments of 3600 GiB.</p></li>
168 /// </ul>
169 /// <p><b>FSx for ONTAP file systems</b> - The amount of storage capacity that you can configure depends on the value of the <code>HAPairs</code> property. The minimum value is calculated as 1,024 * <code>HAPairs</code> and the maximum is calculated as 524,288 * <code>HAPairs</code>.</p>
170 /// <p><b>FSx for OpenZFS file systems</b> - The amount of storage capacity that you can configure is from 64 GiB up to 524,288 GiB (512 TiB).</p>
171 /// <p><b>FSx for Windows File Server file systems</b> - The amount of storage capacity that you can configure depends on the value that you set for <code>StorageType</code> as follows:</p>
172 /// <ul>
173 /// <li>
174 /// <p>For SSD storage, valid values are 32 GiB-65,536 GiB (64 TiB).</p></li>
175 /// <li>
176 /// <p>For HDD storage, valid values are 2000 GiB-65,536 GiB (64 TiB).</p></li>
177 /// </ul>
178 pub fn storage_capacity(mut self, input: i32) -> Self {
179 self.inner = self.inner.storage_capacity(input);
180 self
181 }
182 /// <p>Sets the storage capacity of the file system that you're creating, in gibibytes (GiB).</p>
183 /// <p><b>FSx for Lustre file systems</b> - The amount of storage capacity that you can configure depends on the value that you set for <code>StorageType</code> and the Lustre <code>DeploymentType</code>, as follows:</p>
184 /// <ul>
185 /// <li>
186 /// <p>For <code>SCRATCH_2</code>, <code>PERSISTENT_2</code>, and <code>PERSISTENT_1</code> deployment types using SSD storage type, the valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB.</p></li>
187 /// <li>
188 /// <p>For <code>PERSISTENT_1</code> HDD file systems, valid values are increments of 6000 GiB for 12 MB/s/TiB file systems and increments of 1800 GiB for 40 MB/s/TiB file systems.</p></li>
189 /// <li>
190 /// <p>For <code>SCRATCH_1</code> deployment type, valid values are 1200 GiB, 2400 GiB, and increments of 3600 GiB.</p></li>
191 /// </ul>
192 /// <p><b>FSx for ONTAP file systems</b> - The amount of storage capacity that you can configure depends on the value of the <code>HAPairs</code> property. The minimum value is calculated as 1,024 * <code>HAPairs</code> and the maximum is calculated as 524,288 * <code>HAPairs</code>.</p>
193 /// <p><b>FSx for OpenZFS file systems</b> - The amount of storage capacity that you can configure is from 64 GiB up to 524,288 GiB (512 TiB).</p>
194 /// <p><b>FSx for Windows File Server file systems</b> - The amount of storage capacity that you can configure depends on the value that you set for <code>StorageType</code> as follows:</p>
195 /// <ul>
196 /// <li>
197 /// <p>For SSD storage, valid values are 32 GiB-65,536 GiB (64 TiB).</p></li>
198 /// <li>
199 /// <p>For HDD storage, valid values are 2000 GiB-65,536 GiB (64 TiB).</p></li>
200 /// </ul>
201 pub fn set_storage_capacity(mut self, input: ::std::option::Option<i32>) -> Self {
202 self.inner = self.inner.set_storage_capacity(input);
203 self
204 }
205 /// <p>Sets the storage capacity of the file system that you're creating, in gibibytes (GiB).</p>
206 /// <p><b>FSx for Lustre file systems</b> - The amount of storage capacity that you can configure depends on the value that you set for <code>StorageType</code> and the Lustre <code>DeploymentType</code>, as follows:</p>
207 /// <ul>
208 /// <li>
209 /// <p>For <code>SCRATCH_2</code>, <code>PERSISTENT_2</code>, and <code>PERSISTENT_1</code> deployment types using SSD storage type, the valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB.</p></li>
210 /// <li>
211 /// <p>For <code>PERSISTENT_1</code> HDD file systems, valid values are increments of 6000 GiB for 12 MB/s/TiB file systems and increments of 1800 GiB for 40 MB/s/TiB file systems.</p></li>
212 /// <li>
213 /// <p>For <code>SCRATCH_1</code> deployment type, valid values are 1200 GiB, 2400 GiB, and increments of 3600 GiB.</p></li>
214 /// </ul>
215 /// <p><b>FSx for ONTAP file systems</b> - The amount of storage capacity that you can configure depends on the value of the <code>HAPairs</code> property. The minimum value is calculated as 1,024 * <code>HAPairs</code> and the maximum is calculated as 524,288 * <code>HAPairs</code>.</p>
216 /// <p><b>FSx for OpenZFS file systems</b> - The amount of storage capacity that you can configure is from 64 GiB up to 524,288 GiB (512 TiB).</p>
217 /// <p><b>FSx for Windows File Server file systems</b> - The amount of storage capacity that you can configure depends on the value that you set for <code>StorageType</code> as follows:</p>
218 /// <ul>
219 /// <li>
220 /// <p>For SSD storage, valid values are 32 GiB-65,536 GiB (64 TiB).</p></li>
221 /// <li>
222 /// <p>For HDD storage, valid values are 2000 GiB-65,536 GiB (64 TiB).</p></li>
223 /// </ul>
224 pub fn get_storage_capacity(&self) -> &::std::option::Option<i32> {
225 self.inner.get_storage_capacity()
226 }
227 /// <p>Sets the storage class for the file system that you're creating. Valid values are <code>SSD</code>, <code>HDD</code>, and <code>INTELLIGENT_TIERING</code>.</p>
228 /// <ul>
229 /// <li>
230 /// <p>Set to <code>SSD</code> to use solid state drive storage. SSD is supported on all Windows, Lustre, ONTAP, and OpenZFS deployment types.</p></li>
231 /// <li>
232 /// <p>Set to <code>HDD</code> to use hard disk drive storage. HDD is supported on <code>SINGLE_AZ_2</code> and <code>MULTI_AZ_1</code> Windows file system deployment types, and on <code>PERSISTENT_1</code> Lustre file system deployment types.</p></li>
233 /// <li>
234 /// <p>Set to <code>INTELLIGENT_TIERING</code> to use fully elastic, intelligently-tiered storage. Intelligent-Tiering is only available for OpenZFS file systems with the Multi-AZ deployment type.</p></li>
235 /// </ul>
236 /// <p>Default value is <code>SSD</code>. For more information, see <a href="https://docs.aws.amazon.com/fsx/latest/WindowsGuide/optimize-fsx-costs.html#storage-type-options"> Storage type options</a> in the <i>FSx for Windows File Server User Guide</i>, <a href="https://docs.aws.amazon.com/fsx/latest/LustreGuide/what-is.html#storage-options">Multiple storage options</a> in the <i>FSx for Lustre User Guide</i>, and <a href="https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/performance-intelligent-tiering">Working with Intelligent-Tiering</a> in the <i>Amazon FSx for OpenZFS User Guide</i>.</p>
237 pub fn storage_type(mut self, input: crate::types::StorageType) -> Self {
238 self.inner = self.inner.storage_type(input);
239 self
240 }
241 /// <p>Sets the storage class for the file system that you're creating. Valid values are <code>SSD</code>, <code>HDD</code>, and <code>INTELLIGENT_TIERING</code>.</p>
242 /// <ul>
243 /// <li>
244 /// <p>Set to <code>SSD</code> to use solid state drive storage. SSD is supported on all Windows, Lustre, ONTAP, and OpenZFS deployment types.</p></li>
245 /// <li>
246 /// <p>Set to <code>HDD</code> to use hard disk drive storage. HDD is supported on <code>SINGLE_AZ_2</code> and <code>MULTI_AZ_1</code> Windows file system deployment types, and on <code>PERSISTENT_1</code> Lustre file system deployment types.</p></li>
247 /// <li>
248 /// <p>Set to <code>INTELLIGENT_TIERING</code> to use fully elastic, intelligently-tiered storage. Intelligent-Tiering is only available for OpenZFS file systems with the Multi-AZ deployment type.</p></li>
249 /// </ul>
250 /// <p>Default value is <code>SSD</code>. For more information, see <a href="https://docs.aws.amazon.com/fsx/latest/WindowsGuide/optimize-fsx-costs.html#storage-type-options"> Storage type options</a> in the <i>FSx for Windows File Server User Guide</i>, <a href="https://docs.aws.amazon.com/fsx/latest/LustreGuide/what-is.html#storage-options">Multiple storage options</a> in the <i>FSx for Lustre User Guide</i>, and <a href="https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/performance-intelligent-tiering">Working with Intelligent-Tiering</a> in the <i>Amazon FSx for OpenZFS User Guide</i>.</p>
251 pub fn set_storage_type(mut self, input: ::std::option::Option<crate::types::StorageType>) -> Self {
252 self.inner = self.inner.set_storage_type(input);
253 self
254 }
255 /// <p>Sets the storage class for the file system that you're creating. Valid values are <code>SSD</code>, <code>HDD</code>, and <code>INTELLIGENT_TIERING</code>.</p>
256 /// <ul>
257 /// <li>
258 /// <p>Set to <code>SSD</code> to use solid state drive storage. SSD is supported on all Windows, Lustre, ONTAP, and OpenZFS deployment types.</p></li>
259 /// <li>
260 /// <p>Set to <code>HDD</code> to use hard disk drive storage. HDD is supported on <code>SINGLE_AZ_2</code> and <code>MULTI_AZ_1</code> Windows file system deployment types, and on <code>PERSISTENT_1</code> Lustre file system deployment types.</p></li>
261 /// <li>
262 /// <p>Set to <code>INTELLIGENT_TIERING</code> to use fully elastic, intelligently-tiered storage. Intelligent-Tiering is only available for OpenZFS file systems with the Multi-AZ deployment type.</p></li>
263 /// </ul>
264 /// <p>Default value is <code>SSD</code>. For more information, see <a href="https://docs.aws.amazon.com/fsx/latest/WindowsGuide/optimize-fsx-costs.html#storage-type-options"> Storage type options</a> in the <i>FSx for Windows File Server User Guide</i>, <a href="https://docs.aws.amazon.com/fsx/latest/LustreGuide/what-is.html#storage-options">Multiple storage options</a> in the <i>FSx for Lustre User Guide</i>, and <a href="https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/performance-intelligent-tiering">Working with Intelligent-Tiering</a> in the <i>Amazon FSx for OpenZFS User Guide</i>.</p>
265 pub fn get_storage_type(&self) -> &::std::option::Option<crate::types::StorageType> {
266 self.inner.get_storage_type()
267 }
268 ///
269 /// Appends an item to `SubnetIds`.
270 ///
271 /// To override the contents of this collection use [`set_subnet_ids`](Self::set_subnet_ids).
272 ///
273 /// <p>Specifies the IDs of the subnets that the file system will be accessible from. For Windows and ONTAP <code>MULTI_AZ_1</code> deployment types,provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using the <code>WindowsConfiguration > PreferredSubnetID</code> or <code>OntapConfiguration > PreferredSubnetID</code> properties. For more information about Multi-AZ file system configuration, see <a href="https://docs.aws.amazon.com/fsx/latest/WindowsGuide/high-availability-multiAZ.html"> Availability and durability: Single-AZ and Multi-AZ file systems</a> in the <i>Amazon FSx for Windows User Guide</i> and <a href="https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/high-availability-multiAZ.html"> Availability and durability</a> in the <i>Amazon FSx for ONTAP User Guide</i>.</p>
274 /// <p>For Windows <code>SINGLE_AZ_1</code> and <code>SINGLE_AZ_2</code> and all Lustre deployment types, provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.</p>
275 pub fn subnet_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
276 self.inner = self.inner.subnet_ids(input.into());
277 self
278 }
279 /// <p>Specifies the IDs of the subnets that the file system will be accessible from. For Windows and ONTAP <code>MULTI_AZ_1</code> deployment types,provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using the <code>WindowsConfiguration > PreferredSubnetID</code> or <code>OntapConfiguration > PreferredSubnetID</code> properties. For more information about Multi-AZ file system configuration, see <a href="https://docs.aws.amazon.com/fsx/latest/WindowsGuide/high-availability-multiAZ.html"> Availability and durability: Single-AZ and Multi-AZ file systems</a> in the <i>Amazon FSx for Windows User Guide</i> and <a href="https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/high-availability-multiAZ.html"> Availability and durability</a> in the <i>Amazon FSx for ONTAP User Guide</i>.</p>
280 /// <p>For Windows <code>SINGLE_AZ_1</code> and <code>SINGLE_AZ_2</code> and all Lustre deployment types, provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.</p>
281 pub fn set_subnet_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
282 self.inner = self.inner.set_subnet_ids(input);
283 self
284 }
285 /// <p>Specifies the IDs of the subnets that the file system will be accessible from. For Windows and ONTAP <code>MULTI_AZ_1</code> deployment types,provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using the <code>WindowsConfiguration > PreferredSubnetID</code> or <code>OntapConfiguration > PreferredSubnetID</code> properties. For more information about Multi-AZ file system configuration, see <a href="https://docs.aws.amazon.com/fsx/latest/WindowsGuide/high-availability-multiAZ.html"> Availability and durability: Single-AZ and Multi-AZ file systems</a> in the <i>Amazon FSx for Windows User Guide</i> and <a href="https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/high-availability-multiAZ.html"> Availability and durability</a> in the <i>Amazon FSx for ONTAP User Guide</i>.</p>
286 /// <p>For Windows <code>SINGLE_AZ_1</code> and <code>SINGLE_AZ_2</code> and all Lustre deployment types, provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.</p>
287 pub fn get_subnet_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
288 self.inner.get_subnet_ids()
289 }
290 ///
291 /// Appends an item to `SecurityGroupIds`.
292 ///
293 /// To override the contents of this collection use [`set_security_group_ids`](Self::set_security_group_ids).
294 ///
295 /// <p>A list of IDs specifying the security groups to apply to all network interfaces created for file system access. This list isn't returned in later requests to describe the file system.</p><important>
296 /// <p>You must specify a security group if you are creating a Multi-AZ FSx for ONTAP file system in a VPC subnet that has been shared with you.</p>
297 /// </important>
298 pub fn security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
299 self.inner = self.inner.security_group_ids(input.into());
300 self
301 }
302 /// <p>A list of IDs specifying the security groups to apply to all network interfaces created for file system access. This list isn't returned in later requests to describe the file system.</p><important>
303 /// <p>You must specify a security group if you are creating a Multi-AZ FSx for ONTAP file system in a VPC subnet that has been shared with you.</p>
304 /// </important>
305 pub fn set_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
306 self.inner = self.inner.set_security_group_ids(input);
307 self
308 }
309 /// <p>A list of IDs specifying the security groups to apply to all network interfaces created for file system access. This list isn't returned in later requests to describe the file system.</p><important>
310 /// <p>You must specify a security group if you are creating a Multi-AZ FSx for ONTAP file system in a VPC subnet that has been shared with you.</p>
311 /// </important>
312 pub fn get_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
313 self.inner.get_security_group_ids()
314 }
315 ///
316 /// Appends an item to `Tags`.
317 ///
318 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
319 ///
320 /// <p>The tags to apply to the file system that's being created. The key value of the <code>Name</code> tag appears in the console as the file system name.</p>
321 pub fn tags(mut self, input: crate::types::Tag) -> Self {
322 self.inner = self.inner.tags(input);
323 self
324 }
325 /// <p>The tags to apply to the file system that's being created. The key value of the <code>Name</code> tag appears in the console as the file system name.</p>
326 pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
327 self.inner = self.inner.set_tags(input);
328 self
329 }
330 /// <p>The tags to apply to the file system that's being created. The key value of the <code>Name</code> tag appears in the console as the file system name.</p>
331 pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
332 self.inner.get_tags()
333 }
334 /// <p>Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on Amazon FSx file systems, as follows:</p>
335 /// <ul>
336 /// <li>
337 /// <p>Amazon FSx for Lustre <code>PERSISTENT_1</code> and <code>PERSISTENT_2</code> deployment types only.</p>
338 /// <p><code>SCRATCH_1</code> and <code>SCRATCH_2</code> types are encrypted using the Amazon FSx service KMS key for your account.</p></li>
339 /// <li>
340 /// <p>Amazon FSx for NetApp ONTAP</p></li>
341 /// <li>
342 /// <p>Amazon FSx for OpenZFS</p></li>
343 /// <li>
344 /// <p>Amazon FSx for Windows File Server</p></li>
345 /// </ul>
346 /// <p>If a <code>KmsKeyId</code> isn't specified, the Amazon FSx-managed KMS key for your account is used. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html">Encrypt</a> in the <i>Key Management Service API Reference</i>.</p>
347 pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
348 self.inner = self.inner.kms_key_id(input.into());
349 self
350 }
351 /// <p>Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on Amazon FSx file systems, as follows:</p>
352 /// <ul>
353 /// <li>
354 /// <p>Amazon FSx for Lustre <code>PERSISTENT_1</code> and <code>PERSISTENT_2</code> deployment types only.</p>
355 /// <p><code>SCRATCH_1</code> and <code>SCRATCH_2</code> types are encrypted using the Amazon FSx service KMS key for your account.</p></li>
356 /// <li>
357 /// <p>Amazon FSx for NetApp ONTAP</p></li>
358 /// <li>
359 /// <p>Amazon FSx for OpenZFS</p></li>
360 /// <li>
361 /// <p>Amazon FSx for Windows File Server</p></li>
362 /// </ul>
363 /// <p>If a <code>KmsKeyId</code> isn't specified, the Amazon FSx-managed KMS key for your account is used. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html">Encrypt</a> in the <i>Key Management Service API Reference</i>.</p>
364 pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
365 self.inner = self.inner.set_kms_key_id(input);
366 self
367 }
368 /// <p>Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on Amazon FSx file systems, as follows:</p>
369 /// <ul>
370 /// <li>
371 /// <p>Amazon FSx for Lustre <code>PERSISTENT_1</code> and <code>PERSISTENT_2</code> deployment types only.</p>
372 /// <p><code>SCRATCH_1</code> and <code>SCRATCH_2</code> types are encrypted using the Amazon FSx service KMS key for your account.</p></li>
373 /// <li>
374 /// <p>Amazon FSx for NetApp ONTAP</p></li>
375 /// <li>
376 /// <p>Amazon FSx for OpenZFS</p></li>
377 /// <li>
378 /// <p>Amazon FSx for Windows File Server</p></li>
379 /// </ul>
380 /// <p>If a <code>KmsKeyId</code> isn't specified, the Amazon FSx-managed KMS key for your account is used. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html">Encrypt</a> in the <i>Key Management Service API Reference</i>.</p>
381 pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
382 self.inner.get_kms_key_id()
383 }
384 /// <p>The Microsoft Windows configuration for the file system that's being created.</p>
385 pub fn windows_configuration(mut self, input: crate::types::CreateFileSystemWindowsConfiguration) -> Self {
386 self.inner = self.inner.windows_configuration(input);
387 self
388 }
389 /// <p>The Microsoft Windows configuration for the file system that's being created.</p>
390 pub fn set_windows_configuration(mut self, input: ::std::option::Option<crate::types::CreateFileSystemWindowsConfiguration>) -> Self {
391 self.inner = self.inner.set_windows_configuration(input);
392 self
393 }
394 /// <p>The Microsoft Windows configuration for the file system that's being created.</p>
395 pub fn get_windows_configuration(&self) -> &::std::option::Option<crate::types::CreateFileSystemWindowsConfiguration> {
396 self.inner.get_windows_configuration()
397 }
398 /// <p>The Lustre configuration for the file system being created.</p><note>
399 /// <p>The following parameters are not supported for file systems with a data repository association created with .</p>
400 /// <ul>
401 /// <li>
402 /// <p><code>AutoImportPolicy</code></p></li>
403 /// <li>
404 /// <p><code>ExportPath</code></p></li>
405 /// <li>
406 /// <p><code>ImportedFileChunkSize</code></p></li>
407 /// <li>
408 /// <p><code>ImportPath</code></p></li>
409 /// </ul>
410 /// </note>
411 pub fn lustre_configuration(mut self, input: crate::types::CreateFileSystemLustreConfiguration) -> Self {
412 self.inner = self.inner.lustre_configuration(input);
413 self
414 }
415 /// <p>The Lustre configuration for the file system being created.</p><note>
416 /// <p>The following parameters are not supported for file systems with a data repository association created with .</p>
417 /// <ul>
418 /// <li>
419 /// <p><code>AutoImportPolicy</code></p></li>
420 /// <li>
421 /// <p><code>ExportPath</code></p></li>
422 /// <li>
423 /// <p><code>ImportedFileChunkSize</code></p></li>
424 /// <li>
425 /// <p><code>ImportPath</code></p></li>
426 /// </ul>
427 /// </note>
428 pub fn set_lustre_configuration(mut self, input: ::std::option::Option<crate::types::CreateFileSystemLustreConfiguration>) -> Self {
429 self.inner = self.inner.set_lustre_configuration(input);
430 self
431 }
432 /// <p>The Lustre configuration for the file system being created.</p><note>
433 /// <p>The following parameters are not supported for file systems with a data repository association created with .</p>
434 /// <ul>
435 /// <li>
436 /// <p><code>AutoImportPolicy</code></p></li>
437 /// <li>
438 /// <p><code>ExportPath</code></p></li>
439 /// <li>
440 /// <p><code>ImportedFileChunkSize</code></p></li>
441 /// <li>
442 /// <p><code>ImportPath</code></p></li>
443 /// </ul>
444 /// </note>
445 pub fn get_lustre_configuration(&self) -> &::std::option::Option<crate::types::CreateFileSystemLustreConfiguration> {
446 self.inner.get_lustre_configuration()
447 }
448 /// <p>The ONTAP configuration properties of the FSx for ONTAP file system that you are creating.</p>
449 pub fn ontap_configuration(mut self, input: crate::types::CreateFileSystemOntapConfiguration) -> Self {
450 self.inner = self.inner.ontap_configuration(input);
451 self
452 }
453 /// <p>The ONTAP configuration properties of the FSx for ONTAP file system that you are creating.</p>
454 pub fn set_ontap_configuration(mut self, input: ::std::option::Option<crate::types::CreateFileSystemOntapConfiguration>) -> Self {
455 self.inner = self.inner.set_ontap_configuration(input);
456 self
457 }
458 /// <p>The ONTAP configuration properties of the FSx for ONTAP file system that you are creating.</p>
459 pub fn get_ontap_configuration(&self) -> &::std::option::Option<crate::types::CreateFileSystemOntapConfiguration> {
460 self.inner.get_ontap_configuration()
461 }
462 /// <p>For FSx for Lustre file systems, sets the Lustre version for the file system that you're creating. Valid values are <code>2.10</code>, <code>2.12</code>, and <code>2.15</code>:</p>
463 /// <ul>
464 /// <li>
465 /// <p><code>2.10</code> is supported by the Scratch and Persistent_1 Lustre deployment types.</p></li>
466 /// <li>
467 /// <p><code>2.12</code> is supported by all Lustre deployment types, except for <code>PERSISTENT_2</code> with a metadata configuration mode.</p></li>
468 /// <li>
469 /// <p><code>2.15</code> is supported by all Lustre deployment types and is recommended for all new file systems.</p></li>
470 /// </ul>
471 /// <p>Default value is <code>2.10</code>, except for the following deployments:</p>
472 /// <ul>
473 /// <li>
474 /// <p>Default value is <code>2.12</code> when <code>DeploymentType</code> is set to <code>PERSISTENT_2</code> without a metadata configuration mode.</p></li>
475 /// <li>
476 /// <p>Default value is <code>2.15</code> when <code>DeploymentType</code> is set to <code>PERSISTENT_2</code> with a metadata configuration mode.</p></li>
477 /// </ul>
478 pub fn file_system_type_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
479 self.inner = self.inner.file_system_type_version(input.into());
480 self
481 }
482 /// <p>For FSx for Lustre file systems, sets the Lustre version for the file system that you're creating. Valid values are <code>2.10</code>, <code>2.12</code>, and <code>2.15</code>:</p>
483 /// <ul>
484 /// <li>
485 /// <p><code>2.10</code> is supported by the Scratch and Persistent_1 Lustre deployment types.</p></li>
486 /// <li>
487 /// <p><code>2.12</code> is supported by all Lustre deployment types, except for <code>PERSISTENT_2</code> with a metadata configuration mode.</p></li>
488 /// <li>
489 /// <p><code>2.15</code> is supported by all Lustre deployment types and is recommended for all new file systems.</p></li>
490 /// </ul>
491 /// <p>Default value is <code>2.10</code>, except for the following deployments:</p>
492 /// <ul>
493 /// <li>
494 /// <p>Default value is <code>2.12</code> when <code>DeploymentType</code> is set to <code>PERSISTENT_2</code> without a metadata configuration mode.</p></li>
495 /// <li>
496 /// <p>Default value is <code>2.15</code> when <code>DeploymentType</code> is set to <code>PERSISTENT_2</code> with a metadata configuration mode.</p></li>
497 /// </ul>
498 pub fn set_file_system_type_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
499 self.inner = self.inner.set_file_system_type_version(input);
500 self
501 }
502 /// <p>For FSx for Lustre file systems, sets the Lustre version for the file system that you're creating. Valid values are <code>2.10</code>, <code>2.12</code>, and <code>2.15</code>:</p>
503 /// <ul>
504 /// <li>
505 /// <p><code>2.10</code> is supported by the Scratch and Persistent_1 Lustre deployment types.</p></li>
506 /// <li>
507 /// <p><code>2.12</code> is supported by all Lustre deployment types, except for <code>PERSISTENT_2</code> with a metadata configuration mode.</p></li>
508 /// <li>
509 /// <p><code>2.15</code> is supported by all Lustre deployment types and is recommended for all new file systems.</p></li>
510 /// </ul>
511 /// <p>Default value is <code>2.10</code>, except for the following deployments:</p>
512 /// <ul>
513 /// <li>
514 /// <p>Default value is <code>2.12</code> when <code>DeploymentType</code> is set to <code>PERSISTENT_2</code> without a metadata configuration mode.</p></li>
515 /// <li>
516 /// <p>Default value is <code>2.15</code> when <code>DeploymentType</code> is set to <code>PERSISTENT_2</code> with a metadata configuration mode.</p></li>
517 /// </ul>
518 pub fn get_file_system_type_version(&self) -> &::std::option::Option<::std::string::String> {
519 self.inner.get_file_system_type_version()
520 }
521 /// <p>The OpenZFS configuration for the file system that's being created.</p>
522 pub fn open_zfs_configuration(mut self, input: crate::types::CreateFileSystemOpenZfsConfiguration) -> Self {
523 self.inner = self.inner.open_zfs_configuration(input);
524 self
525 }
526 /// <p>The OpenZFS configuration for the file system that's being created.</p>
527 pub fn set_open_zfs_configuration(mut self, input: ::std::option::Option<crate::types::CreateFileSystemOpenZfsConfiguration>) -> Self {
528 self.inner = self.inner.set_open_zfs_configuration(input);
529 self
530 }
531 /// <p>The OpenZFS configuration for the file system that's being created.</p>
532 pub fn get_open_zfs_configuration(&self) -> &::std::option::Option<crate::types::CreateFileSystemOpenZfsConfiguration> {
533 self.inner.get_open_zfs_configuration()
534 }
535}