#[non_exhaustive]pub struct CreateFileSystemInputBuilder { /* private fields */ }
Expand description
A builder for CreateFileSystemInput
.
Implementations§
source§impl CreateFileSystemInputBuilder
impl CreateFileSystemInputBuilder
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
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.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
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.
sourcepub fn file_system_type(self, input: FileSystemType) -> Self
pub fn file_system_type(self, input: FileSystemType) -> Self
The type of Amazon FSx file system to create. Valid values are WINDOWS
, LUSTRE
, ONTAP
, and OPENZFS
.
sourcepub fn set_file_system_type(self, input: Option<FileSystemType>) -> Self
pub fn set_file_system_type(self, input: Option<FileSystemType>) -> Self
The type of Amazon FSx file system to create. Valid values are WINDOWS
, LUSTRE
, ONTAP
, and OPENZFS
.
sourcepub fn get_file_system_type(&self) -> &Option<FileSystemType>
pub fn get_file_system_type(&self) -> &Option<FileSystemType>
The type of Amazon FSx file system to create. Valid values are WINDOWS
, LUSTRE
, ONTAP
, and OPENZFS
.
sourcepub fn storage_capacity(self, input: i32) -> Self
pub fn storage_capacity(self, input: i32) -> Self
Sets the storage capacity of the file system that you're creating, in gibibytes (GiB).
FSx for Lustre file systems - The amount of storage capacity that you can configure depends on the value that you set for StorageType
and the Lustre DeploymentType
, as follows:
-
For
SCRATCH_2
,PERSISTENT_2
, andPERSISTENT_1
deployment types using SSD storage type, the valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB. -
For
PERSISTENT_1
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. -
For
SCRATCH_1
deployment type, valid values are 1200 GiB, 2400 GiB, and increments of 3600 GiB.
FSx for ONTAP file systems - The amount of storage capacity that you can configure depends on the value of the HAPairs
property. The minimum value is calculated as 1,024 * HAPairs
and the maximum is calculated as 524,288 * HAPairs
.
FSx for OpenZFS file systems - The amount of storage capacity that you can configure is from 64 GiB up to 524,288 GiB (512 TiB).
FSx for Windows File Server file systems - The amount of storage capacity that you can configure depends on the value that you set for StorageType
as follows:
-
For SSD storage, valid values are 32 GiB-65,536 GiB (64 TiB).
-
For HDD storage, valid values are 2000 GiB-65,536 GiB (64 TiB).
sourcepub fn set_storage_capacity(self, input: Option<i32>) -> Self
pub fn set_storage_capacity(self, input: Option<i32>) -> Self
Sets the storage capacity of the file system that you're creating, in gibibytes (GiB).
FSx for Lustre file systems - The amount of storage capacity that you can configure depends on the value that you set for StorageType
and the Lustre DeploymentType
, as follows:
-
For
SCRATCH_2
,PERSISTENT_2
, andPERSISTENT_1
deployment types using SSD storage type, the valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB. -
For
PERSISTENT_1
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. -
For
SCRATCH_1
deployment type, valid values are 1200 GiB, 2400 GiB, and increments of 3600 GiB.
FSx for ONTAP file systems - The amount of storage capacity that you can configure depends on the value of the HAPairs
property. The minimum value is calculated as 1,024 * HAPairs
and the maximum is calculated as 524,288 * HAPairs
.
FSx for OpenZFS file systems - The amount of storage capacity that you can configure is from 64 GiB up to 524,288 GiB (512 TiB).
FSx for Windows File Server file systems - The amount of storage capacity that you can configure depends on the value that you set for StorageType
as follows:
-
For SSD storage, valid values are 32 GiB-65,536 GiB (64 TiB).
-
For HDD storage, valid values are 2000 GiB-65,536 GiB (64 TiB).
sourcepub fn get_storage_capacity(&self) -> &Option<i32>
pub fn get_storage_capacity(&self) -> &Option<i32>
Sets the storage capacity of the file system that you're creating, in gibibytes (GiB).
FSx for Lustre file systems - The amount of storage capacity that you can configure depends on the value that you set for StorageType
and the Lustre DeploymentType
, as follows:
-
For
SCRATCH_2
,PERSISTENT_2
, andPERSISTENT_1
deployment types using SSD storage type, the valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB. -
For
PERSISTENT_1
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. -
For
SCRATCH_1
deployment type, valid values are 1200 GiB, 2400 GiB, and increments of 3600 GiB.
FSx for ONTAP file systems - The amount of storage capacity that you can configure depends on the value of the HAPairs
property. The minimum value is calculated as 1,024 * HAPairs
and the maximum is calculated as 524,288 * HAPairs
.
FSx for OpenZFS file systems - The amount of storage capacity that you can configure is from 64 GiB up to 524,288 GiB (512 TiB).
FSx for Windows File Server file systems - The amount of storage capacity that you can configure depends on the value that you set for StorageType
as follows:
-
For SSD storage, valid values are 32 GiB-65,536 GiB (64 TiB).
-
For HDD storage, valid values are 2000 GiB-65,536 GiB (64 TiB).
sourcepub fn storage_type(self, input: StorageType) -> Self
pub fn storage_type(self, input: StorageType) -> Self
Sets the storage type for the file system that you're creating. Valid values are SSD
and HDD
.
-
Set to
SSD
to use solid state drive storage. SSD is supported on all Windows, Lustre, ONTAP, and OpenZFS deployment types. -
Set to
HDD
to use hard disk drive storage. HDD is supported onSINGLE_AZ_2
andMULTI_AZ_1
Windows file system deployment types, and onPERSISTENT_1
Lustre file system deployment types.
Default value is SSD
. For more information, see Storage type options in the FSx for Windows File Server User Guide and Multiple storage options in the FSx for Lustre User Guide.
sourcepub fn set_storage_type(self, input: Option<StorageType>) -> Self
pub fn set_storage_type(self, input: Option<StorageType>) -> Self
Sets the storage type for the file system that you're creating. Valid values are SSD
and HDD
.
-
Set to
SSD
to use solid state drive storage. SSD is supported on all Windows, Lustre, ONTAP, and OpenZFS deployment types. -
Set to
HDD
to use hard disk drive storage. HDD is supported onSINGLE_AZ_2
andMULTI_AZ_1
Windows file system deployment types, and onPERSISTENT_1
Lustre file system deployment types.
Default value is SSD
. For more information, see Storage type options in the FSx for Windows File Server User Guide and Multiple storage options in the FSx for Lustre User Guide.
sourcepub fn get_storage_type(&self) -> &Option<StorageType>
pub fn get_storage_type(&self) -> &Option<StorageType>
Sets the storage type for the file system that you're creating. Valid values are SSD
and HDD
.
-
Set to
SSD
to use solid state drive storage. SSD is supported on all Windows, Lustre, ONTAP, and OpenZFS deployment types. -
Set to
HDD
to use hard disk drive storage. HDD is supported onSINGLE_AZ_2
andMULTI_AZ_1
Windows file system deployment types, and onPERSISTENT_1
Lustre file system deployment types.
Default value is SSD
. For more information, see Storage type options in the FSx for Windows File Server User Guide and Multiple storage options in the FSx for Lustre User Guide.
sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids
.
To override the contents of this collection use set_subnet_ids
.
Specifies the IDs of the subnets that the file system will be accessible from. For Windows and ONTAP MULTI_AZ_1
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 WindowsConfiguration > PreferredSubnetID
or OntapConfiguration > PreferredSubnetID
properties. For more information about Multi-AZ file system configuration, see Availability and durability: Single-AZ and Multi-AZ file systems in the Amazon FSx for Windows User Guide and Availability and durability in the Amazon FSx for ONTAP User Guide.
For Windows SINGLE_AZ_1
and SINGLE_AZ_2
and all Lustre deployment types, provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.
sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
Specifies the IDs of the subnets that the file system will be accessible from. For Windows and ONTAP MULTI_AZ_1
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 WindowsConfiguration > PreferredSubnetID
or OntapConfiguration > PreferredSubnetID
properties. For more information about Multi-AZ file system configuration, see Availability and durability: Single-AZ and Multi-AZ file systems in the Amazon FSx for Windows User Guide and Availability and durability in the Amazon FSx for ONTAP User Guide.
For Windows SINGLE_AZ_1
and SINGLE_AZ_2
and all Lustre deployment types, provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.
sourcepub fn get_subnet_ids(&self) -> &Option<Vec<String>>
pub fn get_subnet_ids(&self) -> &Option<Vec<String>>
Specifies the IDs of the subnets that the file system will be accessible from. For Windows and ONTAP MULTI_AZ_1
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 WindowsConfiguration > PreferredSubnetID
or OntapConfiguration > PreferredSubnetID
properties. For more information about Multi-AZ file system configuration, see Availability and durability: Single-AZ and Multi-AZ file systems in the Amazon FSx for Windows User Guide and Availability and durability in the Amazon FSx for ONTAP User Guide.
For Windows SINGLE_AZ_1
and SINGLE_AZ_2
and all Lustre deployment types, provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.
sourcepub fn security_group_ids(self, input: impl Into<String>) -> Self
pub fn security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to security_group_ids
.
To override the contents of this collection use set_security_group_ids
.
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.
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.
sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
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.
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.
sourcepub fn get_security_group_ids(&self) -> &Option<Vec<String>>
pub fn get_security_group_ids(&self) -> &Option<Vec<String>>
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.
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.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags to apply to the file system that's being created. The key value of the Name
tag appears in the console as the file system name.
The tags to apply to the file system that's being created. The key value of the Name
tag appears in the console as the file system name.
The tags to apply to the file system that's being created. The key value of the Name
tag appears in the console as the file system name.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on Amazon FSx file systems, as follows:
-
Amazon FSx for Lustre
PERSISTENT_1
andPERSISTENT_2
deployment types only.SCRATCH_1
andSCRATCH_2
types are encrypted using the Amazon FSx service KMS key for your account. -
Amazon FSx for NetApp ONTAP
-
Amazon FSx for OpenZFS
-
Amazon FSx for Windows File Server
If a KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is used. For more information, see Encrypt in the Key Management Service API Reference.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on Amazon FSx file systems, as follows:
-
Amazon FSx for Lustre
PERSISTENT_1
andPERSISTENT_2
deployment types only.SCRATCH_1
andSCRATCH_2
types are encrypted using the Amazon FSx service KMS key for your account. -
Amazon FSx for NetApp ONTAP
-
Amazon FSx for OpenZFS
-
Amazon FSx for Windows File Server
If a KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is used. For more information, see Encrypt in the Key Management Service API Reference.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on Amazon FSx file systems, as follows:
-
Amazon FSx for Lustre
PERSISTENT_1
andPERSISTENT_2
deployment types only.SCRATCH_1
andSCRATCH_2
types are encrypted using the Amazon FSx service KMS key for your account. -
Amazon FSx for NetApp ONTAP
-
Amazon FSx for OpenZFS
-
Amazon FSx for Windows File Server
If a KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is used. For more information, see Encrypt in the Key Management Service API Reference.
sourcepub fn windows_configuration(
self,
input: CreateFileSystemWindowsConfiguration,
) -> Self
pub fn windows_configuration( self, input: CreateFileSystemWindowsConfiguration, ) -> Self
The Microsoft Windows configuration for the file system that's being created.
sourcepub fn set_windows_configuration(
self,
input: Option<CreateFileSystemWindowsConfiguration>,
) -> Self
pub fn set_windows_configuration( self, input: Option<CreateFileSystemWindowsConfiguration>, ) -> Self
The Microsoft Windows configuration for the file system that's being created.
sourcepub fn get_windows_configuration(
&self,
) -> &Option<CreateFileSystemWindowsConfiguration>
pub fn get_windows_configuration( &self, ) -> &Option<CreateFileSystemWindowsConfiguration>
The Microsoft Windows configuration for the file system that's being created.
sourcepub fn lustre_configuration(
self,
input: CreateFileSystemLustreConfiguration,
) -> Self
pub fn lustre_configuration( self, input: CreateFileSystemLustreConfiguration, ) -> Self
The Lustre configuration for the file system being created.
The following parameters are not supported for file systems with a data repository association created with .
-
AutoImportPolicy
-
ExportPath
-
ImportedFileChunkSize
-
ImportPath
sourcepub fn set_lustre_configuration(
self,
input: Option<CreateFileSystemLustreConfiguration>,
) -> Self
pub fn set_lustre_configuration( self, input: Option<CreateFileSystemLustreConfiguration>, ) -> Self
The Lustre configuration for the file system being created.
The following parameters are not supported for file systems with a data repository association created with .
-
AutoImportPolicy
-
ExportPath
-
ImportedFileChunkSize
-
ImportPath
sourcepub fn get_lustre_configuration(
&self,
) -> &Option<CreateFileSystemLustreConfiguration>
pub fn get_lustre_configuration( &self, ) -> &Option<CreateFileSystemLustreConfiguration>
The Lustre configuration for the file system being created.
The following parameters are not supported for file systems with a data repository association created with .
-
AutoImportPolicy
-
ExportPath
-
ImportedFileChunkSize
-
ImportPath
sourcepub fn ontap_configuration(
self,
input: CreateFileSystemOntapConfiguration,
) -> Self
pub fn ontap_configuration( self, input: CreateFileSystemOntapConfiguration, ) -> Self
The ONTAP configuration properties of the FSx for ONTAP file system that you are creating.
sourcepub fn set_ontap_configuration(
self,
input: Option<CreateFileSystemOntapConfiguration>,
) -> Self
pub fn set_ontap_configuration( self, input: Option<CreateFileSystemOntapConfiguration>, ) -> Self
The ONTAP configuration properties of the FSx for ONTAP file system that you are creating.
sourcepub fn get_ontap_configuration(
&self,
) -> &Option<CreateFileSystemOntapConfiguration>
pub fn get_ontap_configuration( &self, ) -> &Option<CreateFileSystemOntapConfiguration>
The ONTAP configuration properties of the FSx for ONTAP file system that you are creating.
sourcepub fn file_system_type_version(self, input: impl Into<String>) -> Self
pub fn file_system_type_version(self, input: impl Into<String>) -> Self
For FSx for Lustre file systems, sets the Lustre version for the file system that you're creating. Valid values are 2.10
, 2.12
, and 2.15
:
-
2.10
is supported by the Scratch and Persistent_1 Lustre deployment types. -
2.12
is supported by all Lustre deployment types, except forPERSISTENT_2
with a metadata configuration mode. -
2.15
is supported by all Lustre deployment types and is recommended for all new file systems.
Default value is 2.10
, except for the following deployments:
-
Default value is
2.12
whenDeploymentType
is set toPERSISTENT_2
without a metadata configuration mode. -
Default value is
2.15
whenDeploymentType
is set toPERSISTENT_2
with a metadata configuration mode.
sourcepub fn set_file_system_type_version(self, input: Option<String>) -> Self
pub fn set_file_system_type_version(self, input: Option<String>) -> Self
For FSx for Lustre file systems, sets the Lustre version for the file system that you're creating. Valid values are 2.10
, 2.12
, and 2.15
:
-
2.10
is supported by the Scratch and Persistent_1 Lustre deployment types. -
2.12
is supported by all Lustre deployment types, except forPERSISTENT_2
with a metadata configuration mode. -
2.15
is supported by all Lustre deployment types and is recommended for all new file systems.
Default value is 2.10
, except for the following deployments:
-
Default value is
2.12
whenDeploymentType
is set toPERSISTENT_2
without a metadata configuration mode. -
Default value is
2.15
whenDeploymentType
is set toPERSISTENT_2
with a metadata configuration mode.
sourcepub fn get_file_system_type_version(&self) -> &Option<String>
pub fn get_file_system_type_version(&self) -> &Option<String>
For FSx for Lustre file systems, sets the Lustre version for the file system that you're creating. Valid values are 2.10
, 2.12
, and 2.15
:
-
2.10
is supported by the Scratch and Persistent_1 Lustre deployment types. -
2.12
is supported by all Lustre deployment types, except forPERSISTENT_2
with a metadata configuration mode. -
2.15
is supported by all Lustre deployment types and is recommended for all new file systems.
Default value is 2.10
, except for the following deployments:
-
Default value is
2.12
whenDeploymentType
is set toPERSISTENT_2
without a metadata configuration mode. -
Default value is
2.15
whenDeploymentType
is set toPERSISTENT_2
with a metadata configuration mode.
sourcepub fn open_zfs_configuration(
self,
input: CreateFileSystemOpenZfsConfiguration,
) -> Self
pub fn open_zfs_configuration( self, input: CreateFileSystemOpenZfsConfiguration, ) -> Self
The OpenZFS configuration for the file system that's being created.
sourcepub fn set_open_zfs_configuration(
self,
input: Option<CreateFileSystemOpenZfsConfiguration>,
) -> Self
pub fn set_open_zfs_configuration( self, input: Option<CreateFileSystemOpenZfsConfiguration>, ) -> Self
The OpenZFS configuration for the file system that's being created.
sourcepub fn get_open_zfs_configuration(
&self,
) -> &Option<CreateFileSystemOpenZfsConfiguration>
pub fn get_open_zfs_configuration( &self, ) -> &Option<CreateFileSystemOpenZfsConfiguration>
The OpenZFS configuration for the file system that's being created.
sourcepub fn build(self) -> Result<CreateFileSystemInput, BuildError>
pub fn build(self) -> Result<CreateFileSystemInput, BuildError>
Consumes the builder and constructs a CreateFileSystemInput
.
source§impl CreateFileSystemInputBuilder
impl CreateFileSystemInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateFileSystemOutput, SdkError<CreateFileSystemError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateFileSystemOutput, SdkError<CreateFileSystemError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateFileSystemInputBuilder
impl Clone for CreateFileSystemInputBuilder
source§fn clone(&self) -> CreateFileSystemInputBuilder
fn clone(&self) -> CreateFileSystemInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateFileSystemInputBuilder
impl Debug for CreateFileSystemInputBuilder
source§impl Default for CreateFileSystemInputBuilder
impl Default for CreateFileSystemInputBuilder
source§fn default() -> CreateFileSystemInputBuilder
fn default() -> CreateFileSystemInputBuilder
source§impl PartialEq for CreateFileSystemInputBuilder
impl PartialEq for CreateFileSystemInputBuilder
source§fn eq(&self, other: &CreateFileSystemInputBuilder) -> bool
fn eq(&self, other: &CreateFileSystemInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateFileSystemInputBuilder
Auto Trait Implementations§
impl Freeze for CreateFileSystemInputBuilder
impl RefUnwindSafe for CreateFileSystemInputBuilder
impl Send for CreateFileSystemInputBuilder
impl Sync for CreateFileSystemInputBuilder
impl Unpin for CreateFileSystemInputBuilder
impl UnwindSafe for CreateFileSystemInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more