Struct aws_sdk_fsx::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for Amazon FSx
Client for invoking operations on Amazon FSx. Each operation on Amazon FSx is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_fsx::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_fsx::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_fsx::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn associate_file_system_aliases(&self) -> AssociateFileSystemAliases
pub fn associate_file_system_aliases(&self) -> AssociateFileSystemAliases
Constructs a fluent builder for the AssociateFileSystemAliases
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
file_system_id(impl Into<String>)
/set_file_system_id(Option<String>)
:Specifies the file system with which you want to associate one or more DNS aliases.
aliases(Vec<String>)
/set_aliases(Option<Vec<String>>)
:An array of one or more DNS alias names to associate with the file system. The alias name has to comply with the following formatting requirements:
-
Formatted as a fully-qualified domain name (FQDN),
hostname.domain
, for example,accounting.corp.example.com
. -
Can contain alphanumeric characters and the hyphen (-).
-
Cannot start or end with a hyphen.
-
Can start with a numeric.
For DNS alias names, Amazon FSx stores alphabetic characters as lowercase letters (a-z), regardless of how you specify them: as uppercase letters, lowercase letters, or the corresponding letters in escape codes.
-
- On success, responds with
AssociateFileSystemAliasesOutput
with field(s):aliases(Option<Vec<Alias>>)
:An array of the DNS aliases that Amazon FSx is associating with the file system.
- On failure, responds with
SdkError<AssociateFileSystemAliasesError>
sourcepub fn cancel_data_repository_task(&self) -> CancelDataRepositoryTask
pub fn cancel_data_repository_task(&self) -> CancelDataRepositoryTask
Constructs a fluent builder for the CancelDataRepositoryTask
operation.
- The fluent builder is configurable:
task_id(impl Into<String>)
/set_task_id(Option<String>)
:Specifies the data repository task to cancel.
- On success, responds with
CancelDataRepositoryTaskOutput
with field(s):lifecycle(Option<DataRepositoryTaskLifecycle>)
:The lifecycle status of the data repository task, as follows:
-
PENDING
- Amazon FSx has not started the task. -
EXECUTING
- Amazon FSx is processing the task. -
FAILED
- Amazon FSx was not able to complete the task. For example, there may be files the task failed to process. TheDataRepositoryTaskFailureDetails
property provides more information about task failures. -
SUCCEEDED
- FSx completed the task successfully. -
CANCELED
- Amazon FSx canceled the task and it did not complete. -
CANCELING
- FSx is in process of canceling the task.
-
task_id(Option<String>)
:The ID of the task being canceled.
- On failure, responds with
SdkError<CancelDataRepositoryTaskError>
sourcepub fn copy_backup(&self) -> CopyBackup
pub fn copy_backup(&self) -> CopyBackup
Constructs a fluent builder for the CopyBackup
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
source_backup_id(impl Into<String>)
/set_source_backup_id(Option<String>)
:The ID of the source backup. Specifies the ID of the backup that’s being copied.
source_region(impl Into<String>)
/set_source_region(Option<String>)
:The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If you don’t specify a Region,
SourceRegion
defaults to the Region where the request is sent from (in-Region copy).kms_key_id(impl Into<String>)
/set_kms_key_id(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.-
copy_tags(bool)
/set_copy_tags(Option<bool>)
:A Boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value defaults to
false
.If you set
CopyTags
totrue
and the source backup has existing tags, you can use theTags
parameter to create new tags, provided that the sum of the source backup tags and the new tags doesn’t exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same key but different values), the tags created with theTags
parameter take precedence.tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:A list of
Tag
values, with a maximum of 50 elements.
- On success, responds with
CopyBackupOutput
with field(s):backup(Option<Backup>)
:A backup of an Amazon FSx for Windows File Server, Amazon FSx for Lustre file system, Amazon FSx for NetApp ONTAP volume, or Amazon FSx for OpenZFS file system.
- On failure, responds with
SdkError<CopyBackupError>
sourcepub fn create_backup(&self) -> CreateBackup
pub fn create_backup(&self) -> CreateBackup
Constructs a fluent builder for the CreateBackup
operation.
- The fluent builder is configurable:
file_system_id(impl Into<String>)
/set_file_system_id(Option<String>)
:The ID of the file system to back up.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) 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.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:(Optional) The tags to apply to the backup at backup creation. The key value of the
Name
tag appears in the console as the backup name. If you have setCopyTagsToBackups
totrue
, and you specify one or more tags using theCreateBackup
operation, no existing file system tags are copied from the file system to the backup.volume_id(impl Into<String>)
/set_volume_id(Option<String>)
:(Optional) The ID of the FSx for ONTAP volume to back up.
- On success, responds with
CreateBackupOutput
with field(s):backup(Option<Backup>)
:A description of the backup.
- On failure, responds with
SdkError<CreateBackupError>
sourcepub fn create_data_repository_association(
&self
) -> CreateDataRepositoryAssociation
pub fn create_data_repository_association(
&self
) -> CreateDataRepositoryAssociation
Constructs a fluent builder for the CreateDataRepositoryAssociation
operation.
- The fluent builder is configurable:
file_system_id(impl Into<String>)
/set_file_system_id(Option<String>)
:The globally unique ID of the file system, assigned by Amazon FSx.
file_system_path(impl Into<String>)
/set_file_system_path(Option<String>)
:A path on the file system that points to a high-level directory (such as
/ns1/
) or subdirectory (such as/ns1/subdir/
) that will be mapped 1-1 withDataRepositoryPath
. The leading forward slash in the name is required. Two data repository associations cannot have overlapping file system paths. For example, if a data repository is associated with file system path/ns1/
, then you cannot link another data repository with file system path/ns1/ns2
.This path specifies where in your file system files will be exported from or imported to. This file system directory can be linked to only one Amazon S3 bucket, and no other S3 bucket can be linked to the directory.
If you specify only a forward slash (
/
) as the file system path, you can link only 1 data repository to the file system. You can only specify “/” as the file system path for the first data repository associated with a file system.data_repository_path(impl Into<String>)
/set_data_repository_path(Option<String>)
:The path to the Amazon S3 data repository that will be linked to the file system. The path can be an S3 bucket or prefix in the format
s3://myBucket/myPrefix/
. This path specifies where in the S3 data repository files will be imported from or exported to.batch_import_meta_data_on_create(bool)
/set_batch_import_meta_data_on_create(Option<bool>)
:Set to
true
to run an import data repository task to import metadata from the data repository to the file system after the data repository association is created. Default isfalse
.imported_file_chunk_size(i32)
/set_imported_file_chunk_size(Option<i32>)
:For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system.
The default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB.
s3(S3DataRepositoryConfiguration)
/set_s3(Option<S3DataRepositoryConfiguration>)
:The configuration for an Amazon S3 data repository linked to an Amazon FSx Lustre file system with a data repository association. The configuration defines which file events (new, changed, or deleted files or directories) are automatically imported from the linked data repository to the file system or automatically exported from the file system to the data repository.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:A list of
Tag
values, with a maximum of 50 elements.
- On success, responds with
CreateDataRepositoryAssociationOutput
with field(s):association(Option<DataRepositoryAssociation>)
:The response object returned after the data repository association is created.
- On failure, responds with
SdkError<CreateDataRepositoryAssociationError>
sourcepub fn create_data_repository_task(&self) -> CreateDataRepositoryTask
pub fn create_data_repository_task(&self) -> CreateDataRepositoryTask
Constructs a fluent builder for the CreateDataRepositoryTask
operation.
- The fluent builder is configurable:
r#type(DataRepositoryTaskType)
/set_type(Option<DataRepositoryTaskType>)
:Specifies the type of data repository task to create.
paths(Vec<String>)
/set_paths(Option<Vec<String>>)
:(Optional) The path or paths on the Amazon FSx file system to use when the data repository task is processed. The default path is the file system root directory. The paths you provide need to be relative to the mount point of the file system. If the mount point is
/mnt/fsx
and/mnt/fsx/path1
is a directory or file on the file system you want to export, then the path to provide ispath1
. If a path that you provide isn’t valid, the task fails.file_system_id(impl Into<String>)
/set_file_system_id(Option<String>)
:The globally unique ID of the file system, assigned by Amazon FSx.
report(CompletionReport)
/set_report(Option<CompletionReport>)
:Defines whether or not Amazon FSx provides a CompletionReport once the task has completed. A CompletionReport provides a detailed report on the files that Amazon FSx processed that meet the criteria specified by the
Scope
parameter. For more information, see Working with Task Completion Reports.client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:A list of
Tag
values, with a maximum of 50 elements.
- On success, responds with
CreateDataRepositoryTaskOutput
with field(s):data_repository_task(Option<DataRepositoryTask>)
:The description of the data repository task that you just created.
- On failure, responds with
SdkError<CreateDataRepositoryTaskError>
sourcepub fn create_file_system(&self) -> CreateFileSystem
pub fn create_file_system(&self) -> CreateFileSystem
Constructs a fluent builder for the CreateFileSystem
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
: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.
file_system_type(FileSystemType)
/set_file_system_type(Option<FileSystemType>)
:The type of Amazon FSx file system to create. Valid values are
WINDOWS
,LUSTRE
,ONTAP
, andOPENZFS
.storage_capacity(i32)
/set_storage_capacity(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 LustreDeploymentType
, 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 is from 1024 GiB up to 196,608 GiB (192 TiB).
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).
-
storage_type(StorageType)
/set_storage_type(Option<StorageType>)
:Sets the storage type for the file system that you’re creating. Valid values are
SSD
andHDD
.-
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.-
subnet_ids(Vec<String>)
/set_subnet_ids(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 theWindowsConfiguration > PreferredSubnetID
orOntapConfiguration > 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
andSINGLE_AZ_2
and all Lustre deployment types, provide exactly one subnet ID. The file server is launched in that subnet’s Availability Zone.security_group_ids(Vec<String>)
/set_security_group_ids(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.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
: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.kms_key_id(impl Into<String>)
/set_kms_key_id(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.-
windows_configuration(CreateFileSystemWindowsConfiguration)
/set_windows_configuration(Option<CreateFileSystemWindowsConfiguration>)
:The Microsoft Windows configuration for the file system that’s being created.
lustre_configuration(CreateFileSystemLustreConfiguration)
/set_lustre_configuration(Option<CreateFileSystemLustreConfiguration>)
:The Lustre configuration for the file system being created.
The following parameters are not supported for file systems with the
Persistent_2
deployment type. Instead, useCreateDataRepositoryAssociation
to create a data repository association to link your Lustre file system to a data repository.-
AutoImportPolicy
-
ExportPath
-
ImportedChunkSize
-
ImportPath
-
ontap_configuration(CreateFileSystemOntapConfiguration)
/set_ontap_configuration(Option<CreateFileSystemOntapConfiguration>)
:The ONTAP configuration properties of the FSx for ONTAP file system that you are creating.
file_system_type_version(impl Into<String>)
/set_file_system_type_version(Option<String>)
:(Optional) For FSx for Lustre file systems, sets the Lustre version for the file system that you’re creating. Valid values are
2.10
and2.12
:-
2.10 is supported by the Scratch and Persistent_1 Lustre deployment types.
-
2.12 is supported by all Lustre deployment types.
2.12
is required when setting FSx for LustreDeploymentType
toPERSISTENT_2
.
Default value =
2.10
, except whenDeploymentType
is set toPERSISTENT_2
, then the default is2.12
.If you set
FileSystemTypeVersion
to2.10
for aPERSISTENT_2
Lustre deployment type, theCreateFileSystem
operation fails.-
open_zfs_configuration(CreateFileSystemOpenZfsConfiguration)
/set_open_zfs_configuration(Option<CreateFileSystemOpenZfsConfiguration>)
:The OpenZFS configuration for the file system that’s being created.
- On success, responds with
CreateFileSystemOutput
with field(s):file_system(Option<FileSystem>)
:The configuration of the file system that was created.
- On failure, responds with
SdkError<CreateFileSystemError>
sourcepub fn create_file_system_from_backup(&self) -> CreateFileSystemFromBackup
pub fn create_file_system_from_backup(&self) -> CreateFileSystemFromBackup
Constructs a fluent builder for the CreateFileSystemFromBackup
operation.
- The fluent builder is configurable:
backup_id(impl Into<String>)
/set_backup_id(Option<String>)
:The ID of the source backup. Specifies the backup that you are copying.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
: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.
subnet_ids(Vec<String>)
/set_subnet_ids(Option<Vec<String>>)
:Specifies the IDs of the subnets that the file system will be accessible from. For Windows
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 theWindowsConfiguration > PreferredSubnetID
property.Windows
SINGLE_AZ_1
andSINGLE_AZ_2
file system deployment types, Lustre file systems, and OpenZFS file systems provide exactly one subnet ID. The file server is launched in that subnet’s Availability Zone.security_group_ids(Vec<String>)
/set_security_group_ids(Option<Vec<String>>)
:A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups apply to all network interfaces. This value isn’t returned in later
DescribeFileSystem
requests.tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:The tags to be applied to the file system at file system creation. The key value of the
Name
tag appears in the console as the file system name.windows_configuration(CreateFileSystemWindowsConfiguration)
/set_windows_configuration(Option<CreateFileSystemWindowsConfiguration>)
:The configuration for this Microsoft Windows file system.
lustre_configuration(CreateFileSystemLustreConfiguration)
/set_lustre_configuration(Option<CreateFileSystemLustreConfiguration>)
:The Lustre configuration for the file system being created.
The following parameters are not supported for file systems with the
Persistent_2
deployment type. Instead, useCreateDataRepositoryAssociation
to create a data repository association to link your Lustre file system to a data repository.-
AutoImportPolicy
-
ExportPath
-
ImportedChunkSize
-
ImportPath
-
storage_type(StorageType)
/set_storage_type(Option<StorageType>)
:Sets the storage type for the Windows or OpenZFS file system that you’re creating from a backup. Valid values are
SSD
andHDD
.-
Set to
SSD
to use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment types. -
Set to
HDD
to use hard disk drive storage. HDD is supported onSINGLE_AZ_2
andMULTI_AZ_1
FSx for Windows File Server file system deployment types.
The default value is
SSD
.HDD and SSD storage types have different minimum storage capacity requirements. A restored file system’s storage capacity is tied to the file system that was backed up. You can create a file system that uses HDD storage from a backup of a file system that used SSD storage if the original SSD file system had a storage capacity of at least 2000 GiB.
-
kms_key_id(impl Into<String>)
/set_kms_key_id(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.-
file_system_type_version(impl Into<String>)
/set_file_system_type_version(Option<String>)
:Sets the version for the Amazon FSx for Lustre file system that you’re creating from a backup. Valid values are
2.10
and2.12
.You don’t need to specify
FileSystemTypeVersion
because it will be applied using the backup’sFileSystemTypeVersion
setting. If you choose to specifyFileSystemTypeVersion
when creating from backup, the value must match the backup’sFileSystemTypeVersion
setting.open_zfs_configuration(CreateFileSystemOpenZfsConfiguration)
/set_open_zfs_configuration(Option<CreateFileSystemOpenZfsConfiguration>)
:The OpenZFS configuration for the file system that’s being created.
- On success, responds with
CreateFileSystemFromBackupOutput
with field(s):file_system(Option<FileSystem>)
:A description of the file system.
- On failure, responds with
SdkError<CreateFileSystemFromBackupError>
sourcepub fn create_snapshot(&self) -> CreateSnapshot
pub fn create_snapshot(&self) -> CreateSnapshot
Constructs a fluent builder for the CreateSnapshot
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the snapshot.
volume_id(impl Into<String>)
/set_volume_id(Option<String>)
:The ID of the volume that you are taking a snapshot of.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:A list of
Tag
values, with a maximum of 50 elements.
- On success, responds with
CreateSnapshotOutput
with field(s):snapshot(Option<Snapshot>)
:A description of the snapshot.
- On failure, responds with
SdkError<CreateSnapshotError>
sourcepub fn create_storage_virtual_machine(&self) -> CreateStorageVirtualMachine
pub fn create_storage_virtual_machine(&self) -> CreateStorageVirtualMachine
Constructs a fluent builder for the CreateStorageVirtualMachine
operation.
- The fluent builder is configurable:
active_directory_configuration(CreateSvmActiveDirectoryConfiguration)
/set_active_directory_configuration(Option<CreateSvmActiveDirectoryConfiguration>)
:Describes the self-managed Microsoft Active Directory to which you want to join the SVM. Joining an Active Directory provides user authentication and access control for SMB clients, including Microsoft Windows and macOS client accessing the file system.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
file_system_id(impl Into<String>)
/set_file_system_id(Option<String>)
:The globally unique ID of the file system, assigned by Amazon FSx.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the SVM.
svm_admin_password(impl Into<String>)
/set_svm_admin_password(Option<String>)
:The password to use when managing the SVM using the NetApp ONTAP CLI or REST API. If you do not specify a password, you can still use the file system’s
fsxadmin
user to manage the SVM.tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:A list of
Tag
values, with a maximum of 50 elements.root_volume_security_style(StorageVirtualMachineRootVolumeSecurityStyle)
/set_root_volume_security_style(Option<StorageVirtualMachineRootVolumeSecurityStyle>)
:The security style of the root volume of the SVM. Specify one of the following values:
-
UNIX
if the file system is managed by a UNIX administrator, the majority of users are NFS clients, and an application accessing the data uses a UNIX user as the service account. -
NTFS
if the file system is managed by a Windows administrator, the majority of users are SMB clients, and an application accessing the data uses a Windows user as the service account. -
MIXED
if the file system is managed by both UNIX and Windows administrators and users consist of both NFS and SMB clients.
-
- On success, responds with
CreateStorageVirtualMachineOutput
with field(s):storage_virtual_machine(Option<StorageVirtualMachine>)
:Returned after a successful
CreateStorageVirtualMachine
operation; describes the SVM just created.
- On failure, responds with
SdkError<CreateStorageVirtualMachineError>
sourcepub fn create_volume(&self) -> CreateVolume
pub fn create_volume(&self) -> CreateVolume
Constructs a fluent builder for the CreateVolume
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
volume_type(VolumeType)
/set_volume_type(Option<VolumeType>)
:Specifies the type of volume to create;
ONTAP
andOPENZFS
are the only valid volume types.name(impl Into<String>)
/set_name(Option<String>)
:Specifies the name of the volume that you’re creating.
ontap_configuration(CreateOntapVolumeConfiguration)
/set_ontap_configuration(Option<CreateOntapVolumeConfiguration>)
:Specifies the configuration to use when creating the ONTAP volume.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:A list of
Tag
values, with a maximum of 50 elements.open_zfs_configuration(CreateOpenZfsVolumeConfiguration)
/set_open_zfs_configuration(Option<CreateOpenZfsVolumeConfiguration>)
:Specifies the configuration to use when creating the OpenZFS volume.
- On success, responds with
CreateVolumeOutput
with field(s):volume(Option<Volume>)
:Returned after a successful
CreateVolume
API operation, describing the volume just created.
- On failure, responds with
SdkError<CreateVolumeError>
sourcepub fn create_volume_from_backup(&self) -> CreateVolumeFromBackup
pub fn create_volume_from_backup(&self) -> CreateVolumeFromBackup
Constructs a fluent builder for the CreateVolumeFromBackup
operation.
- The fluent builder is configurable:
backup_id(impl Into<String>)
/set_backup_id(Option<String>)
:The ID of the source backup. Specifies the backup that you are copying.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the new volume you’re creating.
ontap_configuration(CreateOntapVolumeConfiguration)
/set_ontap_configuration(Option<CreateOntapVolumeConfiguration>)
:Specifies the configuration of the ONTAP volume that you are creating.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:A list of
Tag
values, with a maximum of 50 elements.
- On success, responds with
CreateVolumeFromBackupOutput
with field(s):volume(Option<Volume>)
:Returned after a successful
CreateVolumeFromBackup
API operation, describing the volume just created.
- On failure, responds with
SdkError<CreateVolumeFromBackupError>
sourcepub fn delete_backup(&self) -> DeleteBackup
pub fn delete_backup(&self) -> DeleteBackup
Constructs a fluent builder for the DeleteBackup
operation.
- The fluent builder is configurable:
backup_id(impl Into<String>)
/set_backup_id(Option<String>)
:The ID of the backup that you want to delete.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent deletion. This parameter is automatically filled on your behalf when using the CLI or SDK.
- On success, responds with
DeleteBackupOutput
with field(s):backup_id(Option<String>)
:The ID of the backup that was deleted.
lifecycle(Option<BackupLifecycle>)
:The lifecycle status of the backup. If the
DeleteBackup
operation is successful, the status isDELETED
.
- On failure, responds with
SdkError<DeleteBackupError>
sourcepub fn delete_data_repository_association(
&self
) -> DeleteDataRepositoryAssociation
pub fn delete_data_repository_association(
&self
) -> DeleteDataRepositoryAssociation
Constructs a fluent builder for the DeleteDataRepositoryAssociation
operation.
- The fluent builder is configurable:
association_id(impl Into<String>)
/set_association_id(Option<String>)
:The ID of the data repository association that you want to delete.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
delete_data_in_file_system(bool)
/set_delete_data_in_file_system(Option<bool>)
:Set to
true
to delete the data in the file system that corresponds to the data repository association.
- On success, responds with
DeleteDataRepositoryAssociationOutput
with field(s):association_id(Option<String>)
:The ID of the data repository association being deleted.
lifecycle(Option<DataRepositoryLifecycle>)
:Describes the lifecycle state of the data repository association being deleted.
delete_data_in_file_system(Option<bool>)
:Indicates whether data in the file system that corresponds to the data repository association is being deleted. Default is
false
.
- On failure, responds with
SdkError<DeleteDataRepositoryAssociationError>
sourcepub fn delete_file_system(&self) -> DeleteFileSystem
pub fn delete_file_system(&self) -> DeleteFileSystem
Constructs a fluent builder for the DeleteFileSystem
operation.
- The fluent builder is configurable:
file_system_id(impl Into<String>)
/set_file_system_id(Option<String>)
:The ID of the file system that you want to delete.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent deletion. This token is automatically filled on your behalf when using the Command Line Interface (CLI) or an Amazon Web Services SDK.
windows_configuration(DeleteFileSystemWindowsConfiguration)
/set_windows_configuration(Option<DeleteFileSystemWindowsConfiguration>)
:The configuration object for the Microsoft Windows file system used in the
DeleteFileSystem
operation.lustre_configuration(DeleteFileSystemLustreConfiguration)
/set_lustre_configuration(Option<DeleteFileSystemLustreConfiguration>)
:The configuration object for the Amazon FSx for Lustre file system being deleted in the
DeleteFileSystem
operation.open_zfs_configuration(DeleteFileSystemOpenZfsConfiguration)
/set_open_zfs_configuration(Option<DeleteFileSystemOpenZfsConfiguration>)
:The configuration object for the OpenZFS file system used in the
DeleteFileSystem
operation.
- On success, responds with
DeleteFileSystemOutput
with field(s):file_system_id(Option<String>)
:The ID of the file system that’s being deleted.
lifecycle(Option<FileSystemLifecycle>)
:The file system lifecycle for the deletion request. If the
DeleteFileSystem
operation is successful, this status isDELETING
.windows_response(Option<DeleteFileSystemWindowsResponse>)
:The response object for the Microsoft Windows file system used in the
DeleteFileSystem
operation.lustre_response(Option<DeleteFileSystemLustreResponse>)
:The response object for the Amazon FSx for Lustre file system being deleted in the
DeleteFileSystem
operation.open_zfs_response(Option<DeleteFileSystemOpenZfsResponse>)
:The response object for the OpenZFS file system that’s being deleted in the
DeleteFileSystem
operation.
- On failure, responds with
SdkError<DeleteFileSystemError>
sourcepub fn delete_snapshot(&self) -> DeleteSnapshot
pub fn delete_snapshot(&self) -> DeleteSnapshot
Constructs a fluent builder for the DeleteSnapshot
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
snapshot_id(impl Into<String>)
/set_snapshot_id(Option<String>)
:The ID of the snapshot that you want to delete.
- On success, responds with
DeleteSnapshotOutput
with field(s):snapshot_id(Option<String>)
:The ID of the deleted snapshot.
lifecycle(Option<SnapshotLifecycle>)
:The lifecycle status of the snapshot. If the
DeleteSnapshot
operation is successful, this status isDELETING
.
- On failure, responds with
SdkError<DeleteSnapshotError>
sourcepub fn delete_storage_virtual_machine(&self) -> DeleteStorageVirtualMachine
pub fn delete_storage_virtual_machine(&self) -> DeleteStorageVirtualMachine
Constructs a fluent builder for the DeleteStorageVirtualMachine
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
storage_virtual_machine_id(impl Into<String>)
/set_storage_virtual_machine_id(Option<String>)
:The ID of the SVM that you want to delete.
- On success, responds with
DeleteStorageVirtualMachineOutput
with field(s):storage_virtual_machine_id(Option<String>)
:The ID of the SVM Amazon FSx is deleting.
lifecycle(Option<StorageVirtualMachineLifecycle>)
:Describes the lifecycle state of the SVM being deleted.
- On failure, responds with
SdkError<DeleteStorageVirtualMachineError>
sourcepub fn delete_volume(&self) -> DeleteVolume
pub fn delete_volume(&self) -> DeleteVolume
Constructs a fluent builder for the DeleteVolume
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
volume_id(impl Into<String>)
/set_volume_id(Option<String>)
:The ID of the volume that you are deleting.
ontap_configuration(DeleteVolumeOntapConfiguration)
/set_ontap_configuration(Option<DeleteVolumeOntapConfiguration>)
:For Amazon FSx for ONTAP volumes, specify whether to take a final backup of the volume and apply tags to the backup. To apply tags to the backup, you must have the
fsx:TagResource
permission.open_zfs_configuration(DeleteVolumeOpenZfsConfiguration)
/set_open_zfs_configuration(Option<DeleteVolumeOpenZfsConfiguration>)
:For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes and snapshots.
- On success, responds with
DeleteVolumeOutput
with field(s):volume_id(Option<String>)
:The ID of the volume that’s being deleted.
lifecycle(Option<VolumeLifecycle>)
:The lifecycle state of the volume being deleted. If the
DeleteVolume
operation is successful, this value isDELETING
.ontap_response(Option<DeleteVolumeOntapResponse>)
:Returned after a
DeleteVolume
request, showing the status of the delete request.
- On failure, responds with
SdkError<DeleteVolumeError>
sourcepub fn describe_backups(&self) -> DescribeBackups
pub fn describe_backups(&self) -> DescribeBackups
Constructs a fluent builder for the DescribeBackups
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
backup_ids(Vec<String>)
/set_backup_ids(Option<Vec<String>>)
:The IDs of the backups that you want to retrieve. This parameter value overrides any filters. If any IDs aren’t found, a
BackupNotFound
error occurs.filters(Vec<Filter>)
/set_filters(Option<Vec<Filter>>)
:The filters structure. The supported names are
file-system-id
,backup-type
,file-system-type
, andvolume-id
.max_results(i32)
/set_max_results(Option<i32>)
:Maximum number of backups to return in the response. This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the
MaxResults
parameter specified in the request and the service’s internal maximum number of items per page.next_token(impl Into<String>)
/set_next_token(Option<String>)
:An opaque pagination token returned from a previous
DescribeBackups
operation. If a token is present, the operation continues the list from where the returning call left off.
- On success, responds with
DescribeBackupsOutput
with field(s):backups(Option<Vec<Backup>>)
:An array of backups.
next_token(Option<String>)
:A
NextToken
value is present if there are more backups than returned in the response. You can use theNextToken
value in the subsequent request to fetch the backups.
- On failure, responds with
SdkError<DescribeBackupsError>
sourcepub fn describe_data_repository_associations(
&self
) -> DescribeDataRepositoryAssociations
pub fn describe_data_repository_associations(
&self
) -> DescribeDataRepositoryAssociations
Constructs a fluent builder for the DescribeDataRepositoryAssociations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
association_ids(Vec<String>)
/set_association_ids(Option<Vec<String>>)
:IDs of the data repository associations whose descriptions you want to retrieve (String).
filters(Vec<Filter>)
/set_filters(Option<Vec<Filter>>)
:A list of
Filter
elements.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of resources to return in the response. This value must be an integer greater than zero.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous
NextToken
value left off.
- On success, responds with
DescribeDataRepositoryAssociationsOutput
with field(s):associations(Option<Vec<DataRepositoryAssociation>>)
:An array of one ore more data repository association descriptions.
next_token(Option<String>)
:(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous
NextToken
value left off.
- On failure, responds with
SdkError<DescribeDataRepositoryAssociationsError>
sourcepub fn describe_data_repository_tasks(&self) -> DescribeDataRepositoryTasks
pub fn describe_data_repository_tasks(&self) -> DescribeDataRepositoryTasks
Constructs a fluent builder for the DescribeDataRepositoryTasks
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
task_ids(Vec<String>)
/set_task_ids(Option<Vec<String>>)
:(Optional) IDs of the tasks whose descriptions you want to retrieve (String).
filters(Vec<DataRepositoryTaskFilter>)
/set_filters(Option<Vec<DataRepositoryTaskFilter>>)
:(Optional) You can use filters to narrow the
DescribeDataRepositoryTasks
response to include just tasks for specific file systems, or tasks in a specific lifecycle state.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of resources to return in the response. This value must be an integer greater than zero.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous
NextToken
value left off.
- On success, responds with
DescribeDataRepositoryTasksOutput
with field(s):data_repository_tasks(Option<Vec<DataRepositoryTask>>)
:The collection of data repository task descriptions returned.
next_token(Option<String>)
:(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous
NextToken
value left off.
- On failure, responds with
SdkError<DescribeDataRepositoryTasksError>
sourcepub fn describe_file_system_aliases(&self) -> DescribeFileSystemAliases
pub fn describe_file_system_aliases(&self) -> DescribeFileSystemAliases
Constructs a fluent builder for the DescribeFileSystemAliases
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
file_system_id(impl Into<String>)
/set_file_system_id(Option<String>)
:The ID of the file system to return the associated DNS aliases for (String).
max_results(i32)
/set_max_results(Option<i32>)
:Maximum number of DNS aliases to return in the response (integer). This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the
MaxResults
parameter specified in the request and the service’s internal maximum number of items per page.next_token(impl Into<String>)
/set_next_token(Option<String>)
:Opaque pagination token returned from a previous
DescribeFileSystemAliases
operation (String). If a token is included in the request, the action continues the list from where the previous returning call left off.
- On success, responds with
DescribeFileSystemAliasesOutput
with field(s):aliases(Option<Vec<Alias>>)
:An array of one or more DNS aliases currently associated with the specified file system.
next_token(Option<String>)
:Present if there are more DNS aliases than returned in the response (String). You can use the
NextToken
value in a later request to fetch additional descriptions.
- On failure, responds with
SdkError<DescribeFileSystemAliasesError>
sourcepub fn describe_file_systems(&self) -> DescribeFileSystems
pub fn describe_file_systems(&self) -> DescribeFileSystems
Constructs a fluent builder for the DescribeFileSystems
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
file_system_ids(Vec<String>)
/set_file_system_ids(Option<Vec<String>>)
:IDs of the file systems whose descriptions you want to retrieve (String).
max_results(i32)
/set_max_results(Option<i32>)
:Maximum number of file systems to return in the response (integer). This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the
MaxResults
parameter specified in the request and the service’s internal maximum number of items per page.next_token(impl Into<String>)
/set_next_token(Option<String>)
:Opaque pagination token returned from a previous
DescribeFileSystems
operation (String). If a token present, the operation continues the list from where the returning call left off.
- On success, responds with
DescribeFileSystemsOutput
with field(s):file_systems(Option<Vec<FileSystem>>)
:An array of file system descriptions.
next_token(Option<String>)
:Present if there are more file systems than returned in the response (String). You can use the
NextToken
value in the later request to fetch the descriptions.
- On failure, responds with
SdkError<DescribeFileSystemsError>
sourcepub fn describe_snapshots(&self) -> DescribeSnapshots
pub fn describe_snapshots(&self) -> DescribeSnapshots
Constructs a fluent builder for the DescribeSnapshots
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
snapshot_ids(Vec<String>)
/set_snapshot_ids(Option<Vec<String>>)
:The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren’t found, a
SnapshotNotFound
error occurs.filters(Vec<SnapshotFilter>)
/set_filters(Option<Vec<SnapshotFilter>>)
:The filters structure. The supported names are
file-system-id
orvolume-id
.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of resources to return in the response. This value must be an integer greater than zero.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous
NextToken
value left off.
- On success, responds with
DescribeSnapshotsOutput
with field(s):snapshots(Option<Vec<Snapshot>>)
:An array of snapshots.
next_token(Option<String>)
:(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous
NextToken
value left off.
- On failure, responds with
SdkError<DescribeSnapshotsError>
sourcepub fn describe_storage_virtual_machines(
&self
) -> DescribeStorageVirtualMachines
pub fn describe_storage_virtual_machines(
&self
) -> DescribeStorageVirtualMachines
Constructs a fluent builder for the DescribeStorageVirtualMachines
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
storage_virtual_machine_ids(Vec<String>)
/set_storage_virtual_machine_ids(Option<Vec<String>>)
:Enter the ID of one or more SVMs that you want to view.
filters(Vec<StorageVirtualMachineFilter>)
/set_filters(Option<Vec<StorageVirtualMachineFilter>>)
:Enter a filter name:value pair to view a select set of SVMs.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of resources to return in the response. This value must be an integer greater than zero.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous
NextToken
value left off.
- On success, responds with
DescribeStorageVirtualMachinesOutput
with field(s):storage_virtual_machines(Option<Vec<StorageVirtualMachine>>)
:Returned after a successful
DescribeStorageVirtualMachines
operation, describing each SVM.next_token(Option<String>)
:(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous
NextToken
value left off.
- On failure, responds with
SdkError<DescribeStorageVirtualMachinesError>
sourcepub fn describe_volumes(&self) -> DescribeVolumes
pub fn describe_volumes(&self) -> DescribeVolumes
Constructs a fluent builder for the DescribeVolumes
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
volume_ids(Vec<String>)
/set_volume_ids(Option<Vec<String>>)
:The IDs of the volumes whose descriptions you want to retrieve.
filters(Vec<VolumeFilter>)
/set_filters(Option<Vec<VolumeFilter>>)
:Enter a filter
Name
andValues
pair to view a select set of volumes.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of resources to return in the response. This value must be an integer greater than zero.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous
NextToken
value left off.
- On success, responds with
DescribeVolumesOutput
with field(s):volumes(Option<Vec<Volume>>)
:Returned after a successful
DescribeVolumes
operation, describing each volume.next_token(Option<String>)
:(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous
NextToken
value left off.
- On failure, responds with
SdkError<DescribeVolumesError>
sourcepub fn disassociate_file_system_aliases(&self) -> DisassociateFileSystemAliases
pub fn disassociate_file_system_aliases(&self) -> DisassociateFileSystemAliases
Constructs a fluent builder for the DisassociateFileSystemAliases
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
file_system_id(impl Into<String>)
/set_file_system_id(Option<String>)
:Specifies the file system from which to disassociate the DNS aliases.
aliases(Vec<String>)
/set_aliases(Option<Vec<String>>)
:An array of one or more DNS alias names to disassociate, or remove, from the file system.
- On success, responds with
DisassociateFileSystemAliasesOutput
with field(s):aliases(Option<Vec<Alias>>)
:An array of one or more DNS aliases that Amazon FSx is attempting to disassociate from the file system.
- On failure, responds with
SdkError<DisassociateFileSystemAliasesError>
Constructs a fluent builder for the ListTagsForResource
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The ARN of the Amazon FSx resource that will have its tags listed.
max_results(i32)
/set_max_results(Option<i32>)
:Maximum number of tags to return in the response (integer). This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the
MaxResults
parameter specified in the request and the service’s internal maximum number of items per page.next_token(impl Into<String>)
/set_next_token(Option<String>)
:Opaque pagination token returned from a previous
ListTagsForResource
operation (String). If a token present, the action continues the list from where the returning call left off.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<Vec<Tag>>)
:A list of tags on the resource.
next_token(Option<String>)
:This is present if there are more tags than returned in the response (String). You can use the
NextToken
value in the later request to fetch the tags.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn release_file_system_nfs_v3_locks(&self) -> ReleaseFileSystemNfsV3Locks
pub fn release_file_system_nfs_v3_locks(&self) -> ReleaseFileSystemNfsV3Locks
Constructs a fluent builder for the ReleaseFileSystemNfsV3Locks
operation.
- The fluent builder is configurable:
file_system_id(impl Into<String>)
/set_file_system_id(Option<String>)
:The globally unique ID of the file system, assigned by Amazon FSx.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
- On success, responds with
ReleaseFileSystemNfsV3LocksOutput
with field(s):file_system(Option<FileSystem>)
:A description of a specific Amazon FSx file system.
- On failure, responds with
SdkError<ReleaseFileSystemNfsV3LocksError>
sourcepub fn restore_volume_from_snapshot(&self) -> RestoreVolumeFromSnapshot
pub fn restore_volume_from_snapshot(&self) -> RestoreVolumeFromSnapshot
Constructs a fluent builder for the RestoreVolumeFromSnapshot
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
volume_id(impl Into<String>)
/set_volume_id(Option<String>)
:The ID of the volume that you are restoring.
snapshot_id(impl Into<String>)
/set_snapshot_id(Option<String>)
:The ID of the source snapshot. Specifies the snapshot that you are restoring from.
options(Vec<RestoreOpenZfsVolumeOption>)
/set_options(Option<Vec<RestoreOpenZfsVolumeOption>>)
:The settings used when restoring the specified volume from snapshot.
-
DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the current state and the specified snapshot. If there are intermediate snapshots and this option isn’t used,RestoreVolumeFromSnapshot
fails. -
DELETE_CLONED_VOLUMES
- Deletes any dependent clone volumes created from intermediate snapshots. If there are any dependent clone volumes and this option isn’t used,RestoreVolumeFromSnapshot
fails.
-
- On success, responds with
RestoreVolumeFromSnapshotOutput
with field(s):volume_id(Option<String>)
:The ID of the volume that you restored.
lifecycle(Option<VolumeLifecycle>)
:The lifecycle state of the volume being restored.
- On failure, responds with
SdkError<RestoreVolumeFromSnapshotError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the Amazon FSx resource that you want to tag.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:A list of tags for the resource. If a tag with a given key already exists, the value is replaced by the one specified in this parameter.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The ARN of the Amazon FSx resource to untag.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:A list of keys of tags on the resource to untag. In case the tag key doesn’t exist, the call will still succeed to be idempotent.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_data_repository_association(
&self
) -> UpdateDataRepositoryAssociation
pub fn update_data_repository_association(
&self
) -> UpdateDataRepositoryAssociation
Constructs a fluent builder for the UpdateDataRepositoryAssociation
operation.
- The fluent builder is configurable:
association_id(impl Into<String>)
/set_association_id(Option<String>)
:The ID of the data repository association that you are updating.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
imported_file_chunk_size(i32)
/set_imported_file_chunk_size(Option<i32>)
:For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system.
The default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB.
s3(S3DataRepositoryConfiguration)
/set_s3(Option<S3DataRepositoryConfiguration>)
:The configuration for an Amazon S3 data repository linked to an Amazon FSx Lustre file system with a data repository association. The configuration defines which file events (new, changed, or deleted files or directories) are automatically imported from the linked data repository to the file system or automatically exported from the file system to the data repository.
- On success, responds with
UpdateDataRepositoryAssociationOutput
with field(s):association(Option<DataRepositoryAssociation>)
:The response object returned after the data repository association is updated.
- On failure, responds with
SdkError<UpdateDataRepositoryAssociationError>
sourcepub fn update_file_system(&self) -> UpdateFileSystem
pub fn update_file_system(&self) -> UpdateFileSystem
Constructs a fluent builder for the UpdateFileSystem
operation.
- The fluent builder is configurable:
file_system_id(impl Into<String>)
/set_file_system_id(Option<String>)
:The ID of the file system that you are updating.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent updates. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
storage_capacity(i32)
/set_storage_capacity(Option<i32>)
:Use this parameter to increase the storage capacity of an Amazon FSx for Windows File Server, Amazon FSx for Lustre, or Amazon FSx for NetApp ONTAP file system. Specifies the storage capacity target value, in GiB, to increase the storage capacity for the file system that you’re updating.
You can’t make a storage capacity increase request if there is an existing storage capacity increase request in progress.
For Windows file systems, the storage capacity target value must be at least 10 percent greater than the current storage capacity value. To increase storage capacity, the file system must have at least 16 MBps of throughput capacity. For more information, see Managing storage capacity in the Amazon FSx for Windows File Server User Guide.
For Lustre file systems, the storage capacity target value can be the following:
-
For
SCRATCH_2
,PERSISTENT_1
, andPERSISTENT_2 SSD
deployment types, valid values are in multiples of 2400 GiB. The value must be greater than the current storage capacity. -
For
PERSISTENT HDD
file systems, valid values are multiples of 6000 GiB for 12-MBps throughput per TiB file systems and multiples of 1800 GiB for 40-MBps throughput per TiB file systems. The values must be greater than the current storage capacity. -
For
SCRATCH_1
file systems, you can’t increase the storage capacity.
For more information, see Managing storage and throughput capacity in the Amazon FSx for Lustre User Guide.
For ONTAP file systems, the storage capacity target value must be at least 10 percent greater than the current storage capacity value. For more information, see Managing storage capacity and provisioned IOPS in the Amazon FSx for NetApp ONTAP User Guide.
-
windows_configuration(UpdateFileSystemWindowsConfiguration)
/set_windows_configuration(Option<UpdateFileSystemWindowsConfiguration>)
:The configuration updates for an Amazon FSx for Windows File Server file system.
lustre_configuration(UpdateFileSystemLustreConfiguration)
/set_lustre_configuration(Option<UpdateFileSystemLustreConfiguration>)
:The configuration object for Amazon FSx for Lustre file systems used in the
UpdateFileSystem
operation.ontap_configuration(UpdateFileSystemOntapConfiguration)
/set_ontap_configuration(Option<UpdateFileSystemOntapConfiguration>)
:The configuration updates for an Amazon FSx for NetApp ONTAP file system.
open_zfs_configuration(UpdateFileSystemOpenZfsConfiguration)
/set_open_zfs_configuration(Option<UpdateFileSystemOpenZfsConfiguration>)
:The configuration updates for an Amazon FSx for OpenZFS file system.
- On success, responds with
UpdateFileSystemOutput
with field(s):file_system(Option<FileSystem>)
:A description of the file system that was updated.
- On failure, responds with
SdkError<UpdateFileSystemError>
sourcepub fn update_snapshot(&self) -> UpdateSnapshot
pub fn update_snapshot(&self) -> UpdateSnapshot
Constructs a fluent builder for the UpdateSnapshot
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the snapshot to update.
snapshot_id(impl Into<String>)
/set_snapshot_id(Option<String>)
:The ID of the snapshot that you want to update, in the format
fsvolsnap-0123456789abcdef0
.
- On success, responds with
UpdateSnapshotOutput
with field(s):snapshot(Option<Snapshot>)
:Returned after a successful
UpdateSnapshot
operation, describing the snapshot that you updated.
- On failure, responds with
SdkError<UpdateSnapshotError>
sourcepub fn update_storage_virtual_machine(&self) -> UpdateStorageVirtualMachine
pub fn update_storage_virtual_machine(&self) -> UpdateStorageVirtualMachine
Constructs a fluent builder for the UpdateStorageVirtualMachine
operation.
- The fluent builder is configurable:
active_directory_configuration(UpdateSvmActiveDirectoryConfiguration)
/set_active_directory_configuration(Option<UpdateSvmActiveDirectoryConfiguration>)
:Updates the Microsoft Active Directory (AD) configuration for an SVM that is joined to an AD.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
storage_virtual_machine_id(impl Into<String>)
/set_storage_virtual_machine_id(Option<String>)
:The ID of the SVM that you want to update, in the format
svm-0123456789abcdef0
.svm_admin_password(impl Into<String>)
/set_svm_admin_password(Option<String>)
:Enter a new SvmAdminPassword if you are updating it.
- On success, responds with
UpdateStorageVirtualMachineOutput
with field(s):storage_virtual_machine(Option<StorageVirtualMachine>)
:Describes the Amazon FSx for NetApp ONTAP storage virtual machine (SVM) configuration.
- On failure, responds with
SdkError<UpdateStorageVirtualMachineError>
sourcepub fn update_volume(&self) -> UpdateVolume
pub fn update_volume(&self) -> UpdateVolume
Constructs a fluent builder for the UpdateVolume
operation.
- The fluent builder is configurable:
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
volume_id(impl Into<String>)
/set_volume_id(Option<String>)
:The ID of the volume that you want to update, in the format
fsvol-0123456789abcdef0
.ontap_configuration(UpdateOntapVolumeConfiguration)
/set_ontap_configuration(Option<UpdateOntapVolumeConfiguration>)
:The configuration of the ONTAP volume that you are updating.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the OpenZFS volume. OpenZFS root volumes are automatically named
FSX
. Child volume names must be unique among their parent volume’s children. The name of the volume is part of the mount string for the OpenZFS volume.open_zfs_configuration(UpdateOpenZfsVolumeConfiguration)
/set_open_zfs_configuration(Option<UpdateOpenZfsVolumeConfiguration>)
:The configuration of the OpenZFS volume that you are updating.
- On success, responds with
UpdateVolumeOutput
with field(s):volume(Option<Volume>)
:A description of the volume just updated. Returned after a successful
UpdateVolume
API operation.
- On failure, responds with
SdkError<UpdateVolumeError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more