UNPKG

73.9 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class DataSync extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: DataSync.Types.ClientConfiguration)
13 config: Config & DataSync.Types.ClientConfiguration;
14 /**
15 * 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.
16 */
17 cancelTaskExecution(params: DataSync.Types.CancelTaskExecutionRequest, callback?: (err: AWSError, data: DataSync.Types.CancelTaskExecutionResponse) => void): Request<DataSync.Types.CancelTaskExecutionResponse, AWSError>;
18 /**
19 * 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.
20 */
21 cancelTaskExecution(callback?: (err: AWSError, data: DataSync.Types.CancelTaskExecutionResponse) => void): Request<DataSync.Types.CancelTaskExecutionResponse, AWSError>;
22 /**
23 * Activates 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.
24 */
25 createAgent(params: DataSync.Types.CreateAgentRequest, callback?: (err: AWSError, data: DataSync.Types.CreateAgentResponse) => void): Request<DataSync.Types.CreateAgentResponse, AWSError>;
26 /**
27 * Activates 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.
28 */
29 createAgent(callback?: (err: AWSError, data: DataSync.Types.CreateAgentResponse) => void): Request<DataSync.Types.CreateAgentResponse, AWSError>;
30 /**
31 * Creates an endpoint for an Amazon EFS file system.
32 */
33 createLocationEfs(params: DataSync.Types.CreateLocationEfsRequest, callback?: (err: AWSError, data: DataSync.Types.CreateLocationEfsResponse) => void): Request<DataSync.Types.CreateLocationEfsResponse, AWSError>;
34 /**
35 * Creates an endpoint for an Amazon EFS file system.
36 */
37 createLocationEfs(callback?: (err: AWSError, data: DataSync.Types.CreateLocationEfsResponse) => void): Request<DataSync.Types.CreateLocationEfsResponse, AWSError>;
38 /**
39 * Creates an endpoint for an Amazon FSx for Windows file system.
40 */
41 createLocationFsxWindows(params: DataSync.Types.CreateLocationFsxWindowsRequest, callback?: (err: AWSError, data: DataSync.Types.CreateLocationFsxWindowsResponse) => void): Request<DataSync.Types.CreateLocationFsxWindowsResponse, AWSError>;
42 /**
43 * Creates an endpoint for an Amazon FSx for Windows file system.
44 */
45 createLocationFsxWindows(callback?: (err: AWSError, data: DataSync.Types.CreateLocationFsxWindowsResponse) => void): Request<DataSync.Types.CreateLocationFsxWindowsResponse, AWSError>;
46 /**
47 * Defines a file system on a Network File System (NFS) server that can be read from or written to
48 */
49 createLocationNfs(params: DataSync.Types.CreateLocationNfsRequest, callback?: (err: AWSError, data: DataSync.Types.CreateLocationNfsResponse) => void): Request<DataSync.Types.CreateLocationNfsResponse, AWSError>;
50 /**
51 * Defines a file system on a Network File System (NFS) server that can be read from or written to
52 */
53 createLocationNfs(callback?: (err: AWSError, data: DataSync.Types.CreateLocationNfsResponse) => void): Request<DataSync.Types.CreateLocationNfsResponse, AWSError>;
54 /**
55 * Creates 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 https://docs.aws.amazon.com/datasync/latest/userguide/working-with-locations.html#create-s3-location in the AWS DataSync User Guide.
56 */
57 createLocationS3(params: DataSync.Types.CreateLocationS3Request, callback?: (err: AWSError, data: DataSync.Types.CreateLocationS3Response) => void): Request<DataSync.Types.CreateLocationS3Response, AWSError>;
58 /**
59 * Creates 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 https://docs.aws.amazon.com/datasync/latest/userguide/working-with-locations.html#create-s3-location in the AWS DataSync User Guide.
60 */
61 createLocationS3(callback?: (err: AWSError, data: DataSync.Types.CreateLocationS3Response) => void): Request<DataSync.Types.CreateLocationS3Response, AWSError>;
62 /**
63 * Defines a file system on an Server Message Block (SMB) server that can be read from or written to.
64 */
65 createLocationSmb(params: DataSync.Types.CreateLocationSmbRequest, callback?: (err: AWSError, data: DataSync.Types.CreateLocationSmbResponse) => void): Request<DataSync.Types.CreateLocationSmbResponse, AWSError>;
66 /**
67 * Defines a file system on an Server Message Block (SMB) server that can be read from or written to.
68 */
69 createLocationSmb(callback?: (err: AWSError, data: DataSync.Types.CreateLocationSmbResponse) => void): Request<DataSync.Types.CreateLocationSmbResponse, AWSError>;
70 /**
71 * Creates 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.
72 */
73 createTask(params: DataSync.Types.CreateTaskRequest, callback?: (err: AWSError, data: DataSync.Types.CreateTaskResponse) => void): Request<DataSync.Types.CreateTaskResponse, AWSError>;
74 /**
75 * Creates 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.
76 */
77 createTask(callback?: (err: AWSError, data: DataSync.Types.CreateTaskResponse) => void): Request<DataSync.Types.CreateTaskResponse, AWSError>;
78 /**
79 * 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 AWS account. However, it doesn't delete the agent virtual machine (VM) from your on-premises environment.
80 */
81 deleteAgent(params: DataSync.Types.DeleteAgentRequest, callback?: (err: AWSError, data: DataSync.Types.DeleteAgentResponse) => void): Request<DataSync.Types.DeleteAgentResponse, AWSError>;
82 /**
83 * 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 AWS account. However, it doesn't delete the agent virtual machine (VM) from your on-premises environment.
84 */
85 deleteAgent(callback?: (err: AWSError, data: DataSync.Types.DeleteAgentResponse) => void): Request<DataSync.Types.DeleteAgentResponse, AWSError>;
86 /**
87 * Deletes the configuration of a location used by AWS DataSync.
88 */
89 deleteLocation(params: DataSync.Types.DeleteLocationRequest, callback?: (err: AWSError, data: DataSync.Types.DeleteLocationResponse) => void): Request<DataSync.Types.DeleteLocationResponse, AWSError>;
90 /**
91 * Deletes the configuration of a location used by AWS DataSync.
92 */
93 deleteLocation(callback?: (err: AWSError, data: DataSync.Types.DeleteLocationResponse) => void): Request<DataSync.Types.DeleteLocationResponse, AWSError>;
94 /**
95 * Deletes a task.
96 */
97 deleteTask(params: DataSync.Types.DeleteTaskRequest, callback?: (err: AWSError, data: DataSync.Types.DeleteTaskResponse) => void): Request<DataSync.Types.DeleteTaskResponse, AWSError>;
98 /**
99 * Deletes a task.
100 */
101 deleteTask(callback?: (err: AWSError, data: DataSync.Types.DeleteTaskResponse) => void): Request<DataSync.Types.DeleteTaskResponse, AWSError>;
102 /**
103 * 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.
104 */
105 describeAgent(params: DataSync.Types.DescribeAgentRequest, callback?: (err: AWSError, data: DataSync.Types.DescribeAgentResponse) => void): Request<DataSync.Types.DescribeAgentResponse, AWSError>;
106 /**
107 * 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.
108 */
109 describeAgent(callback?: (err: AWSError, data: DataSync.Types.DescribeAgentResponse) => void): Request<DataSync.Types.DescribeAgentResponse, AWSError>;
110 /**
111 * Returns metadata, such as the path information about an Amazon EFS location.
112 */
113 describeLocationEfs(params: DataSync.Types.DescribeLocationEfsRequest, callback?: (err: AWSError, data: DataSync.Types.DescribeLocationEfsResponse) => void): Request<DataSync.Types.DescribeLocationEfsResponse, AWSError>;
114 /**
115 * Returns metadata, such as the path information about an Amazon EFS location.
116 */
117 describeLocationEfs(callback?: (err: AWSError, data: DataSync.Types.DescribeLocationEfsResponse) => void): Request<DataSync.Types.DescribeLocationEfsResponse, AWSError>;
118 /**
119 * Returns metadata, such as the path information about an Amazon FSx for Windows location.
120 */
121 describeLocationFsxWindows(params: DataSync.Types.DescribeLocationFsxWindowsRequest, callback?: (err: AWSError, data: DataSync.Types.DescribeLocationFsxWindowsResponse) => void): Request<DataSync.Types.DescribeLocationFsxWindowsResponse, AWSError>;
122 /**
123 * Returns metadata, such as the path information about an Amazon FSx for Windows location.
124 */
125 describeLocationFsxWindows(callback?: (err: AWSError, data: DataSync.Types.DescribeLocationFsxWindowsResponse) => void): Request<DataSync.Types.DescribeLocationFsxWindowsResponse, AWSError>;
126 /**
127 * Returns metadata, such as the path information, about a NFS location.
128 */
129 describeLocationNfs(params: DataSync.Types.DescribeLocationNfsRequest, callback?: (err: AWSError, data: DataSync.Types.DescribeLocationNfsResponse) => void): Request<DataSync.Types.DescribeLocationNfsResponse, AWSError>;
130 /**
131 * Returns metadata, such as the path information, about a NFS location.
132 */
133 describeLocationNfs(callback?: (err: AWSError, data: DataSync.Types.DescribeLocationNfsResponse) => void): Request<DataSync.Types.DescribeLocationNfsResponse, AWSError>;
134 /**
135 * Returns metadata, such as bucket name, about an Amazon S3 bucket location.
136 */
137 describeLocationS3(params: DataSync.Types.DescribeLocationS3Request, callback?: (err: AWSError, data: DataSync.Types.DescribeLocationS3Response) => void): Request<DataSync.Types.DescribeLocationS3Response, AWSError>;
138 /**
139 * Returns metadata, such as bucket name, about an Amazon S3 bucket location.
140 */
141 describeLocationS3(callback?: (err: AWSError, data: DataSync.Types.DescribeLocationS3Response) => void): Request<DataSync.Types.DescribeLocationS3Response, AWSError>;
142 /**
143 * Returns metadata, such as the path and user information about a SMB location.
144 */
145 describeLocationSmb(params: DataSync.Types.DescribeLocationSmbRequest, callback?: (err: AWSError, data: DataSync.Types.DescribeLocationSmbResponse) => void): Request<DataSync.Types.DescribeLocationSmbResponse, AWSError>;
146 /**
147 * Returns metadata, such as the path and user information about a SMB location.
148 */
149 describeLocationSmb(callback?: (err: AWSError, data: DataSync.Types.DescribeLocationSmbResponse) => void): Request<DataSync.Types.DescribeLocationSmbResponse, AWSError>;
150 /**
151 * Returns metadata about a task.
152 */
153 describeTask(params: DataSync.Types.DescribeTaskRequest, callback?: (err: AWSError, data: DataSync.Types.DescribeTaskResponse) => void): Request<DataSync.Types.DescribeTaskResponse, AWSError>;
154 /**
155 * Returns metadata about a task.
156 */
157 describeTask(callback?: (err: AWSError, data: DataSync.Types.DescribeTaskResponse) => void): Request<DataSync.Types.DescribeTaskResponse, AWSError>;
158 /**
159 * Returns detailed metadata about a task that is being executed.
160 */
161 describeTaskExecution(params: DataSync.Types.DescribeTaskExecutionRequest, callback?: (err: AWSError, data: DataSync.Types.DescribeTaskExecutionResponse) => void): Request<DataSync.Types.DescribeTaskExecutionResponse, AWSError>;
162 /**
163 * Returns detailed metadata about a task that is being executed.
164 */
165 describeTaskExecution(callback?: (err: AWSError, data: DataSync.Types.DescribeTaskExecutionResponse) => void): Request<DataSync.Types.DescribeTaskExecutionResponse, AWSError>;
166 /**
167 * Returns 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.
168 */
169 listAgents(params: DataSync.Types.ListAgentsRequest, callback?: (err: AWSError, data: DataSync.Types.ListAgentsResponse) => void): Request<DataSync.Types.ListAgentsResponse, AWSError>;
170 /**
171 * Returns 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.
172 */
173 listAgents(callback?: (err: AWSError, data: DataSync.Types.ListAgentsResponse) => void): Request<DataSync.Types.ListAgentsResponse, AWSError>;
174 /**
175 * Returns 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.
176 */
177 listLocations(params: DataSync.Types.ListLocationsRequest, callback?: (err: AWSError, data: DataSync.Types.ListLocationsResponse) => void): Request<DataSync.Types.ListLocationsResponse, AWSError>;
178 /**
179 * Returns 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.
180 */
181 listLocations(callback?: (err: AWSError, data: DataSync.Types.ListLocationsResponse) => void): Request<DataSync.Types.ListLocationsResponse, AWSError>;
182 /**
183 * Returns all the tags associated with a specified resources.
184 */
185 listTagsForResource(params: DataSync.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: DataSync.Types.ListTagsForResourceResponse) => void): Request<DataSync.Types.ListTagsForResourceResponse, AWSError>;
186 /**
187 * Returns all the tags associated with a specified resources.
188 */
189 listTagsForResource(callback?: (err: AWSError, data: DataSync.Types.ListTagsForResourceResponse) => void): Request<DataSync.Types.ListTagsForResourceResponse, AWSError>;
190 /**
191 * Returns a list of executed tasks.
192 */
193 listTaskExecutions(params: DataSync.Types.ListTaskExecutionsRequest, callback?: (err: AWSError, data: DataSync.Types.ListTaskExecutionsResponse) => void): Request<DataSync.Types.ListTaskExecutionsResponse, AWSError>;
194 /**
195 * Returns a list of executed tasks.
196 */
197 listTaskExecutions(callback?: (err: AWSError, data: DataSync.Types.ListTaskExecutionsResponse) => void): Request<DataSync.Types.ListTaskExecutionsResponse, AWSError>;
198 /**
199 * Returns a list of all the tasks.
200 */
201 listTasks(params: DataSync.Types.ListTasksRequest, callback?: (err: AWSError, data: DataSync.Types.ListTasksResponse) => void): Request<DataSync.Types.ListTasksResponse, AWSError>;
202 /**
203 * Returns a list of all the tasks.
204 */
205 listTasks(callback?: (err: AWSError, data: DataSync.Types.ListTasksResponse) => void): Request<DataSync.Types.ListTasksResponse, AWSError>;
206 /**
207 * 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 AWS DataSync User Guide.
208 */
209 startTaskExecution(params: DataSync.Types.StartTaskExecutionRequest, callback?: (err: AWSError, data: DataSync.Types.StartTaskExecutionResponse) => void): Request<DataSync.Types.StartTaskExecutionResponse, AWSError>;
210 /**
211 * 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 AWS DataSync User Guide.
212 */
213 startTaskExecution(callback?: (err: AWSError, data: DataSync.Types.StartTaskExecutionResponse) => void): Request<DataSync.Types.StartTaskExecutionResponse, AWSError>;
214 /**
215 * Applies a key-value pair to an AWS resource.
216 */
217 tagResource(params: DataSync.Types.TagResourceRequest, callback?: (err: AWSError, data: DataSync.Types.TagResourceResponse) => void): Request<DataSync.Types.TagResourceResponse, AWSError>;
218 /**
219 * Applies a key-value pair to an AWS resource.
220 */
221 tagResource(callback?: (err: AWSError, data: DataSync.Types.TagResourceResponse) => void): Request<DataSync.Types.TagResourceResponse, AWSError>;
222 /**
223 * Removes a tag from an AWS resource.
224 */
225 untagResource(params: DataSync.Types.UntagResourceRequest, callback?: (err: AWSError, data: DataSync.Types.UntagResourceResponse) => void): Request<DataSync.Types.UntagResourceResponse, AWSError>;
226 /**
227 * Removes a tag from an AWS resource.
228 */
229 untagResource(callback?: (err: AWSError, data: DataSync.Types.UntagResourceResponse) => void): Request<DataSync.Types.UntagResourceResponse, AWSError>;
230 /**
231 * Updates the name of an agent.
232 */
233 updateAgent(params: DataSync.Types.UpdateAgentRequest, callback?: (err: AWSError, data: DataSync.Types.UpdateAgentResponse) => void): Request<DataSync.Types.UpdateAgentResponse, AWSError>;
234 /**
235 * Updates the name of an agent.
236 */
237 updateAgent(callback?: (err: AWSError, data: DataSync.Types.UpdateAgentResponse) => void): Request<DataSync.Types.UpdateAgentResponse, AWSError>;
238 /**
239 * Updates the metadata associated with a task.
240 */
241 updateTask(params: DataSync.Types.UpdateTaskRequest, callback?: (err: AWSError, data: DataSync.Types.UpdateTaskResponse) => void): Request<DataSync.Types.UpdateTaskResponse, AWSError>;
242 /**
243 * Updates the metadata associated with a task.
244 */
245 updateTask(callback?: (err: AWSError, data: DataSync.Types.UpdateTaskResponse) => void): Request<DataSync.Types.UpdateTaskResponse, AWSError>;
246}
247declare namespace DataSync {
248 export type ActivationKey = string;
249 export type AgentArn = string;
250 export type AgentArnList = AgentArn[];
251 export type AgentList = AgentListEntry[];
252 export interface AgentListEntry {
253 /**
254 * The Amazon Resource Name (ARN) of the agent.
255 */
256 AgentArn?: AgentArn;
257 /**
258 * The name of the agent.
259 */
260 Name?: TagValue;
261 /**
262 * The status of the agent.
263 */
264 Status?: AgentStatus;
265 }
266 export type AgentStatus = "ONLINE"|"OFFLINE"|string;
267 export type Atime = "NONE"|"BEST_EFFORT"|string;
268 export type BytesPerSecond = number;
269 export interface CancelTaskExecutionRequest {
270 /**
271 * The Amazon Resource Name (ARN) of the task execution to cancel.
272 */
273 TaskExecutionArn: TaskExecutionArn;
274 }
275 export interface CancelTaskExecutionResponse {
276 }
277 export interface CreateAgentRequest {
278 /**
279 * 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 AWS 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 AWS DataSync User Guide.
280 */
281 ActivationKey: ActivationKey;
282 /**
283 * The name you configured for your agent. This value is a text reference that is used to identify the agent in the console.
284 */
285 AgentName?: TagValue;
286 /**
287 * 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: + - = . _ : / @.
288 */
289 Tags?: TagList;
290 /**
291 * 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 AWS VPC User Guide. VPC endpoint ID looks like this: vpce-01234d5aff67890e1.
292 */
293 VpcEndpointId?: VpcEndpointId;
294 /**
295 * 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.
296 */
297 SubnetArns?: PLSubnetArnList;
298 /**
299 * The ARNs of the security groups used to protect your data transfer task subnets. See CreateAgentRequest$SubnetArns.
300 */
301 SecurityGroupArns?: PLSecurityGroupArnList;
302 }
303 export interface CreateAgentResponse {
304 /**
305 * The Amazon Resource Name (ARN) of the agent. Use the ListAgents operation to return a list of agents for your account and AWS Region.
306 */
307 AgentArn?: AgentArn;
308 }
309 export interface CreateLocationEfsRequest {
310 /**
311 * 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, AWS DataSync uses the root directory. Subdirectory must be specified with forward slashes. For example /path/to/folder.
312 */
313 Subdirectory?: EfsSubdirectory;
314 /**
315 * The Amazon Resource Name (ARN) for the Amazon EFS file system.
316 */
317 EfsFilesystemArn: EfsFilesystemArn;
318 /**
319 * 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.
320 */
321 Ec2Config: Ec2Config;
322 /**
323 * 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.
324 */
325 Tags?: TagList;
326 }
327 export interface CreateLocationEfsResponse {
328 /**
329 * The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.
330 */
331 LocationArn?: LocationArn;
332 }
333 export interface CreateLocationFsxWindowsRequest {
334 /**
335 * A subdirectory in the location’s path. This subdirectory in the Amazon FSx for Windows file system is used to read data from the Amazon FSx for Windows source location or write data to the FSx for Windows destination.
336 */
337 Subdirectory?: FsxWindowsSubdirectory;
338 /**
339 * The Amazon Resource Name (ARN) for the FSx for Windows file system.
340 */
341 FsxFilesystemArn: FsxFilesystemArn;
342 /**
343 * The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Windows file system.
344 */
345 SecurityGroupArns: Ec2SecurityGroupArnList;
346 /**
347 * 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.
348 */
349 Tags?: TagList;
350 /**
351 * The user who has the permissions to access files and folders in the FSx for Windows file system.
352 */
353 User: SmbUser;
354 /**
355 * The name of the Windows domain that the FSx for Windows server belongs to.
356 */
357 Domain?: SmbDomain;
358 /**
359 * The password of the user who has the permissions to access files and folders in the FSx for Windows file system.
360 */
361 Password: SmbPassword;
362 }
363 export interface CreateLocationFsxWindowsResponse {
364 /**
365 * The Amazon Resource Name (ARN) of the FSx for Windows file system location that is created.
366 */
367 LocationArn?: LocationArn;
368 }
369 export interface CreateLocationNfsRequest {
370 /**
371 * 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. For information about NFS export configuration, see 18.7. The /etc/exports Configuration File in the Red Hat Enterprise Linux documentation.
372 */
373 Subdirectory: NfsSubdirectory;
374 /**
375 * 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. This name must either be DNS-compliant or must be an IP version 4 (IPv4) address.
376 */
377 ServerHostname: ServerHostname;
378 /**
379 * Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect to an NFS server.
380 */
381 OnPremConfig: OnPremConfig;
382 /**
383 * The NFS mount options that DataSync can use to mount your NFS share.
384 */
385 MountOptions?: NfsMountOptions;
386 /**
387 * 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.
388 */
389 Tags?: TagList;
390 }
391 export interface CreateLocationNfsResponse {
392 /**
393 * The Amazon Resource Name (ARN) of the source NFS file system location that is created.
394 */
395 LocationArn?: LocationArn;
396 }
397 export interface CreateLocationS3Request {
398 /**
399 * 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.
400 */
401 Subdirectory?: S3Subdirectory;
402 /**
403 * The Amazon Resource Name (ARN) of the Amazon S3 bucket.
404 */
405 S3BucketArn: S3BucketArn;
406 /**
407 * The Amazon S3 storage class that you want 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 in the Amazon Simple Storage Service Developer Guide. Some storage classes have behaviors that can affect your S3 storage cost. For detailed information, see using-storage-classes.
408 */
409 S3StorageClass?: S3StorageClass;
410 S3Config: S3Config;
411 /**
412 * 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.
413 */
414 Tags?: TagList;
415 }
416 export interface CreateLocationS3Response {
417 /**
418 * The Amazon Resource Name (ARN) of the source Amazon S3 bucket location that is created.
419 */
420 LocationArn?: LocationArn;
421 }
422 export interface CreateLocationSmbRequest {
423 /**
424 * 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.
425 */
426 Subdirectory: SmbSubdirectory;
427 /**
428 * 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.
429 */
430 ServerHostname: ServerHostname;
431 /**
432 * The user who can mount the share, has the permissions to access files and folders in the SMB share.
433 */
434 User: SmbUser;
435 /**
436 * The name of the Windows domain that the SMB server belongs to.
437 */
438 Domain?: SmbDomain;
439 /**
440 * The password of the user who can mount the share, has the permissions to access files and folders in the SMB share.
441 */
442 Password: SmbPassword;
443 /**
444 * The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.
445 */
446 AgentArns: AgentArnList;
447 /**
448 * The mount options used by DataSync to access the SMB server.
449 */
450 MountOptions?: SmbMountOptions;
451 /**
452 * 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.
453 */
454 Tags?: TagList;
455 }
456 export interface CreateLocationSmbResponse {
457 /**
458 * The Amazon Resource Name (ARN) of the source SMB file system location that is created.
459 */
460 LocationArn?: LocationArn;
461 }
462 export interface CreateTaskRequest {
463 /**
464 * The Amazon Resource Name (ARN) of the source location for the task.
465 */
466 SourceLocationArn: LocationArn;
467 /**
468 * The Amazon Resource Name (ARN) of an AWS storage resource's location.
469 */
470 DestinationLocationArn: LocationArn;
471 /**
472 * The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is 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. For more information about how to use CloudWatch Logs with DataSync, see Monitoring Your Task in the AWS DataSync User Guide.
473 */
474 CloudWatchLogGroupArn?: LogGroupArn;
475 /**
476 * The name of a task. This value is a text reference that is used to identify the task in the console.
477 */
478 Name?: TagValue;
479 /**
480 * 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 a the task execution. For more information, see the operation.
481 */
482 Options?: Options;
483 /**
484 * 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"
485 */
486 Excludes?: FilterList;
487 /**
488 * 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 task-scheduling.
489 */
490 Schedule?: TaskSchedule;
491 /**
492 * The key-value pair that represents the tag that you want to add to the resource. The value can be an empty string.
493 */
494 Tags?: TagList;
495 }
496 export interface CreateTaskResponse {
497 /**
498 * The Amazon Resource Name (ARN) of the task.
499 */
500 TaskArn?: TaskArn;
501 }
502 export interface DeleteAgentRequest {
503 /**
504 * The Amazon Resource Name (ARN) of the agent to delete. Use the ListAgents operation to return a list of agents for your account and AWS Region.
505 */
506 AgentArn: AgentArn;
507 }
508 export interface DeleteAgentResponse {
509 }
510 export interface DeleteLocationRequest {
511 /**
512 * The Amazon Resource Name (ARN) of the location to delete.
513 */
514 LocationArn: LocationArn;
515 }
516 export interface DeleteLocationResponse {
517 }
518 export interface DeleteTaskRequest {
519 /**
520 * The Amazon Resource Name (ARN) of the task to delete.
521 */
522 TaskArn: TaskArn;
523 }
524 export interface DeleteTaskResponse {
525 }
526 export interface DescribeAgentRequest {
527 /**
528 * The Amazon Resource Name (ARN) of the agent to describe.
529 */
530 AgentArn: AgentArn;
531 }
532 export interface DescribeAgentResponse {
533 /**
534 * The Amazon Resource Name (ARN) of the agent.
535 */
536 AgentArn?: AgentArn;
537 /**
538 * The name of the agent.
539 */
540 Name?: TagValue;
541 /**
542 * 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.
543 */
544 Status?: AgentStatus;
545 /**
546 * The time that the agent last connected to DataSyc.
547 */
548 LastConnectionTime?: Time;
549 /**
550 * The time that the agent was activated (that is, created in your account).
551 */
552 CreationTime?: Time;
553 /**
554 * 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.
555 */
556 EndpointType?: EndpointType;
557 /**
558 * The subnet and the security group that DataSync used to access a VPC endpoint.
559 */
560 PrivateLinkConfig?: PrivateLinkConfig;
561 }
562 export interface DescribeLocationEfsRequest {
563 /**
564 * The Amazon Resource Name (ARN) of the EFS location to describe.
565 */
566 LocationArn: LocationArn;
567 }
568 export interface DescribeLocationEfsResponse {
569 /**
570 * The Amazon resource Name (ARN) of the EFS location that was described.
571 */
572 LocationArn?: LocationArn;
573 /**
574 * The URL of the EFS location that was described.
575 */
576 LocationUri?: LocationUri;
577 Ec2Config?: Ec2Config;
578 /**
579 * The time that the EFS location was created.
580 */
581 CreationTime?: Time;
582 }
583 export interface DescribeLocationFsxWindowsRequest {
584 /**
585 * The Amazon Resource Name (ARN) of the FSx for Windows location to describe.
586 */
587 LocationArn: LocationArn;
588 }
589 export interface DescribeLocationFsxWindowsResponse {
590 /**
591 * The Amazon resource Name (ARN) of the FSx for Windows location that was described.
592 */
593 LocationArn?: LocationArn;
594 /**
595 * The URL of the FSx for Windows location that was described.
596 */
597 LocationUri?: LocationUri;
598 /**
599 * The Amazon Resource Names (ARNs) of the security groups that are configured for the for the FSx for Windows file system.
600 */
601 SecurityGroupArns?: Ec2SecurityGroupArnList;
602 /**
603 * The time that the FSx for Windows location was created.
604 */
605 CreationTime?: Time;
606 /**
607 * The user who has the permissions to access files and folders in the FSx for Windows file system.
608 */
609 User?: SmbUser;
610 /**
611 * The name of the Windows domain that the FSx for Windows server belongs to.
612 */
613 Domain?: SmbDomain;
614 }
615 export interface DescribeLocationNfsRequest {
616 /**
617 * The Amazon resource Name (ARN) of the NFS location to describe.
618 */
619 LocationArn: LocationArn;
620 }
621 export interface DescribeLocationNfsResponse {
622 /**
623 * The Amazon resource Name (ARN) of the NFS location that was described.
624 */
625 LocationArn?: LocationArn;
626 /**
627 * The URL of the source NFS location that was described.
628 */
629 LocationUri?: LocationUri;
630 OnPremConfig?: OnPremConfig;
631 /**
632 * The NFS mount options that DataSync used to mount your NFS share.
633 */
634 MountOptions?: NfsMountOptions;
635 /**
636 * The time that the NFS location was created.
637 */
638 CreationTime?: Time;
639 }
640 export interface DescribeLocationS3Request {
641 /**
642 * The Amazon Resource Name (ARN) of the Amazon S3 bucket location to describe.
643 */
644 LocationArn: LocationArn;
645 }
646 export interface DescribeLocationS3Response {
647 /**
648 * The Amazon Resource Name (ARN) of the Amazon S3 bucket location.
649 */
650 LocationArn?: LocationArn;
651 /**
652 * The URL of the Amazon S3 location that was described.
653 */
654 LocationUri?: LocationUri;
655 /**
656 * 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 in the Amazon Simple Storage Service Developer Guide. Some storage classes have behaviors that can affect your S3 storage cost. For detailed information, see using-storage-classes.
657 */
658 S3StorageClass?: S3StorageClass;
659 S3Config?: S3Config;
660 /**
661 * The time that the Amazon S3 bucket location was created.
662 */
663 CreationTime?: Time;
664 }
665 export interface DescribeLocationSmbRequest {
666 /**
667 * The Amazon resource Name (ARN) of the SMB location to describe.
668 */
669 LocationArn: LocationArn;
670 }
671 export interface DescribeLocationSmbResponse {
672 /**
673 * The Amazon resource Name (ARN) of the SMB location that was described.
674 */
675 LocationArn?: LocationArn;
676 /**
677 * The URL of the source SBM location that was described.
678 */
679 LocationUri?: LocationUri;
680 /**
681 * The Amazon Resource Name (ARN) of the source SMB file system location that is created.
682 */
683 AgentArns?: AgentArnList;
684 /**
685 * The user who can mount the share, has the permissions to access files and folders in the SMB share.
686 */
687 User?: SmbUser;
688 /**
689 * The name of the Windows domain that the SMB server belongs to.
690 */
691 Domain?: SmbDomain;
692 /**
693 * The mount options that are available for DataSync to use to access an SMB location.
694 */
695 MountOptions?: SmbMountOptions;
696 /**
697 * The time that the SMB location was created.
698 */
699 CreationTime?: Time;
700 }
701 export interface DescribeTaskExecutionRequest {
702 /**
703 * The Amazon Resource Name (ARN) of the task that is being executed.
704 */
705 TaskExecutionArn: TaskExecutionArn;
706 }
707 export interface DescribeTaskExecutionResponse {
708 /**
709 * The Amazon Resource Name (ARN) of the task execution that was described. TaskExecutionArn is hierarchical and includes TaskArn for the task that was executed. For example, a TaskExecution value with the ARN arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b executed the task with the ARN arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2.
710 */
711 TaskExecutionArn?: TaskExecutionArn;
712 /**
713 * The status of the task execution. For detailed information about task execution statuses, see Understanding Task Statuses in the AWS DataSync User Guide.
714 */
715 Status?: TaskExecutionStatus;
716 Options?: Options;
717 /**
718 * 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"
719 */
720 Excludes?: FilterList;
721 /**
722 * 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"
723 */
724 Includes?: FilterList;
725 /**
726 * The time that the task execution was started.
727 */
728 StartTime?: Time;
729 /**
730 * 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.
731 */
732 EstimatedFilesToTransfer?: long;
733 /**
734 * The estimated physical number of bytes that is to be transferred over the network.
735 */
736 EstimatedBytesToTransfer?: long;
737 /**
738 * 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 than EstimatedFilesTransferred 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.
739 */
740 FilesTransferred?: long;
741 /**
742 * The number of logical bytes written to the destination AWS storage resource.
743 */
744 BytesWritten?: long;
745 /**
746 * The physical number of bytes transferred over the network.
747 */
748 BytesTransferred?: long;
749 /**
750 * The result of the task execution.
751 */
752 Result?: TaskExecutionResultDetail;
753 }
754 export interface DescribeTaskRequest {
755 /**
756 * The Amazon Resource Name (ARN) of the task to describe.
757 */
758 TaskArn: TaskArn;
759 }
760 export interface DescribeTaskResponse {
761 /**
762 * The Amazon Resource Name (ARN) of the task that was described.
763 */
764 TaskArn?: TaskArn;
765 /**
766 * The status of the task that was described. For detailed information about task execution statuses, see Understanding Task Statuses in the AWS DataSync User Guide.
767 */
768 Status?: TaskStatus;
769 /**
770 * The name of the task that was described.
771 */
772 Name?: TagValue;
773 /**
774 * The Amazon Resource Name (ARN) of the task execution that is syncing files.
775 */
776 CurrentTaskExecutionArn?: TaskExecutionArn;
777 /**
778 * The Amazon Resource Name (ARN) of the source file system's location.
779 */
780 SourceLocationArn?: LocationArn;
781 /**
782 * The Amazon Resource Name (ARN) of the AWS storage resource's location.
783 */
784 DestinationLocationArn?: LocationArn;
785 /**
786 * 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.
787 */
788 CloudWatchLogGroupArn?: LogGroupArn;
789 /**
790 * The Amazon Resource Name (ARN) of the source ENIs (Elastic Network Interface) that was created for your subnet.
791 */
792 SourceNetworkInterfaceArns?: SourceNetworkInterfaceArns;
793 /**
794 * The Amazon Resource Name (ARN) of the destination ENIs (Elastic Network Interface) that was created for your subnet.
795 */
796 DestinationNetworkInterfaceArns?: DestinationNetworkInterfaceArns;
797 /**
798 * 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 operation.
799 */
800 Options?: Options;
801 /**
802 * 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"
803 */
804 Excludes?: FilterList;
805 /**
806 * The schedule used to periodically transfer files from a source to a destination location.
807 */
808 Schedule?: TaskSchedule;
809 /**
810 * Errors that AWS DataSync encountered during execution of the task. You can use this error code to help troubleshoot issues.
811 */
812 ErrorCode?: string;
813 /**
814 * Detailed description of an error that was encountered during the task execution. You can use this information to help troubleshoot issues.
815 */
816 ErrorDetail?: string;
817 /**
818 * The time that the task was created.
819 */
820 CreationTime?: Time;
821 }
822 export type DestinationNetworkInterfaceArns = NetworkInterfaceArn[];
823 export type Duration = number;
824 export interface Ec2Config {
825 /**
826 * The ARN of the subnet and the security group that DataSync uses to access the target EFS file system.
827 */
828 SubnetArn: Ec2SubnetArn;
829 /**
830 * The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
831 */
832 SecurityGroupArns: Ec2SecurityGroupArnList;
833 }
834 export type Ec2SecurityGroupArn = string;
835 export type Ec2SecurityGroupArnList = Ec2SecurityGroupArn[];
836 export type Ec2SubnetArn = string;
837 export type EfsFilesystemArn = string;
838 export type EfsSubdirectory = string;
839 export type Endpoint = string;
840 export type EndpointType = "PUBLIC"|"PRIVATE_LINK"|"FIPS"|string;
841 export type FilterList = FilterRule[];
842 export interface FilterRule {
843 /**
844 * The type of filter rule to apply. AWS DataSync only supports the SIMPLE_PATTERN rule type.
845 */
846 FilterType?: FilterType;
847 /**
848 * A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2
849 */
850 Value?: FilterValue;
851 }
852 export type FilterType = "SIMPLE_PATTERN"|string;
853 export type FilterValue = string;
854 export type FsxFilesystemArn = string;
855 export type FsxWindowsSubdirectory = string;
856 export type Gid = "NONE"|"INT_VALUE"|"NAME"|"BOTH"|string;
857 export type IamRoleArn = string;
858 export interface ListAgentsRequest {
859 /**
860 * The maximum number of agents to list.
861 */
862 MaxResults?: MaxResults;
863 /**
864 * An opaque string that indicates the position at which to begin the next list of agents.
865 */
866 NextToken?: NextToken;
867 }
868 export interface ListAgentsResponse {
869 /**
870 * A list of agents in your account.
871 */
872 Agents?: AgentList;
873 /**
874 * An opaque string that indicates the position at which to begin returning the next list of agents.
875 */
876 NextToken?: NextToken;
877 }
878 export interface ListLocationsRequest {
879 /**
880 * The maximum number of locations to return.
881 */
882 MaxResults?: MaxResults;
883 /**
884 * An opaque string that indicates the position at which to begin the next list of locations.
885 */
886 NextToken?: NextToken;
887 }
888 export interface ListLocationsResponse {
889 /**
890 * An array that contains a list of locations.
891 */
892 Locations?: LocationList;
893 /**
894 * An opaque string that indicates the position at which to begin returning the next list of locations.
895 */
896 NextToken?: NextToken;
897 }
898 export interface ListTagsForResourceRequest {
899 /**
900 * The Amazon Resource Name (ARN) of the resource whose tags to list.
901 */
902 ResourceArn: TaggableResourceArn;
903 /**
904 * The maximum number of locations to return.
905 */
906 MaxResults?: MaxResults;
907 /**
908 * An opaque string that indicates the position at which to begin the next list of locations.
909 */
910 NextToken?: NextToken;
911 }
912 export interface ListTagsForResourceResponse {
913 /**
914 * Array of resource tags.
915 */
916 Tags?: TagList;
917 /**
918 * An opaque string that indicates the position at which to begin returning the next list of resource tags.
919 */
920 NextToken?: NextToken;
921 }
922 export interface ListTaskExecutionsRequest {
923 /**
924 * The Amazon Resource Name (ARN) of the task whose tasks you want to list.
925 */
926 TaskArn?: TaskArn;
927 /**
928 * The maximum number of executed tasks to list.
929 */
930 MaxResults?: MaxResults;
931 /**
932 * An opaque string that indicates the position at which to begin the next list of the executed tasks.
933 */
934 NextToken?: NextToken;
935 }
936 export interface ListTaskExecutionsResponse {
937 /**
938 * A list of executed tasks.
939 */
940 TaskExecutions?: TaskExecutionList;
941 /**
942 * An opaque string that indicates the position at which to begin returning the next list of executed tasks.
943 */
944 NextToken?: NextToken;
945 }
946 export interface ListTasksRequest {
947 /**
948 * The maximum number of tasks to return.
949 */
950 MaxResults?: MaxResults;
951 /**
952 * An opaque string that indicates the position at which to begin the next list of tasks.
953 */
954 NextToken?: NextToken;
955 }
956 export interface ListTasksResponse {
957 /**
958 * A list of all the tasks that are returned.
959 */
960 Tasks?: TaskList;
961 /**
962 * An opaque string that indicates the position at which to begin returning the next list of tasks.
963 */
964 NextToken?: NextToken;
965 }
966 export type LocationArn = string;
967 export type LocationList = LocationListEntry[];
968 export interface LocationListEntry {
969 /**
970 * The Amazon Resource Name (ARN) of the location. For Network File System (NFS) or Amazon EFS, the location is the export path. For Amazon S3, the location is the prefix path that you want to mount and use as the root of the location.
971 */
972 LocationArn?: LocationArn;
973 /**
974 * Represents a list of URLs of a location. LocationUri returns an array that contains a list of locations when the ListLocations operation is called. Format: TYPE://GLOBAL_ID/SUBDIR. TYPE designates the type of location. Valid values: NFS | EFS | S3. GLOBAL_ID is the globally unique identifier of the resource that backs the location. An example for EFS is us-east-2.fs-abcd1234. An example for Amazon S3 is the bucket name, such as myBucket. An example for NFS is a valid IPv4 address or a host name compliant with Domain Name Service (DNS). SUBDIR is a valid file system path, delimited by forward slashes as is the *nix convention. For NFS and Amazon EFS, it's the export path to mount the location. For Amazon S3, it's the prefix path that you mount to and treat as the root of the location.
975 */
976 LocationUri?: LocationUri;
977 }
978 export type LocationUri = string;
979 export type LogGroupArn = string;
980 export type LogLevel = "OFF"|"BASIC"|"TRANSFER"|string;
981 export type MaxResults = number;
982 export type Mtime = "NONE"|"PRESERVE"|string;
983 export type NetworkInterfaceArn = string;
984 export type NextToken = string;
985 export interface NfsMountOptions {
986 /**
987 * The specific NFS version that you want DataSync to use to mount your NFS share. If the server refuses to use the version specified, the sync will fail. If you don't specify a version, DataSync defaults to AUTOMATIC. That is, DataSync automatically selects a version based on negotiation with the NFS server. You can specify the following NFS versions: NFSv3 - stateless protocol version that allows for asynchronous writes on the server. NFSv4.0 - stateful, firewall-friendly protocol version that supports delegations and pseudo filesystems. NFSv4.1 - stateful protocol version that supports sessions, directory delegations, and parallel data processing. Version 4.1 also includes all features available in version 4.0.
988 */
989 Version?: NfsVersion;
990 }
991 export type NfsSubdirectory = string;
992 export type NfsVersion = "AUTOMATIC"|"NFS3"|"NFS4_0"|"NFS4_1"|string;
993 export interface OnPremConfig {
994 /**
995 * ARNs)of the agents to use for an NFS location.
996 */
997 AgentArns: AgentArnList;
998 }
999 export interface Options {
1000 /**
1001 * A value that determines whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred. Default value: POINT_IN_TIME_CONSISTENT. POINT_IN_TIME_CONSISTENT: Perform verification (recommended). ONLY_FILES_TRANSFERRED: Perform verification on only files that were transferred. NONE: Skip verification.
1002 */
1003 VerifyMode?: VerifyMode;
1004 /**
1005 * A value that determines whether files at the destination should be overwritten or preserved when copying files. If set to NEVER a destination file will not be replaced by a source file, even if the destination file differs from the source file. If you modify files in the destination and you sync the files, you can use this value to protect against overwriting those changes. Some storage classes have specific behaviors that can affect your S3 storage cost. For detailed information, see using-storage-classes in the AWS DataSync User Guide.
1006 */
1007 OverwriteMode?: OverwriteMode;
1008 /**
1009 * A file metadata value that shows the last time a file was accessed (that is, when the file was read or written to). If you set Atime to BEST_EFFORT, DataSync attempts to preserve the original Atime attribute on all source files (that is, the version before the PREPARING phase). However, Atime's behavior is not fully standard across platforms, so AWS DataSync can only do this on a best-effort basis. Default value: BEST_EFFORT. BEST_EFFORT: Attempt to preserve the per-file Atime value (recommended). NONE: Ignore Atime. If Atime is set to BEST_EFFORT, Mtime must be set to PRESERVE. If Atime is set to NONE, Mtime must also be NONE.
1010 */
1011 Atime?: Atime;
1012 /**
1013 * A value that indicates the last time that a file was modified (that is, a file was written to) before the PREPARING phase. Default value: PRESERVE. PRESERVE: Preserve original Mtime (recommended) NONE: Ignore Mtime. If Mtime is set to PRESERVE, Atime must be set to BEST_EFFORT. If Mtime is set to NONE, Atime must also be set to NONE.
1014 */
1015 Mtime?: Mtime;
1016 /**
1017 * The user ID (UID) of the file's owner. Default value: INT_VALUE. This preserves the integer value of the ID. INT_VALUE: Preserve the integer value of UID and group ID (GID) (recommended). NONE: Ignore UID and GID.
1018 */
1019 Uid?: Uid;
1020 /**
1021 * The group ID (GID) of the file's owners. Default value: INT_VALUE. This preserves the integer value of the ID. INT_VALUE: Preserve the integer value of user ID (UID) and GID (recommended). NONE: Ignore UID and GID.
1022 */
1023 Gid?: Gid;
1024 /**
1025 * A value that specifies whether files in the destination that don't exist in the source file system should be preserved. This option can affect your storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see using-storage-classes in the AWS DataSync User Guide. Default value: PRESERVE. PRESERVE: Ignore such destination files (recommended). REMOVE: Delete destination files that aren’t present in the source.
1026 */
1027 PreserveDeletedFiles?: PreserveDeletedFiles;
1028 /**
1029 * A value that determines whether AWS DataSync should preserve the metadata of block and character devices in the source file system, and recreate the files with that device name and metadata on the destination. AWS DataSync can't sync the actual contents of such devices, because they are nonterminal and don't return an end-of-file (EOF) marker. Default value: NONE. NONE: Ignore special devices (recommended). PRESERVE: Preserve character and block device metadata. This option isn't currently supported for Amazon EFS.
1030 */
1031 PreserveDevices?: PreserveDevices;
1032 /**
1033 * A value that determines which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file. Default value: PRESERVE. PRESERVE: Preserve POSIX-style permissions (recommended). NONE: Ignore permissions. AWS DataSync can preserve extant permissions of a source location.
1034 */
1035 PosixPermissions?: PosixPermissions;
1036 /**
1037 * A value that limits the bandwidth used by AWS DataSync. For example, if you want AWS DataSync to use a maximum of 1 MB, set this value to 1048576 (=1024*1024).
1038 */
1039 BytesPerSecond?: BytesPerSecond;
1040 /**
1041 * A value that determines whether tasks should be queued before executing the tasks. If set to ENABLED, the tasks will be queued. The default is ENABLED. If you use the same agent to run multiple tasks you can enable the tasks to run in series. For more information see queue-task-execution.
1042 */
1043 TaskQueueing?: TaskQueueing;
1044 /**
1045 * A value that determines the type of logs DataSync will deliver to your AWS CloudWatch Logs file. If set to OFF, no logs will be delivered. BASIC will deliver a few logs per transfer operation and TRANSFER will deliver a verbose log that contains logs for every file that is transferred.
1046 */
1047 LogLevel?: LogLevel;
1048 }
1049 export type OverwriteMode = "ALWAYS"|"NEVER"|string;
1050 export type PLSecurityGroupArnList = Ec2SecurityGroupArn[];
1051 export type PLSubnetArnList = Ec2SubnetArn[];
1052 export type PhaseStatus = "PENDING"|"SUCCESS"|"ERROR"|string;
1053 export type PosixPermissions = "NONE"|"PRESERVE"|string;
1054 export type PreserveDeletedFiles = "PRESERVE"|"REMOVE"|string;
1055 export type PreserveDevices = "NONE"|"PRESERVE"|string;
1056 export interface PrivateLinkConfig {
1057 /**
1058 * The ID of the VPC endpoint that is configured for an agent. An agent that is configured with a VPC endpoint will not be accessible over the public Internet.
1059 */
1060 VpcEndpointId?: VpcEndpointId;
1061 /**
1062 * The private endpoint that is configured for an agent that has access to IP addresses in a PrivateLink. An agent that is configured with this endpoint will not be accessible over the public Internet.
1063 */
1064 PrivateLinkEndpoint?: Endpoint;
1065 /**
1066 * The Amazon Resource Names (ARNs) of the subnets that are configured for an agent activated in a VPC or an agent that has access to a VPC endpoint.
1067 */
1068 SubnetArns?: PLSubnetArnList;
1069 /**
1070 * The Amazon Resource Names (ARNs) of the security groups that are configured for the EC2 resource that hosts an agent activated in a VPC or an agent that has access to a VPC endpoint.
1071 */
1072 SecurityGroupArns?: PLSecurityGroupArnList;
1073 }
1074 export type S3BucketArn = string;
1075 export interface S3Config {
1076 /**
1077 * The Amazon S3 bucket to access. This bucket is used as a parameter in the CreateLocationS3 operation.
1078 */
1079 BucketAccessRoleArn: IamRoleArn;
1080 }
1081 export type S3StorageClass = "STANDARD"|"STANDARD_IA"|"ONEZONE_IA"|"INTELLIGENT_TIERING"|"GLACIER"|"DEEP_ARCHIVE"|string;
1082 export type S3Subdirectory = string;
1083 export type ScheduleExpressionCron = string;
1084 export type ServerHostname = string;
1085 export type SmbDomain = string;
1086 export interface SmbMountOptions {
1087 /**
1088 * The specific SMB version that you want DataSync to use to mount your SMB share. If you don't specify a version, DataSync defaults to AUTOMATIC. That is, DataSync automatically selects a version based on negotiation with the SMB server.
1089 */
1090 Version?: SmbVersion;
1091 }
1092 export type SmbPassword = string;
1093 export type SmbSubdirectory = string;
1094 export type SmbUser = string;
1095 export type SmbVersion = "AUTOMATIC"|"SMB2"|"SMB3"|string;
1096 export type SourceNetworkInterfaceArns = NetworkInterfaceArn[];
1097 export interface StartTaskExecutionRequest {
1098 /**
1099 * The Amazon Resource Name (ARN) of the task to start.
1100 */
1101 TaskArn: TaskArn;
1102 OverrideOptions?: Options;
1103 /**
1104 * 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"
1105 */
1106 Includes?: FilterList;
1107 }
1108 export interface StartTaskExecutionResponse {
1109 /**
1110 * The Amazon Resource Name (ARN) of the specific task execution that was started.
1111 */
1112 TaskExecutionArn?: TaskExecutionArn;
1113 }
1114 export type TagKey = string;
1115 export type TagKeyList = TagKey[];
1116 export type TagList = TagListEntry[];
1117 export interface TagListEntry {
1118 /**
1119 * The key for an AWS resource tag.
1120 */
1121 Key: TagKey;
1122 /**
1123 * The value for an AWS resource tag.
1124 */
1125 Value?: TagValue;
1126 }
1127 export interface TagResourceRequest {
1128 /**
1129 * The Amazon Resource Name (ARN) of the resource to apply the tag to.
1130 */
1131 ResourceArn: TaggableResourceArn;
1132 /**
1133 * The tags to apply.
1134 */
1135 Tags: TagList;
1136 }
1137 export interface TagResourceResponse {
1138 }
1139 export type TagValue = string;
1140 export type TaggableResourceArn = string;
1141 export type TaskArn = string;
1142 export type TaskExecutionArn = string;
1143 export type TaskExecutionList = TaskExecutionListEntry[];
1144 export interface TaskExecutionListEntry {
1145 /**
1146 * The Amazon Resource Name (ARN) of the task that was executed.
1147 */
1148 TaskExecutionArn?: TaskExecutionArn;
1149 /**
1150 * The status of a task execution.
1151 */
1152 Status?: TaskExecutionStatus;
1153 }
1154 export interface TaskExecutionResultDetail {
1155 /**
1156 * The total time in milliseconds that AWS DataSync spent in the PREPARING phase.
1157 */
1158 PrepareDuration?: Duration;
1159 /**
1160 * The status of the PREPARING phase.
1161 */
1162 PrepareStatus?: PhaseStatus;
1163 /**
1164 * The total time in milliseconds that AWS DataSync took to transfer the file from the source to the destination location.
1165 */
1166 TotalDuration?: Duration;
1167 /**
1168 * The total time in milliseconds that AWS DataSync spent in the TRANSFERRING phase.
1169 */
1170 TransferDuration?: Duration;
1171 /**
1172 * The status of the TRANSFERRING Phase.
1173 */
1174 TransferStatus?: PhaseStatus;
1175 /**
1176 * The total time in milliseconds that AWS DataSync spent in the VERIFYING phase.
1177 */
1178 VerifyDuration?: Duration;
1179 /**
1180 * The status of the VERIFYING Phase.
1181 */
1182 VerifyStatus?: PhaseStatus;
1183 /**
1184 * Errors that AWS DataSync encountered during execution of the task. You can use this error code to help troubleshoot issues.
1185 */
1186 ErrorCode?: string;
1187 /**
1188 * Detailed description of an error that was encountered during the task execution. You can use this information to help troubleshoot issues.
1189 */
1190 ErrorDetail?: string;
1191 }
1192 export type TaskExecutionStatus = "QUEUED"|"LAUNCHING"|"PREPARING"|"TRANSFERRING"|"VERIFYING"|"SUCCESS"|"ERROR"|string;
1193 export type TaskList = TaskListEntry[];
1194 export interface TaskListEntry {
1195 /**
1196 * The Amazon Resource Name (ARN) of the task.
1197 */
1198 TaskArn?: TaskArn;
1199 /**
1200 * The status of the task.
1201 */
1202 Status?: TaskStatus;
1203 /**
1204 * The name of the task.
1205 */
1206 Name?: TagValue;
1207 }
1208 export type TaskQueueing = "ENABLED"|"DISABLED"|string;
1209 export interface TaskSchedule {
1210 /**
1211 * A cron expression that specifies when AWS DataSync initiates a scheduled transfer from a source to a destination location.
1212 */
1213 ScheduleExpression: ScheduleExpressionCron;
1214 }
1215 export type TaskStatus = "AVAILABLE"|"CREATING"|"QUEUED"|"RUNNING"|"UNAVAILABLE"|string;
1216 export type Time = Date;
1217 export type Uid = "NONE"|"INT_VALUE"|"NAME"|"BOTH"|string;
1218 export interface UntagResourceRequest {
1219 /**
1220 * The Amazon Resource Name (ARN) of the resource to remove the tag from.
1221 */
1222 ResourceArn: TaggableResourceArn;
1223 /**
1224 * The keys in the key-value pair in the tag to remove.
1225 */
1226 Keys: TagKeyList;
1227 }
1228 export interface UntagResourceResponse {
1229 }
1230 export interface UpdateAgentRequest {
1231 /**
1232 * The Amazon Resource Name (ARN) of the agent to update.
1233 */
1234 AgentArn: AgentArn;
1235 /**
1236 * The name that you want to use to configure the agent.
1237 */
1238 Name?: TagValue;
1239 }
1240 export interface UpdateAgentResponse {
1241 }
1242 export interface UpdateTaskRequest {
1243 /**
1244 * The Amazon Resource Name (ARN) of the resource name of the task to update.
1245 */
1246 TaskArn: TaskArn;
1247 Options?: Options;
1248 /**
1249 * 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"
1250 */
1251 Excludes?: FilterList;
1252 /**
1253 * 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 task-scheduling.
1254 */
1255 Schedule?: TaskSchedule;
1256 /**
1257 * The name of the task to update.
1258 */
1259 Name?: TagValue;
1260 /**
1261 * The Amazon Resource Name (ARN) of the resource name of the CloudWatch LogGroup.
1262 */
1263 CloudWatchLogGroupArn?: LogGroupArn;
1264 }
1265 export interface UpdateTaskResponse {
1266 }
1267 export type VerifyMode = "POINT_IN_TIME_CONSISTENT"|"ONLY_FILES_TRANSFERRED"|"NONE"|string;
1268 export type VpcEndpointId = string;
1269 export type long = number;
1270 /**
1271 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1272 */
1273 export type apiVersion = "2018-11-09"|"latest"|string;
1274 export interface ClientApiVersions {
1275 /**
1276 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1277 */
1278 apiVersion?: apiVersion;
1279 }
1280 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1281 /**
1282 * Contains interfaces for use with the DataSync client.
1283 */
1284 export import Types = DataSync;
1285}
1286export = DataSync;