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 |
Cancels an Amazon Braket job.
Synopsis
- data CancelJob = CancelJob' {}
- newCancelJob :: Text -> CancelJob
- cancelJob_jobArn :: Lens' CancelJob Text
- data CancelJobResponse = CancelJobResponse' {}
- newCancelJobResponse :: Int -> CancellationStatus -> Text -> CancelJobResponse
- cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int
- cancelJobResponse_cancellationStatus :: Lens' CancelJobResponse CancellationStatus
- cancelJobResponse_jobArn :: Lens' CancelJobResponse Text
Creating a Request
See: newCancelJob
smart constructor.
Instances
Create a value of CancelJob
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:
CancelJob
, cancelJob_jobArn
- The ARN of the Amazon Braket job to cancel.
Request Lenses
Destructuring the Response
data CancelJobResponse Source #
See: newCancelJobResponse
smart constructor.
CancelJobResponse' | |
|
Instances
:: Int | |
-> CancellationStatus | |
-> Text | |
-> CancelJobResponse |
Create a value of CancelJobResponse
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:
$sel:httpStatus:CancelJobResponse'
, cancelJobResponse_httpStatus
- The response's http status code.
$sel:cancellationStatus:CancelJobResponse'
, cancelJobResponse_cancellationStatus
- The status of the job cancellation request.
CancelJob
, cancelJobResponse_jobArn
- The ARN of the Amazon Braket job.
Response Lenses
cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int Source #
The response's http status code.
cancelJobResponse_cancellationStatus :: Lens' CancelJobResponse CancellationStatus Source #
The status of the job cancellation request.
cancelJobResponse_jobArn :: Lens' CancelJobResponse Text Source #
The ARN of the Amazon Braket job.