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

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the AssociateFileSystemAliases operation.

Constructs a fluent builder for the CancelDataRepositoryTask operation.

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 and PERSISTENT_2 deployment types only.

        SCRATCH_1 and SCRATCH_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 to true and the source backup has existing tags, you can use the Tags 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 the Tags 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>

Constructs a fluent builder for the CreateBackup operation.

Constructs a fluent builder for the CreateDataRepositoryAssociation operation.

Constructs a fluent builder for the CreateDataRepositoryTask operation.

Constructs a fluent builder for the CreateFileSystem operation.

Constructs a fluent builder for the CreateFileSystemFromBackup operation.

Constructs a fluent builder for the CreateSnapshot operation.

Constructs a fluent builder for the CreateStorageVirtualMachine operation.

Constructs a fluent builder for the CreateVolume operation.

Constructs a fluent builder for the CreateVolumeFromBackup operation.

Constructs a fluent builder for the DeleteBackup operation.

Constructs a fluent builder for the DeleteDataRepositoryAssociation operation.

Constructs a fluent builder for the DeleteFileSystem operation.

Constructs a fluent builder for the DeleteSnapshot operation.

Constructs a fluent builder for the DeleteStorageVirtualMachine operation.

Constructs a fluent builder for the DeleteVolume operation.

Constructs a fluent builder for the DescribeBackups operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeDataRepositoryAssociations operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeDataRepositoryTasks operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeFileSystemAliases operation.

Constructs a fluent builder for the DescribeFileSystems operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeSnapshots operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeStorageVirtualMachines operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeVolumes operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DisassociateFileSystemAliases operation.

Constructs a fluent builder for the ListTagsForResource operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ReleaseFileSystemNfsV3Locks operation.

Constructs a fluent builder for the RestoreVolumeFromSnapshot operation.

Constructs a fluent builder for the TagResource operation.

Constructs a fluent builder for the UntagResource operation.

Constructs a fluent builder for the UpdateDataRepositoryAssociation operation.

Constructs a fluent builder for the UpdateFileSystem operation.

Constructs a fluent builder for the UpdateSnapshot operation.

Constructs a fluent builder for the UpdateStorageVirtualMachine operation.

Constructs a fluent builder for the UpdateVolume operation.

Creates a client with the given service config and connector override.

Creates a new client from a shared config.

Creates a new client from the service Config.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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