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.

§Constructing a Client

A Config is required to construct a client. For most use cases, the aws-config crate should be used to automatically resolve this config using aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared across multiple different AWS SDK clients. This config resolution process can be customized by calling aws_config::from_env() instead, which returns a ConfigLoader that uses the builder pattern to customize the default config.

In the simplest case, creating a client looks as follows:

let config = aws_config::load_from_env().await;
let client = aws_sdk_fsx::Client::new(&config);

Occasionally, SDKs may have additional service-specific values that can be set on the Config that is absent from SdkConfig, or slightly different settings for a specific client may be desired. The Config struct implements From<&SdkConfig>, so setting these specific settings can be done as follows:

let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_fsx::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();

See the aws-config docs and Config for more information on customizing configuration.

Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.

§Using the Client

A client has a function for every operation that can be performed by the service. For example, the AssociateFileSystemAliases operation has a Client::associate_file_system_aliases, function which returns a builder for that operation. The fluent builder ultimately has a send() function that returns an async future that returns a result, as illustrated below:

let result = client.associate_file_system_aliases()
    .client_request_token("example")
    .send()
    .await;

The underlying HTTP requests that get made by this can be modified with the customize_operation function on the fluent builder. See the customize module for more information.

Implementations§

source§

impl Client

source

pub fn associate_file_system_aliases( &self ) -> AssociateFileSystemAliasesFluentBuilder

Constructs a fluent builder for the AssociateFileSystemAliases operation.

source§

impl Client

source

pub fn cancel_data_repository_task( &self ) -> CancelDataRepositoryTaskFluentBuilder

Constructs a fluent builder for the CancelDataRepositoryTask operation.

source§

impl Client

source

pub fn copy_backup(&self) -> CopyBackupFluentBuilder

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>):
      required: false

      (Optional) An idempotency token for resource creation, in a string of up to 63 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>):
      required: true

      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>):
      required: false

      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>):
      required: false

      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>):
      required: false

      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(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      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>
source§

impl Client

source

pub fn copy_snapshot_and_update_volume( &self ) -> CopySnapshotAndUpdateVolumeFluentBuilder

Constructs a fluent builder for the CopySnapshotAndUpdateVolume operation.

source§

impl Client

source

pub fn create_backup(&self) -> CreateBackupFluentBuilder

Constructs a fluent builder for the CreateBackup operation.

source§

impl Client

source

pub fn create_data_repository_association( &self ) -> CreateDataRepositoryAssociationFluentBuilder

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>):
      required: true

      The globally unique ID of the file system, assigned by Amazon FSx.


    • file_system_path(impl Into<String>) / set_file_system_path(Option<String>):
      required: false

      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 with DataRepositoryPath. 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 one 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>):
      required: true

      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>):
      required: false

      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 is false.


    • imported_file_chunk_size(i32) / set_imported_file_chunk_size(Option<i32>):
      required: false

      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>):
      required: false

      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>):
      required: false

      (Optional) An idempotency token for resource creation, in a string of up to 63 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(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      A list of Tag values, with a maximum of 50 elements.


  • On success, responds with CreateDataRepositoryAssociationOutput with field(s):
  • On failure, responds with SdkError<CreateDataRepositoryAssociationError>
source§

impl Client

source

pub fn create_data_repository_task( &self ) -> CreateDataRepositoryTaskFluentBuilder

Constructs a fluent builder for the CreateDataRepositoryTask operation.

  • The fluent builder is configurable:
    • r#type(DataRepositoryTaskType) / set_type(Option<DataRepositoryTaskType>):
      required: true

      Specifies the type of data repository task to create.

      • EXPORT_TO_REPOSITORY tasks export from your Amazon FSx for Lustre file system to a linked data repository.

      • IMPORT_METADATA_FROM_REPOSITORY tasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system.

      • RELEASE_DATA_FROM_FILESYSTEM tasks release files in your Amazon FSx for Lustre file system that have been exported to a linked S3 bucket and that meet your specified release criteria.

      • AUTO_RELEASE_DATA tasks automatically release files from an Amazon File Cache resource.


    • paths(impl Into<String>) / set_paths(Option<Vec::<String>>):
      required: false

      A list of paths for the data repository task to use when the task is processed. If a path that you provide isn’t valid, the task fails. If you don’t provide paths, the default behavior is to export all files to S3 (for export tasks), import all files from S3 (for import tasks), or release all exported files that meet the last accessed time criteria (for release tasks).

      • For export tasks, the list contains paths on the FSx for Lustre file system from which the files are exported to the Amazon S3 bucket. 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 is path1.

      • For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are imported to the FSx for Lustre file system. The path can be an S3 bucket or prefix in the format s3://myBucket/myPrefix (where myPrefix is optional).

      • For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which to release exported files. If a directory is specified, files within the directory are released. If a file path is specified, only that file is released. To release all exported files in the file system, specify a forward slash (/) as the path.

        A file must also meet the last accessed time criteria specified in for the file to be released.


    • file_system_id(impl Into<String>) / set_file_system_id(Option<String>):
      required: true

      The globally unique ID of the file system, assigned by Amazon FSx.


    • report(CompletionReport) / set_report(Option<CompletionReport>):
      required: true

      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>):
      required: false

      (Optional) An idempotency token for resource creation, in a string of up to 63 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(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      A list of Tag values, with a maximum of 50 elements.


    • capacity_to_release(i64) / set_capacity_to_release(Option<i64>):
      required: false

      Specifies the amount of data to release, in GiB, by an Amazon File Cache AUTO_RELEASE_DATA task that automatically releases files from the cache.


    • release_configuration(ReleaseConfiguration) / set_release_configuration(Option<ReleaseConfiguration>):
      required: false

      The configuration that specifies the last accessed time criteria for files that will be released from an Amazon FSx for Lustre file system.


  • On success, responds with CreateDataRepositoryTaskOutput with field(s):
  • On failure, responds with SdkError<CreateDataRepositoryTaskError>
source§

impl Client

source

pub fn create_file_cache(&self) -> CreateFileCacheFluentBuilder

Constructs a fluent builder for the CreateFileCache operation.

source§

impl Client

source

pub fn create_file_system(&self) -> CreateFileSystemFluentBuilder

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>):
      required: false

      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.


    • file_system_type(FileSystemType) / set_file_system_type(Option<FileSystemType>):
      required: true

      The type of Amazon FSx file system to create. Valid values are WINDOWS, LUSTRE, ONTAP, and OPENZFS.


    • storage_capacity(i32) / set_storage_capacity(Option<i32>):
      required: true

      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 and PERSISTENT_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).


    • storage_type(StorageType) / set_storage_type(Option<StorageType>):
      required: false

      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 on SINGLE_AZ_2 and MULTI_AZ_1 Windows file system deployment types, and on PERSISTENT_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(impl Into<String>) / set_subnet_ids(Option<Vec::<String>>):
      required: true

      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.


    • security_group_ids(impl Into<String>) / set_security_group_ids(Option<Vec::<String>>):
      required: false

      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.


    • tags(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      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>):
      required: false

      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.


    • windows_configuration(CreateFileSystemWindowsConfiguration) / set_windows_configuration(Option<CreateFileSystemWindowsConfiguration>):
      required: false

      The Microsoft Windows configuration for the file system that’s being created.


    • lustre_configuration(CreateFileSystemLustreConfiguration) / set_lustre_configuration(Option<CreateFileSystemLustreConfiguration>):
      required: false

      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


    • ontap_configuration(CreateFileSystemOntapConfiguration) / set_ontap_configuration(Option<CreateFileSystemOntapConfiguration>):
      required: false

      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>):
      required: false

      (Optional) 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 and 2.15 are supported by all Lustre deployment types. 2.12 or 2.15 is required when setting FSx for Lustre DeploymentType to PERSISTENT_2.

      Default value = 2.10, except when DeploymentType is set to PERSISTENT_2, then the default is 2.12.

      If you set FileSystemTypeVersion to 2.10 for a PERSISTENT_2 Lustre deployment type, the CreateFileSystem operation fails.


    • open_zfs_configuration(CreateFileSystemOpenZfsConfiguration) / set_open_zfs_configuration(Option<CreateFileSystemOpenZfsConfiguration>):
      required: false

      The OpenZFS configuration for the file system that’s being created.


  • On success, responds with CreateFileSystemOutput with field(s):
  • On failure, responds with SdkError<CreateFileSystemError>
source§

impl Client

source

pub fn create_file_system_from_backup( &self ) -> CreateFileSystemFromBackupFluentBuilder

Constructs a fluent builder for the CreateFileSystemFromBackup operation.

source§

impl Client

source

pub fn create_snapshot(&self) -> CreateSnapshotFluentBuilder

Constructs a fluent builder for the CreateSnapshot operation.

source§

impl Client

source

pub fn create_storage_virtual_machine( &self ) -> CreateStorageVirtualMachineFluentBuilder

Constructs a fluent builder for the CreateStorageVirtualMachine operation.

source§

impl Client

source

pub fn create_volume(&self) -> CreateVolumeFluentBuilder

Constructs a fluent builder for the CreateVolume operation.

source§

impl Client

source

pub fn create_volume_from_backup(&self) -> CreateVolumeFromBackupFluentBuilder

Constructs a fluent builder for the CreateVolumeFromBackup operation.

source§

impl Client

source

pub fn delete_backup(&self) -> DeleteBackupFluentBuilder

Constructs a fluent builder for the DeleteBackup operation.

source§

impl Client

source

pub fn delete_data_repository_association( &self ) -> DeleteDataRepositoryAssociationFluentBuilder

Constructs a fluent builder for the DeleteDataRepositoryAssociation operation.

source§

impl Client

source

pub fn delete_file_cache(&self) -> DeleteFileCacheFluentBuilder

Constructs a fluent builder for the DeleteFileCache operation.

source§

impl Client

source

pub fn delete_file_system(&self) -> DeleteFileSystemFluentBuilder

Constructs a fluent builder for the DeleteFileSystem operation.

source§

impl Client

source

pub fn delete_snapshot(&self) -> DeleteSnapshotFluentBuilder

Constructs a fluent builder for the DeleteSnapshot operation.

source§

impl Client

source

pub fn delete_storage_virtual_machine( &self ) -> DeleteStorageVirtualMachineFluentBuilder

Constructs a fluent builder for the DeleteStorageVirtualMachine operation.

source§

impl Client

source

pub fn delete_volume(&self) -> DeleteVolumeFluentBuilder

Constructs a fluent builder for the DeleteVolume operation.

source§

impl Client

source

pub fn describe_backups(&self) -> DescribeBackupsFluentBuilder

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

source§

impl Client

source

pub fn describe_data_repository_associations( &self ) -> DescribeDataRepositoryAssociationsFluentBuilder

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

source§

impl Client

source

pub fn describe_data_repository_tasks( &self ) -> DescribeDataRepositoryTasksFluentBuilder

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

source§

impl Client

source

pub fn describe_file_caches(&self) -> DescribeFileCachesFluentBuilder

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

source§

impl Client

source

pub fn describe_file_system_aliases( &self ) -> DescribeFileSystemAliasesFluentBuilder

Constructs a fluent builder for the DescribeFileSystemAliases operation.

source§

impl Client

source

pub fn describe_file_systems(&self) -> DescribeFileSystemsFluentBuilder

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

source§

impl Client

source

pub fn describe_shared_vpc_configuration( &self ) -> DescribeSharedVpcConfigurationFluentBuilder

Constructs a fluent builder for the DescribeSharedVpcConfiguration operation.

source§

impl Client

source

pub fn describe_snapshots(&self) -> DescribeSnapshotsFluentBuilder

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

source§

impl Client

source

pub fn describe_storage_virtual_machines( &self ) -> DescribeStorageVirtualMachinesFluentBuilder

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

source§

impl Client

source

pub fn describe_volumes(&self) -> DescribeVolumesFluentBuilder

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

source§

impl Client

source

pub fn disassociate_file_system_aliases( &self ) -> DisassociateFileSystemAliasesFluentBuilder

Constructs a fluent builder for the DisassociateFileSystemAliases operation.

source§

impl Client

source

pub fn list_tags_for_resource(&self) -> ListTagsForResourceFluentBuilder

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

source§

impl Client

source

pub fn release_file_system_nfs_v3_locks( &self ) -> ReleaseFileSystemNfsV3LocksFluentBuilder

Constructs a fluent builder for the ReleaseFileSystemNfsV3Locks operation.

source§

impl Client

source

pub fn restore_volume_from_snapshot( &self ) -> RestoreVolumeFromSnapshotFluentBuilder

Constructs a fluent builder for the RestoreVolumeFromSnapshot operation.

source§

impl Client

source

pub fn start_misconfigured_state_recovery( &self ) -> StartMisconfiguredStateRecoveryFluentBuilder

Constructs a fluent builder for the StartMisconfiguredStateRecovery operation.

source§

impl Client

source

pub fn tag_resource(&self) -> TagResourceFluentBuilder

Constructs a fluent builder for the TagResource operation.

source§

impl Client

source

pub fn untag_resource(&self) -> UntagResourceFluentBuilder

Constructs a fluent builder for the UntagResource operation.

source§

impl Client

source

pub fn update_data_repository_association( &self ) -> UpdateDataRepositoryAssociationFluentBuilder

Constructs a fluent builder for the UpdateDataRepositoryAssociation operation.

source§

impl Client

source

pub fn update_file_cache(&self) -> UpdateFileCacheFluentBuilder

Constructs a fluent builder for the UpdateFileCache operation.

source§

impl Client

source

pub fn update_file_system(&self) -> UpdateFileSystemFluentBuilder

Constructs a fluent builder for the UpdateFileSystem operation.

source§

impl Client

source

pub fn update_shared_vpc_configuration( &self ) -> UpdateSharedVpcConfigurationFluentBuilder

Constructs a fluent builder for the UpdateSharedVpcConfiguration operation.

source§

impl Client

source

pub fn update_snapshot(&self) -> UpdateSnapshotFluentBuilder

Constructs a fluent builder for the UpdateSnapshot operation.

source§

impl Client

source

pub fn update_storage_virtual_machine( &self ) -> UpdateStorageVirtualMachineFluentBuilder

Constructs a fluent builder for the UpdateStorageVirtualMachine operation.

source§

impl Client

source

pub fn update_volume(&self) -> UpdateVolumeFluentBuilder

Constructs a fluent builder for the UpdateVolume operation.

source§

impl Client

source

pub fn from_conf(conf: Config) -> Self

Creates a new client from the service Config.

§Panics

This method will panic in the following cases:

  • Retries or timeouts are enabled without a sleep_impl configured.
  • Identity caching is enabled without a sleep_impl and time_source configured.
  • No behavior_version is provided.

The panic message for each of these will have instructions on how to resolve them.

source

pub fn config(&self) -> &Config

Returns the client’s configuration.

source§

impl Client

source

pub fn new(sdk_config: &SdkConfig) -> Self

Creates a new client from an SDK Config.

§Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.
  • This method will panic if no BehaviorVersion is provided. If you experience this panic, set behavior_version on the Config or enable the behavior-version-latest Cargo feature.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Client

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Client

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more