@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSDataSync
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSDataSync
instead.
DataSync is a managed data transfer service that makes it simpler for you to automate moving data between on-premises storage and Amazon Simple Storage Service (Amazon S3) or Amazon Elastic File System (Amazon EFS).
This API interface reference for DataSync contains documentation for a programming interface that you can use to manage DataSync.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
CancelTaskExecutionResult |
cancelTaskExecution(CancelTaskExecutionRequest cancelTaskExecutionRequest)
Cancels execution of a task.
|
CreateAgentResult |
createAgent(CreateAgentRequest createAgentRequest)
Activates an DataSync agent that you have deployed on your host.
|
CreateLocationEfsResult |
createLocationEfs(CreateLocationEfsRequest createLocationEfsRequest)
Creates an endpoint for an Amazon EFS file system.
|
CreateLocationFsxWindowsResult |
createLocationFsxWindows(CreateLocationFsxWindowsRequest createLocationFsxWindowsRequest)
Creates an endpoint for an Amazon FSx for Windows File Server file system.
|
CreateLocationNfsResult |
createLocationNfs(CreateLocationNfsRequest createLocationNfsRequest)
Defines a file system on a Network File System (NFS) server that can be read from or written to.
|
CreateLocationObjectStorageResult |
createLocationObjectStorage(CreateLocationObjectStorageRequest createLocationObjectStorageRequest)
Creates an endpoint for a self-managed object storage bucket.
|
CreateLocationS3Result |
createLocationS3(CreateLocationS3Request createLocationS3Request)
Creates an endpoint for an Amazon S3 bucket.
|
CreateLocationSmbResult |
createLocationSmb(CreateLocationSmbRequest createLocationSmbRequest)
Defines a file system on a Server Message Block (SMB) server that can be read from or written to.
|
CreateTaskResult |
createTask(CreateTaskRequest createTaskRequest)
Creates a task.
|
DeleteAgentResult |
deleteAgent(DeleteAgentRequest deleteAgentRequest)
Deletes an agent.
|
DeleteLocationResult |
deleteLocation(DeleteLocationRequest deleteLocationRequest)
Deletes the configuration of a location used by DataSync.
|
DeleteTaskResult |
deleteTask(DeleteTaskRequest deleteTaskRequest)
Deletes a task.
|
DescribeAgentResult |
describeAgent(DescribeAgentRequest describeAgentRequest)
Returns metadata such as the name, the network interfaces, and the status (that is, whether the agent is running
or not) for an agent.
|
DescribeLocationEfsResult |
describeLocationEfs(DescribeLocationEfsRequest describeLocationEfsRequest)
Returns metadata, such as the path information about an Amazon EFS location.
|
DescribeLocationFsxWindowsResult |
describeLocationFsxWindows(DescribeLocationFsxWindowsRequest describeLocationFsxWindowsRequest)
Returns metadata, such as the path information about an Amazon FSx for Windows File Server location.
|
DescribeLocationNfsResult |
describeLocationNfs(DescribeLocationNfsRequest describeLocationNfsRequest)
Returns metadata, such as the path information, about an NFS location.
|
DescribeLocationObjectStorageResult |
describeLocationObjectStorage(DescribeLocationObjectStorageRequest describeLocationObjectStorageRequest)
Returns metadata about a self-managed object storage server location.
|
DescribeLocationS3Result |
describeLocationS3(DescribeLocationS3Request describeLocationS3Request)
Returns metadata, such as bucket name, about an Amazon S3 bucket location.
|
DescribeLocationSmbResult |
describeLocationSmb(DescribeLocationSmbRequest describeLocationSmbRequest)
Returns metadata, such as the path and user information about an SMB location.
|
DescribeTaskResult |
describeTask(DescribeTaskRequest describeTaskRequest)
Returns metadata about a task.
|
DescribeTaskExecutionResult |
describeTaskExecution(DescribeTaskExecutionRequest describeTaskExecutionRequest)
Returns detailed metadata about a task that is being executed.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
ListAgentsResult |
listAgents(ListAgentsRequest listAgentsRequest)
Returns a list of agents owned by an Amazon Web Services account in the Amazon Web Services Region specified in
the request.
|
ListLocationsResult |
listLocations(ListLocationsRequest listLocationsRequest)
Returns a list of source and destination locations.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns all the tags associated with a specified resource.
|
ListTaskExecutionsResult |
listTaskExecutions(ListTaskExecutionsRequest listTaskExecutionsRequest)
Returns a list of executed tasks.
|
ListTasksResult |
listTasks(ListTasksRequest listTasksRequest)
Returns a list of all the tasks.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
StartTaskExecutionResult |
startTaskExecution(StartTaskExecutionRequest startTaskExecutionRequest)
Starts a specific invocation of a task.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Applies a key-value pair to an Amazon Web Services resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Removes a tag from an Amazon Web Services resource.
|
UpdateAgentResult |
updateAgent(UpdateAgentRequest updateAgentRequest)
Updates the name of an agent.
|
UpdateLocationNfsResult |
updateLocationNfs(UpdateLocationNfsRequest updateLocationNfsRequest)
Updates some of the parameters of a previously created location for Network File System (NFS) access.
|
UpdateLocationObjectStorageResult |
updateLocationObjectStorage(UpdateLocationObjectStorageRequest updateLocationObjectStorageRequest)
Updates some of the parameters of a previously created location for self-managed object storage server access.
|
UpdateLocationSmbResult |
updateLocationSmb(UpdateLocationSmbRequest updateLocationSmbRequest)
Updates some of the parameters of a previously created location for Server Message Block (SMB) file system
access.
|
UpdateTaskResult |
updateTask(UpdateTaskRequest updateTaskRequest)
Updates the metadata associated with a task.
|
UpdateTaskExecutionResult |
updateTaskExecution(UpdateTaskExecutionRequest updateTaskExecutionRequest)
Updates execution of a task.
|
static final String ENDPOINT_PREFIX
CancelTaskExecutionResult cancelTaskExecution(CancelTaskExecutionRequest cancelTaskExecutionRequest)
Cancels execution of a task.
When you cancel a task execution, the transfer of some files is abruptly interrupted. The contents of files that are transferred to the destination might be incomplete or inconsistent with the source files. However, if you start a new task execution on the same task and you allow the task execution to complete, file content on the destination is complete and consistent. This applies to other unexpected failures that interrupt a task execution. In all of these cases, DataSync successfully complete the transfer when you start the next task execution.
cancelTaskExecutionRequest
- CancelTaskExecutionRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.CreateAgentResult createAgent(CreateAgentRequest createAgentRequest)
Activates an DataSync agent that you have deployed on your host. The activation process associates your agent with your account. In the activation process, you specify information such as the Amazon Web Services Region that you want to activate the agent in. You activate the agent in the Amazon Web Services Region where your target locations (in Amazon S3 or Amazon EFS) reside. Your tasks are created in this Amazon Web Services Region.
You can activate the agent in a VPC (virtual private cloud) or provide the agent access to a VPC endpoint so you can run tasks without going over the public internet.
You can use an agent for more than one location. If a task uses multiple agents, all of them need to have status AVAILABLE for the task to run. If you use multiple agents for a source location, the status of all the agents must be AVAILABLE for the task to run.
Agents are automatically updated by Amazon Web Services on a regular basis, using a mechanism that ensures minimal interruption to your tasks.
createAgentRequest
- CreateAgentRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.CreateLocationEfsResult createLocationEfs(CreateLocationEfsRequest createLocationEfsRequest)
Creates an endpoint for an Amazon EFS file system.
createLocationEfsRequest
- CreateLocationEfsRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.CreateLocationFsxWindowsResult createLocationFsxWindows(CreateLocationFsxWindowsRequest createLocationFsxWindowsRequest)
Creates an endpoint for an Amazon FSx for Windows File Server file system.
createLocationFsxWindowsRequest
- InvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.CreateLocationNfsResult createLocationNfs(CreateLocationNfsRequest createLocationNfsRequest)
Defines a file system on a Network File System (NFS) server that can be read from or written to.
createLocationNfsRequest
- CreateLocationNfsRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.CreateLocationObjectStorageResult createLocationObjectStorage(CreateLocationObjectStorageRequest createLocationObjectStorageRequest)
Creates an endpoint for a self-managed object storage bucket. For more information about self-managed object storage locations, see Creating a location for object storage.
createLocationObjectStorageRequest
- CreateLocationObjectStorageRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.CreateLocationS3Result createLocationS3(CreateLocationS3Request createLocationS3Request)
Creates an endpoint for an Amazon S3 bucket.
For more information, see Create an Amazon S3 location in the DataSync User Guide.
createLocationS3Request
- CreateLocationS3RequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.CreateLocationSmbResult createLocationSmb(CreateLocationSmbRequest createLocationSmbRequest)
Defines a file system on a Server Message Block (SMB) server that can be read from or written to.
createLocationSmbRequest
- CreateLocationSmbRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.CreateTaskResult createTask(CreateTaskRequest createTaskRequest)
Creates a task.
A task includes a source location and a destination location, and a configuration that specifies how data is transferred. A task always transfers data from the source location to the destination location. The configuration specifies options such as task scheduling, bandwidth limits, etc. A task is the complete definition of a data transfer.
When you create a task that transfers data between Amazon Web Services services in different Amazon Web Services Regions, one of the two locations that you specify must reside in the Region where DataSync is being used. The other location must be specified in a different Region.
You can transfer data between commercial Amazon Web Services Regions except for China, or between Amazon Web Services GovCloud (US) Regions.
When you use DataSync to copy files or objects between Amazon Web Services Regions, you pay for data transfer between Regions. This is billed as data transfer OUT from your source Region to your destination Region. For more information, see Data Transfer pricing.
createTaskRequest
- CreateTaskRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.DeleteAgentResult deleteAgent(DeleteAgentRequest deleteAgentRequest)
Deletes an agent. To specify which agent to delete, use the Amazon Resource Name (ARN) of the agent in your request. The operation disassociates the agent from your Amazon Web Services account. However, it doesn't delete the agent virtual machine (VM) from your on-premises environment.
deleteAgentRequest
- DeleteAgentRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.DeleteLocationResult deleteLocation(DeleteLocationRequest deleteLocationRequest)
Deletes the configuration of a location used by DataSync.
deleteLocationRequest
- DeleteLocationInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.DeleteTaskResult deleteTask(DeleteTaskRequest deleteTaskRequest)
Deletes a task.
deleteTaskRequest
- DeleteTaskInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.DescribeAgentResult describeAgent(DescribeAgentRequest describeAgentRequest)
Returns metadata such as the name, the network interfaces, and the status (that is, whether the agent is running or not) for an agent. To specify which agent to describe, use the Amazon Resource Name (ARN) of the agent in your request.
describeAgentRequest
- DescribeAgentInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.DescribeLocationEfsResult describeLocationEfs(DescribeLocationEfsRequest describeLocationEfsRequest)
Returns metadata, such as the path information about an Amazon EFS location.
describeLocationEfsRequest
- DescribeLocationEfsRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.DescribeLocationFsxWindowsResult describeLocationFsxWindows(DescribeLocationFsxWindowsRequest describeLocationFsxWindowsRequest)
Returns metadata, such as the path information about an Amazon FSx for Windows File Server location.
describeLocationFsxWindowsRequest
- InvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.DescribeLocationNfsResult describeLocationNfs(DescribeLocationNfsRequest describeLocationNfsRequest)
Returns metadata, such as the path information, about an NFS location.
describeLocationNfsRequest
- DescribeLocationNfsRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.DescribeLocationObjectStorageResult describeLocationObjectStorage(DescribeLocationObjectStorageRequest describeLocationObjectStorageRequest)
Returns metadata about a self-managed object storage server location. For more information about self-managed object storage locations, see Creating a location for object storage.
describeLocationObjectStorageRequest
- DescribeLocationObjectStorageRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.DescribeLocationS3Result describeLocationS3(DescribeLocationS3Request describeLocationS3Request)
Returns metadata, such as bucket name, about an Amazon S3 bucket location.
describeLocationS3Request
- DescribeLocationS3RequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.DescribeLocationSmbResult describeLocationSmb(DescribeLocationSmbRequest describeLocationSmbRequest)
Returns metadata, such as the path and user information about an SMB location.
describeLocationSmbRequest
- DescribeLocationSmbRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.DescribeTaskResult describeTask(DescribeTaskRequest describeTaskRequest)
Returns metadata about a task.
describeTaskRequest
- DescribeTaskRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.DescribeTaskExecutionResult describeTaskExecution(DescribeTaskExecutionRequest describeTaskExecutionRequest)
Returns detailed metadata about a task that is being executed.
describeTaskExecutionRequest
- DescribeTaskExecutionRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.ListAgentsResult listAgents(ListAgentsRequest listAgentsRequest)
Returns a list of agents owned by an Amazon Web Services account in the Amazon Web Services Region specified in the request. The returned list is ordered by agent Amazon Resource Name (ARN).
By default, this operation returns a maximum of 100 agents. This operation supports pagination that enables you to optionally reduce the number of agents returned in a response.
If you have more agents than are returned in a response (that is, the response returns only a truncated list of your agents), the response contains a marker that you can specify in your next request to fetch the next page of agents.
listAgentsRequest
- ListAgentsRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.ListLocationsResult listLocations(ListLocationsRequest listLocationsRequest)
Returns a list of source and destination locations.
If you have more locations than are returned in a response (that is, the response returns only a truncated list of your agents), the response contains a token that you can specify in your next request to fetch the next page of locations.
listLocationsRequest
- ListLocationsRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns all the tags associated with a specified resource.
listTagsForResourceRequest
- ListTagsForResourceRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.ListTaskExecutionsResult listTaskExecutions(ListTaskExecutionsRequest listTaskExecutionsRequest)
Returns a list of executed tasks.
listTaskExecutionsRequest
- ListTaskExecutionsInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.ListTasksResult listTasks(ListTasksRequest listTasksRequest)
Returns a list of all the tasks.
listTasksRequest
- ListTasksRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.StartTaskExecutionResult startTaskExecution(StartTaskExecutionRequest startTaskExecutionRequest)
Starts a specific invocation of a task. A TaskExecution
value represents an individual run of a
task. Each task can have at most one TaskExecution
at a time.
TaskExecution
has the following transition phases: INITIALIZING | PREPARING | TRANSFERRING |
VERIFYING | SUCCESS/FAILURE.
For detailed information, see the Task Execution section in the Components and Terminology topic in the DataSync User Guide.
startTaskExecutionRequest
- StartTaskExecutionRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
Applies a key-value pair to an Amazon Web Services resource.
tagResourceRequest
- TagResourceRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
Removes a tag from an Amazon Web Services resource.
untagResourceRequest
- UntagResourceRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.UpdateAgentResult updateAgent(UpdateAgentRequest updateAgentRequest)
Updates the name of an agent.
updateAgentRequest
- UpdateAgentRequestInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.UpdateLocationNfsResult updateLocationNfs(UpdateLocationNfsRequest updateLocationNfsRequest)
Updates some of the parameters of a previously created location for Network File System (NFS) access. For information about creating an NFS location, see Creating a location for NFS.
updateLocationNfsRequest
- InvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.UpdateLocationObjectStorageResult updateLocationObjectStorage(UpdateLocationObjectStorageRequest updateLocationObjectStorageRequest)
Updates some of the parameters of a previously created location for self-managed object storage server access. For information about creating a self-managed object storage location, see Creating a location for object storage.
updateLocationObjectStorageRequest
- InvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.UpdateLocationSmbResult updateLocationSmb(UpdateLocationSmbRequest updateLocationSmbRequest)
Updates some of the parameters of a previously created location for Server Message Block (SMB) file system access. For information about creating an SMB location, see Creating a location for SMB.
updateLocationSmbRequest
- InvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.UpdateTaskResult updateTask(UpdateTaskRequest updateTaskRequest)
Updates the metadata associated with a task.
updateTaskRequest
- UpdateTaskResponseInvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.UpdateTaskExecutionResult updateTaskExecution(UpdateTaskExecutionRequest updateTaskExecutionRequest)
Updates execution of a task.
You can modify bandwidth throttling for a task execution that is running or queued. For more information, see Adjusting Bandwidth Throttling for a Task Execution.
The only Option
that can be modified by UpdateTaskExecution
is
BytesPerSecond
.
updateTaskExecutionRequest
- InvalidRequestException
- This exception is thrown when the client submits a malformed request.InternalException
- This exception is thrown when an error occurs in the DataSync service.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.