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.

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_storagegateway::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_storagegateway::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_storagegateway::Client::from_conf(config);

Implementations

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the ActivateGateway operation.

Constructs a fluent builder for the AddCache operation.

Constructs a fluent builder for the AddTagsToResource operation.

Constructs a fluent builder for the AddUploadBuffer operation.

Constructs a fluent builder for the AddWorkingStorage operation.

Constructs a fluent builder for the AssignTapePool operation.

  • The fluent builder is configurable:
    • tape_arn(impl Into<String>) / set_tape_arn(Option<String>):

      The unique Amazon Resource Name (ARN) of the virtual tape that you want to add to the tape pool.

    • pool_id(impl Into<String>) / set_pool_id(Option<String>):

      The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

    • bypass_governance_retention(bool) / set_bypass_governance_retention(bool):

      Set permissions to bypass governance retention. If the lock type of the archived tape is Governance, the tape’s archived age is not older than RetentionLockInDays, and the user does not already have BypassGovernanceRetention, setting this to TRUE enables the user to bypass the retention lock. This parameter is set to true by default for calls from the console.

      Valid values: TRUE | FALSE

  • On success, responds with AssignTapePoolOutput with field(s):
  • On failure, responds with SdkError<AssignTapePoolError>

Constructs a fluent builder for the AssociateFileSystem operation.

Constructs a fluent builder for the AttachVolume operation.

Constructs a fluent builder for the CancelArchival operation.

Constructs a fluent builder for the CancelRetrieval operation.

Constructs a fluent builder for the CreateCachediSCSIVolume operation.

Constructs a fluent builder for the CreateNFSFileShare operation.

Constructs a fluent builder for the CreateSMBFileShare operation.

Constructs a fluent builder for the CreateSnapshot operation.

Constructs a fluent builder for the CreateSnapshotFromVolumeRecoveryPoint operation.

Constructs a fluent builder for the CreateStorediSCSIVolume operation.

Constructs a fluent builder for the CreateTapePool operation.

Constructs a fluent builder for the CreateTapes operation.

Constructs a fluent builder for the CreateTapeWithBarcode operation.

Constructs a fluent builder for the DeleteAutomaticTapeCreationPolicy operation.

Constructs a fluent builder for the DeleteBandwidthRateLimit operation.

Constructs a fluent builder for the DeleteChapCredentials operation.

Constructs a fluent builder for the DeleteFileShare operation.

Constructs a fluent builder for the DeleteGateway operation.

Constructs a fluent builder for the DeleteSnapshotSchedule operation.

Constructs a fluent builder for the DeleteTape operation.

Constructs a fluent builder for the DeleteTapeArchive operation.

Constructs a fluent builder for the DeleteTapePool operation.

Constructs a fluent builder for the DeleteVolume operation.

Constructs a fluent builder for the DescribeAvailabilityMonitorTest operation.

Constructs a fluent builder for the DescribeBandwidthRateLimit operation.

Constructs a fluent builder for the DescribeBandwidthRateLimitSchedule operation.

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>

Constructs a fluent builder for the DescribeCachediSCSIVolumes operation.

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>

Constructs a fluent builder for the DescribeFileSystemAssociations operation.

Constructs a fluent builder for the DescribeGatewayInformation operation.

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>

Constructs a fluent builder for the DescribeNFSFileShares operation.

Constructs a fluent builder for the DescribeSMBFileShares operation.

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>

Constructs a fluent builder for the DescribeSnapshotSchedule operation.

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>

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

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

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

Constructs a fluent builder for the DescribeUploadBuffer operation.

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

Constructs a fluent builder for the DescribeWorkingStorage operation.

Constructs a fluent builder for the DetachVolume operation.

Constructs a fluent builder for the DisableGateway operation.

Constructs a fluent builder for the DisassociateFileSystem operation.

Constructs a fluent builder for the JoinDomain operation.

Constructs a fluent builder for the ListAutomaticTapeCreationPolicies operation.

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

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

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

Constructs a fluent builder for the ListLocalDisks operation.

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

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

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

Constructs a fluent builder for the ListVolumeInitiators operation.

Constructs a fluent builder for the ListVolumeRecoveryPoints operation.

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

Constructs a fluent builder for the NotifyWhenUploaded operation.

Constructs a fluent builder for the RefreshCache operation.

Constructs a fluent builder for the RemoveTagsFromResource operation.

Constructs a fluent builder for the ResetCache operation.

Constructs a fluent builder for the RetrieveTapeArchive operation.

Constructs a fluent builder for the RetrieveTapeRecoveryPoint operation.

Constructs a fluent builder for the SetLocalConsolePassword operation.

Constructs a fluent builder for the SetSMBGuestPassword operation.

Constructs a fluent builder for the ShutdownGateway operation.

Constructs a fluent builder for the StartAvailabilityMonitorTest operation.

Constructs a fluent builder for the StartGateway operation.

Constructs a fluent builder for the UpdateAutomaticTapeCreationPolicy operation.

Constructs a fluent builder for the UpdateBandwidthRateLimit operation.

Constructs a fluent builder for the UpdateBandwidthRateLimitSchedule operation.

Constructs a fluent builder for the UpdateChapCredentials operation.

Constructs a fluent builder for the UpdateFileSystemAssociation operation.

Constructs a fluent builder for the UpdateGatewayInformation operation.

Constructs a fluent builder for the UpdateGatewaySoftwareNow operation.

Constructs a fluent builder for the UpdateMaintenanceStartTime operation.

Constructs a fluent builder for the UpdateNFSFileShare operation.

Constructs a fluent builder for the UpdateSMBFileShare operation.

Constructs a fluent builder for the UpdateSMBFileShareVisibility operation.

Constructs a fluent builder for the UpdateSMBLocalGroups operation.

Constructs a fluent builder for the UpdateSMBSecurityStrategy operation.

  • The fluent builder is configurable:
    • gateway_arn(impl 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>

Constructs a fluent builder for the UpdateSnapshotSchedule operation.

Constructs a fluent builder for the UpdateVTLDeviceType 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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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