import { DataSyncClient } from "./DataSyncClient"; import { CancelTaskExecutionInput } from "./types/CancelTaskExecutionInput"; import { CancelTaskExecutionOutput } from "./types/CancelTaskExecutionOutput"; import { CreateAgentInput } from "./types/CreateAgentInput"; import { CreateAgentOutput } from "./types/CreateAgentOutput"; import { CreateLocationEfsInput } from "./types/CreateLocationEfsInput"; import { CreateLocationEfsOutput } from "./types/CreateLocationEfsOutput"; import { CreateLocationNfsInput } from "./types/CreateLocationNfsInput"; import { CreateLocationNfsOutput } from "./types/CreateLocationNfsOutput"; import { CreateLocationS3Input } from "./types/CreateLocationS3Input"; import { CreateLocationS3Output } from "./types/CreateLocationS3Output"; import { CreateTaskInput } from "./types/CreateTaskInput"; import { CreateTaskOutput } from "./types/CreateTaskOutput"; import { DeleteAgentInput } from "./types/DeleteAgentInput"; import { DeleteAgentOutput } from "./types/DeleteAgentOutput"; import { DeleteLocationInput } from "./types/DeleteLocationInput"; import { DeleteLocationOutput } from "./types/DeleteLocationOutput"; import { DeleteTaskInput } from "./types/DeleteTaskInput"; import { DeleteTaskOutput } from "./types/DeleteTaskOutput"; import { DescribeAgentInput } from "./types/DescribeAgentInput"; import { DescribeAgentOutput } from "./types/DescribeAgentOutput"; import { DescribeLocationEfsInput } from "./types/DescribeLocationEfsInput"; import { DescribeLocationEfsOutput } from "./types/DescribeLocationEfsOutput"; import { DescribeLocationNfsInput } from "./types/DescribeLocationNfsInput"; import { DescribeLocationNfsOutput } from "./types/DescribeLocationNfsOutput"; import { DescribeLocationS3Input } from "./types/DescribeLocationS3Input"; import { DescribeLocationS3Output } from "./types/DescribeLocationS3Output"; import { DescribeTaskExecutionInput } from "./types/DescribeTaskExecutionInput"; import { DescribeTaskExecutionOutput } from "./types/DescribeTaskExecutionOutput"; import { DescribeTaskInput } from "./types/DescribeTaskInput"; import { DescribeTaskOutput } from "./types/DescribeTaskOutput"; import { ListAgentsInput } from "./types/ListAgentsInput"; import { ListAgentsOutput } from "./types/ListAgentsOutput"; import { ListLocationsInput } from "./types/ListLocationsInput"; import { ListLocationsOutput } from "./types/ListLocationsOutput"; import { ListTagsForResourceInput } from "./types/ListTagsForResourceInput"; import { ListTagsForResourceOutput } from "./types/ListTagsForResourceOutput"; import { ListTaskExecutionsInput } from "./types/ListTaskExecutionsInput"; import { ListTaskExecutionsOutput } from "./types/ListTaskExecutionsOutput"; import { ListTasksInput } from "./types/ListTasksInput"; import { ListTasksOutput } from "./types/ListTasksOutput"; import { StartTaskExecutionInput } from "./types/StartTaskExecutionInput"; import { StartTaskExecutionOutput } from "./types/StartTaskExecutionOutput"; import { TagResourceInput } from "./types/TagResourceInput"; import { TagResourceOutput } from "./types/TagResourceOutput"; import { UntagResourceInput } from "./types/UntagResourceInput"; import { UntagResourceOutput } from "./types/UntagResourceOutput"; import { UpdateAgentInput } from "./types/UpdateAgentInput"; import { UpdateAgentOutput } from "./types/UpdateAgentOutput"; import { UpdateTaskInput } from "./types/UpdateTaskInput"; import { UpdateTaskOutput } from "./types/UpdateTaskOutput"; export declare class DataSync extends DataSyncClient { /** *
Cancels execution of a task.
When you cancel a task execution, the transfer of some files are 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, AWS DataSync successfully complete the transfer when you start the next task execution.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ cancelTaskExecution(args: CancelTaskExecutionInput): PromiseActivates an AWS 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 AWS Region that you want to activate the agent in. You activate the agent in the AWS Region where your target locations (in Amazon S3 or Amazon EFS) reside. Your tasks are created in this AWS 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 AWS on a regular basis, using a mechanism that ensures minimal interruption to your tasks.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ createAgent(args: CreateAgentInput): PromiseCreates an endpoint for an Amazon EFS file system.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ createLocationEfs(args: CreateLocationEfsInput): PromiseCreates an endpoint for a Network File System (NFS) file system.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ createLocationNfs(args: CreateLocationNfsInput): PromiseCreates an endpoint for an Amazon S3 bucket.
For AWS DataSync to access a destination S3 bucket, it needs an AWS Identity and Access Management (IAM) role that has the required permissions. You can set up the required permissions by creating an IAM policy that grants the required permissions and attaching the policy to the role. An example of such a policy is shown in the examples section.
For more information, see Configuring Amazon S3 Location Settings in the AWS DataSync User Guide.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ createLocationS3(args: CreateLocationS3Input): PromiseCreates a task. A task is a set of two locations (source and destination) and a set of Options that you use to control the behavior of a task. If you don't specify Options when you create a task, AWS DataSync populates them with service defaults.
When you create a task, it first enters the CREATING state. During CREATING AWS DataSync attempts to mount the on-premises Network File System (NFS) location. The task transitions to the AVAILABLE state without waiting for the AWS location to become mounted. If required, AWS DataSync mounts the AWS location before each task execution.
If an agent that is associated with a source (NFS) location goes offline, the task transitions to the UNAVAILABLE status. If the status of the task remains in the CREATING status for more than a few minutes, it means that your agent might be having trouble mounting the source NFS file system. Check the task's ErrorCode and ErrorDetail. Mount issues are often caused by either a misconfigured firewall or a mistyped NFS server host name.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ createTask(args: CreateTaskInput): PromiseDeletes 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 AWS account. However, it doesn't delete the agent virtual machine (VM) from your on-premises environment.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ deleteAgent(args: DeleteAgentInput): PromiseDeletes the configuration of a location used by AWS DataSync.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ deleteLocation(args: DeleteLocationInput): PromiseDeletes a task.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ deleteTask(args: DeleteTaskInput): PromiseReturns 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.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ describeAgent(args: DescribeAgentInput): PromiseReturns metadata, such as the path information about an Amazon EFS location.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ describeLocationEfs(args: DescribeLocationEfsInput): PromiseReturns metadata, such as the path information, about a NFS location.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ describeLocationNfs(args: DescribeLocationNfsInput): PromiseReturns metadata, such as bucket name, about an Amazon S3 bucket location.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ describeLocationS3(args: DescribeLocationS3Input): PromiseReturns metadata about a task.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ describeTask(args: DescribeTaskInput): PromiseReturns detailed metadata about a task that is being executed.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ describeTaskExecution(args: DescribeTaskExecutionInput): PromiseReturns a list of agents owned by an AWS account in the AWS 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.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ listAgents(args: ListAgentsInput): PromiseReturns a lists 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.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ listLocations(args: ListLocationsInput): PromiseReturns all the tags associated with a specified resources.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ listTagsForResource(args: ListTagsForResourceInput): PromiseReturns a list of executed tasks.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ listTaskExecutions(args: ListTaskExecutionsInput): PromiseReturns a list of all the tasks.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ listTasks(args: ListTasksInput): PromiseStarts 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 AWS DataSync User Guide.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ startTaskExecution(args: StartTaskExecutionInput): PromiseApplies a key-value pair to an AWS resource.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ tagResource(args: TagResourceInput): PromiseRemoves a tag from an AWS resource.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ untagResource(args: UntagResourceInput): PromiseUpdates the name of an agent.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ updateAgent(args: UpdateAgentInput): PromiseUpdates the metadata associated with a task.
* * This operation may fail with one of the following errors: * - {InvalidRequestException}This exception is thrown when the client submits a malformed request.
* - {InternalException}This exception is thrown when an error occurs in the AWS DataSync service.
* - {Error} An error originating from the SDK or customizations rather than the service */ updateTask(args: UpdateTaskInput): Promise