v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142021,119944.8 KB

Cancels (stops) a task run. Machine learning task runs are asynchronous tasks that Glue runs on your behalf as part of various machine learning workflows. You can cancel a machine learning task run at any time by calling <code>CancelMLTaskRun</code> with a task run's parent transform's <code>TransformID</code> and the task run's <code>TaskRunId</code>.

post/#X-Amz-Target=AWSGlue.CancelMLTaskRun

Headers

X-Amz-Target'AWSGlue.CancelMLTaskRun' required

Request body

TransformIdstring required

The unique identifier of the machine learning transform.

TaskRunIdstring required

A unique identifier for the task run.

Response

Success

TransformIdstring

The unique identifier of the machine learning transform.

TaskRunIdstring

The unique identifier for the task run.

Status'STARTING' | 'RUNNING' | 'STOPPING' | 'STOPPED' | 'SUCCEEDED' | 'FAILED' | 'TIMEOUT'

The status for this run.