AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Configures a task, which defines where and how DataSync transfers your data.
A task includes a source location, destination location, and transfer options (such as bandwidth limits, scheduling, and more).
If you're planning to transfer data to or from an Amazon S3 location, review how DataSync can affect your S3 request charges and the DataSync pricing page before you begin.
For .NET Core this operation is only available in asynchronous form. Please refer to CreateTaskAsync.
Namespace: Amazon.DataSync
Assembly: AWSSDK.DataSync.dll
Version: 3.x.y.z
public abstract CreateTaskResponse CreateTask( CreateTaskRequest request )
Container for the necessary parameters to execute the CreateTask service method.
| Exception | Condition |
|---|---|
| InternalException | This exception is thrown when an error occurs in the DataSync service. |
| InvalidRequestException | This exception is thrown when the client submits a malformed request. |
.NET Framework:
Supported in: 4.7.2 and newer