| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Glue.CancelMLTaskRun
Description
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 CancelMLTaskRun with a task run's parent transform's
TransformID and the task run's TaskRunId.
Synopsis
- data CancelMLTaskRun = CancelMLTaskRun' {
- transformId :: Text
- taskRunId :: Text
- newCancelMLTaskRun :: Text -> Text -> CancelMLTaskRun
- cancelMLTaskRun_transformId :: Lens' CancelMLTaskRun Text
- cancelMLTaskRun_taskRunId :: Lens' CancelMLTaskRun Text
- data CancelMLTaskRunResponse = CancelMLTaskRunResponse' {
- status :: Maybe TaskStatusType
- taskRunId :: Maybe Text
- transformId :: Maybe Text
- httpStatus :: Int
- newCancelMLTaskRunResponse :: Int -> CancelMLTaskRunResponse
- cancelMLTaskRunResponse_status :: Lens' CancelMLTaskRunResponse (Maybe TaskStatusType)
- cancelMLTaskRunResponse_taskRunId :: Lens' CancelMLTaskRunResponse (Maybe Text)
- cancelMLTaskRunResponse_transformId :: Lens' CancelMLTaskRunResponse (Maybe Text)
- cancelMLTaskRunResponse_httpStatus :: Lens' CancelMLTaskRunResponse Int
Creating a Request
data CancelMLTaskRun Source #
See: newCancelMLTaskRun smart constructor.
Constructors
| CancelMLTaskRun' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CancelMLTaskRun |
Create a value of CancelMLTaskRun with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CancelMLTaskRun, cancelMLTaskRun_transformId - The unique identifier of the machine learning transform.
CancelMLTaskRun, cancelMLTaskRun_taskRunId - A unique identifier for the task run.
Request Lenses
cancelMLTaskRun_transformId :: Lens' CancelMLTaskRun Text Source #
The unique identifier of the machine learning transform.
cancelMLTaskRun_taskRunId :: Lens' CancelMLTaskRun Text Source #
A unique identifier for the task run.
Destructuring the Response
data CancelMLTaskRunResponse Source #
See: newCancelMLTaskRunResponse smart constructor.
Constructors
| CancelMLTaskRunResponse' | |
Fields
| |
Instances
newCancelMLTaskRunResponse Source #
Create a value of CancelMLTaskRunResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CancelMLTaskRunResponse, cancelMLTaskRunResponse_status - The status for this run.
CancelMLTaskRun, cancelMLTaskRunResponse_taskRunId - The unique identifier for the task run.
CancelMLTaskRun, cancelMLTaskRunResponse_transformId - The unique identifier of the machine learning transform.
$sel:httpStatus:CancelMLTaskRunResponse', cancelMLTaskRunResponse_httpStatus - The response's http status code.
Response Lenses
cancelMLTaskRunResponse_status :: Lens' CancelMLTaskRunResponse (Maybe TaskStatusType) Source #
The status for this run.
cancelMLTaskRunResponse_taskRunId :: Lens' CancelMLTaskRunResponse (Maybe Text) Source #
The unique identifier for the task run.
cancelMLTaskRunResponse_transformId :: Lens' CancelMLTaskRunResponse (Maybe Text) Source #
The unique identifier of the machine learning transform.
cancelMLTaskRunResponse_httpStatus :: Lens' CancelMLTaskRunResponse Int Source #
The response's http status code.