Smaws_Client_FSx.CancelDataRepositoryTaskCancels an existing Amazon FSx for Lustre data repository task if that task is in either the PENDING or EXECUTING state. When you cancel an export task, Amazon FSx does the following.
For a release task, Amazon FSx will stop releasing files upon cancellation. Any files that have already been released will remain in the released state.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `BadRequest of Types.bad_request
| `DataRepositoryTaskEnded of Types.data_repository_task_ended
| `DataRepositoryTaskNotFound of Types.data_repository_task_not_found
| `InternalServerError of Types.internal_server_error
| `UnsupportedOperation of Types.unsupported_operation ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.cancel_data_repository_task_request ->
(Types.cancel_data_repository_task_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `BadRequest of Types.bad_request
| `DataRepositoryTaskEnded of Types.data_repository_task_ended
| `DataRepositoryTaskNotFound of Types.data_repository_task_not_found
| `InternalServerError of Types.internal_server_error
| `UnsupportedOperation of Types.unsupported_operation ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.cancel_data_repository_task_request ->
(Types.cancel_data_repository_task_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `BadRequest of Types.bad_request
| `DataRepositoryTaskEnded of Types.data_repository_task_ended
| `DataRepositoryTaskNotFound of Types.data_repository_task_not_found
| `InternalServerError of Types.internal_server_error
| `UnsupportedOperation of Types.unsupported_operation ]
* Smaws_Lib.Response.metadata)
Stdlib.result