pub struct Client { /* private fields */ }
Expand description

Client for AWS Storage Gateway

Client for invoking operations on AWS Storage Gateway. Each operation on AWS Storage Gateway 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_storagegateway::Client::new(&config);

Occasionally, SDKs may have additional service-specific 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_storagegateway::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 ActivateGateway operation has a Client::activate_gateway, 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.activate_gateway()
    .activation_key("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 activate_gateway(&self) -> ActivateGatewayFluentBuilder

Constructs a fluent builder for the ActivateGateway operation.

source§

impl Client

source

pub fn add_cache(&self) -> AddCacheFluentBuilder

Constructs a fluent builder for the AddCache operation.

source§

impl Client

source

pub fn add_tags_to_resource(&self) -> AddTagsToResourceFluentBuilder

Constructs a fluent builder for the AddTagsToResource operation.

source§

impl Client

source

pub fn add_upload_buffer(&self) -> AddUploadBufferFluentBuilder

Constructs a fluent builder for the AddUploadBuffer operation.

source§

impl Client

source

pub fn add_working_storage(&self) -> AddWorkingStorageFluentBuilder

Constructs a fluent builder for the AddWorkingStorage operation.

source§

impl Client

source

pub fn assign_tape_pool(&self) -> AssignTapePoolFluentBuilder

Constructs a fluent builder for the AssignTapePool operation.

source§

impl Client

source

pub fn associate_file_system(&self) -> AssociateFileSystemFluentBuilder

Constructs a fluent builder for the AssociateFileSystem operation.

source§

impl Client

source

pub fn attach_volume(&self) -> AttachVolumeFluentBuilder

Constructs a fluent builder for the AttachVolume operation.

source§

impl Client

source

pub fn cancel_archival(&self) -> CancelArchivalFluentBuilder

Constructs a fluent builder for the CancelArchival operation.

source§

impl Client

source

pub fn cancel_retrieval(&self) -> CancelRetrievalFluentBuilder

Constructs a fluent builder for the CancelRetrieval operation.

source§

impl Client

source

pub fn create_cachedi_scsi_volume(&self) -> CreateCachediSCSIVolumeFluentBuilder

Constructs a fluent builder for the CreateCachediSCSIVolume operation.

source§

impl Client

source

pub fn create_nfs_file_share(&self) -> CreateNFSFileShareFluentBuilder

Constructs a fluent builder for the CreateNFSFileShare operation.

source§

impl Client

source

pub fn create_smb_file_share(&self) -> CreateSMBFileShareFluentBuilder

Constructs a fluent builder for the CreateSMBFileShare 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_snapshot_from_volume_recovery_point( &self ) -> CreateSnapshotFromVolumeRecoveryPointFluentBuilder

Constructs a fluent builder for the CreateSnapshotFromVolumeRecoveryPoint operation.

source§

impl Client

source

pub fn create_storedi_scsi_volume(&self) -> CreateStorediSCSIVolumeFluentBuilder

Constructs a fluent builder for the CreateStorediSCSIVolume operation.

source§

impl Client

source

pub fn create_tape_pool(&self) -> CreateTapePoolFluentBuilder

Constructs a fluent builder for the CreateTapePool operation.

source§

impl Client

source

pub fn create_tape_with_barcode(&self) -> CreateTapeWithBarcodeFluentBuilder

Constructs a fluent builder for the CreateTapeWithBarcode operation.

source§

impl Client

source

pub fn create_tapes(&self) -> CreateTapesFluentBuilder

Constructs a fluent builder for the CreateTapes operation.

source§

impl Client

source

pub fn delete_automatic_tape_creation_policy( &self ) -> DeleteAutomaticTapeCreationPolicyFluentBuilder

Constructs a fluent builder for the DeleteAutomaticTapeCreationPolicy operation.

source§

impl Client

source

pub fn delete_bandwidth_rate_limit( &self ) -> DeleteBandwidthRateLimitFluentBuilder

Constructs a fluent builder for the DeleteBandwidthRateLimit operation.

source§

impl Client

source

pub fn delete_chap_credentials(&self) -> DeleteChapCredentialsFluentBuilder

Constructs a fluent builder for the DeleteChapCredentials operation.

source§

impl Client

source

pub fn delete_file_share(&self) -> DeleteFileShareFluentBuilder

Constructs a fluent builder for the DeleteFileShare operation.

source§

impl Client

source

pub fn delete_gateway(&self) -> DeleteGatewayFluentBuilder

Constructs a fluent builder for the DeleteGateway operation.

source§

impl Client

source

pub fn delete_snapshot_schedule(&self) -> DeleteSnapshotScheduleFluentBuilder

Constructs a fluent builder for the DeleteSnapshotSchedule operation.

source§

impl Client

source

pub fn delete_tape(&self) -> DeleteTapeFluentBuilder

Constructs a fluent builder for the DeleteTape operation.

source§

impl Client

source

pub fn delete_tape_archive(&self) -> DeleteTapeArchiveFluentBuilder

Constructs a fluent builder for the DeleteTapeArchive operation.

source§

impl Client

source

pub fn delete_tape_pool(&self) -> DeleteTapePoolFluentBuilder

Constructs a fluent builder for the DeleteTapePool 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_availability_monitor_test( &self ) -> DescribeAvailabilityMonitorTestFluentBuilder

Constructs a fluent builder for the DescribeAvailabilityMonitorTest operation.

source§

impl Client

source

pub fn describe_bandwidth_rate_limit( &self ) -> DescribeBandwidthRateLimitFluentBuilder

Constructs a fluent builder for the DescribeBandwidthRateLimit operation.

source§

impl Client

source

pub fn describe_bandwidth_rate_limit_schedule( &self ) -> DescribeBandwidthRateLimitScheduleFluentBuilder

Constructs a fluent builder for the DescribeBandwidthRateLimitSchedule operation.

source§

impl Client

source

pub fn describe_cache(&self) -> DescribeCacheFluentBuilder

Constructs a fluent builder for the DescribeCache operation.

  • The fluent builder is configurable:
  • On success, responds with DescribeCacheOutput with field(s):
    • gateway_arn(Option<String>):

      The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.

    • disk_ids(Option<Vec<String>>):

      An array of strings that identify disks that are to be configured as working storage. Each string has a minimum length of 1 and maximum length of 300. You can get the disk IDs from the ListLocalDisks API.

    • cache_allocated_in_bytes(i64):

      The amount of cache in bytes allocated to a gateway.

    • cache_used_percentage(f64):

      Percent use of the gateway’s cache storage. This metric applies only to the gateway-cached volume setup. The sample is taken at the end of the reporting period.

    • cache_dirty_percentage(f64):

      The file share’s contribution to the overall percentage of the gateway’s cache that has not been persisted to Amazon Web Services. The sample is taken at the end of the reporting period.

    • cache_hit_percentage(f64):

      Percent of application read operations from the file shares that are served from cache. The sample is taken at the end of the reporting period.

    • cache_miss_percentage(f64):

      Percent of application read operations from the file shares that are not served from cache. The sample is taken at the end of the reporting period.

  • On failure, responds with SdkError<DescribeCacheError>
source§

impl Client

source

pub fn describe_cachedi_scsi_volumes( &self ) -> DescribeCachediSCSIVolumesFluentBuilder

Constructs a fluent builder for the DescribeCachediSCSIVolumes operation.

source§

impl Client

source

pub fn describe_chap_credentials(&self) -> DescribeChapCredentialsFluentBuilder

Constructs a fluent builder for the DescribeChapCredentials operation.

  • The fluent builder is configurable:
  • On success, responds with DescribeChapCredentialsOutput with field(s):
    • chap_credentials(Option<Vec<ChapInfo>>):

      An array of ChapInfo objects that represent CHAP credentials. Each object in the array contains CHAP credential information for one target-initiator pair. If no CHAP credentials are set, an empty array is returned. CHAP credential information is provided in a JSON object with the following fields:

      • InitiatorName: The iSCSI initiator that connects to the target.

      • SecretToAuthenticateInitiator: The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.

      • SecretToAuthenticateTarget: The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).

      • TargetARN: The Amazon Resource Name (ARN) of the storage volume.

  • On failure, responds with SdkError<DescribeChapCredentialsError>
source§

impl Client

source

pub fn describe_file_system_associations( &self ) -> DescribeFileSystemAssociationsFluentBuilder

Constructs a fluent builder for the DescribeFileSystemAssociations operation.

source§

impl Client

source

pub fn describe_gateway_information( &self ) -> DescribeGatewayInformationFluentBuilder

Constructs a fluent builder for the DescribeGatewayInformation operation.

source§

impl Client

source

pub fn describe_maintenance_start_time( &self ) -> DescribeMaintenanceStartTimeFluentBuilder

Constructs a fluent builder for the DescribeMaintenanceStartTime operation.

  • The fluent builder is configurable:
  • On success, responds with DescribeMaintenanceStartTimeOutput with field(s):
    • gateway_arn(Option<String>):

      The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.

    • hour_of_day(Option<i32>):

      The hour component of the maintenance start time represented as hh, where hh is the hour (0 to 23). The hour of the day is in the time zone of the gateway.

    • minute_of_hour(Option<i32>):

      The minute component of the maintenance start time represented as mm, where mm is the minute (0 to 59). The minute of the hour is in the time zone of the gateway.

    • day_of_week(Option<i32>):

      An ordinal number between 0 and 6 that represents the day of the week, where 0 represents Sunday and 6 represents Saturday. The day of week is in the time zone of the gateway.

    • day_of_month(Option<i32>):

      The day of the month component of the maintenance start time represented as an ordinal number from 1 to 28, where 1 represents the first day of the month and 28 represents the last day of the month.

    • timezone(Option<String>):

      A value that indicates the time zone that is set for the gateway. The start time and day of week specified should be in the time zone of the gateway.

  • On failure, responds with SdkError<DescribeMaintenanceStartTimeError>
source§

impl Client

source

pub fn describe_nfs_file_shares(&self) -> DescribeNFSFileSharesFluentBuilder

Constructs a fluent builder for the DescribeNFSFileShares operation.

source§

impl Client

source

pub fn describe_smb_file_shares(&self) -> DescribeSMBFileSharesFluentBuilder

Constructs a fluent builder for the DescribeSMBFileShares operation.

source§

impl Client

source

pub fn describe_smb_settings(&self) -> DescribeSMBSettingsFluentBuilder

Constructs a fluent builder for the DescribeSMBSettings operation.

  • The fluent builder is configurable:
  • On success, responds with DescribeSmbSettingsOutput with field(s):
    • gateway_arn(Option<String>):

      The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.

    • domain_name(Option<String>):

      The name of the domain that the gateway is joined to.

    • active_directory_status(Option<ActiveDirectoryStatus>):

      Indicates the status of a gateway that is a member of the Active Directory domain.

      • ACCESS_DENIED: Indicates that the JoinDomain operation failed due to an authentication error.

      • DETACHED: Indicates that gateway is not joined to a domain.

      • JOINED: Indicates that the gateway has successfully joined a domain.

      • JOINING: Indicates that a JoinDomain operation is in progress.

      • NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity error.

      • TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn’t complete within the allotted time.

      • UNKNOWN_ERROR: Indicates that the JoinDomain operation failed due to another type of error.

    • smb_guest_password_set(Option<bool>):

      This value is true if a password for the guest user smbguest is set, otherwise false. Only supported for S3 File Gateways.

      Valid Values: true | false

    • smb_security_strategy(Option<SmbSecurityStrategy>):

      The type of security strategy that was specified for file gateway.

      • ClientSpecified: If you use this option, requests are established based on what is negotiated by the client. This option is recommended when you want to maximize compatibility across different clients in your environment. Only supported for S3 File Gateways.

      • MandatorySigning: If you use this option, file gateway only allows connections from SMBv2 or SMBv3 clients that have signing enabled. This option works with SMB clients on Microsoft Windows Vista, Windows Server 2008 or newer.

      • MandatoryEncryption: If you use this option, file gateway only allows connections from SMBv3 clients that have encryption enabled. This option is highly recommended for environments that handle sensitive data. This option works with SMB clients on Microsoft Windows 8, Windows Server 2012 or newer.

    • file_shares_visible(Option<bool>):

      The shares on this gateway appear when listing shares. Only supported for S3 File Gateways.

    • smb_local_groups(Option<SmbLocalGroups>):

      A list of Active Directory users and groups that have special permissions for SMB file shares on the gateway.

  • On failure, responds with SdkError<DescribeSMBSettingsError>
source§

impl Client

source

pub fn describe_snapshot_schedule( &self ) -> DescribeSnapshotScheduleFluentBuilder

Constructs a fluent builder for the DescribeSnapshotSchedule operation.

source§

impl Client

source

pub fn describe_storedi_scsi_volumes( &self ) -> DescribeStorediSCSIVolumesFluentBuilder

Constructs a fluent builder for the DescribeStorediSCSIVolumes operation.

  • The fluent builder is configurable:
  • On success, responds with DescribeStorediScsiVolumesOutput with field(s):
    • storedi_scsi_volumes(Option<Vec<StorediScsiVolume>>):

      Describes a single unit of output from DescribeStorediSCSIVolumes. The following fields are returned:

      • ChapEnabled: Indicates whether mutual CHAP is enabled for the iSCSI target.

      • LunNumber: The logical disk number.

      • NetworkInterfaceId: The network interface ID of the stored volume that initiator use to map the stored volume as an iSCSI target.

      • NetworkInterfacePort: The port used to communicate with iSCSI targets.

      • PreservedExistingData: Indicates when the stored volume was created, existing data on the underlying local disk was preserved.

      • SourceSnapshotId: If the stored volume was created from a snapshot, this field contains the snapshot ID used, e.g. snap-1122aabb. Otherwise, this field is not included.

      • StorediSCSIVolumes: An array of StorediSCSIVolume objects where each object contains metadata about one stored volume.

      • TargetARN: The Amazon Resource Name (ARN) of the volume target.

      • VolumeARN: The Amazon Resource Name (ARN) of the stored volume.

      • VolumeDiskId: The disk ID of the local disk that was specified in the CreateStorediSCSIVolume operation.

      • VolumeId: The unique identifier of the storage volume, e.g. vol-1122AABB.

      • VolumeiSCSIAttributes: An VolumeiSCSIAttributes object that represents a collection of iSCSI attributes for one stored volume.

      • VolumeProgress: Represents the percentage complete if the volume is restoring or bootstrapping that represents the percent of data transferred. This field does not appear in the response if the stored volume is not restoring or bootstrapping.

      • VolumeSizeInBytes: The size of the volume in bytes.

      • VolumeStatus: One of the VolumeStatus values that indicates the state of the volume.

      • VolumeType: One of the enumeration values describing the type of the volume. Currently, only STORED volumes are supported.

  • On failure, responds with SdkError<DescribeStorediSCSIVolumesError>
source§

impl Client

source

pub fn describe_tape_archives(&self) -> DescribeTapeArchivesFluentBuilder

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

source§

impl Client

source

pub fn describe_tape_recovery_points( &self ) -> DescribeTapeRecoveryPointsFluentBuilder

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

source§

impl Client

source

pub fn describe_tapes(&self) -> DescribeTapesFluentBuilder

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

source§

impl Client

source

pub fn describe_upload_buffer(&self) -> DescribeUploadBufferFluentBuilder

Constructs a fluent builder for the DescribeUploadBuffer operation.

source§

impl Client

source

pub fn describe_vtl_devices(&self) -> DescribeVTLDevicesFluentBuilder

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

source§

impl Client

source

pub fn describe_working_storage(&self) -> DescribeWorkingStorageFluentBuilder

Constructs a fluent builder for the DescribeWorkingStorage operation.

source§

impl Client

source

pub fn detach_volume(&self) -> DetachVolumeFluentBuilder

Constructs a fluent builder for the DetachVolume operation.

source§

impl Client

source

pub fn disable_gateway(&self) -> DisableGatewayFluentBuilder

Constructs a fluent builder for the DisableGateway operation.

source§

impl Client

source

pub fn disassociate_file_system(&self) -> DisassociateFileSystemFluentBuilder

Constructs a fluent builder for the DisassociateFileSystem operation.

source§

impl Client

source

pub fn join_domain(&self) -> JoinDomainFluentBuilder

Constructs a fluent builder for the JoinDomain operation.

source§

impl Client

source

pub fn list_automatic_tape_creation_policies( &self ) -> ListAutomaticTapeCreationPoliciesFluentBuilder

Constructs a fluent builder for the ListAutomaticTapeCreationPolicies operation.

source§

impl Client

source

pub fn list_file_shares(&self) -> ListFileSharesFluentBuilder

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

source§

impl Client

source

pub fn list_file_system_associations( &self ) -> ListFileSystemAssociationsFluentBuilder

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

source§

impl Client

source

pub fn list_gateways(&self) -> ListGatewaysFluentBuilder

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

source§

impl Client

source

pub fn list_local_disks(&self) -> ListLocalDisksFluentBuilder

Constructs a fluent builder for the ListLocalDisks 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 list_tape_pools(&self) -> ListTapePoolsFluentBuilder

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

source§

impl Client

source

pub fn list_tapes(&self) -> ListTapesFluentBuilder

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

source§

impl Client

source

pub fn list_volume_initiators(&self) -> ListVolumeInitiatorsFluentBuilder

Constructs a fluent builder for the ListVolumeInitiators operation.

source§

impl Client

source

pub fn list_volume_recovery_points( &self ) -> ListVolumeRecoveryPointsFluentBuilder

Constructs a fluent builder for the ListVolumeRecoveryPoints operation.

source§

impl Client

source

pub fn list_volumes(&self) -> ListVolumesFluentBuilder

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

source§

impl Client

source

pub fn notify_when_uploaded(&self) -> NotifyWhenUploadedFluentBuilder

Constructs a fluent builder for the NotifyWhenUploaded operation.

source§

impl Client

source

pub fn refresh_cache(&self) -> RefreshCacheFluentBuilder

Constructs a fluent builder for the RefreshCache operation.

source§

impl Client

source

pub fn remove_tags_from_resource(&self) -> RemoveTagsFromResourceFluentBuilder

Constructs a fluent builder for the RemoveTagsFromResource operation.

source§

impl Client

source

pub fn reset_cache(&self) -> ResetCacheFluentBuilder

Constructs a fluent builder for the ResetCache operation.

source§

impl Client

source

pub fn retrieve_tape_archive(&self) -> RetrieveTapeArchiveFluentBuilder

Constructs a fluent builder for the RetrieveTapeArchive operation.

source§

impl Client

source

pub fn retrieve_tape_recovery_point( &self ) -> RetrieveTapeRecoveryPointFluentBuilder

Constructs a fluent builder for the RetrieveTapeRecoveryPoint operation.

source§

impl Client

source

pub fn set_local_console_password(&self) -> SetLocalConsolePasswordFluentBuilder

Constructs a fluent builder for the SetLocalConsolePassword operation.

source§

impl Client

source

pub fn set_smb_guest_password(&self) -> SetSMBGuestPasswordFluentBuilder

Constructs a fluent builder for the SetSMBGuestPassword operation.

source§

impl Client

source

pub fn shutdown_gateway(&self) -> ShutdownGatewayFluentBuilder

Constructs a fluent builder for the ShutdownGateway operation.

source§

impl Client

source

pub fn start_availability_monitor_test( &self ) -> StartAvailabilityMonitorTestFluentBuilder

Constructs a fluent builder for the StartAvailabilityMonitorTest operation.

source§

impl Client

source

pub fn start_gateway(&self) -> StartGatewayFluentBuilder

Constructs a fluent builder for the StartGateway operation.

source§

impl Client

source

pub fn update_automatic_tape_creation_policy( &self ) -> UpdateAutomaticTapeCreationPolicyFluentBuilder

Constructs a fluent builder for the UpdateAutomaticTapeCreationPolicy operation.

source§

impl Client

source

pub fn update_bandwidth_rate_limit( &self ) -> UpdateBandwidthRateLimitFluentBuilder

Constructs a fluent builder for the UpdateBandwidthRateLimit operation.

source§

impl Client

source

pub fn update_bandwidth_rate_limit_schedule( &self ) -> UpdateBandwidthRateLimitScheduleFluentBuilder

Constructs a fluent builder for the UpdateBandwidthRateLimitSchedule operation.

source§

impl Client

source

pub fn update_chap_credentials(&self) -> UpdateChapCredentialsFluentBuilder

Constructs a fluent builder for the UpdateChapCredentials operation.

source§

impl Client

source

pub fn update_file_system_association( &self ) -> UpdateFileSystemAssociationFluentBuilder

Constructs a fluent builder for the UpdateFileSystemAssociation operation.

source§

impl Client

source

pub fn update_gateway_information( &self ) -> UpdateGatewayInformationFluentBuilder

Constructs a fluent builder for the UpdateGatewayInformation operation.

source§

impl Client

source

pub fn update_gateway_software_now( &self ) -> UpdateGatewaySoftwareNowFluentBuilder

Constructs a fluent builder for the UpdateGatewaySoftwareNow operation.

source§

impl Client

source

pub fn update_maintenance_start_time( &self ) -> UpdateMaintenanceStartTimeFluentBuilder

Constructs a fluent builder for the UpdateMaintenanceStartTime operation.

source§

impl Client

source

pub fn update_nfs_file_share(&self) -> UpdateNFSFileShareFluentBuilder

Constructs a fluent builder for the UpdateNFSFileShare operation.

source§

impl Client

source

pub fn update_smb_file_share(&self) -> UpdateSMBFileShareFluentBuilder

Constructs a fluent builder for the UpdateSMBFileShare operation.

source§

impl Client

source

pub fn update_smb_file_share_visibility( &self ) -> UpdateSMBFileShareVisibilityFluentBuilder

Constructs a fluent builder for the UpdateSMBFileShareVisibility operation.

source§

impl Client

source

pub fn update_smb_local_groups(&self) -> UpdateSMBLocalGroupsFluentBuilder

Constructs a fluent builder for the UpdateSMBLocalGroups operation.

source§

impl Client

source

pub fn update_smb_security_strategy( &self ) -> UpdateSMBSecurityStrategyFluentBuilder

Constructs a fluent builder for the UpdateSMBSecurityStrategy operation.

  • The fluent builder is configurable:
    • gateway_arn(impl ::std::convert::Into<String>) / set_gateway_arn(Option<String>):

      The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.

    • smb_security_strategy(SmbSecurityStrategy) / set_smb_security_strategy(Option<SmbSecurityStrategy>):

      Specifies the type of security strategy.

      ClientSpecified: if you use this option, requests are established based on what is negotiated by the client. This option is recommended when you want to maximize compatibility across different clients in your environment. Supported only in S3 File Gateway.

      MandatorySigning: if you use this option, file gateway only allows connections from SMBv2 or SMBv3 clients that have signing enabled. This option works with SMB clients on Microsoft Windows Vista, Windows Server 2008 or newer.

      MandatoryEncryption: if you use this option, file gateway only allows connections from SMBv3 clients that have encryption enabled. This option is highly recommended for environments that handle sensitive data. This option works with SMB clients on Microsoft Windows 8, Windows Server 2012 or newer.

  • On success, responds with UpdateSmbSecurityStrategyOutput with field(s):
    • gateway_arn(Option<String>):

      The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.

  • On failure, responds with SdkError<UpdateSMBSecurityStrategyError>
source§

impl Client

source

pub fn update_snapshot_schedule(&self) -> UpdateSnapshotScheduleFluentBuilder

Constructs a fluent builder for the UpdateSnapshotSchedule operation.

source§

impl Client

source

pub fn update_vtl_device_type(&self) -> UpdateVTLDeviceTypeFluentBuilder

Constructs a fluent builder for the UpdateVTLDeviceType operation.

source§

impl Client

source

pub fn with_config( client: Client<DynConnector, DynMiddleware<DynConnector>>, conf: Config ) -> Self

Creates a client with the given service configuration.

source

pub fn conf(&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.
source

pub fn from_conf(conf: Config) -> Self

Creates a new client from the service Config.

Panics
  • This method will panic if the conf 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 conf is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Self

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

impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client

source§

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§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere 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 Twhere 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 Twhere 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