| 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.EMRContainers.CancelJobRun
Description
Cancels a job run. A job run is a unit of work, such as a Spark jar, PySpark script, or SparkSQL query, that you submit to Amazon EMR on EKS.
Synopsis
- data CancelJobRun = CancelJobRun' {
- id :: Text
 - virtualClusterId :: Text
 
 - newCancelJobRun :: Text -> Text -> CancelJobRun
 - cancelJobRun_id :: Lens' CancelJobRun Text
 - cancelJobRun_virtualClusterId :: Lens' CancelJobRun Text
 - data CancelJobRunResponse = CancelJobRunResponse' {
- id :: Maybe Text
 - virtualClusterId :: Maybe Text
 - httpStatus :: Int
 
 - newCancelJobRunResponse :: Int -> CancelJobRunResponse
 - cancelJobRunResponse_id :: Lens' CancelJobRunResponse (Maybe Text)
 - cancelJobRunResponse_virtualClusterId :: Lens' CancelJobRunResponse (Maybe Text)
 - cancelJobRunResponse_httpStatus :: Lens' CancelJobRunResponse Int
 
Creating a Request
data CancelJobRun Source #
See: newCancelJobRun smart constructor.
Constructors
| CancelJobRun' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CancelJobRun | 
Create a value of CancelJobRun 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:
CancelJobRun, cancelJobRun_id - The ID of the job run to cancel.
CancelJobRun, cancelJobRun_virtualClusterId - The ID of the virtual cluster for which the job run will be canceled.
Request Lenses
cancelJobRun_id :: Lens' CancelJobRun Text Source #
The ID of the job run to cancel.
cancelJobRun_virtualClusterId :: Lens' CancelJobRun Text Source #
The ID of the virtual cluster for which the job run will be canceled.
Destructuring the Response
data CancelJobRunResponse Source #
See: newCancelJobRunResponse smart constructor.
Constructors
| CancelJobRunResponse' | |
Fields 
  | |
Instances
newCancelJobRunResponse Source #
Arguments
| :: Int | |
| -> CancelJobRunResponse | 
Create a value of CancelJobRunResponse 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:
CancelJobRun, cancelJobRunResponse_id - The output contains the ID of the cancelled job run.
CancelJobRun, cancelJobRunResponse_virtualClusterId - The output contains the virtual cluster ID for which the job run is
 cancelled.
$sel:httpStatus:CancelJobRunResponse', cancelJobRunResponse_httpStatus - The response's http status code.
Response Lenses
cancelJobRunResponse_id :: Lens' CancelJobRunResponse (Maybe Text) Source #
The output contains the ID of the cancelled job run.
cancelJobRunResponse_virtualClusterId :: Lens' CancelJobRunResponse (Maybe Text) Source #
The output contains the virtual cluster ID for which the job run is cancelled.
cancelJobRunResponse_httpStatus :: Lens' CancelJobRunResponse Int Source #
The response's http status code.