pub struct Client { /* private fields */ }
Expand description
Client for AWS DataSync
Client for invoking operations on AWS DataSync. Each operation on AWS DataSync 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_datasync::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 Builder
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_datasync::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 AddStorageSystem
operation has
a Client::add_storage_system
, 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.add_storage_system()
.system_type("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
impl Client
Sourcepub fn add_storage_system(&self) -> AddStorageSystemFluentBuilder
pub fn add_storage_system(&self) -> AddStorageSystemFluentBuilder
Constructs a fluent builder for the AddStorageSystem
operation.
- The fluent builder is configurable:
server_configuration(DiscoveryServerConfiguration)
/set_server_configuration(Option<DiscoveryServerConfiguration>)
:
required: trueSpecifies the server name and network port required to connect with the management interface of your on-premises storage system.
system_type(DiscoverySystemType)
/set_system_type(Option<DiscoverySystemType>)
:
required: trueSpecifies the type of on-premises storage system that you want DataSync Discovery to collect information about.
DataSync Discovery currently supports NetApp Fabric-Attached Storage (FAS) and All Flash FAS (AFF) systems running ONTAP 9.7 or later.
agent_arns(impl Into<String>)
/set_agent_arns(Option<Vec::<String>>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the DataSync agent that connects to and reads from your on-premises storage system’s management interface. You can only specify one ARN.
cloud_watch_log_group_arn(impl Into<String>)
/set_cloud_watch_log_group_arn(Option<String>)
:
required: falseSpecifies the ARN of the Amazon CloudWatch log group for monitoring and logging discovery job events.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your on-premises storage system.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseSpecifies a familiar name for your on-premises storage system.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: trueSpecifies a client token to make sure requests with this API operation are idempotent. If you don’t specify a client token, DataSync generates one for you automatically.
credentials(Credentials)
/set_credentials(Option<Credentials>)
:
required: trueSpecifies the user name and password for accessing your on-premises storage system’s management interface.
- On success, responds with
AddStorageSystemOutput
with field(s):storage_system_arn(String)
:The ARN of the on-premises storage system that you can use with DataSync Discovery.
- On failure, responds with
SdkError<AddStorageSystemError>
Source§impl Client
impl Client
Sourcepub fn cancel_task_execution(&self) -> CancelTaskExecutionFluentBuilder
pub fn cancel_task_execution(&self) -> CancelTaskExecutionFluentBuilder
Constructs a fluent builder for the CancelTaskExecution
operation.
- The fluent builder is configurable:
task_execution_arn(impl Into<String>)
/set_task_execution_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the task execution to stop.
- On success, responds with
CancelTaskExecutionOutput
- On failure, responds with
SdkError<CancelTaskExecutionError>
Source§impl Client
impl Client
Sourcepub fn create_agent(&self) -> CreateAgentFluentBuilder
pub fn create_agent(&self) -> CreateAgentFluentBuilder
Constructs a fluent builder for the CreateAgent
operation.
- The fluent builder is configurable:
activation_key(impl Into<String>)
/set_activation_key(Option<String>)
:
required: trueSpecifies your DataSync agent’s activation key. If you don’t have an activation key, see Activating your agent.
agent_name(impl Into<String>)
/set_agent_name(Option<String>)
:
required: falseSpecifies a name for your agent. We recommend specifying a name that you can remember.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least one tag for your agent.
vpc_endpoint_id(impl Into<String>)
/set_vpc_endpoint_id(Option<String>)
:
required: falseSpecifies the ID of the VPC service endpoint that you’re using. For example, a VPC endpoint ID looks like
vpce-01234d5aff67890e1
.The VPC service endpoint you use must include the DataSync service name (for example,
com.amazonaws.us-east-2.datasync
).subnet_arns(impl Into<String>)
/set_subnet_arns(Option<Vec::<String>>)
:
required: falseSpecifies the ARN of the subnet where your VPC service endpoint is located. You can only specify one ARN.
security_group_arns(impl Into<String>)
/set_security_group_arns(Option<Vec::<String>>)
:
required: falseSpecifies the Amazon Resource Name (ARN) of the security group that allows traffic between your agent and VPC service endpoint. You can only specify one ARN.
- On success, responds with
CreateAgentOutput
with field(s):agent_arn(Option<String>)
:The ARN of the agent that you just activated. Use the ListAgents operation to return a list of agents in your Amazon Web Services account and Amazon Web Services Region.
- On failure, responds with
SdkError<CreateAgentError>
Source§impl Client
impl Client
Sourcepub fn create_location_azure_blob(&self) -> CreateLocationAzureBlobFluentBuilder
pub fn create_location_azure_blob(&self) -> CreateLocationAzureBlobFluentBuilder
Constructs a fluent builder for the CreateLocationAzureBlob
operation.
- The fluent builder is configurable:
container_url(impl Into<String>)
/set_container_url(Option<String>)
:
required: trueSpecifies the URL of the Azure Blob Storage container involved in your transfer.
authentication_type(AzureBlobAuthenticationType)
/set_authentication_type(Option<AzureBlobAuthenticationType>)
:
required: trueSpecifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS).
sas_configuration(AzureBlobSasConfiguration)
/set_sas_configuration(Option<AzureBlobSasConfiguration>)
:
required: falseSpecifies the SAS configuration that allows DataSync to access your Azure Blob Storage.
blob_type(AzureBlobType)
/set_blob_type(Option<AzureBlobType>)
:
required: falseSpecifies the type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation.
access_tier(AzureAccessTier)
/set_access_tier(Option<AzureAccessTier>)
:
required: falseSpecifies the access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies path segments if you want to limit your transfer to a virtual directory in your container (for example,
/my/images
).agent_arns(impl Into<String>)
/set_agent_arns(Option<Vec::<String>>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage container.
You can specify more than one agent. For more information, see Using multiple agents for your transfer.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your transfer location.
- On success, responds with
CreateLocationAzureBlobOutput
with field(s):location_arn(Option<String>)
:The ARN of the Azure Blob Storage transfer location that you created.
- On failure, responds with
SdkError<CreateLocationAzureBlobError>
Source§impl Client
impl Client
Sourcepub fn create_location_efs(&self) -> CreateLocationEfsFluentBuilder
pub fn create_location_efs(&self) -> CreateLocationEfsFluentBuilder
Constructs a fluent builder for the CreateLocationEfs
operation.
- The fluent builder is configurable:
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location).
By default, DataSync uses the root directory (or access point if you provide one by using
AccessPointArn
). You can also include subdirectories using forward slashes (for example,/path/to/folder
).efs_filesystem_arn(impl Into<String>)
/set_efs_filesystem_arn(Option<String>)
:
required: trueSpecifies the ARN for your Amazon EFS file system.
ec2_config(Ec2Config)
/set_ec2_config(Option<Ec2Config>)
:
required: trueSpecifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS file system’s mount targets.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies the key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.
access_point_arn(impl Into<String>)
/set_access_point_arn(Option<String>)
:
required: falseSpecifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your Amazon EFS file system.
For more information, see Accessing restricted file systems.
file_system_access_role_arn(impl Into<String>)
/set_file_system_access_role_arn(Option<String>)
:
required: falseSpecifies an Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system.
For information on creating this role, see Creating a DataSync IAM role for file system access.
in_transit_encryption(EfsInTransitEncryption)
/set_in_transit_encryption(Option<EfsInTransitEncryption>)
:
required: falseSpecifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system.
If you specify an access point using
AccessPointArn
or an IAM role usingFileSystemAccessRoleArn
, you must set this parameter toTLS1_2
.
- On success, responds with
CreateLocationEfsOutput
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the Amazon EFS file system location that you create.
- On failure, responds with
SdkError<CreateLocationEfsError>
Source§impl Client
impl Client
Sourcepub fn create_location_fsx_lustre(&self) -> CreateLocationFsxLustreFluentBuilder
pub fn create_location_fsx_lustre(&self) -> CreateLocationFsxLustreFluentBuilder
Constructs a fluent builder for the CreateLocationFsxLustre
operation.
- The fluent builder is configurable:
fsx_filesystem_arn(impl Into<String>)
/set_fsx_filesystem_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the FSx for Lustre file system.
security_group_arns(impl Into<String>)
/set_security_group_arns(Option<Vec::<String>>)
:
required: trueSpecifies the Amazon Resource Names (ARNs) of up to five security groups that provide access to your FSx for Lustre file system.
The security groups must be able to access the file system’s ports. The file system must also allow access from the security groups. For information about file system access, see the Amazon FSx for Lustre User Guide .
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies a mount path for your FSx for Lustre file system. The path can include subdirectories.
When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don’t include this parameter, DataSync uses the file system’s root directory (
/
).tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
- On success, responds with
CreateLocationFsxLustreOutput
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the FSx for Lustre file system location that you created.
- On failure, responds with
SdkError<CreateLocationFsxLustreError>
Source§impl Client
impl Client
Sourcepub fn create_location_fsx_ontap(&self) -> CreateLocationFsxOntapFluentBuilder
pub fn create_location_fsx_ontap(&self) -> CreateLocationFsxOntapFluentBuilder
Constructs a fluent builder for the CreateLocationFsxOntap
operation.
- The fluent builder is configurable:
protocol(FsxProtocol)
/set_protocol(Option<FsxProtocol>)
:
required: trueSpecifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
security_group_arns(impl Into<String>)
/set_security_group_arns(Option<Vec::<String>>)
:
required: trueSpecifies the Amazon EC2 security groups that provide access to your file system’s preferred subnet.
The security groups must allow outbound traffic on the following ports (depending on the protocol you use):
-
Network File System (NFS): TCP ports 111, 635, and 2049
-
Server Message Block (SMB): TCP port 445
Your file system’s security groups must also allow inbound traffic on the same ports.
-
storage_virtual_machine_arn(impl Into<String>)
/set_storage_virtual_machine_arn(Option<String>)
:
required: trueSpecifies the ARN of the storage virtual machine (SVM) in your file system where you want to copy data to or from.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies a path to the file share in the SVM where you want to transfer data to or from.
You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares). For example, your mount path might be
/vol1
,/vol1/tree1
, or/share1
.Don’t specify a junction path in the SVM’s root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
- On success, responds with
CreateLocationFsxOntapOutput
with field(s):location_arn(Option<String>)
:Specifies the ARN of the FSx for ONTAP file system location that you create.
- On failure, responds with
SdkError<CreateLocationFsxOntapError>
Source§impl Client
impl Client
Sourcepub fn create_location_fsx_open_zfs(
&self,
) -> CreateLocationFsxOpenZfsFluentBuilder
pub fn create_location_fsx_open_zfs( &self, ) -> CreateLocationFsxOpenZfsFluentBuilder
Constructs a fluent builder for the CreateLocationFsxOpenZfs
operation.
- The fluent builder is configurable:
fsx_filesystem_arn(impl Into<String>)
/set_fsx_filesystem_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the FSx for OpenZFS file system.
protocol(FsxProtocol)
/set_protocol(Option<FsxProtocol>)
:
required: trueThe type of protocol that DataSync uses to access your file system.
security_group_arns(impl Into<String>)
/set_security_group_arns(Option<Vec::<String>>)
:
required: trueThe ARNs of the security groups that are used to configure the FSx for OpenZFS file system.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseA subdirectory in the location’s path that must begin with
/fsx
. DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location).tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseThe key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.
- On success, responds with
CreateLocationFsxOpenZfsOutput
with field(s):location_arn(Option<String>)
:The ARN of the FSx for OpenZFS file system location that you created.
- On failure, responds with
SdkError<CreateLocationFsxOpenZfsError>
Source§impl Client
impl Client
Sourcepub fn create_location_fsx_windows(
&self,
) -> CreateLocationFsxWindowsFluentBuilder
pub fn create_location_fsx_windows( &self, ) -> CreateLocationFsxWindowsFluentBuilder
Constructs a fluent builder for the CreateLocationFsxWindows
operation.
- The fluent builder is configurable:
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies a mount path for your file system using forward slashes. This is where DataSync reads or writes data (depending on if this is a source or destination location).
fsx_filesystem_arn(impl Into<String>)
/set_fsx_filesystem_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system.
security_group_arns(impl Into<String>)
/set_security_group_arns(Option<Vec::<String>>)
:
required: trueSpecifies the ARNs of the Amazon EC2 security groups that provide access to your file system’s preferred subnet.
The security groups that you specify must be able to communicate with your file system’s security groups. For information about configuring security groups for file system access, see the Amazon FSx for Windows File Server User Guide .
If you choose a security group that doesn’t allow connections from within itself, do one of the following:
-
Configure the security group to allow it to communicate within itself.
-
Choose a different security group that can communicate with the mount target’s security group.
-
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
user(impl Into<String>)
/set_user(Option<String>)
:
required: trueSpecifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.
For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations.
domain(impl Into<String>)
/set_domain(Option<String>)
:
required: falseSpecifies the name of the Windows domain that the FSx for Windows File Server file system belongs to.
If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file system.
password(impl Into<String>)
/set_password(Option<String>)
:
required: trueSpecifies the password of the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.
- On success, responds with
CreateLocationFsxWindowsOutput
with field(s):location_arn(Option<String>)
:The ARN of the FSx for Windows File Server file system location you created.
- On failure, responds with
SdkError<CreateLocationFsxWindowsError>
Source§impl Client
impl Client
Sourcepub fn create_location_hdfs(&self) -> CreateLocationHdfsFluentBuilder
pub fn create_location_hdfs(&self) -> CreateLocationHdfsFluentBuilder
Constructs a fluent builder for the CreateLocationHdfs
operation.
- The fluent builder is configurable:
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseA subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster. If the subdirectory isn’t specified, it will default to
/
.name_nodes(HdfsNameNode)
/set_name_nodes(Option<Vec::<HdfsNameNode>>)
:
required: trueThe NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. You can use only one NameNode.
block_size(i32)
/set_block_size(Option<i32>)
:
required: falseThe size of data blocks to write into the HDFS cluster. The block size must be a multiple of 512 bytes. The default block size is 128 mebibytes (MiB).
replication_factor(i32)
/set_replication_factor(Option<i32>)
:
required: falseThe number of DataNodes to replicate the data to when writing to the HDFS cluster. By default, data is replicated to three DataNodes.
kms_key_provider_uri(impl Into<String>)
/set_kms_key_provider_uri(Option<String>)
:
required: falseThe URI of the HDFS cluster’s Key Management Server (KMS).
qop_configuration(QopConfiguration)
/set_qop_configuration(Option<QopConfiguration>)
:
required: falseThe Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the Hadoop Distributed File System (HDFS) cluster. If
QopConfiguration
isn’t specified,RpcProtection
andDataTransferProtection
default toPRIVACY
. If you setRpcProtection
orDataTransferProtection
, the other parameter assumes the same value.authentication_type(HdfsAuthenticationType)
/set_authentication_type(Option<HdfsAuthenticationType>)
:
required: trueThe type of authentication used to determine the identity of the user.
simple_user(impl Into<String>)
/set_simple_user(Option<String>)
:
required: falseThe user name used to identify the client on the host operating system.
If
SIMPLE
is specified forAuthenticationType
, this parameter is required.kerberos_principal(impl Into<String>)
/set_kerberos_principal(Option<String>)
:
required: falseThe Kerberos principal with access to the files and folders on the HDFS cluster.
If
KERBEROS
is specified forAuthenticationType
, this parameter is required.kerberos_keytab(Blob)
/set_kerberos_keytab(Option<Blob>)
:
required: falseThe Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. You can load the keytab from a file by providing the file’s address. If you’re using the CLI, it performs base64 encoding for you. Otherwise, provide the base64-encoded text.
If
KERBEROS
is specified forAuthenticationType
, this parameter is required.kerberos_krb5_conf(Blob)
/set_kerberos_krb5_conf(Option<Blob>)
:
required: falseThe
krb5.conf
file that contains the Kerberos configuration information. You can load thekrb5.conf
file by providing the file’s address. If you’re using the CLI, it performs the base64 encoding for you. Otherwise, provide the base64-encoded text.If
KERBEROS
is specified forAuthenticationType
, this parameter is required.agent_arns(impl Into<String>)
/set_agent_arns(Option<Vec::<String>>)
:
required: trueThe Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseThe key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources.
- On success, responds with
CreateLocationHdfsOutput
with field(s):location_arn(Option<String>)
:The ARN of the source HDFS cluster location that you create.
- On failure, responds with
SdkError<CreateLocationHdfsError>
Source§impl Client
impl Client
Sourcepub fn create_location_nfs(&self) -> CreateLocationNfsFluentBuilder
pub fn create_location_nfs(&self) -> CreateLocationNfsFluentBuilder
Constructs a fluent builder for the CreateLocationNfs
operation.
- The fluent builder is configurable:
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: trueSpecifies the export path in your NFS file server that you want DataSync to mount.
This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers.
server_hostname(impl Into<String>)
/set_server_hostname(Option<String>)
:
required: trueSpecifies the Domain Name System (DNS) name or IP version 4 address of the NFS file server that your DataSync agent connects to.
on_prem_config(OnPremConfig)
/set_on_prem_config(Option<OnPremConfig>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server.
You can specify more than one agent. For more information, see Using multiple DataSync agents.
mount_options(NfsMountOptions)
/set_mount_options(Option<NfsMountOptions>)
:
required: falseSpecifies the options that DataSync can use to mount your NFS file server.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
- On success, responds with
CreateLocationNfsOutput
with field(s):location_arn(Option<String>)
:The ARN of the transfer location that you created for your NFS file server.
- On failure, responds with
SdkError<CreateLocationNfsError>
Source§impl Client
impl Client
Sourcepub fn create_location_object_storage(
&self,
) -> CreateLocationObjectStorageFluentBuilder
pub fn create_location_object_storage( &self, ) -> CreateLocationObjectStorageFluentBuilder
Constructs a fluent builder for the CreateLocationObjectStorage
operation.
- The fluent builder is configurable:
server_hostname(impl Into<String>)
/set_server_hostname(Option<String>)
:
required: trueSpecifies the domain name or IP address of the object storage server. A DataSync agent uses this hostname to mount the object storage server in a network.
server_port(i32)
/set_server_port(Option<i32>)
:
required: falseSpecifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
server_protocol(ObjectStorageServerProtocol)
/set_server_protocol(Option<ObjectStorageServerProtocol>)
:
required: falseSpecifies the protocol that your object storage server uses to communicate.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
bucket_name(impl Into<String>)
/set_bucket_name(Option<String>)
:
required: trueSpecifies the name of the object storage bucket involved in the transfer.
access_key(impl Into<String>)
/set_access_key(Option<String>)
:
required: falseSpecifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
secret_key(impl Into<String>)
/set_secret_key(Option<String>)
:
required: falseSpecifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
agent_arns(impl Into<String>)
/set_agent_arns(Option<Vec::<String>>)
:
required: trueSpecifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies the key-value pair that represents a tag that you want to add to the resource. Tags can help you manage, filter, and search for your resources. We recommend creating a name tag for your location.
server_certificate(Blob)
/set_server_certificate(Option<Blob>)
:
required: falseSpecifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single
.pem
file with a full certificate chain (for example,file:///home/user/.ssh/object_storage_certificates.pem
).The certificate chain might include:
-
The object storage system’s certificate
-
All intermediate certificates (if there are any)
-
The root certificate of the signing CA
You can concatenate your certificates into a
.pem
file (which can be up to 32768 bytes before base64 encoding). The following examplecat
command creates anobject_storage_certificates.pem
file that includes three certificates:cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem
To use this parameter, configure
ServerProtocol
toHTTPS
.-
- On success, responds with
CreateLocationObjectStorageOutput
with field(s):location_arn(Option<String>)
:Specifies the ARN of the object storage system location that you create.
- On failure, responds with
SdkError<CreateLocationObjectStorageError>
Source§impl Client
impl Client
Sourcepub fn create_location_s3(&self) -> CreateLocationS3FluentBuilder
pub fn create_location_s3(&self) -> CreateLocationS3FluentBuilder
Constructs a fluent builder for the CreateLocationS3
operation.
- The fluent builder is configurable:
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location).
DataSync can’t transfer objects with a prefix that begins with a slash (
/
) or includes//
,/./
, or/../
patterns. For example:-
/photos
-
photos//2006/January
-
photos/./2006/February
-
photos/../2006/March
-
s3_bucket_arn(impl Into<String>)
/set_s3_bucket_arn(Option<String>)
:
required: trueSpecifies the ARN of the S3 bucket that you want to use as a location. (When creating your DataSync task later, you specify whether this location is a transfer source or destination.)
If your S3 bucket is located on an Outposts resource, you must specify an Amazon S3 access point. For more information, see Managing data access with Amazon S3 access points in the Amazon S3 User Guide.
s3_storage_class(S3StorageClass)
/set_s3_storage_class(Option<S3StorageClass>)
:
required: falseSpecifies the storage class that you want your objects to use when Amazon S3 is a transfer destination.
For buckets in Amazon Web Services Regions, the storage class defaults to
STANDARD
. For buckets on Outposts, the storage class defaults toOUTPOSTS
.For more information, see Storage class considerations with Amazon S3 transfers.
s3_config(S3Config)
/set_s3_config(Option<S3Config>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.
For more information, see Providing DataSync access to S3 buckets.
agent_arns(impl Into<String>)
/set_agent_arns(Option<Vec::<String>>)
:
required: false(Amazon S3 on Outposts only) Specifies the Amazon Resource Name (ARN) of the DataSync agent on your Outpost.
For more information, see Deploy your DataSync agent on Outposts.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your transfer location.
- On success, responds with
CreateLocationS3Output
with field(s):location_arn(Option<String>)
:The ARN of the S3 location that you created.
- On failure, responds with
SdkError<CreateLocationS3Error>
Source§impl Client
impl Client
Sourcepub fn create_location_smb(&self) -> CreateLocationSmbFluentBuilder
pub fn create_location_smb(&self) -> CreateLocationSmbFluentBuilder
Constructs a fluent builder for the CreateLocationSmb
operation.
- The fluent builder is configurable:
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: trueSpecifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example,
/path/to/subdirectory
). Make sure that other SMB clients in your network can also mount this path.To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see required permissions for SMB locations.
server_hostname(impl Into<String>)
/set_server_hostname(Option<String>)
:
required: trueSpecifies the Domain Name Service (DNS) name or IP address of the SMB file server that your DataSync agent will mount.
You can’t specify an IP version 6 (IPv6) address.
user(impl Into<String>)
/set_user(Option<String>)
:
required: trueSpecifies the user that can mount and access the files, folders, and file metadata in your SMB file server.
For information about choosing a user with the right level of access for your transfer, see required permissions for SMB locations.
domain(impl Into<String>)
/set_domain(Option<String>)
:
required: falseSpecifies the name of the Active Directory domain that your SMB file server belongs to.
If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.
password(impl Into<String>)
/set_password(Option<String>)
:
required: trueSpecifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer.
For more information, see required permissions for SMB locations.
agent_arns(impl Into<String>)
/set_agent_arns(Option<Vec::<String>>)
:
required: trueSpecifies the DataSync agent (or agents) that can connect to your SMB file server. You specify an agent by using its Amazon Resource Name (ARN).
mount_options(SmbMountOptions)
/set_mount_options(Option<SmbMountOptions>)
:
required: falseSpecifies the version of the SMB protocol that DataSync uses to access your SMB file server.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
- On success, responds with
CreateLocationSmbOutput
with field(s):location_arn(Option<String>)
:The ARN of the SMB location that you created.
- On failure, responds with
SdkError<CreateLocationSmbError>
Source§impl Client
impl Client
Sourcepub fn create_task(&self) -> CreateTaskFluentBuilder
pub fn create_task(&self) -> CreateTaskFluentBuilder
Constructs a fluent builder for the CreateTask
operation.
- The fluent builder is configurable:
source_location_arn(impl Into<String>)
/set_source_location_arn(Option<String>)
:
required: trueSpecifies the ARN of your transfer’s source location.
destination_location_arn(impl Into<String>)
/set_destination_location_arn(Option<String>)
:
required: trueSpecifies the ARN of your transfer’s destination location.
cloud_watch_log_group_arn(impl Into<String>)
/set_cloud_watch_log_group_arn(Option<String>)
:
required: falseSpecifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.
For Enhanced mode tasks, you don’t need to specify anything. DataSync automatically sends logs to a CloudWatch log group named
/aws/datasync
.name(impl Into<String>)
/set_name(Option<String>)
:
required: falseSpecifies the name of your task.
options(Options)
/set_options(Option<Options>)
:
required: falseSpecifies your task’s settings, such as preserving file metadata, verifying data integrity, among other options.
excludes(FilterRule)
/set_excludes(Option<Vec::<FilterRule>>)
:
required: falseSpecifies exclude filters that define the files, objects, and folders in your source location that you don’t want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.
schedule(TaskSchedule)
/set_schedule(Option<TaskSchedule>)
:
required: falseSpecifies a schedule for when you want your task to run. For more information, see Scheduling your task.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies the tags that you want to apply to your task.
Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
includes(FilterRule)
/set_includes(Option<Vec::<FilterRule>>)
:
required: falseSpecifies include filters that define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.
manifest_config(ManifestConfig)
/set_manifest_config(Option<ManifestConfig>)
:
required: falseConfigures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.
When using this parameter, your caller identity (the role that you’re using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.task_report_config(TaskReportConfig)
/set_task_report_config(Option<TaskReportConfig>)
:
required: falseSpecifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.
When using this parameter, your caller identity (the role that you’re using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.task_mode(TaskMode)
/set_task_mode(Option<TaskMode>)
:
required: falseSpecifies one of the following task modes for your data transfer:
-
ENHANCED
- Transfer virtually unlimited numbers of objects with higher performance than Basic mode. Enhanced mode tasks optimize the data transfer process by listing, preparing, transferring, and verifying data in parallel. Enhanced mode is currently available for transfers between Amazon S3 locations.To create an Enhanced mode task, the IAM role that you use to call the
CreateTask
operation must have theiam:CreateServiceLinkedRole
permission. -
BASIC
(default) - Transfer files or objects between Amazon Web Services storage and all other supported DataSync locations. Basic mode tasks are subject to quotas on the number of files, objects, and directories in a dataset. Basic mode sequentially prepares, transfers, and verifies data, making it slower than Enhanced mode for most workloads.
For more information, see Understanding task mode differences.
-
- On success, responds with
CreateTaskOutput
with field(s):task_arn(Option<String>)
:The Amazon Resource Name (ARN) of the task.
- On failure, responds with
SdkError<CreateTaskError>
Source§impl Client
impl Client
Sourcepub fn delete_agent(&self) -> DeleteAgentFluentBuilder
pub fn delete_agent(&self) -> DeleteAgentFluentBuilder
Constructs a fluent builder for the DeleteAgent
operation.
- The fluent builder is configurable:
agent_arn(impl Into<String>)
/set_agent_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the agent to delete. Use the
ListAgents
operation to return a list of agents for your account and Amazon Web Services Region.
- On success, responds with
DeleteAgentOutput
- On failure, responds with
SdkError<DeleteAgentError>
Source§impl Client
impl Client
Sourcepub fn delete_location(&self) -> DeleteLocationFluentBuilder
pub fn delete_location(&self) -> DeleteLocationFluentBuilder
Constructs a fluent builder for the DeleteLocation
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the location to delete.
- On success, responds with
DeleteLocationOutput
- On failure, responds with
SdkError<DeleteLocationError>
Source§impl Client
impl Client
Sourcepub fn delete_task(&self) -> DeleteTaskFluentBuilder
pub fn delete_task(&self) -> DeleteTaskFluentBuilder
Constructs a fluent builder for the DeleteTask
operation.
- The fluent builder is configurable:
task_arn(impl Into<String>)
/set_task_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the task that you want to delete.
- On success, responds with
DeleteTaskOutput
- On failure, responds with
SdkError<DeleteTaskError>
Source§impl Client
impl Client
Sourcepub fn describe_agent(&self) -> DescribeAgentFluentBuilder
pub fn describe_agent(&self) -> DescribeAgentFluentBuilder
Constructs a fluent builder for the DescribeAgent
operation.
- The fluent builder is configurable:
agent_arn(impl Into<String>)
/set_agent_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the DataSync agent that you want information about.
- On success, responds with
DescribeAgentOutput
with field(s):agent_arn(Option<String>)
:The ARN of the agent.
name(Option<String>)
:The name of the agent.
status(Option<AgentStatus>)
:The status of the agent.
-
If the status is
ONLINE
, the agent is configured properly and ready to use. -
If the status is
OFFLINE
, the agent has been out of contact with DataSync for five minutes or longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline?
-
last_connection_time(Option<DateTime>)
:The last time that the agent was communicating with the DataSync service.
creation_time(Option<DateTime>)
:The time that the agent was activated.
endpoint_type(Option<EndpointType>)
:The type of service endpoint that your agent is connected to.
private_link_config(Option<PrivateLinkConfig>)
:The network configuration that the agent uses when connecting to a VPC service endpoint.
platform(Option<Platform>)
:The platform-related details about the agent, such as the version number.
- On failure, responds with
SdkError<DescribeAgentError>
Source§impl Client
impl Client
Sourcepub fn describe_discovery_job(&self) -> DescribeDiscoveryJobFluentBuilder
pub fn describe_discovery_job(&self) -> DescribeDiscoveryJobFluentBuilder
Constructs a fluent builder for the DescribeDiscoveryJob
operation.
- The fluent builder is configurable:
discovery_job_arn(impl Into<String>)
/set_discovery_job_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the discovery job that you want information about.
- On success, responds with
DescribeDiscoveryJobOutput
with field(s):storage_system_arn(Option<String>)
:The ARN of the on-premises storage system you’re running the discovery job on.
discovery_job_arn(Option<String>)
:The ARN of the discovery job.
collection_duration_minutes(Option<i32>)
:The number of minutes that the discovery job runs.
status(Option<DiscoveryJobStatus>)
:Indicates the status of a discovery job. For more information, see Discovery job statuses.
job_start_time(Option<DateTime>)
:The time when the discovery job started.
job_end_time(Option<DateTime>)
:The time when the discovery job ended.
- On failure, responds with
SdkError<DescribeDiscoveryJobError>
Source§impl Client
impl Client
Sourcepub fn describe_location_azure_blob(
&self,
) -> DescribeLocationAzureBlobFluentBuilder
pub fn describe_location_azure_blob( &self, ) -> DescribeLocationAzureBlobFluentBuilder
Constructs a fluent builder for the DescribeLocationAzureBlob
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of your Azure Blob Storage transfer location.
- On success, responds with
DescribeLocationAzureBlobOutput
with field(s):location_arn(Option<String>)
:The ARN of your Azure Blob Storage transfer location.
location_uri(Option<String>)
:The URL of the Azure Blob Storage container involved in your transfer.
authentication_type(Option<AzureBlobAuthenticationType>)
:The authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS).
blob_type(Option<AzureBlobType>)
:The type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation.
access_tier(Option<AzureAccessTier>)
:The access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers.
agent_arns(Option<Vec::<String>>)
:The ARNs of the DataSync agents that can connect with your Azure Blob Storage container.
creation_time(Option<DateTime>)
:The time that your Azure Blob Storage transfer location was created.
- On failure, responds with
SdkError<DescribeLocationAzureBlobError>
Source§impl Client
impl Client
Sourcepub fn describe_location_efs(&self) -> DescribeLocationEfsFluentBuilder
pub fn describe_location_efs(&self) -> DescribeLocationEfsFluentBuilder
Constructs a fluent builder for the DescribeLocationEfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the Amazon EFS file system location that you want information about.
- On success, responds with
DescribeLocationEfsOutput
with field(s):location_arn(Option<String>)
:The ARN of the Amazon EFS file system location.
location_uri(Option<String>)
:The URL of the Amazon EFS file system location.
ec2_config(Option<Ec2Config>)
:The subnet and security groups that DataSync uses to connect to one of your Amazon EFS file system’s mount targets.
creation_time(Option<DateTime>)
:The time that the location was created.
access_point_arn(Option<String>)
:The ARN of the access point that DataSync uses to access the Amazon EFS file system.
For more information, see Accessing restricted file systems.
file_system_access_role_arn(Option<String>)
:The Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system.
For more information, see Creating a DataSync IAM role for file system access.
in_transit_encryption(Option<EfsInTransitEncryption>)
:Indicates whether DataSync uses Transport Layer Security (TLS) encryption when transferring data to or from the Amazon EFS file system.
- On failure, responds with
SdkError<DescribeLocationEfsError>
Source§impl Client
impl Client
Sourcepub fn describe_location_fsx_lustre(
&self,
) -> DescribeLocationFsxLustreFluentBuilder
pub fn describe_location_fsx_lustre( &self, ) -> DescribeLocationFsxLustreFluentBuilder
Constructs a fluent builder for the DescribeLocationFsxLustre
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the FSx for Lustre location to describe.
- On success, responds with
DescribeLocationFsxLustreOutput
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the FSx for Lustre location that was described.
location_uri(Option<String>)
:The URI of the FSx for Lustre location that was described.
security_group_arns(Option<Vec::<String>>)
:The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file system.
creation_time(Option<DateTime>)
:The time that the FSx for Lustre location was created.
- On failure, responds with
SdkError<DescribeLocationFsxLustreError>
Source§impl Client
impl Client
Sourcepub fn describe_location_fsx_ontap(
&self,
) -> DescribeLocationFsxOntapFluentBuilder
pub fn describe_location_fsx_ontap( &self, ) -> DescribeLocationFsxOntapFluentBuilder
Constructs a fluent builder for the DescribeLocationFsxOntap
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the FSx for ONTAP file system location that you want information about.
- On success, responds with
DescribeLocationFsxOntapOutput
with field(s):creation_time(Option<DateTime>)
:The time that the location was created.
location_arn(Option<String>)
:The ARN of the FSx for ONTAP file system location.
location_uri(Option<String>)
:The uniform resource identifier (URI) of the FSx for ONTAP file system location.
protocol(Option<FsxProtocol>)
:Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
security_group_arns(Option<Vec::<String>>)
:The security groups that DataSync uses to access your FSx for ONTAP file system.
storage_virtual_machine_arn(Option<String>)
:The ARN of the storage virtual machine (SVM) on your FSx for ONTAP file system where you’re copying data to or from.
fsx_filesystem_arn(Option<String>)
:The ARN of the FSx for ONTAP file system.
- On failure, responds with
SdkError<DescribeLocationFsxOntapError>
Source§impl Client
impl Client
Sourcepub fn describe_location_fsx_open_zfs(
&self,
) -> DescribeLocationFsxOpenZfsFluentBuilder
pub fn describe_location_fsx_open_zfs( &self, ) -> DescribeLocationFsxOpenZfsFluentBuilder
Constructs a fluent builder for the DescribeLocationFsxOpenZfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the FSx for OpenZFS location to describe.
- On success, responds with
DescribeLocationFsxOpenZfsOutput
with field(s):location_arn(Option<String>)
:The ARN of the FSx for OpenZFS location that was described.
location_uri(Option<String>)
:The uniform resource identifier (URI) of the FSx for OpenZFS location that was described.
Example:
fsxz://us-west-2.fs-1234567890abcdef02/fsx/folderA/folder
security_group_arns(Option<Vec::<String>>)
:The ARNs of the security groups that are configured for the FSx for OpenZFS file system.
protocol(Option<FsxProtocol>)
:The type of protocol that DataSync uses to access your file system.
creation_time(Option<DateTime>)
:The time that the FSx for OpenZFS location was created.
- On failure, responds with
SdkError<DescribeLocationFsxOpenZfsError>
Source§impl Client
impl Client
Sourcepub fn describe_location_fsx_windows(
&self,
) -> DescribeLocationFsxWindowsFluentBuilder
pub fn describe_location_fsx_windows( &self, ) -> DescribeLocationFsxWindowsFluentBuilder
Constructs a fluent builder for the DescribeLocationFsxWindows
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the FSx for Windows File Server location.
- On success, responds with
DescribeLocationFsxWindowsOutput
with field(s):location_arn(Option<String>)
:The ARN of the FSx for Windows File Server location.
location_uri(Option<String>)
:The uniform resource identifier (URI) of the FSx for Windows File Server location.
security_group_arns(Option<Vec::<String>>)
:The ARNs of the Amazon EC2 security groups that provide access to your file system’s preferred subnet.
For information about configuring security groups for file system access, see the Amazon FSx for Windows File Server User Guide .
creation_time(Option<DateTime>)
:The time that the FSx for Windows File Server location was created.
user(Option<String>)
:The user with the permissions to mount and access the FSx for Windows File Server file system.
domain(Option<String>)
:The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.
- On failure, responds with
SdkError<DescribeLocationFsxWindowsError>
Source§impl Client
impl Client
Sourcepub fn describe_location_hdfs(&self) -> DescribeLocationHdfsFluentBuilder
pub fn describe_location_hdfs(&self) -> DescribeLocationHdfsFluentBuilder
Constructs a fluent builder for the DescribeLocationHdfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the HDFS location.
- On success, responds with
DescribeLocationHdfsOutput
with field(s):location_arn(Option<String>)
:The ARN of the HDFS location.
location_uri(Option<String>)
:The URI of the HDFS location.
name_nodes(Option<Vec::<HdfsNameNode>>)
:The NameNode that manages the HDFS namespace.
block_size(Option<i32>)
:The size of the data blocks to write into the HDFS cluster.
replication_factor(Option<i32>)
:The number of DataNodes to replicate the data to when writing to the HDFS cluster.
kms_key_provider_uri(Option<String>)
:The URI of the HDFS cluster’s Key Management Server (KMS).
qop_configuration(Option<QopConfiguration>)
:The Quality of Protection (QOP) configuration, which specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the HDFS cluster.
authentication_type(Option<HdfsAuthenticationType>)
:The type of authentication used to determine the identity of the user.
simple_user(Option<String>)
:The user name to identify the client on the host operating system. This parameter is used if the
AuthenticationType
is defined asSIMPLE
.kerberos_principal(Option<String>)
:The Kerberos principal with access to the files and folders on the HDFS cluster. This parameter is used if the
AuthenticationType
is defined asKERBEROS
.agent_arns(Option<Vec::<String>>)
:The ARNs of the DataSync agents that can connect with your HDFS cluster.
creation_time(Option<DateTime>)
:The time that the HDFS location was created.
- On failure, responds with
SdkError<DescribeLocationHdfsError>
Source§impl Client
impl Client
Sourcepub fn describe_location_nfs(&self) -> DescribeLocationNfsFluentBuilder
pub fn describe_location_nfs(&self) -> DescribeLocationNfsFluentBuilder
Constructs a fluent builder for the DescribeLocationNfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the NFS location that you want information about.
- On success, responds with
DescribeLocationNfsOutput
with field(s):location_arn(Option<String>)
:The ARN of the NFS location.
location_uri(Option<String>)
:The URI of the NFS location.
on_prem_config(Option<OnPremConfig>)
:The DataSync agents that can connect to your Network File System (NFS) file server.
mount_options(Option<NfsMountOptions>)
:The mount options that DataSync uses to mount your NFS file server.
creation_time(Option<DateTime>)
:The time when the NFS location was created.
- On failure, responds with
SdkError<DescribeLocationNfsError>
Source§impl Client
impl Client
Sourcepub fn describe_location_object_storage(
&self,
) -> DescribeLocationObjectStorageFluentBuilder
pub fn describe_location_object_storage( &self, ) -> DescribeLocationObjectStorageFluentBuilder
Constructs a fluent builder for the DescribeLocationObjectStorage
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the object storage system location.
- On success, responds with
DescribeLocationObjectStorageOutput
with field(s):location_arn(Option<String>)
:The ARN of the object storage system location.
location_uri(Option<String>)
:The URI of the object storage system location.
access_key(Option<String>)
:The access key (for example, a user name) required to authenticate with the object storage system.
server_port(Option<i32>)
:The port that your object storage server accepts inbound network traffic on (for example, port 443).
server_protocol(Option<ObjectStorageServerProtocol>)
:The protocol that your object storage system uses to communicate.
agent_arns(Option<Vec::<String>>)
:The ARNs of the DataSync agents that can connect with your object storage system.
creation_time(Option<DateTime>)
:The time that the location was created.
server_certificate(Option<Blob>)
:The certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).
- On failure, responds with
SdkError<DescribeLocationObjectStorageError>
Source§impl Client
impl Client
Sourcepub fn describe_location_s3(&self) -> DescribeLocationS3FluentBuilder
pub fn describe_location_s3(&self) -> DescribeLocationS3FluentBuilder
Constructs a fluent builder for the DescribeLocationS3
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the Amazon S3 location.
- On success, responds with
DescribeLocationS3Output
with field(s):location_arn(Option<String>)
:The ARN of the Amazon S3 location.
location_uri(Option<String>)
:The URL of the Amazon S3 location that was described.
s3_storage_class(Option<S3StorageClass>)
:When Amazon S3 is a destination location, this is the storage class that you chose for your objects.
Some storage classes have behaviors that can affect your Amazon S3 storage costs. For more information, see Storage class considerations with Amazon S3 transfers.
s3_config(Option<S3Config>)
:Specifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.
For more information, see Providing DataSync access to S3 buckets.
agent_arns(Option<Vec::<String>>)
:The ARNs of the DataSync agents deployed on your Outpost when using working with Amazon S3 on Outposts.
For more information, see Deploy your DataSync agent on Outposts.
creation_time(Option<DateTime>)
:The time that the Amazon S3 location was created.
- On failure, responds with
SdkError<DescribeLocationS3Error>
Source§impl Client
impl Client
Sourcepub fn describe_location_smb(&self) -> DescribeLocationSmbFluentBuilder
pub fn describe_location_smb(&self) -> DescribeLocationSmbFluentBuilder
Constructs a fluent builder for the DescribeLocationSmb
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the SMB location that you want information about.
- On success, responds with
DescribeLocationSmbOutput
with field(s):location_arn(Option<String>)
:The ARN of the SMB location.
location_uri(Option<String>)
:The URI of the SMB location.
agent_arns(Option<Vec::<String>>)
:The ARNs of the DataSync agents that can connect with your SMB file server.
user(Option<String>)
:The user that can mount and access the files, folders, and file metadata in your SMB file server.
domain(Option<String>)
:The name of the Microsoft Active Directory domain that the SMB file server belongs to.
mount_options(Option<SmbMountOptions>)
:The protocol that DataSync use to access your SMB file.
creation_time(Option<DateTime>)
:The time that the SMB location was created.
- On failure, responds with
SdkError<DescribeLocationSmbError>
Source§impl Client
impl Client
Sourcepub fn describe_storage_system(&self) -> DescribeStorageSystemFluentBuilder
pub fn describe_storage_system(&self) -> DescribeStorageSystemFluentBuilder
Constructs a fluent builder for the DescribeStorageSystem
operation.
- The fluent builder is configurable:
storage_system_arn(impl Into<String>)
/set_storage_system_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of an on-premises storage system that you’re using with DataSync Discovery.
- On success, responds with
DescribeStorageSystemOutput
with field(s):storage_system_arn(Option<String>)
:The ARN of the on-premises storage system that the discovery job looked at.
server_configuration(Option<DiscoveryServerConfiguration>)
:The server name and network port required to connect with your on-premises storage system’s management interface.
system_type(Option<DiscoverySystemType>)
:The type of on-premises storage system.
DataSync Discovery currently only supports NetApp Fabric-Attached Storage (FAS) and All Flash FAS (AFF) systems running ONTAP 9.7 or later.
agent_arns(Option<Vec::<String>>)
:The ARN of the DataSync agent that connects to and reads from your on-premises storage system.
name(Option<String>)
:The name that you gave your on-premises storage system when adding it to DataSync Discovery.
error_message(Option<String>)
:Describes the connectivity error that the DataSync agent is encountering with your on-premises storage system.
connectivity_status(Option<StorageSystemConnectivityStatus>)
:Indicates whether your DataSync agent can connect to your on-premises storage system.
cloud_watch_log_group_arn(Option<String>)
:The ARN of the Amazon CloudWatch log group that’s used to monitor and log discovery job events.
creation_time(Option<DateTime>)
:The time when you added the on-premises storage system to DataSync Discovery.
secrets_manager_arn(Option<String>)
:The ARN of the secret that stores your on-premises storage system’s credentials. DataSync Discovery stores these credentials in Secrets Manager.
- On failure, responds with
SdkError<DescribeStorageSystemError>
Source§impl Client
impl Client
Sourcepub fn describe_storage_system_resource_metrics(
&self,
) -> DescribeStorageSystemResourceMetricsFluentBuilder
pub fn describe_storage_system_resource_metrics( &self, ) -> DescribeStorageSystemResourceMetricsFluentBuilder
Constructs a fluent builder for the DescribeStorageSystemResourceMetrics
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
discovery_job_arn(impl Into<String>)
/set_discovery_job_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises storage system.
resource_type(DiscoveryResourceType)
/set_resource_type(Option<DiscoveryResourceType>)
:
required: trueSpecifies the kind of storage system resource that you want information about.
resource_id(impl Into<String>)
/set_resource_id(Option<String>)
:
required: trueSpecifies the universally unique identifier (UUID) of the storage system resource that you want information about.
start_time(DateTime)
/set_start_time(Option<DateTime>)
:
required: falseSpecifies a time within the total duration that the discovery job ran. To see information gathered during a certain time frame, use this parameter with
EndTime
.end_time(DateTime)
/set_end_time(Option<DateTime>)
:
required: falseSpecifies a time within the total duration that the discovery job ran. To see information gathered during a certain time frame, use this parameter with
StartTime
.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseSpecifies how many results that you want in the response.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseSpecifies an opaque string that indicates the position to begin the next list of results in the response.
- On success, responds with
DescribeStorageSystemResourceMetricsOutput
with field(s):metrics(Option<Vec::<ResourceMetrics>>)
:The details that your discovery job collected about your storage system resource.
next_token(Option<String>)
:The opaque string that indicates the position to begin the next list of results in the response.
- On failure, responds with
SdkError<DescribeStorageSystemResourceMetricsError>
Source§impl Client
impl Client
Sourcepub fn describe_storage_system_resources(
&self,
) -> DescribeStorageSystemResourcesFluentBuilder
pub fn describe_storage_system_resources( &self, ) -> DescribeStorageSystemResourcesFluentBuilder
Constructs a fluent builder for the DescribeStorageSystemResources
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
discovery_job_arn(impl Into<String>)
/set_discovery_job_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the discovery job that’s collecting data from your on-premises storage system.
resource_type(DiscoveryResourceType)
/set_resource_type(Option<DiscoveryResourceType>)
:
required: trueSpecifies what kind of storage system resources that you want information about.
resource_ids(impl Into<String>)
/set_resource_ids(Option<Vec::<String>>)
:
required: falseSpecifies the universally unique identifiers (UUIDs) of the storage system resources that you want information about. You can’t use this parameter in combination with the
Filter
parameter.filter(DiscoveryResourceFilter, Vec::<String>)
/set_filter(Option<HashMap::<DiscoveryResourceFilter, Vec::<String>>>)
:
required: falseFilters the storage system resources that you want returned. For example, this might be volumes associated with a specific storage virtual machine (SVM).
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseSpecifies the maximum number of storage system resources that you want to list in a response.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseSpecifies an opaque string that indicates the position to begin the next list of results in the response.
- On success, responds with
DescribeStorageSystemResourcesOutput
with field(s):resource_details(Option<ResourceDetails>)
:The information collected about your storage system’s resources. A response can also include Amazon Web Services storage service recommendations.
For more information, see storage resource information collected by and recommendations provided by DataSync Discovery.
next_token(Option<String>)
:The opaque string that indicates the position to begin the next list of results in the response.
- On failure, responds with
SdkError<DescribeStorageSystemResourcesError>
Source§impl Client
impl Client
Sourcepub fn describe_task(&self) -> DescribeTaskFluentBuilder
pub fn describe_task(&self) -> DescribeTaskFluentBuilder
Constructs a fluent builder for the DescribeTask
operation.
- The fluent builder is configurable:
task_arn(impl Into<String>)
/set_task_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the transfer task that you want information about.
- On success, responds with
DescribeTaskOutput
with field(s):task_arn(Option<String>)
:The ARN of your task.
status(Option<TaskStatus>)
:The status of your task. For information about what each status means, see Task statuses.
name(Option<String>)
:The name of your task.
current_task_execution_arn(Option<String>)
:The ARN of the most recent task execution.
source_location_arn(Option<String>)
:The ARN of your transfer’s source location.
destination_location_arn(Option<String>)
:The ARN of your transfer’s destination location.
cloud_watch_log_group_arn(Option<String>)
:The Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.
For more information, see Monitoring data transfers with CloudWatch Logs.
source_network_interface_arns(Option<Vec::<String>>)
:The ARNs of the network interfaces that DataSync created for your source location.
destination_network_interface_arns(Option<Vec::<String>>)
:The ARNs of the network interfaces that DataSync created for your destination location.
options(Option<Options>)
:The task’s settings. For example, what file metadata gets preserved, how data integrity gets verified at the end of your transfer, bandwidth limits, among other options.
excludes(Option<Vec::<FilterRule>>)
:The exclude filters that define the files, objects, and folders in your source location that you don’t want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.
schedule(Option<TaskSchedule>)
:The schedule for when you want your task to run. For more information, see Scheduling your task.
error_code(Option<String>)
:If there’s an issue with your task, you can use the error code to help you troubleshoot the problem. For more information, see Troubleshooting issues with DataSync transfers.
error_detail(Option<String>)
:If there’s an issue with your task, you can use the error details to help you troubleshoot the problem. For more information, see Troubleshooting issues with DataSync transfers.
creation_time(Option<DateTime>)
:The time that the task was created.
includes(Option<Vec::<FilterRule>>)
:The include filters that define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.
manifest_config(Option<ManifestConfig>)
:The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see Specifying what DataSync transfers by using a manifest.
task_report_config(Option<TaskReportConfig>)
:The configuration of your task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.
schedule_details(Option<TaskScheduleDetails>)
:The details about your task schedule.
task_mode(Option<TaskMode>)
:The task mode that you’re using. For more information, see Choosing a task mode for your data transfer.
- On failure, responds with
SdkError<DescribeTaskError>
Source§impl Client
impl Client
Sourcepub fn describe_task_execution(&self) -> DescribeTaskExecutionFluentBuilder
pub fn describe_task_execution(&self) -> DescribeTaskExecutionFluentBuilder
Constructs a fluent builder for the DescribeTaskExecution
operation.
- The fluent builder is configurable:
task_execution_arn(impl Into<String>)
/set_task_execution_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the task execution that you want information about.
- On success, responds with
DescribeTaskExecutionOutput
with field(s):task_execution_arn(Option<String>)
:The ARN of the task execution that you wanted information about.
TaskExecutionArn
is hierarchical and includesTaskArn
for the task that was executed.For example, a
TaskExecution
value with the ARNarn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b
executed the task with the ARNarn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2
.status(Option<TaskExecutionStatus>)
:The status of the task execution.
options(Option<Options>)
:Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.
Each option has a default value. Unless you need to, you don’t have to configure any option before calling StartTaskExecution.
You also can override your task options for each task execution. For example, you might want to adjust the
LogLevel
for an individual execution.excludes(Option<Vec::<FilterRule>>)
:A list of filter rules that exclude specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync.
includes(Option<Vec::<FilterRule>>)
:A list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync.
manifest_config(Option<ManifestConfig>)
:The configuration of the manifest that lists the files or objects to transfer. For more information, see Specifying what DataSync transfers by using a manifest.
start_time(Option<DateTime>)
:The time when the task execution started.
estimated_files_to_transfer(i64)
:The number of files, objects, and directories that DataSync expects to transfer over the network. This value is calculated while DataSync prepares the transfer.
How this gets calculated depends primarily on your task’s transfer mode configuration:
-
If
TranserMode
is set toCHANGED
- The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:-
Anything that’s added or modified at the source location.
-
Anything that’s in both locations and modified at the destination after an initial transfer (unless OverwriteMode is set to
NEVER
). -
(Basic task mode only) The number of items that DataSync expects to delete (if PreserveDeletedFiles is set to
REMOVE
).
-
-
If
TranserMode
is set toALL
- The calculation is based only on the items that DataSync finds at the source location.
-
estimated_bytes_to_transfer(i64)
:The number of logical bytes that DataSync expects to write to the destination location.
files_transferred(i64)
:The number of files, objects, and directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.
If DataSync fails to transfer something, this value can be less than
EstimatedFilesToTransfer
. In some cases, this value can also be greater thanEstimatedFilesToTransfer
. This element is implementation-specific for some location types, so don’t use it as an exact indication of what’s transferring or to monitor your task execution.bytes_written(i64)
:The number of logical bytes that DataSync actually writes to the destination location.
bytes_transferred(i64)
:The number of bytes that DataSync sends to the network before compression (if compression is possible). For the number of bytes transferred over the network, see BytesCompressed.
bytes_compressed(i64)
:The number of physical bytes that DataSync transfers over the network after compression (if compression is possible). This number is typically less than BytesTransferred unless the data isn’t compressible.
result(Option<TaskExecutionResultDetail>)
:The result of the task execution.
task_report_config(Option<TaskReportConfig>)
:The configuration of your task report, which provides detailed information about for your DataSync transfer. For more information, see Creating a task report.
files_deleted(i64)
:The number of files, objects, and directories that DataSync actually deletes in your destination location. If you don’t configure your task to delete data in the destination that isn’t in the source, the value is always
0
.files_skipped(i64)
:The number of files, objects, and directories that DataSync skips during your transfer.
files_verified(i64)
:The number of files, objects, and directories that DataSync verifies during your transfer.
When you configure your task to verify only the data that’s transferred, DataSync doesn’t verify directories in some situations or files that fail to transfer.
report_result(Option<ReportResult>)
:Indicates whether DataSync generated a complete task report for your transfer.
estimated_files_to_delete(i64)
:The number of files, objects, and directories that DataSync expects to delete in your destination location. If you don’t configure your task to delete data in the destination that isn’t in the source, the value is always
0
.task_mode(Option<TaskMode>)
:The task mode that you’re using. For more information, see Choosing a task mode for your data transfer.
files_prepared(i64)
:The number of objects that DataSync will attempt to transfer after comparing your source and destination locations.
Applies only to Enhanced mode tasks.
This counter isn’t applicable if you configure your task to transfer all data. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.
files_listed(Option<TaskExecutionFilesListedDetail>)
:The number of objects that DataSync finds at your locations.
Applies only to Enhanced mode tasks.
files_failed(Option<TaskExecutionFilesFailedDetail>)
:The number of objects that DataSync fails to prepare, transfer, verify, and delete during your task execution.
Applies only to Enhanced mode tasks.
- On failure, responds with
SdkError<DescribeTaskExecutionError>
Source§impl Client
impl Client
Sourcepub fn generate_recommendations(&self) -> GenerateRecommendationsFluentBuilder
pub fn generate_recommendations(&self) -> GenerateRecommendationsFluentBuilder
Constructs a fluent builder for the GenerateRecommendations
operation.
- The fluent builder is configurable:
discovery_job_arn(impl Into<String>)
/set_discovery_job_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises storage system.
resource_ids(impl Into<String>)
/set_resource_ids(Option<Vec::<String>>)
:
required: trueSpecifies the universally unique identifiers (UUIDs) of the resources in your storage system that you want recommendations on.
resource_type(DiscoveryResourceType)
/set_resource_type(Option<DiscoveryResourceType>)
:
required: trueSpecifies the type of resource in your storage system that you want recommendations on.
- On success, responds with
GenerateRecommendationsOutput
- On failure, responds with
SdkError<GenerateRecommendationsError>
Source§impl Client
impl Client
Sourcepub fn list_agents(&self) -> ListAgentsFluentBuilder
pub fn list_agents(&self) -> ListAgentsFluentBuilder
Constructs a fluent builder for the ListAgents
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseSpecifies the maximum number of DataSync agents to list in a response. By default, a response shows a maximum of 100 agents.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseSpecifies an opaque string that indicates the position to begin the next list of results in the response.
- On success, responds with
ListAgentsOutput
with field(s):agents(Option<Vec::<AgentListEntry>>)
:A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents’ Amazon Resource Names (ARNs).
next_token(Option<String>)
:The opaque string that indicates the position to begin the next list of results in the response.
- On failure, responds with
SdkError<ListAgentsError>
Source§impl Client
impl Client
Sourcepub fn list_discovery_jobs(&self) -> ListDiscoveryJobsFluentBuilder
pub fn list_discovery_jobs(&self) -> ListDiscoveryJobsFluentBuilder
Constructs a fluent builder for the ListDiscoveryJobs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
storage_system_arn(impl Into<String>)
/set_storage_system_arn(Option<String>)
:
required: falseSpecifies the Amazon Resource Name (ARN) of an on-premises storage system. Use this parameter if you only want to list the discovery jobs that are associated with a specific storage system.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseSpecifies how many results you want in the response.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseSpecifies an opaque string that indicates the position to begin the next list of results in the response.
- On success, responds with
ListDiscoveryJobsOutput
with field(s):discovery_jobs(Option<Vec::<DiscoveryJobListEntry>>)
:The discovery jobs that you’ve run.
next_token(Option<String>)
:The opaque string that indicates the position to begin the next list of results in the response.
- On failure, responds with
SdkError<ListDiscoveryJobsError>
Source§impl Client
impl Client
Sourcepub fn list_locations(&self) -> ListLocationsFluentBuilder
pub fn list_locations(&self) -> ListLocationsFluentBuilder
Constructs a fluent builder for the ListLocations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of locations to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseAn opaque string that indicates the position at which to begin the next list of locations.
filters(LocationFilter)
/set_filters(Option<Vec::<LocationFilter>>)
:
required: falseYou can use API filters to narrow down the list of resources returned by
ListLocations
. For example, to retrieve all tasks on a specific source location, you can useListLocations
with filter nameLocationType S3
andOperator Equals
.
- On success, responds with
ListLocationsOutput
with field(s):locations(Option<Vec::<LocationListEntry>>)
:An array that contains a list of locations.
next_token(Option<String>)
:An opaque string that indicates the position at which to begin returning the next list of locations.
- On failure, responds with
SdkError<ListLocationsError>
Source§impl Client
impl Client
Sourcepub fn list_storage_systems(&self) -> ListStorageSystemsFluentBuilder
pub fn list_storage_systems(&self) -> ListStorageSystemsFluentBuilder
Constructs a fluent builder for the ListStorageSystems
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseSpecifies how many results you want in the response.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseSpecifies an opaque string that indicates the position to begin the next list of results in the response.
- On success, responds with
ListStorageSystemsOutput
with field(s):storage_systems(Option<Vec::<StorageSystemListEntry>>)
:The Amazon Resource Names ARNs) of the on-premises storage systems that you’re using with DataSync Discovery.
next_token(Option<String>)
:The opaque string that indicates the position to begin the next list of results in the response.
- On failure, responds with
SdkError<ListStorageSystemsError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the resource that you want tag information on.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseSpecifies how many results that you want in the response.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseSpecifies an opaque string that indicates the position to begin the next list of results in the response.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<Vec::<TagListEntry>>)
:An array of tags applied to the specified resource.
next_token(Option<String>)
:The opaque string that indicates the position to begin the next list of results in the response.
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn list_task_executions(&self) -> ListTaskExecutionsFluentBuilder
pub fn list_task_executions(&self) -> ListTaskExecutionsFluentBuilder
Constructs a fluent builder for the ListTaskExecutions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
task_arn(impl Into<String>)
/set_task_arn(Option<String>)
:
required: falseSpecifies the Amazon Resource Name (ARN) of the task that you want execution information about.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseSpecifies how many results you want in the response.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseSpecifies an opaque string that indicates the position at which to begin the next list of results in the response.
- On success, responds with
ListTaskExecutionsOutput
with field(s):task_executions(Option<Vec::<TaskExecutionListEntry>>)
:A list of the task’s executions.
next_token(Option<String>)
:The opaque string that indicates the position to begin the next list of results in the response.
- On failure, responds with
SdkError<ListTaskExecutionsError>
Source§impl Client
impl Client
Sourcepub fn list_tasks(&self) -> ListTasksFluentBuilder
pub fn list_tasks(&self) -> ListTasksFluentBuilder
Constructs a fluent builder for the ListTasks
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of tasks to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseAn opaque string that indicates the position at which to begin the next list of tasks.
filters(TaskFilter)
/set_filters(Option<Vec::<TaskFilter>>)
:
required: falseYou can use API filters to narrow down the list of resources returned by
ListTasks
. For example, to retrieve all tasks on a specific source location, you can useListTasks
with filter nameLocationId
andOperator Equals
with the ARN for the location.
- On success, responds with
ListTasksOutput
with field(s):tasks(Option<Vec::<TaskListEntry>>)
:A list of all the tasks that are returned.
next_token(Option<String>)
:An opaque string that indicates the position at which to begin returning the next list of tasks.
- On failure, responds with
SdkError<ListTasksError>
Source§impl Client
impl Client
Sourcepub fn remove_storage_system(&self) -> RemoveStorageSystemFluentBuilder
pub fn remove_storage_system(&self) -> RemoveStorageSystemFluentBuilder
Constructs a fluent builder for the RemoveStorageSystem
operation.
- The fluent builder is configurable:
storage_system_arn(impl Into<String>)
/set_storage_system_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the storage system that you want to permanently remove from DataSync Discovery.
- On success, responds with
RemoveStorageSystemOutput
- On failure, responds with
SdkError<RemoveStorageSystemError>
Source§impl Client
impl Client
Sourcepub fn start_discovery_job(&self) -> StartDiscoveryJobFluentBuilder
pub fn start_discovery_job(&self) -> StartDiscoveryJobFluentBuilder
Constructs a fluent builder for the StartDiscoveryJob
operation.
- The fluent builder is configurable:
storage_system_arn(impl Into<String>)
/set_storage_system_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the on-premises storage system that you want to run the discovery job on.
collection_duration_minutes(i32)
/set_collection_duration_minutes(Option<i32>)
:
required: trueSpecifies in minutes how long you want the discovery job to run.
For more accurate recommendations, we recommend a duration of at least 14 days. Longer durations allow time to collect a sufficient number of data points and provide a realistic representation of storage performance and utilization.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: trueSpecifies a client token to make sure requests with this API operation are idempotent. If you don’t specify a client token, DataSync generates one for you automatically.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies labels that help you categorize, filter, and search for your Amazon Web Services resources.
- On success, responds with
StartDiscoveryJobOutput
with field(s):discovery_job_arn(Option<String>)
:The ARN of the discovery job that you started.
- On failure, responds with
SdkError<StartDiscoveryJobError>
Source§impl Client
impl Client
Sourcepub fn start_task_execution(&self) -> StartTaskExecutionFluentBuilder
pub fn start_task_execution(&self) -> StartTaskExecutionFluentBuilder
Constructs a fluent builder for the StartTaskExecution
operation.
- The fluent builder is configurable:
task_arn(impl Into<String>)
/set_task_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the task that you want to start.
override_options(Options)
/set_override_options(Option<Options>)
:
required: falseIndicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.
Each option has a default value. Unless you need to, you don’t have to configure any option before calling StartTaskExecution.
You also can override your task options for each task execution. For example, you might want to adjust the
LogLevel
for an individual execution.includes(FilterRule)
/set_includes(Option<Vec::<FilterRule>>)
:
required: falseSpecifies a list of filter rules that determines which files to include when running a task. The pattern should contain a single filter string that consists of the patterns to include. The patterns are delimited by “|” (that is, a pipe), for example,
“/folder1|/folder2”
.excludes(FilterRule)
/set_excludes(Option<Vec::<FilterRule>>)
:
required: falseSpecifies a list of filter rules that determines which files to exclude from a task. The list contains a single filter string that consists of the patterns to exclude. The patterns are delimited by “|” (that is, a pipe), for example,
“/folder1|/folder2”
.manifest_config(ManifestConfig)
/set_manifest_config(Option<ManifestConfig>)
:
required: falseConfigures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.
When using this parameter, your caller identity (the role that you’re using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.To remove a manifest configuration, specify this parameter with an empty value.
task_report_config(TaskReportConfig)
/set_task_report_config(Option<TaskReportConfig>)
:
required: falseSpecifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.
When using this parameter, your caller identity (the role that you’re using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.To remove a task report configuration, specify this parameter as empty.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: falseSpecifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task execution.
Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
- On success, responds with
StartTaskExecutionOutput
with field(s):task_execution_arn(Option<String>)
:The ARN of the running task execution.
- On failure, responds with
SdkError<StartTaskExecutionError>
Source§impl Client
impl Client
Sourcepub fn stop_discovery_job(&self) -> StopDiscoveryJobFluentBuilder
pub fn stop_discovery_job(&self) -> StopDiscoveryJobFluentBuilder
Constructs a fluent builder for the StopDiscoveryJob
operation.
- The fluent builder is configurable:
discovery_job_arn(impl Into<String>)
/set_discovery_job_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the discovery job that you want to stop.
- On success, responds with
StopDiscoveryJobOutput
- On failure, responds with
SdkError<StopDiscoveryJobError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the resource to apply the tag to.
tags(TagListEntry)
/set_tags(Option<Vec::<TagListEntry>>)
:
required: trueSpecifies the tags that you want to apply to the resource.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the resource to remove the tags from.
keys(impl Into<String>)
/set_keys(Option<Vec::<String>>)
:
required: trueSpecifies the keys in the tags that you want to remove.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_agent(&self) -> UpdateAgentFluentBuilder
pub fn update_agent(&self) -> UpdateAgentFluentBuilder
Constructs a fluent builder for the UpdateAgent
operation.
- The fluent builder is configurable:
agent_arn(impl Into<String>)
/set_agent_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the agent to update.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name that you want to use to configure the agent.
- On success, responds with
UpdateAgentOutput
- On failure, responds with
SdkError<UpdateAgentError>
Source§impl Client
impl Client
Sourcepub fn update_discovery_job(&self) -> UpdateDiscoveryJobFluentBuilder
pub fn update_discovery_job(&self) -> UpdateDiscoveryJobFluentBuilder
Constructs a fluent builder for the UpdateDiscoveryJob
operation.
- The fluent builder is configurable:
discovery_job_arn(impl Into<String>)
/set_discovery_job_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the discovery job that you want to update.
collection_duration_minutes(i32)
/set_collection_duration_minutes(Option<i32>)
:
required: trueSpecifies in minutes how long that you want the discovery job to run. (You can’t set this parameter to less than the number of minutes that the job has already run for.)
- On success, responds with
UpdateDiscoveryJobOutput
- On failure, responds with
SdkError<UpdateDiscoveryJobError>
Source§impl Client
impl Client
Sourcepub fn update_location_azure_blob(&self) -> UpdateLocationAzureBlobFluentBuilder
pub fn update_location_azure_blob(&self) -> UpdateLocationAzureBlobFluentBuilder
Constructs a fluent builder for the UpdateLocationAzureBlob
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the ARN of the Azure Blob Storage transfer location that you’re updating.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies path segments if you want to limit your transfer to a virtual directory in your container (for example,
/my/images
).authentication_type(AzureBlobAuthenticationType)
/set_authentication_type(Option<AzureBlobAuthenticationType>)
:
required: falseSpecifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS).
sas_configuration(AzureBlobSasConfiguration)
/set_sas_configuration(Option<AzureBlobSasConfiguration>)
:
required: falseSpecifies the SAS configuration that allows DataSync to access your Azure Blob Storage.
blob_type(AzureBlobType)
/set_blob_type(Option<AzureBlobType>)
:
required: falseSpecifies the type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation.
access_tier(AzureAccessTier)
/set_access_tier(Option<AzureAccessTier>)
:
required: falseSpecifies the access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers.
agent_arns(impl Into<String>)
/set_agent_arns(Option<Vec::<String>>)
:
required: falseSpecifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage container.
You can specify more than one agent. For more information, see Using multiple agents for your transfer.
- On success, responds with
UpdateLocationAzureBlobOutput
- On failure, responds with
SdkError<UpdateLocationAzureBlobError>
Source§impl Client
impl Client
Sourcepub fn update_location_efs(&self) -> UpdateLocationEfsFluentBuilder
pub fn update_location_efs(&self) -> UpdateLocationEfsFluentBuilder
Constructs a fluent builder for the UpdateLocationEfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the Amazon EFS transfer location that you’re updating.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location).
By default, DataSync uses the root directory (or access point if you provide one by using
AccessPointArn
). You can also include subdirectories using forward slashes (for example,/path/to/folder
).access_point_arn(impl Into<String>)
/set_access_point_arn(Option<String>)
:
required: falseSpecifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your Amazon EFS file system.
For more information, see Accessing restricted Amazon EFS file systems.
file_system_access_role_arn(impl Into<String>)
/set_file_system_access_role_arn(Option<String>)
:
required: falseSpecifies an Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system.
For information on creating this role, see Creating a DataSync IAM role for Amazon EFS file system access.
in_transit_encryption(EfsInTransitEncryption)
/set_in_transit_encryption(Option<EfsInTransitEncryption>)
:
required: falseSpecifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system.
If you specify an access point using
AccessPointArn
or an IAM role usingFileSystemAccessRoleArn
, you must set this parameter toTLS1_2
.
- On success, responds with
UpdateLocationEfsOutput
- On failure, responds with
SdkError<UpdateLocationEfsError>
Source§impl Client
impl Client
Sourcepub fn update_location_fsx_lustre(&self) -> UpdateLocationFsxLustreFluentBuilder
pub fn update_location_fsx_lustre(&self) -> UpdateLocationFsxLustreFluentBuilder
Constructs a fluent builder for the UpdateLocationFsxLustre
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the FSx for Lustre transfer location that you’re updating.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies a mount path for your FSx for Lustre file system. The path can include subdirectories.
When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don’t include this parameter, DataSync uses the file system’s root directory (
/
).
- On success, responds with
UpdateLocationFsxLustreOutput
- On failure, responds with
SdkError<UpdateLocationFsxLustreError>
Source§impl Client
impl Client
Sourcepub fn update_location_fsx_ontap(&self) -> UpdateLocationFsxOntapFluentBuilder
pub fn update_location_fsx_ontap(&self) -> UpdateLocationFsxOntapFluentBuilder
Constructs a fluent builder for the UpdateLocationFsxOntap
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the FSx for ONTAP transfer location that you’re updating.
protocol(FsxUpdateProtocol)
/set_protocol(Option<FsxUpdateProtocol>)
:
required: falseSpecifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies a path to the file share in the storage virtual machine (SVM) where you want to transfer data to or from.
You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares). For example, your mount path might be
/vol1
,/vol1/tree1
, or/share1
.Don’t specify a junction path in the SVM’s root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide.
- On success, responds with
UpdateLocationFsxOntapOutput
- On failure, responds with
SdkError<UpdateLocationFsxOntapError>
Source§impl Client
impl Client
Sourcepub fn update_location_fsx_open_zfs(
&self,
) -> UpdateLocationFsxOpenZfsFluentBuilder
pub fn update_location_fsx_open_zfs( &self, ) -> UpdateLocationFsxOpenZfsFluentBuilder
Constructs a fluent builder for the UpdateLocationFsxOpenZfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the FSx for OpenZFS transfer location that you’re updating.
protocol(FsxProtocol)
/set_protocol(Option<FsxProtocol>)
:
required: falseSpecifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies a subdirectory in the location’s path that must begin with
/fsx
. DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location).
- On success, responds with
UpdateLocationFsxOpenZfsOutput
- On failure, responds with
SdkError<UpdateLocationFsxOpenZfsError>
Source§impl Client
impl Client
Sourcepub fn update_location_fsx_windows(
&self,
) -> UpdateLocationFsxWindowsFluentBuilder
pub fn update_location_fsx_windows( &self, ) -> UpdateLocationFsxWindowsFluentBuilder
Constructs a fluent builder for the UpdateLocationFsxWindows
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the ARN of the FSx for Windows File Server transfer location that you’re updating.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies a mount path for your file system using forward slashes. DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location).
domain(impl Into<String>)
/set_domain(Option<String>)
:
required: falseSpecifies the name of the Windows domain that your FSx for Windows File Server file system belongs to.
If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file system.
user(impl Into<String>)
/set_user(Option<String>)
:
required: falseSpecifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.
For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations.
password(impl Into<String>)
/set_password(Option<String>)
:
required: falseSpecifies the password of the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.
- On success, responds with
UpdateLocationFsxWindowsOutput
- On failure, responds with
SdkError<UpdateLocationFsxWindowsError>
Source§impl Client
impl Client
Sourcepub fn update_location_hdfs(&self) -> UpdateLocationHdfsFluentBuilder
pub fn update_location_hdfs(&self) -> UpdateLocationHdfsFluentBuilder
Constructs a fluent builder for the UpdateLocationHdfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the source HDFS cluster location.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseA subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster.
name_nodes(HdfsNameNode)
/set_name_nodes(Option<Vec::<HdfsNameNode>>)
:
required: falseThe NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. You can use only one NameNode.
block_size(i32)
/set_block_size(Option<i32>)
:
required: falseThe size of the data blocks to write into the HDFS cluster.
replication_factor(i32)
/set_replication_factor(Option<i32>)
:
required: falseThe number of DataNodes to replicate the data to when writing to the HDFS cluster.
kms_key_provider_uri(impl Into<String>)
/set_kms_key_provider_uri(Option<String>)
:
required: falseThe URI of the HDFS cluster’s Key Management Server (KMS).
qop_configuration(QopConfiguration)
/set_qop_configuration(Option<QopConfiguration>)
:
required: falseThe Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer privacy settings configured on the Hadoop Distributed File System (HDFS) cluster.
authentication_type(HdfsAuthenticationType)
/set_authentication_type(Option<HdfsAuthenticationType>)
:
required: falseThe type of authentication used to determine the identity of the user.
simple_user(impl Into<String>)
/set_simple_user(Option<String>)
:
required: falseThe user name used to identify the client on the host operating system.
kerberos_principal(impl Into<String>)
/set_kerberos_principal(Option<String>)
:
required: falseThe Kerberos principal with access to the files and folders on the HDFS cluster.
kerberos_keytab(Blob)
/set_kerberos_keytab(Option<Blob>)
:
required: falseThe Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. You can load the keytab from a file by providing the file’s address. If you use the CLI, it performs base64 encoding for you. Otherwise, provide the base64-encoded text.
kerberos_krb5_conf(Blob)
/set_kerberos_krb5_conf(Option<Blob>)
:
required: falseThe
krb5.conf
file that contains the Kerberos configuration information. You can load thekrb5.conf
file by providing the file’s address. If you’re using the CLI, it performs the base64 encoding for you. Otherwise, provide the base64-encoded text.agent_arns(impl Into<String>)
/set_agent_arns(Option<Vec::<String>>)
:
required: falseThe Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster.
- On success, responds with
UpdateLocationHdfsOutput
- On failure, responds with
SdkError<UpdateLocationHdfsError>
Source§impl Client
impl Client
Sourcepub fn update_location_nfs(&self) -> UpdateLocationNfsFluentBuilder
pub fn update_location_nfs(&self) -> UpdateLocationNfsFluentBuilder
Constructs a fluent builder for the UpdateLocationNfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the NFS transfer location that you want to update.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies the export path in your NFS file server that you want DataSync to mount.
This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers.
on_prem_config(OnPremConfig)
/set_on_prem_config(Option<OnPremConfig>)
:
required: falseThe DataSync agents that can connect to your Network File System (NFS) file server.
mount_options(NfsMountOptions)
/set_mount_options(Option<NfsMountOptions>)
:
required: falseSpecifies how DataSync can access a location using the NFS protocol.
- On success, responds with
UpdateLocationNfsOutput
- On failure, responds with
SdkError<UpdateLocationNfsError>
Source§impl Client
impl Client
Sourcepub fn update_location_object_storage(
&self,
) -> UpdateLocationObjectStorageFluentBuilder
pub fn update_location_object_storage( &self, ) -> UpdateLocationObjectStorageFluentBuilder
Constructs a fluent builder for the UpdateLocationObjectStorage
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the ARN of the object storage system location that you’re updating.
server_port(i32)
/set_server_port(Option<i32>)
:
required: falseSpecifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
server_protocol(ObjectStorageServerProtocol)
/set_server_protocol(Option<ObjectStorageServerProtocol>)
:
required: falseSpecifies the protocol that your object storage server uses to communicate.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
access_key(impl Into<String>)
/set_access_key(Option<String>)
:
required: falseSpecifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
secret_key(impl Into<String>)
/set_secret_key(Option<String>)
:
required: falseSpecifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
agent_arns(impl Into<String>)
/set_agent_arns(Option<Vec::<String>>)
:
required: falseSpecifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system.
server_certificate(Blob)
/set_server_certificate(Option<Blob>)
:
required: falseSpecifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single
.pem
file with a full certificate chain (for example,file:///home/user/.ssh/object_storage_certificates.pem
).The certificate chain might include:
-
The object storage system’s certificate
-
All intermediate certificates (if there are any)
-
The root certificate of the signing CA
You can concatenate your certificates into a
.pem
file (which can be up to 32768 bytes before base64 encoding). The following examplecat
command creates anobject_storage_certificates.pem
file that includes three certificates:cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem
To use this parameter, configure
ServerProtocol
toHTTPS
.Updating this parameter doesn’t interfere with tasks that you have in progress.
-
- On success, responds with
UpdateLocationObjectStorageOutput
- On failure, responds with
SdkError<UpdateLocationObjectStorageError>
Source§impl Client
impl Client
Sourcepub fn update_location_s3(&self) -> UpdateLocationS3FluentBuilder
pub fn update_location_s3(&self) -> UpdateLocationS3FluentBuilder
Constructs a fluent builder for the UpdateLocationS3
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the Amazon S3 transfer location that you’re updating.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location).
DataSync can’t transfer objects with a prefix that begins with a slash (
/
) or includes//
,/./
, or/../
patterns. For example:-
/photos
-
photos//2006/January
-
photos/./2006/February
-
photos/../2006/March
-
s3_storage_class(S3StorageClass)
/set_s3_storage_class(Option<S3StorageClass>)
:
required: falseSpecifies the storage class that you want your objects to use when Amazon S3 is a transfer destination.
For buckets in Amazon Web Services Regions, the storage class defaults to
STANDARD
. For buckets on Outposts, the storage class defaults toOUTPOSTS
.For more information, see Storage class considerations with Amazon S3 transfers.
s3_config(S3Config)
/set_s3_config(Option<S3Config>)
:
required: falseSpecifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.
For more information, see Providing DataSync access to S3 buckets.
- On success, responds with
UpdateLocationS3Output
- On failure, responds with
SdkError<UpdateLocationS3Error>
Source§impl Client
impl Client
Sourcepub fn update_location_smb(&self) -> UpdateLocationSmbFluentBuilder
pub fn update_location_smb(&self) -> UpdateLocationSmbFluentBuilder
Constructs a fluent builder for the UpdateLocationSmb
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:
required: trueSpecifies the ARN of the SMB location that you want to update.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:
required: falseSpecifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example,
/path/to/subdirectory
). Make sure that other SMB clients in your network can also mount this path.To copy all data in the specified subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see required permissions for SMB locations.
user(impl Into<String>)
/set_user(Option<String>)
:
required: falseSpecifies the user name that can mount your SMB file server and has permission to access the files and folders involved in your transfer.
For information about choosing a user with the right level of access for your transfer, see required permissions for SMB locations.
domain(impl Into<String>)
/set_domain(Option<String>)
:
required: falseSpecifies the Windows domain name that your SMB file server belongs to.
If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.
For more information, see required permissions for SMB locations.
password(impl Into<String>)
/set_password(Option<String>)
:
required: falseSpecifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer.
For more information, see required permissions for SMB locations.
agent_arns(impl Into<String>)
/set_agent_arns(Option<Vec::<String>>)
:
required: falseSpecifies the DataSync agent (or agents) that can connect to your SMB file server. You specify an agent by using its Amazon Resource Name (ARN).
mount_options(SmbMountOptions)
/set_mount_options(Option<SmbMountOptions>)
:
required: falseSpecifies the version of the Server Message Block (SMB) protocol that DataSync uses to access an SMB file server.
- On success, responds with
UpdateLocationSmbOutput
- On failure, responds with
SdkError<UpdateLocationSmbError>
Source§impl Client
impl Client
Sourcepub fn update_storage_system(&self) -> UpdateStorageSystemFluentBuilder
pub fn update_storage_system(&self) -> UpdateStorageSystemFluentBuilder
Constructs a fluent builder for the UpdateStorageSystem
operation.
- The fluent builder is configurable:
storage_system_arn(impl Into<String>)
/set_storage_system_arn(Option<String>)
:
required: trueSpecifies the ARN of the on-premises storage system that you want reconfigure.
server_configuration(DiscoveryServerConfiguration)
/set_server_configuration(Option<DiscoveryServerConfiguration>)
:
required: falseSpecifies the server name and network port required to connect with your on-premises storage system’s management interface.
agent_arns(impl Into<String>)
/set_agent_arns(Option<Vec::<String>>)
:
required: falseSpecifies the Amazon Resource Name (ARN) of the DataSync agent that connects to and reads your on-premises storage system. You can only specify one ARN.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseSpecifies a familiar name for your on-premises storage system.
cloud_watch_log_group_arn(impl Into<String>)
/set_cloud_watch_log_group_arn(Option<String>)
:
required: falseSpecifies the ARN of the Amazon CloudWatch log group for monitoring and logging discovery job events.
credentials(Credentials)
/set_credentials(Option<Credentials>)
:
required: falseSpecifies the user name and password for accessing your on-premises storage system’s management interface.
- On success, responds with
UpdateStorageSystemOutput
- On failure, responds with
SdkError<UpdateStorageSystemError>
Source§impl Client
impl Client
Sourcepub fn update_task(&self) -> UpdateTaskFluentBuilder
pub fn update_task(&self) -> UpdateTaskFluentBuilder
Constructs a fluent builder for the UpdateTask
operation.
- The fluent builder is configurable:
task_arn(impl Into<String>)
/set_task_arn(Option<String>)
:
required: trueSpecifies the ARN of the task that you want to update.
options(Options)
/set_options(Option<Options>)
:
required: falseIndicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.
Each option has a default value. Unless you need to, you don’t have to configure any option before calling StartTaskExecution.
You also can override your task options for each task execution. For example, you might want to adjust the
LogLevel
for an individual execution.excludes(FilterRule)
/set_excludes(Option<Vec::<FilterRule>>)
:
required: falseSpecifies exclude filters that define the files, objects, and folders in your source location that you don’t want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.
schedule(TaskSchedule)
/set_schedule(Option<TaskSchedule>)
:
required: falseSpecifies a schedule for when you want your task to run. For more information, see Scheduling your task.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseSpecifies the name of your task.
cloud_watch_log_group_arn(impl Into<String>)
/set_cloud_watch_log_group_arn(Option<String>)
:
required: falseSpecifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.
For Enhanced mode tasks, you must use
/aws/datasync
as your log group name. For example:arn:aws:logs:us-east-1:111222333444:log-group:/aws/datasync:*
For more information, see Monitoring data transfers with CloudWatch Logs.
includes(FilterRule)
/set_includes(Option<Vec::<FilterRule>>)
:
required: falseSpecifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.
manifest_config(ManifestConfig)
/set_manifest_config(Option<ManifestConfig>)
:
required: falseConfigures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.
When using this parameter, your caller identity (the IAM role that you’re using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.To remove a manifest configuration, specify this parameter as empty.
task_report_config(TaskReportConfig)
/set_task_report_config(Option<TaskReportConfig>)
:
required: falseSpecifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.
When using this parameter, your caller identity (the IAM role that you’re using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.To remove a task report configuration, specify this parameter as empty.
- On success, responds with
UpdateTaskOutput
- On failure, responds with
SdkError<UpdateTaskError>
Source§impl Client
impl Client
Sourcepub fn update_task_execution(&self) -> UpdateTaskExecutionFluentBuilder
pub fn update_task_execution(&self) -> UpdateTaskExecutionFluentBuilder
Constructs a fluent builder for the UpdateTaskExecution
operation.
- The fluent builder is configurable:
task_execution_arn(impl Into<String>)
/set_task_execution_arn(Option<String>)
:
required: trueSpecifies the Amazon Resource Name (ARN) of the task execution that you’re updating.
options(Options)
/set_options(Option<Options>)
:
required: trueIndicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.
Each option has a default value. Unless you need to, you don’t have to configure any option before calling StartTaskExecution.
You also can override your task options for each task execution. For example, you might want to adjust the
LogLevel
for an individual execution.
- On success, responds with
UpdateTaskExecutionOutput
- On failure, responds with
SdkError<UpdateTaskExecutionError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
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
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
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 thesleep_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 thehttp_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, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.bright_black());
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.bright_green());
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightYellow
.
§Example
println!("{}", value.bright_yellow());
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightMagenta
.
§Example
println!("{}", value.bright_magenta());
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightWhite
.
§Example
println!("{}", value.bright_white());
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.on_bright_black());
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.on_bright_green());
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightYellow
.
§Example
println!("{}", value.on_bright_yellow());
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightBlue
.
§Example
println!("{}", value.on_bright_blue());
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightMagenta
.
§Example
println!("{}", value.on_bright_magenta());
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightCyan
.
§Example
println!("{}", value.on_bright_cyan());
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightWhite
.
§Example
println!("{}", value.on_bright_white());
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn underline(&self) -> Painted<&T>
fn underline(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::Underline
.
§Example
println!("{}", value.underline());
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::RapidBlink
.
§Example
println!("{}", value.rapid_blink());
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);