Create Data Repository Task
fsx_create_data_repository_task | R Documentation |
Creates an Amazon FSx for Lustre data repository task¶
Description¶
Creates an Amazon FSx for Lustre data repository task. A
create_data_repository_task
operation will fail if a data repository
is not linked to the FSx file system.
You use import and export data repository tasks to perform bulk operations between your FSx for Lustre 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.
You use release data repository tasks to release data from your file system for files that are exported to S3. The metadata of released files remains on the file system so users or applications can still access released files by reading the files again, which will restore data from Amazon S3 to the FSx for Lustre file system.
To learn more about data repository tasks, see Data Repository Tasks. To learn more about linking a data repository to your file system, see Linking your file system to an S3 bucket.
Usage¶
fsx_create_data_repository_task(Type, Paths, FileSystemId, Report,
ClientRequestToken, Tags, CapacityToRelease, ReleaseConfiguration)
Arguments¶
Type |
[required] Specifies the type of data repository task to create.
|
Paths |
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. If you don't provide paths, the default behavior is to export all files to S3 (for export tasks), import all files from S3 (for import tasks), or release all exported files that meet the last accessed time criteria (for release tasks).
|
FileSystemId |
[required] |
Report |
[required] Defines whether or not Amazon FSx provides a
CompletionReport once the task has completed. A CompletionReport
provides a detailed report on the files that Amazon FSx processed that
meet the criteria specified by the |
ClientRequestToken |
|
Tags |
|
CapacityToRelease |
Specifies the amount of data to release, in GiB, by an Amazon
File Cache |
ReleaseConfiguration |
The configuration that specifies the last accessed time criteria for files that will be released from an Amazon FSx for Lustre file system. |
Value¶
A list with the following syntax:
list(
DataRepositoryTask = list(
TaskId = "string",
Lifecycle = "PENDING"|"EXECUTING"|"FAILED"|"SUCCEEDED"|"CANCELED"|"CANCELING",
Type = "EXPORT_TO_REPOSITORY"|"IMPORT_METADATA_FROM_REPOSITORY"|"RELEASE_DATA_FROM_FILESYSTEM"|"AUTO_RELEASE_DATA",
CreationTime = as.POSIXct(
"2015-01-01"
),
StartTime = as.POSIXct(
"2015-01-01"
),
EndTime = as.POSIXct(
"2015-01-01"
),
ResourceARN = "string",
Tags = list(
list(
Key = "string",
Value = "string"
)
),
FileSystemId = "string",
Paths = list(
"string"
),
FailureDetails = list(
Message = "string"
),
Status = list(
TotalCount = 123,
SucceededCount = 123,
FailedCount = 123,
LastUpdatedTime = as.POSIXct(
"2015-01-01"
),
ReleasedCapacity = 123
),
Report = list(
Enabled = TRUE|FALSE,
Path = "string",
Format = "REPORT_CSV_20191124",
Scope = "FAILED_FILES_ONLY"
),
CapacityToRelease = 123,
FileCacheId = "string",
ReleaseConfiguration = list(
DurationSinceLastAccess = list(
Unit = "DAYS",
Value = 123
)
)
)
)
Request syntax¶
svc$create_data_repository_task(
Type = "EXPORT_TO_REPOSITORY"|"IMPORT_METADATA_FROM_REPOSITORY"|"RELEASE_DATA_FROM_FILESYSTEM"|"AUTO_RELEASE_DATA",
Paths = list(
"string"
),
FileSystemId = "string",
Report = list(
Enabled = TRUE|FALSE,
Path = "string",
Format = "REPORT_CSV_20191124",
Scope = "FAILED_FILES_ONLY"
),
ClientRequestToken = "string",
Tags = list(
list(
Key = "string",
Value = "string"
)
),
CapacityToRelease = 123,
ReleaseConfiguration = list(
DurationSinceLastAccess = list(
Unit = "DAYS",
Value = 123
)
)
)