Struct aws_sdk_fsx::client::fluent_builders::CreateFileSystem [−][src]
pub struct CreateFileSystem<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to CreateFileSystem.
Creates a new, empty Amazon FSx file system.
If a file system with the specified client request token exists and the parameters
match, CreateFileSystem returns the description of the existing file
system. If a file system specified client request token exists and the parameters
don't match, this call returns IncompatibleParameterError. If a file
system with the specified client request token doesn't exist,
CreateFileSystem does the following:
-
Creates a new, empty Amazon FSx file system with an assigned ID, and an initial lifecycle state of
CREATING. -
Returns the description of the file system.
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 CreateFileSystem 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.
The CreateFileSystem call returns while the file system's
lifecycle state is still CREATING. You can check the file-system
creation status by calling the DescribeFileSystems operation,
which returns the file system state along with other information.
Implementations
impl<C, M, R> CreateFileSystem<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateFileSystem<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateFileSystemOutput, SdkError<CreateFileSystemError>> where
R::Policy: SmithyRetryPolicy<CreateFileSystemInputOperationOutputAlias, CreateFileSystemOutput, CreateFileSystemError, CreateFileSystemInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateFileSystemOutput, SdkError<CreateFileSystemError>> where
R::Policy: SmithyRetryPolicy<CreateFileSystemInputOperationOutputAlias, CreateFileSystemOutput, CreateFileSystemError, CreateFileSystemInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
A string of up to 64 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.
A string of up to 64 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.
The type of Amazon FSx file system to create. Valid values are WINDOWS,
LUSTRE, and ONTAP.
The type of Amazon FSx file system to create. Valid values are WINDOWS,
LUSTRE, and ONTAP.
Sets the storage capacity of the file system that you're creating.
For Lustre file systems:
-
For
SCRATCH_2andPERSISTENT_1 SSDdeployment types, valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB. -
For
PERSISTENT HDDfile 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_1deployment type, valid values are 1200 GiB, 2400 GiB, and increments of 3600 GiB.
For Windows file systems:
-
If
StorageType=SSD, valid values are 32 GiB - 65,536 GiB (64 TiB). -
If
StorageType=HDD, valid values are 2000 GiB - 65,536 GiB (64 TiB).
For ONTAP file systems:
-
Valid values are 1024 GiB - 196,608 GiB (192 TiB).
Sets the storage capacity of the file system that you're creating.
For Lustre file systems:
-
For
SCRATCH_2andPERSISTENT_1 SSDdeployment types, valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB. -
For
PERSISTENT HDDfile 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_1deployment type, valid values are 1200 GiB, 2400 GiB, and increments of 3600 GiB.
For Windows file systems:
-
If
StorageType=SSD, valid values are 32 GiB - 65,536 GiB (64 TiB). -
If
StorageType=HDD, valid values are 2000 GiB - 65,536 GiB (64 TiB).
For ONTAP file systems:
-
Valid values are 1024 GiB - 196,608 GiB (192 TiB).
Sets the storage type for the file system you're creating.
Valid values are SSD and HDD.
-
Set to
SSDto use solid state drive storage. SSD is supported on all Windows, Lustre, and ONTAP deployment types. -
Set to
HDDto use hard disk drive storage. HDD is supported onSINGLE_AZ_2andMULTI_AZ_1Windows file system deployment types, and onPERSISTENTLustre file system deployment types.
Default value is SSD. For more information, see
Storage Type Options in the Amazon FSx for Windows User Guide and
Multiple Storage Options
in the Amazon FSx for Lustre User Guide.
Sets the storage type for the file system you're creating.
Valid values are SSD and HDD.
-
Set to
SSDto use solid state drive storage. SSD is supported on all Windows, Lustre, and ONTAP deployment types. -
Set to
HDDto use hard disk drive storage. HDD is supported onSINGLE_AZ_2andMULTI_AZ_1Windows file system deployment types, and onPERSISTENTLustre file system deployment types.
Default value is SSD. For more information, see
Storage Type Options in the Amazon FSx for Windows User Guide and
Multiple Storage Options
in the Amazon FSx for Lustre User Guide.
Appends an item to SubnetIds.
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 file system 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,
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 file system deployment types and Lustre file systems, provide exactly one subnet ID.
The file server is launched in that subnet's Availability Zone.
Specifies the IDs of the subnets that the file system will be accessible from. For Windows
and ONTAP MULTI_AZ_1 file system 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,
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 file system deployment types and Lustre file systems, provide exactly one subnet ID.
The file server is launched in that subnet's Availability Zone.
Appends an item to SecurityGroupIds.
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.
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.
Appends an item to Tags.
To override the contents of this collection use set_tags.
The tags to apply to the file system 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 being created. The key value of
the Name tag appears in the console as the file system name.
The ID of the Key Management Service (KMS) key used to encrypt the file system's data
for Amazon FSx for Windows File Server file systems, Amazon FSx for NetApp ONTAP file systems, and
Amazon FSx for Lustre PERSISTENT_1 file systems at rest. If not specified, the Amazon FSx
managed key is used. The Amazon FSx for Lustre SCRATCH_1 and SCRATCH_2 file systems
are always encrypted at rest using Amazon FSx managed keys. For more information, see Encrypt
in the Key Management Service API Reference.
The ID of the Key Management Service (KMS) key used to encrypt the file system's data
for Amazon FSx for Windows File Server file systems, Amazon FSx for NetApp ONTAP file systems, and
Amazon FSx for Lustre PERSISTENT_1 file systems at rest. If not specified, the Amazon FSx
managed key is used. The Amazon FSx for Lustre SCRATCH_1 and SCRATCH_2 file systems
are always encrypted at rest using Amazon FSx managed keys. For more information, see Encrypt
in the Key Management Service API Reference.
The Microsoft Windows configuration for the file system being created.
pub 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 being created.
The Lustre configuration for the file system being created.
pub 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 ONTAP configuration properties of the FSx for NetApp ONTAP file system that you are creating.
pub 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 NetApp ONTAP file system that you are creating.
Sets the version of the Amazon FSx for Lustre file system you're creating.
Valid values are 2.10 and 2.12.
-
Set the value to
2.10to create a Lustre 2.10 file system. -
Set the value to
2.12to create a Lustre 2.12 file system.
Default value is 2.10.
Sets the version of the Amazon FSx for Lustre file system you're creating.
Valid values are 2.10 and 2.12.
-
Set the value to
2.10to create a Lustre 2.10 file system. -
Set the value to
2.12to create a Lustre 2.12 file system.
Default value is 2.10.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateFileSystem<C, M, R>
impl<C, M, R> Send for CreateFileSystem<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateFileSystem<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateFileSystem<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateFileSystem<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more