Struct aws_sdk_datasync::Client
source · [−]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.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_datasync::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_datasync::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_datasync::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn cancel_task_execution(&self) -> CancelTaskExecution
pub fn cancel_task_execution(&self) -> CancelTaskExecution
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>)
:The Amazon Resource Name (ARN) of the task execution to cancel.
- On success, responds with
CancelTaskExecutionOutput
- On failure, responds with
SdkError<CancelTaskExecutionError>
sourcepub fn create_agent(&self) -> CreateAgent
pub fn create_agent(&self) -> CreateAgent
Constructs a fluent builder for the CreateAgent
operation.
- The fluent builder is configurable:
activation_key(impl Into<String>)
/set_activation_key(Option<String>)
:Your agent activation key. You can get the activation key either by sending an HTTP GET request with redirects that enable you to get the agent IP address (port 80). Alternatively, you can get it from the DataSync console.
The redirect URL returned in the response provides you the activation key for your agent in the query string parameter
activationKey
. It might also include other activation-related parameters; however, these are merely defaults. The arguments you pass to this API call determine the actual configuration of your agent.For more information, see Activating an Agent in the DataSync User Guide.
agent_name(impl Into<String>)
/set_agent_name(Option<String>)
:The name you configured for your agent. This value is a text reference that is used to identify the agent in the console.
tags(Vec<TagListEntry>)
/set_tags(Option<Vec<TagListEntry>>)
:The key-value pair that represents the tag that you want to associate with the agent. The value can be an empty string. This value helps you manage, filter, and search for your agents.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @.
vpc_endpoint_id(impl Into<String>)
/set_vpc_endpoint_id(Option<String>)
:The ID of the VPC (virtual private cloud) endpoint that the agent has access to. This is the client-side VPC endpoint, also called a PrivateLink. If you don’t have a PrivateLink VPC endpoint, see Creating a VPC Endpoint Service Configuration in the Amazon VPC User Guide.
VPC endpoint ID looks like this:
vpce-01234d5aff67890e1
.subnet_arns(Vec<String>)
/set_subnet_arns(Option<Vec<String>>)
:The Amazon Resource Names (ARNs) of the subnets in which DataSync will create elastic network interfaces for each data transfer task. The agent that runs a task must be private. When you start a task that is associated with an agent created in a VPC, or one that has access to an IP address in a VPC, then the task is also private. In this case, DataSync creates four network interfaces for each task in your subnet. For a data transfer to work, the agent must be able to route to all these four network interfaces.
security_group_arns(Vec<String>)
/set_security_group_arns(Option<Vec<String>>)
:The ARNs of the security groups used to protect your data transfer task subnets. See SecurityGroupArns.
- On success, responds with
CreateAgentOutput
with field(s):agent_arn(Option<String>)
:The Amazon Resource Name (ARN) of the agent. Use the
ListAgents
operation to return a list of agents for your account and Amazon Web Services Region.
- On failure, responds with
SdkError<CreateAgentError>
sourcepub fn create_location_efs(&self) -> CreateLocationEfs
pub fn create_location_efs(&self) -> CreateLocationEfs
Constructs a fluent builder for the CreateLocationEfs
operation.
- The fluent builder is configurable:
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:A subdirectory in the location’s path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination. By default, DataSync uses the root directory.
Subdirectory
must be specified with forward slashes. For example,/path/to/folder
.efs_filesystem_arn(impl Into<String>)
/set_efs_filesystem_arn(Option<String>)
:The Amazon Resource Name (ARN) for the Amazon EFS file system.
ec2_config(Ec2Config)
/set_ec2_config(Option<Ec2Config>)
:The subnet and security group that the Amazon EFS file system uses. The security group that you provide needs to be able to communicate with the security group on the mount target in the subnet specified.
The exact relationship between security group M (of the mount target) and security group S (which you provide for DataSync to use at this stage) is as follows:
-
Security group M (which you associate with the mount target) must allow inbound access for the Transmission Control Protocol (TCP) on the NFS port (2049) from security group S. You can enable inbound connections either by IP address (CIDR range) or security group.
-
Security group S (provided to DataSync to access EFS) should have a rule that enables outbound connections to the NFS port on one of the file system’s mount targets. You can enable outbound connections either by IP address (CIDR range) or security group.
For information about security groups and mount targets, see Security Groups for Amazon EC2 Instances and Mount Targets in the Amazon EFS User Guide.
-
tags(Vec<TagListEntry>)
/set_tags(Option<Vec<TagListEntry>>)
: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.
- 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 is created.
- On failure, responds with
SdkError<CreateLocationEfsError>
sourcepub fn create_location_fsx_lustre(&self) -> CreateLocationFsxLustre
pub fn create_location_fsx_lustre(&self) -> CreateLocationFsxLustre
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>)
:The Amazon Resource Name (ARN) for the FSx for Lustre file system.
security_group_arns(Vec<String>)
/set_security_group_arns(Option<Vec<String>>)
:The Amazon Resource Names (ARNs) of the security groups that are used to configure the FSx for Lustre file system.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:A subdirectory in the location’s path. This subdirectory in the FSx for Lustre file system is used to read data from the FSx for Lustre source location or write data to the FSx for Lustre destination.
tags(Vec<TagListEntry>)
/set_tags(Option<Vec<TagListEntry>>)
: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.
- 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’s created.
- On failure, responds with
SdkError<CreateLocationFsxLustreError>
sourcepub fn create_location_fsx_windows(&self) -> CreateLocationFsxWindows
pub fn create_location_fsx_windows(&self) -> CreateLocationFsxWindows
Constructs a fluent builder for the CreateLocationFsxWindows
operation.
- The fluent builder is configurable:
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:A subdirectory in the location’s path. This subdirectory in the Amazon FSx for Windows File Server file system is used to read data from the Amazon FSx for Windows File Server source location or write data to the FSx for Windows File Server destination.
fsx_filesystem_arn(impl Into<String>)
/set_fsx_filesystem_arn(Option<String>)
:The Amazon Resource Name (ARN) for the FSx for Windows File Server file system.
security_group_arns(Vec<String>)
/set_security_group_arns(Option<Vec<String>>)
:The Amazon Resource Names (ARNs) of the security groups that are used to configure the FSx for Windows File Server file system.
tags(Vec<TagListEntry>)
/set_tags(Option<Vec<TagListEntry>>)
: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.
user(impl Into<String>)
/set_user(Option<String>)
:The user who has the permissions to access files and folders in the FSx for Windows File Server file system.
For information about choosing a user name that ensures sufficient permissions to files, folders, and metadata, see user.
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the Windows domain that the FSx for Windows File Server belongs to.
password(impl Into<String>)
/set_password(Option<String>)
:The password of the user who has the permissions to access files and folders in the FSx for Windows File Server file system.
- On success, responds with
CreateLocationFsxWindowsOutput
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the FSx for Windows File Server file system location that is created.
- On failure, responds with
SdkError<CreateLocationFsxWindowsError>
sourcepub fn create_location_hdfs(&self) -> CreateLocationHdfs
pub fn create_location_hdfs(&self) -> CreateLocationHdfs
Constructs a fluent builder for the CreateLocationHdfs
operation.
- The fluent builder is configurable:
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:A 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(Vec<HdfsNameNode>)
/set_name_nodes(Option<Vec<HdfsNameNode>>)
:The 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>)
:The 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>)
:The 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>)
:The URI of the HDFS cluster’s Key Management Server (KMS).
qop_configuration(QopConfiguration)
/set_qop_configuration(Option<QopConfiguration>)
:The 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>)
:The type of authentication used to determine the identity of the user.
simple_user(impl Into<String>)
/set_simple_user(Option<String>)
:The 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>)
:The 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>)
:The 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>)
:The
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(Vec<String>)
/set_agent_arns(Option<Vec<String>>)
:The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster.
tags(Vec<TagListEntry>)
/set_tags(Option<Vec<TagListEntry>>)
:The 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’s created.
- On failure, responds with
SdkError<CreateLocationHdfsError>
sourcepub fn create_location_nfs(&self) -> CreateLocationNfs
pub fn create_location_nfs(&self) -> CreateLocationNfs
Constructs a fluent builder for the CreateLocationNfs
operation.
- The fluent builder is configurable:
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination. The NFS path should be a path that’s exported by the NFS server, or a subdirectory of that path. The path should be such that it can be mounted by other NFS clients in your network.
To see all the paths exported by your NFS server, run “
showmount -e nfs-server-name
” from an NFS client that has access to your server. You can specify any directory that appears in the results, and any subdirectory of that directory. Ensure that the NFS export is accessible without Kerberos authentication.To transfer all the data in the folder you specified, DataSync needs to have permissions to read all the data. To ensure this, either configure the NFS export with
no_root_squash,
or ensure that the permissions for all of the files that you want DataSync allow read access for all users. Doing either enables the agent to read the files. For the agent to access directories, you must additionally enable all execute access.If you are copying data to or from your Snowcone device, see NFS Server on Snowcone for more information.
For information about NFS export configuration, see 18.7. The /etc/exports Configuration File in the Red Hat Enterprise Linux documentation.
server_hostname(impl Into<String>)
/set_server_hostname(Option<String>)
:The name of the NFS server. This value is the IP address or Domain Name Service (DNS) name of the NFS server. An agent that is installed on-premises uses this host name to mount the NFS server in a network.
If you are copying data to or from your Snowcone device, see NFS Server on Snowcone for more information.
This name must either be DNS-compliant or must be an IP version 4 (IPv4) address.
on_prem_config(OnPremConfig)
/set_on_prem_config(Option<OnPremConfig>)
:Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect to an NFS server.
If you are copying data to or from your Snowcone device, see NFS Server on Snowcone for more information.
mount_options(NfsMountOptions)
/set_mount_options(Option<NfsMountOptions>)
:The NFS mount options that DataSync can use to mount your NFS share.
tags(Vec<TagListEntry>)
/set_tags(Option<Vec<TagListEntry>>)
:The 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
CreateLocationNfsOutput
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the source NFS file system location that is created.
- On failure, responds with
SdkError<CreateLocationNfsError>
sourcepub fn create_location_object_storage(&self) -> CreateLocationObjectStorage
pub fn create_location_object_storage(&self) -> CreateLocationObjectStorage
Constructs a fluent builder for the CreateLocationObjectStorage
operation.
- The fluent builder is configurable:
server_hostname(impl Into<String>)
/set_server_hostname(Option<String>)
:The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) name of the object storage server. An agent uses this host name to mount the object storage server in a network.
server_port(i32)
/set_server_port(Option<i32>)
:The port that your self-managed object storage server accepts inbound network traffic on. The server port is set by default to TCP 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your self-managed object storage server requires one.
server_protocol(ObjectStorageServerProtocol)
/set_server_protocol(Option<ObjectStorageServerProtocol>)
:The protocol that the object storage server uses to communicate. Valid values are HTTP or HTTPS.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:The subdirectory in the self-managed object storage server that is used to read data from.
bucket_name(impl Into<String>)
/set_bucket_name(Option<String>)
:The bucket on the self-managed object storage server that is used to read data from.
access_key(impl Into<String>)
/set_access_key(Option<String>)
:Optional. The access key is used if credentials are required to access the self-managed object storage server. If your object storage requires a user name and password to authenticate, use
AccessKey
andSecretKey
to provide the user name and password, respectively.secret_key(impl Into<String>)
/set_secret_key(Option<String>)
:Optional. The secret key is used if credentials are required to access the self-managed object storage server. If your object storage requires a user name and password to authenticate, use
AccessKey
andSecretKey
to provide the user name and password, respectively.agent_arns(Vec<String>)
/set_agent_arns(Option<Vec<String>>)
:The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
tags(Vec<TagListEntry>)
/set_tags(Option<Vec<TagListEntry>>)
:The 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
CreateLocationObjectStorageOutput
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
- On failure, responds with
SdkError<CreateLocationObjectStorageError>
sourcepub fn create_location_s3(&self) -> CreateLocationS3
pub fn create_location_s3(&self) -> CreateLocationS3
Constructs a fluent builder for the CreateLocationS3
operation.
- The fluent builder is configurable:
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
s3_bucket_arn(impl Into<String>)
/set_s3_bucket_arn(Option<String>)
:The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, this must be an access point ARN.
s3_storage_class(S3StorageClass)
/set_s3_storage_class(Option<S3StorageClass>)
:The Amazon S3 storage class that you want to store your files in when this location is used as a task destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For buckets on Outposts, the storage class defaults to Amazon Web Services S3 Outposts.
For more information about S3 storage classes, see Amazon S3 Storage Classes. Some storage classes have behaviors that can affect your S3 storage cost. For detailed information, see Considerations when working with S3 storage classes in DataSync.
s3_config(S3Config)
/set_s3_config(Option<S3Config>)
:The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
For detailed information about using such a role, see Creating a Location for Amazon S3 in the DataSync User Guide.
agent_arns(Vec<String>)
/set_agent_arns(Option<Vec<String>>)
:If you are using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of the DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an Amazon Web Services Outpost, see Deploy your DataSync agent on Outposts.
tags(Vec<TagListEntry>)
/set_tags(Option<Vec<TagListEntry>>)
:The 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
CreateLocationS3Output
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the source Amazon S3 bucket location that is created.
- On failure, responds with
SdkError<CreateLocationS3Error>
sourcepub fn create_location_smb(&self) -> CreateLocationSmb
pub fn create_location_smb(&self) -> CreateLocationSmb
Constructs a fluent builder for the CreateLocationSmb
operation.
- The fluent builder is configurable:
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:The subdirectory in the SMB file system that is used to read data from the SMB source location or write data to the SMB destination. The SMB path should be a path that’s exported by the SMB server, or a subdirectory of that path. The path should be such that it can be mounted by other SMB clients in your network.
Subdirectory
must be specified with forward slashes. For example,/path/to/folder
.To transfer all the data in the folder you specified, DataSync needs to have permissions to mount the SMB share, as well as to access all the data in that share. To ensure this, either ensure that the user/password specified belongs to the user who can mount the share, and who has the appropriate permissions for all of the files and directories that you want DataSync to access, or use credentials of a member of the Backup Operators group to mount the share. Doing either enables the agent to access the data. For the agent to access directories, you must additionally enable all execute access.
server_hostname(impl Into<String>)
/set_server_hostname(Option<String>)
:The name of the SMB server. This value is the IP address or Domain Name Service (DNS) name of the SMB server. An agent that is installed on-premises uses this hostname to mount the SMB server in a network.
This name must either be DNS-compliant or must be an IP version 4 (IPv4) address.
user(impl Into<String>)
/set_user(Option<String>)
:The user who can mount the share, has the permissions to access files and folders in the SMB share.
For information about choosing a user name that ensures sufficient permissions to files, folders, and metadata, see user.
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the Windows domain that the SMB server belongs to.
password(impl Into<String>)
/set_password(Option<String>)
:The password of the user who can mount the share, has the permissions to access files and folders in the SMB share.
agent_arns(Vec<String>)
/set_agent_arns(Option<Vec<String>>)
:The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.
mount_options(SmbMountOptions)
/set_mount_options(Option<SmbMountOptions>)
:The mount options used by DataSync to access the SMB server.
tags(Vec<TagListEntry>)
/set_tags(Option<Vec<TagListEntry>>)
:The 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
CreateLocationSmbOutput
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the source SMB file system location that is created.
- On failure, responds with
SdkError<CreateLocationSmbError>
sourcepub fn create_task(&self) -> CreateTask
pub fn create_task(&self) -> CreateTask
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>)
:The Amazon Resource Name (ARN) of the source location for the task.
destination_location_arn(impl Into<String>)
/set_destination_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of an Amazon Web Services storage resource’s location.
cloud_watch_log_group_arn(impl Into<String>)
/set_cloud_watch_log_group_arn(Option<String>)
:The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task.
name(impl Into<String>)
/set_name(Option<String>)
:The name of a task. This value is a text reference that is used to identify the task in the console.
options(Options)
/set_options(Option<Options>)
:The set of configuration options that control the behavior of a single execution of the task that occurs when you call
StartTaskExecution
. You can configure these options to preserve metadata such as user ID (UID) and group ID (GID), file permissions, data integrity verification, and so on.For each individual task execution, you can override these options by specifying the
OverrideOptions
before starting the task execution. For more information, see the StartTaskExecution operation.excludes(Vec<FilterRule>)
/set_excludes(Option<Vec<FilterRule>>)
:A list of filter rules that determines which files to exclude from a task. The list should contain a single filter string that consists of the patterns to exclude. The patterns are delimited by “|” (that is, a pipe), for example,
“/folder1|/folder2”
.schedule(TaskSchedule)
/set_schedule(Option<TaskSchedule>)
:Specifies a schedule used to periodically transfer files from a source to a destination location. The schedule should be specified in UTC time. For more information, see Scheduling your task.
tags(Vec<TagListEntry>)
/set_tags(Option<Vec<TagListEntry>>)
:The key-value pair that represents the tag that you want to add to the resource. The value can be an empty string.
includes(Vec<FilterRule>)
/set_includes(Option<Vec<FilterRule>>)
:A list of filter rules that determines which files to include when running a task. The pattern contains a single filter string that consists of the patterns to include. The patterns are delimited by “|” (that is, a pipe), for example,
“/folder1|/folder2”
.
- 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>
sourcepub fn delete_agent(&self) -> DeleteAgent
pub fn delete_agent(&self) -> DeleteAgent
Constructs a fluent builder for the DeleteAgent
operation.
- The fluent builder is configurable:
agent_arn(impl Into<String>)
/set_agent_arn(Option<String>)
:The 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>
sourcepub fn delete_location(&self) -> DeleteLocation
pub fn delete_location(&self) -> DeleteLocation
Constructs a fluent builder for the DeleteLocation
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the location to delete.
- On success, responds with
DeleteLocationOutput
- On failure, responds with
SdkError<DeleteLocationError>
sourcepub fn delete_task(&self) -> DeleteTask
pub fn delete_task(&self) -> DeleteTask
Constructs a fluent builder for the DeleteTask
operation.
- The fluent builder is configurable:
task_arn(impl Into<String>)
/set_task_arn(Option<String>)
:The Amazon Resource Name (ARN) of the task to delete.
- On success, responds with
DeleteTaskOutput
- On failure, responds with
SdkError<DeleteTaskError>
sourcepub fn describe_agent(&self) -> DescribeAgent
pub fn describe_agent(&self) -> DescribeAgent
Constructs a fluent builder for the DescribeAgent
operation.
- The fluent builder is configurable:
agent_arn(impl Into<String>)
/set_agent_arn(Option<String>)
:The Amazon Resource Name (ARN) of the agent to describe.
- On success, responds with
DescribeAgentOutput
with field(s):agent_arn(Option<String>)
:The Amazon Resource Name (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, then the agent is configured properly and is available to use. The Running status is the normal running status for an agent. If the status is OFFLINE, the agent’s VM is turned off or the agent is in an unhealthy state. When the issue that caused the unhealthy state is resolved, the agent returns to ONLINE status.
last_connection_time(Option<DateTime>)
:The time that the agent last connected to DataSync.
creation_time(Option<DateTime>)
:The time that the agent was activated (that is, created in your account).
endpoint_type(Option<EndpointType>)
:The type of endpoint that your agent is connected to. If the endpoint is a VPC endpoint, the agent is not accessible over the public internet.
private_link_config(Option<PrivateLinkConfig>)
:The subnet and the security group that DataSync used to access a VPC endpoint.
- On failure, responds with
SdkError<DescribeAgentError>
sourcepub fn describe_location_efs(&self) -> DescribeLocationEfs
pub fn describe_location_efs(&self) -> DescribeLocationEfs
Constructs a fluent builder for the DescribeLocationEfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the EFS location to describe.
- On success, responds with
DescribeLocationEfsOutput
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the EFS location that was described.
location_uri(Option<String>)
:The URL of the EFS location that was described.
ec2_config(Option<Ec2Config>)
:The subnet and the security group that DataSync uses to access target EFS file system. The subnet must have at least one mount target for that file system. The security group that you provide needs to be able to communicate with the security group on the mount target in the subnet specified.
creation_time(Option<DateTime>)
:The time that the EFS location was created.
- On failure, responds with
SdkError<DescribeLocationEfsError>
sourcepub fn describe_location_fsx_lustre(&self) -> DescribeLocationFsxLustre
pub fn describe_location_fsx_lustre(&self) -> DescribeLocationFsxLustre
Constructs a fluent builder for the DescribeLocationFsxLustre
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The 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>
sourcepub fn describe_location_fsx_windows(&self) -> DescribeLocationFsxWindows
pub fn describe_location_fsx_windows(&self) -> DescribeLocationFsxWindows
Constructs a fluent builder for the DescribeLocationFsxWindows
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the FSx for Windows File Server location to describe.
- On success, responds with
DescribeLocationFsxWindowsOutput
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the FSx for Windows File Server location that was described.
location_uri(Option<String>)
:The URL of the FSx for Windows File Server 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 Windows File Server file system.
creation_time(Option<DateTime>)
:The time that the FSx for Windows File Server location was created.
user(Option<String>)
:The user who has the permissions to access files and folders in the FSx for Windows File Server file system.
domain(Option<String>)
:The name of the Windows domain that the FSx for Windows File Server belongs to.
- On failure, responds with
SdkError<DescribeLocationFsxWindowsError>
sourcepub fn describe_location_hdfs(&self) -> DescribeLocationHdfs
pub fn describe_location_hdfs(&self) -> DescribeLocationHdfs
Constructs a fluent builder for the DescribeLocationHdfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the HDFS cluster location to describe.
- On success, responds with
DescribeLocationHdfsOutput
with field(s):location_arn(Option<String>)
:The ARN of the HDFS cluster location.
location_uri(Option<String>)
:The URI of the HDFS cluster location.
name_nodes(Option<Vec<HdfsNameNode>>)
:The NameNode that manage 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 specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the Hadoop Distributed File System (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 used 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 agents that are used to connect to the HDFS cluster.
creation_time(Option<DateTime>)
:The time that the HDFS location was created.
- On failure, responds with
SdkError<DescribeLocationHdfsError>
sourcepub fn describe_location_nfs(&self) -> DescribeLocationNfs
pub fn describe_location_nfs(&self) -> DescribeLocationNfs
Constructs a fluent builder for the DescribeLocationNfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the NFS location to describe.
- On success, responds with
DescribeLocationNfsOutput
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the NFS location that was described.
location_uri(Option<String>)
:The URL of the source NFS location that was described.
on_prem_config(Option<OnPremConfig>)
:A list of Amazon Resource Names (ARNs) of agents to use for a Network File System (NFS) location.
mount_options(Option<NfsMountOptions>)
:The NFS mount options that DataSync used to mount your NFS share.
creation_time(Option<DateTime>)
:The time that the NFS location was created.
- On failure, responds with
SdkError<DescribeLocationNfsError>
sourcepub fn describe_location_object_storage(&self) -> DescribeLocationObjectStorage
pub fn describe_location_object_storage(&self) -> DescribeLocationObjectStorage
Constructs a fluent builder for the DescribeLocationObjectStorage
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the self-managed object storage server location that was described.
- On success, responds with
DescribeLocationObjectStorageOutput
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the self-managed object storage server location to describe.
location_uri(Option<String>)
:The URL of the source self-managed object storage server location that was described.
access_key(Option<String>)
:Optional. The access key is used if credentials are required to access the self-managed object storage server. If your object storage requires a user name and password to authenticate, use
AccessKey
andSecretKey
to provide the user name and password, respectively.server_port(Option<i32>)
:The port that your self-managed object storage server accepts inbound network traffic on. The server port is set by default to TCP 80 (HTTP) or TCP 443 (HTTPS).
server_protocol(Option<ObjectStorageServerProtocol>)
:The protocol that the object storage server uses to communicate. Valid values are HTTP or HTTPS.
agent_arns(Option<Vec<String>>)
:The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
creation_time(Option<DateTime>)
:The time that the self-managed object storage server agent was created.
- On failure, responds with
SdkError<DescribeLocationObjectStorageError>
sourcepub fn describe_location_s3(&self) -> DescribeLocationS3
pub fn describe_location_s3(&self) -> DescribeLocationS3
Constructs a fluent builder for the DescribeLocationS3
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the Amazon S3 bucket location to describe.
- On success, responds with
DescribeLocationS3Output
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the Amazon S3 bucket or access point.
location_uri(Option<String>)
:The URL of the Amazon S3 location that was described.
s3_storage_class(Option<S3StorageClass>)
:The Amazon S3 storage class that you chose to store your files in when this location is used as a task destination. For more information about S3 storage classes, see Amazon S3 Storage Classes. Some storage classes have behaviors that can affect your S3 storage cost. For detailed information, see Considerations when working with S3 storage classes in DataSync.
s3_config(Option<S3Config>)
:The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
For detailed information about using such a role, see Creating a Location for Amazon S3 in the DataSync User Guide.
agent_arns(Option<Vec<String>>)
:If you are using DataSync on an Amazon Web Services Outpost, the Amazon Resource Name (ARNs) of the EC2 agents deployed on your Outpost. For more information about launching a DataSync agent on an Amazon Web Services Outpost, see Deploy your DataSync agent on Outposts.
creation_time(Option<DateTime>)
:The time that the Amazon S3 bucket location was created.
- On failure, responds with
SdkError<DescribeLocationS3Error>
sourcepub fn describe_location_smb(&self) -> DescribeLocationSmb
pub fn describe_location_smb(&self) -> DescribeLocationSmb
Constructs a fluent builder for the DescribeLocationSmb
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the SMB location to describe.
- On success, responds with
DescribeLocationSmbOutput
with field(s):location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the SMB location that was described.
location_uri(Option<String>)
:The URL of the source SMB location that was described.
agent_arns(Option<Vec<String>>)
:The Amazon Resource Name (ARN) of the source SMB file system location that is created.
user(Option<String>)
:The user who can mount the share, has the permissions to access files and folders in the SMB share.
domain(Option<String>)
:The name of the Windows domain that the SMB server belongs to.
mount_options(Option<SmbMountOptions>)
:The mount options that are available for DataSync to use to access an SMB location.
creation_time(Option<DateTime>)
:The time that the SMB location was created.
- On failure, responds with
SdkError<DescribeLocationSmbError>
sourcepub fn describe_task(&self) -> DescribeTask
pub fn describe_task(&self) -> DescribeTask
Constructs a fluent builder for the DescribeTask
operation.
- The fluent builder is configurable:
task_arn(impl Into<String>)
/set_task_arn(Option<String>)
:The Amazon Resource Name (ARN) of the task to describe.
- On success, responds with
DescribeTaskOutput
with field(s):task_arn(Option<String>)
:The Amazon Resource Name (ARN) of the task that was described.
status(Option<TaskStatus>)
:The status of the task that was described.
For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync User Guide.
name(Option<String>)
:The name of the task that was described.
current_task_execution_arn(Option<String>)
:The Amazon Resource Name (ARN) of the task execution that is syncing files.
source_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the source file system’s location.
destination_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the Amazon Web Services storage resource’s location.
cloud_watch_log_group_arn(Option<String>)
:The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was used to monitor and log events in the task.
For more information on these groups, see Working with Log Groups and Log Streams in the Amazon CloudWatch User Guide.
source_network_interface_arns(Option<Vec<String>>)
:The Amazon Resource Names (ARNs) of the source elastic network interfaces (ENIs) that were created for your subnet.
destination_network_interface_arns(Option<Vec<String>>)
:The Amazon Resource Names (ARNs) of the destination elastic network interfaces (ENIs) that were created for your subnet.
options(Option<Options>)
:The set of configuration options that control the behavior of a single execution of the task that occurs when you call
StartTaskExecution
. You can configure these options to preserve metadata such as user ID (UID) and group (GID), file permissions, data integrity verification, and so on.For each individual task execution, you can override these options by specifying the overriding
OverrideOptions
value to StartTaskExecution operation.excludes(Option<Vec<FilterRule>>)
:A list of filter rules that determines which files to exclude from a task. The list should contain a single filter string that consists of the patterns to exclude. The patterns are delimited by “|” (that is, a pipe), for example,
“/folder1|/folder2”
.schedule(Option<TaskSchedule>)
:The schedule used to periodically transfer files from a source to a destination location.
error_code(Option<String>)
:Errors that DataSync encountered during execution of the task. You can use this error code to help troubleshoot issues.
error_detail(Option<String>)
:Detailed description of an error that was encountered during the task execution. You can use this information to help troubleshoot issues.
creation_time(Option<DateTime>)
:The time that the task was created.
includes(Option<Vec<FilterRule>>)
:A list of filter rules that determines which files to include when running a task. The pattern contains a single filter string that consists of the patterns to include. The patterns are delimited by “|” (that is, a pipe), for example,
“/folder1|/folder2
”.
- On failure, responds with
SdkError<DescribeTaskError>
sourcepub fn describe_task_execution(&self) -> DescribeTaskExecution
pub fn describe_task_execution(&self) -> DescribeTaskExecution
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>)
:The Amazon Resource Name (ARN) of the task that is being executed.
- On success, responds with
DescribeTaskExecutionOutput
with field(s):task_execution_arn(Option<String>)
:The Amazon Resource Name (ARN) of the task execution that was described.
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.
For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync User Guide.
options(Option<Options>)
:Represents the options that are available to control the behavior of a StartTaskExecution operation. Behavior includes preserving metadata such as user ID (UID), group ID (GID), and file permissions, and also overwriting files in the destination, data integrity verification, and so on.
A task has a set of default options associated with it. If you don’t specify an option in StartTaskExecution, the default value is used. You can override the defaults options on each task execution by specifying an overriding
Options
value to StartTaskExecution.excludes(Option<Vec<FilterRule>>)
:A list of filter rules that determines which files to exclude from a task. The list should contain a single filter string that consists of the patterns to exclude. The patterns are delimited by “|” (that is, a pipe), for example:
“/folder1|/folder2”
includes(Option<Vec<FilterRule>>)
:A list of filter rules that determines which files to include when running a task. The list 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”
start_time(Option<DateTime>)
:The time that the task execution was started.
estimated_files_to_transfer(i64)
:The expected number of files that is to be transferred over the network. This value is calculated during the PREPARING phase, before the TRANSFERRING phase. This value is the expected number of files to be transferred. It’s calculated based on comparing the content of the source and destination locations and finding the delta that needs to be transferred.
estimated_bytes_to_transfer(i64)
:The estimated physical number of bytes that is to be transferred over the network.
files_transferred(i64)
:The actual number of files that was transferred over the network. This value is calculated and updated on an ongoing basis during the TRANSFERRING phase. It’s updated periodically when each file is read from the source and sent over the network.
If failures occur during a transfer, this value can be less than
EstimatedFilesToTransfer
. This value can also be greater thanEstimatedFilesTransferred
in some cases. This element is implementation-specific for some location types, so don’t use it as an indicator for a correct file number or to monitor your task execution.bytes_written(i64)
:The number of logical bytes written to the destination Amazon Web Services storage resource.
bytes_transferred(i64)
:The physical number of bytes transferred over the network.
result(Option<TaskExecutionResultDetail>)
:The result of the task execution.
- On failure, responds with
SdkError<DescribeTaskExecutionError>
sourcepub fn list_agents(&self) -> ListAgents
pub fn list_agents(&self) -> ListAgents
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>)
:The maximum number of agents to list.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An opaque string that indicates the position at which to begin the next list of agents.
- On success, responds with
ListAgentsOutput
with field(s):agents(Option<Vec<AgentListEntry>>)
:A list of agents in your account.
next_token(Option<String>)
:An opaque string that indicates the position at which to begin returning the next list of agents.
- On failure, responds with
SdkError<ListAgentsError>
sourcepub fn list_locations(&self) -> ListLocations
pub fn list_locations(&self) -> ListLocations
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>)
:The maximum number of locations to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An opaque string that indicates the position at which to begin the next list of locations.
filters(Vec<LocationFilter>)
/set_filters(Option<Vec<LocationFilter>>)
:You 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>
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>)
:The Amazon Resource Name (ARN) of the resource whose tags to list.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of locations to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An opaque string that indicates the position at which to begin the next list of locations.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<Vec<TagListEntry>>)
:Array of resource tags.
next_token(Option<String>)
:An opaque string that indicates the position at which to begin returning the next list of resource tags.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn list_task_executions(&self) -> ListTaskExecutions
pub fn list_task_executions(&self) -> ListTaskExecutions
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>)
:The Amazon Resource Name (ARN) of the task whose tasks you want to list.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of executed tasks to list.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An opaque string that indicates the position at which to begin the next list of the executed tasks.
- On success, responds with
ListTaskExecutionsOutput
with field(s):task_executions(Option<Vec<TaskExecutionListEntry>>)
:A list of executed tasks.
next_token(Option<String>)
:An opaque string that indicates the position at which to begin returning the next list of executed tasks.
- On failure, responds with
SdkError<ListTaskExecutionsError>
sourcepub fn list_tasks(&self) -> ListTasks
pub fn list_tasks(&self) -> ListTasks
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>)
:The maximum number of tasks to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An opaque string that indicates the position at which to begin the next list of tasks.
filters(Vec<TaskFilter>)
/set_filters(Option<Vec<TaskFilter>>)
:You 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>
sourcepub fn start_task_execution(&self) -> StartTaskExecution
pub fn start_task_execution(&self) -> StartTaskExecution
Constructs a fluent builder for the StartTaskExecution
operation.
- The fluent builder is configurable:
task_arn(impl Into<String>)
/set_task_arn(Option<String>)
:The Amazon Resource Name (ARN) of the task to start.
override_options(Options)
/set_override_options(Option<Options>)
:Represents the options that are available to control the behavior of a StartTaskExecution operation. Behavior includes preserving metadata such as user ID (UID), group ID (GID), and file permissions, and also overwriting files in the destination, data integrity verification, and so on.
A task has a set of default options associated with it. If you don’t specify an option in StartTaskExecution, the default value is used. You can override the defaults options on each task execution by specifying an overriding
Options
value to StartTaskExecution.includes(Vec<FilterRule>)
/set_includes(Option<Vec<FilterRule>>)
: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(Vec<FilterRule>)
/set_excludes(Option<Vec<FilterRule>>)
: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”
.
- On success, responds with
StartTaskExecutionOutput
with field(s):task_execution_arn(Option<String>)
:The Amazon Resource Name (ARN) of the specific task execution that was started.
- On failure, responds with
SdkError<StartTaskExecutionError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to apply the tag to.
tags(Vec<TagListEntry>)
/set_tags(Option<Vec<TagListEntry>>)
:The tags to apply.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to remove the tag from.
keys(Vec<String>)
/set_keys(Option<Vec<String>>)
:The keys in the key-value pair in the tag to remove.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_agent(&self) -> UpdateAgent
pub fn update_agent(&self) -> UpdateAgent
Constructs a fluent builder for the UpdateAgent
operation.
- The fluent builder is configurable:
agent_arn(impl Into<String>)
/set_agent_arn(Option<String>)
:The Amazon Resource Name (ARN) of the agent to update.
name(impl Into<String>)
/set_name(Option<String>)
:The name that you want to use to configure the agent.
- On success, responds with
UpdateAgentOutput
- On failure, responds with
SdkError<UpdateAgentError>
sourcepub fn update_location_hdfs(&self) -> UpdateLocationHdfs
pub fn update_location_hdfs(&self) -> UpdateLocationHdfs
Constructs a fluent builder for the UpdateLocationHdfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the source HDFS cluster location.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster.
name_nodes(Vec<HdfsNameNode>)
/set_name_nodes(Option<Vec<HdfsNameNode>>)
:The 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>)
:The size of the data blocks to write into the HDFS cluster.
replication_factor(i32)
/set_replication_factor(Option<i32>)
:The 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>)
:The URI of the HDFS cluster’s Key Management Server (KMS).
qop_configuration(QopConfiguration)
/set_qop_configuration(Option<QopConfiguration>)
:The 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>)
:The type of authentication used to determine the identity of the user.
simple_user(impl Into<String>)
/set_simple_user(Option<String>)
:The user name used to identify the client on the host operating system.
kerberos_principal(impl Into<String>)
/set_kerberos_principal(Option<String>)
:The Kerberos principal with access to the files and folders on the HDFS cluster.
kerberos_keytab(Blob)
/set_kerberos_keytab(Option<Blob>)
:The 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 AWS CLI, it performs base64 encoding for you. Otherwise, provide the base64-encoded text.
kerberos_krb5_conf(Blob)
/set_kerberos_krb5_conf(Option<Blob>)
:The
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 AWS CLI, it performs the base64 encoding for you. Otherwise, provide the base64-encoded text.agent_arns(Vec<String>)
/set_agent_arns(Option<Vec<String>>)
:The ARNs of the agents that are used to connect to the HDFS cluster.
- On success, responds with
UpdateLocationHdfsOutput
- On failure, responds with
SdkError<UpdateLocationHdfsError>
sourcepub fn update_location_nfs(&self) -> UpdateLocationNfs
pub fn update_location_nfs(&self) -> UpdateLocationNfs
Constructs a fluent builder for the UpdateLocationNfs
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the NFS location to update.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination. The NFS path should be a path that’s exported by the NFS server, or a subdirectory of that path. The path should be such that it can be mounted by other NFS clients in your network.
To see all the paths exported by your NFS server, run “
showmount -e nfs-server-name
” from an NFS client that has access to your server. You can specify any directory that appears in the results, and any subdirectory of that directory. Ensure that the NFS export is accessible without Kerberos authentication.To transfer all the data in the folder that you specified, DataSync must have permissions to read all the data. To ensure this, either configure the NFS export with
no_root_squash
, or ensure that the files you want DataSync to access have permissions that allow read access for all users. Doing either option enables the agent to read the files. For the agent to access directories, you must additionally enable all execute access.If you are copying data to or from your Snowcone device, see NFS Server on Snowcone for more information.
For information about NFS export configuration, see 18.7. The /etc/exports Configuration File in the Red Hat Enterprise Linux documentation.
on_prem_config(OnPremConfig)
/set_on_prem_config(Option<OnPremConfig>)
:A list of Amazon Resource Names (ARNs) of agents to use for a Network File System (NFS) location.
mount_options(NfsMountOptions)
/set_mount_options(Option<NfsMountOptions>)
:Represents the mount options that are available for DataSync to access an NFS location.
- On success, responds with
UpdateLocationNfsOutput
- On failure, responds with
SdkError<UpdateLocationNfsError>
sourcepub fn update_location_object_storage(&self) -> UpdateLocationObjectStorage
pub fn update_location_object_storage(&self) -> UpdateLocationObjectStorage
Constructs a fluent builder for the UpdateLocationObjectStorage
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the self-managed object storage server location to be updated.
server_port(i32)
/set_server_port(Option<i32>)
:The port that your self-managed object storage server accepts inbound network traffic on. The server port is set by default to TCP 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your self-managed object storage server requires one.
server_protocol(ObjectStorageServerProtocol)
/set_server_protocol(Option<ObjectStorageServerProtocol>)
:The protocol that the object storage server uses to communicate. Valid values are
HTTP
orHTTPS
.subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:The subdirectory in the self-managed object storage server that is used to read data from.
access_key(impl Into<String>)
/set_access_key(Option<String>)
:Optional. The access key is used if credentials are required to access the self-managed object storage server. If your object storage requires a user name and password to authenticate, use
AccessKey
andSecretKey
to provide the user name and password, respectively.secret_key(impl Into<String>)
/set_secret_key(Option<String>)
:Optional. The secret key is used if credentials are required to access the self-managed object storage server. If your object storage requires a user name and password to authenticate, use
AccessKey
andSecretKey
to provide the user name and password, respectively.agent_arns(Vec<String>)
/set_agent_arns(Option<Vec<String>>)
:The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
- On success, responds with
UpdateLocationObjectStorageOutput
- On failure, responds with
SdkError<UpdateLocationObjectStorageError>
sourcepub fn update_location_smb(&self) -> UpdateLocationSmb
pub fn update_location_smb(&self) -> UpdateLocationSmb
Constructs a fluent builder for the UpdateLocationSmb
operation.
- The fluent builder is configurable:
location_arn(impl Into<String>)
/set_location_arn(Option<String>)
:The Amazon Resource Name (ARN) of the SMB location to update.
subdirectory(impl Into<String>)
/set_subdirectory(Option<String>)
:The subdirectory in the SMB file system that is used to read data from the SMB source location or write data to the SMB destination. The SMB path should be a path that’s exported by the SMB server, or a subdirectory of that path. The path should be such that it can be mounted by other SMB clients in your network.
Subdirectory
must be specified with forward slashes. For example,/path/to/folder
.To transfer all the data in the folder that you specified, DataSync must have permissions to mount the SMB share and to access all the data in that share. To ensure this, do either of the following:
-
Ensure that the user/password specified belongs to the user who can mount the share and who has the appropriate permissions for all of the files and directories that you want DataSync to access.
-
Use credentials of a member of the Backup Operators group to mount the share.
Doing either of these options enables the agent to access the data. For the agent to access directories, you must also enable all execute access.
-
user(impl Into<String>)
/set_user(Option<String>)
:The user who can mount the share has the permissions to access files and folders in the SMB share.
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the Windows domain that the SMB server belongs to.
password(impl Into<String>)
/set_password(Option<String>)
:The password of the user who can mount the share has the permissions to access files and folders in the SMB share.
agent_arns(Vec<String>)
/set_agent_arns(Option<Vec<String>>)
:The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.
mount_options(SmbMountOptions)
/set_mount_options(Option<SmbMountOptions>)
:Represents the mount options that are available for DataSync to access an SMB location.
- On success, responds with
UpdateLocationSmbOutput
- On failure, responds with
SdkError<UpdateLocationSmbError>
sourcepub fn update_task(&self) -> UpdateTask
pub fn update_task(&self) -> UpdateTask
Constructs a fluent builder for the UpdateTask
operation.
- The fluent builder is configurable:
task_arn(impl Into<String>)
/set_task_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource name of the task to update.
options(Options)
/set_options(Option<Options>)
:Represents the options that are available to control the behavior of a StartTaskExecution operation. Behavior includes preserving metadata such as user ID (UID), group ID (GID), and file permissions, and also overwriting files in the destination, data integrity verification, and so on.
A task has a set of default options associated with it. If you don’t specify an option in StartTaskExecution, the default value is used. You can override the defaults options on each task execution by specifying an overriding
Options
value to StartTaskExecution.excludes(Vec<FilterRule>)
/set_excludes(Option<Vec<FilterRule>>)
:A list of filter rules that determines which files to exclude from a task. The list should contain a single filter string that consists of the patterns to exclude. The patterns are delimited by “|” (that is, a pipe), for example,
“/folder1|/folder2”
.schedule(TaskSchedule)
/set_schedule(Option<TaskSchedule>)
:Specifies a schedule used to periodically transfer files from a source to a destination location. You can configure your task to execute hourly, daily, weekly or on specific days of the week. You control when in the day or hour you want the task to execute. The time you specify is UTC time. For more information, see Scheduling your task.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the task to update.
cloud_watch_log_group_arn(impl Into<String>)
/set_cloud_watch_log_group_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource name of the Amazon CloudWatch log group.
includes(Vec<FilterRule>)
/set_includes(Option<Vec<FilterRule>>)
:A list of filter rules that determines which files to include when running a task. The pattern contains a single filter string that consists of the patterns to include. The patterns are delimited by “|” (that is, a pipe), for example,
“/folder1|/folder2”
.
- On success, responds with
UpdateTaskOutput
- On failure, responds with
SdkError<UpdateTaskError>
sourcepub fn update_task_execution(&self) -> UpdateTaskExecution
pub fn update_task_execution(&self) -> UpdateTaskExecution
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>)
:The Amazon Resource Name (ARN) of the specific task execution that is being updated.
options(Options)
/set_options(Option<Options>)
:Represents the options that are available to control the behavior of a StartTaskExecution operation. Behavior includes preserving metadata such as user ID (UID), group ID (GID), and file permissions, and also overwriting files in the destination, data integrity verification, and so on.
A task has a set of default options associated with it. If you don’t specify an option in StartTaskExecution, the default value is used. You can override the defaults options on each task execution by specifying an overriding
Options
value to StartTaskExecution.
- On success, responds with
UpdateTaskExecutionOutput
- On failure, responds with
SdkError<UpdateTaskExecutionError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more