v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1441397379.2 KB

Creates an Amazon FSx for Lustre data repository task. You use data repository tasks to perform bulk operations between your Amazon FSx file system and its linked data repositories. An example of a data repository task is exporting any data and metadata changes, including POSIX metadata, to files, directories, and symbolic links (symlinks) from your FSx file system to a linked data repository. A <code>CreateDataRepositoryTask</code> operation will fail if a data repository is not linked to the FSx file system. To learn more about data repository tasks, see <a href="https://docs.aws.amazon.com/fsx/latest/LustreGuide/data-repository-tasks.html">Data Repository Tasks</a>. To learn more about linking a data repository to your file system, see <a href="https://docs.aws.amazon.com/fsx/latest/LustreGuide/create-dra-linked-data-repo.html">Linking your file system to an S3 bucket</a>.

post/#X-Amz-Target=AWSSimbaAPIService_v20180301.CreateDataRepositoryTask

Headers

X-Amz-Target'AWSSimbaAPIService_v20180301.CreateDataRepositoryTask' required

Request body

Type'EXPORT_TO_REPOSITORY' | 'IMPORT_METADATA_FROM_REPOSITORY' | 'RELEASE_DATA_FROM_FILESYSTEM' | 'AUTO_RELEASE_DATA' required

Specifies the type of data repository task to create.

PathsDataRepositoryTaskPath[]
<p>A list of paths for the data repository task to use when the task is processed. If a path that you provide isn't valid, the task fails.</p> <ul> <li> <p>For export tasks, the list contains paths on the Amazon FSx file system from which the files are exported to the Amazon S3 bucket. The default path is the file system root directory. The paths you provide need to be relative to the mount point of the file system. If the mount point is <code>/mnt/fsx</code> and <code>/mnt/fsx/path1</code> is a directory or file on the file system you want to export, then the path to provide is <code>path1</code>.</p> </li> <li> <p>For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are imported to the Amazon FSx file system. The path can be an S3 bucket or prefix in the format <code>s3://myBucket/myPrefix</code> (where <code>myPrefix</code> is optional).</p> </li> </ul>
FileSystemIdstring required

The globally unique ID of the file system, assigned by Amazon FSx.

ClientRequestTokenstring

(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.

CapacityToReleaseinteger

Specifies the amount of data to release, in GiB, by an Amazon File Cache <code>AUTO_RELEASE_DATA</code> task that automatically releases files from the cache.

Response

Success