Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Cancels the specified task.
Synopsis
- data CancelQuantumTask = CancelQuantumTask' {}
- newCancelQuantumTask :: Text -> Text -> CancelQuantumTask
- cancelQuantumTask_clientToken :: Lens' CancelQuantumTask Text
- cancelQuantumTask_quantumTaskArn :: Lens' CancelQuantumTask Text
- data CancelQuantumTaskResponse = CancelQuantumTaskResponse' {}
- newCancelQuantumTaskResponse :: Int -> CancellationStatus -> Text -> CancelQuantumTaskResponse
- cancelQuantumTaskResponse_httpStatus :: Lens' CancelQuantumTaskResponse Int
- cancelQuantumTaskResponse_cancellationStatus :: Lens' CancelQuantumTaskResponse CancellationStatus
- cancelQuantumTaskResponse_quantumTaskArn :: Lens' CancelQuantumTaskResponse Text
Creating a Request
data CancelQuantumTask Source #
See: newCancelQuantumTask
smart constructor.
CancelQuantumTask' | |
|
Instances
:: Text | |
-> Text | |
-> CancelQuantumTask |
Create a value of CancelQuantumTask
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:clientToken:CancelQuantumTask'
, cancelQuantumTask_clientToken
- The client token associated with the request.
$sel:quantumTaskArn:CancelQuantumTask'
, cancelQuantumTask_quantumTaskArn
- The ARN of the task to cancel.
Request Lenses
cancelQuantumTask_clientToken :: Lens' CancelQuantumTask Text Source #
The client token associated with the request.
cancelQuantumTask_quantumTaskArn :: Lens' CancelQuantumTask Text Source #
The ARN of the task to cancel.
Destructuring the Response
data CancelQuantumTaskResponse Source #
See: newCancelQuantumTaskResponse
smart constructor.
CancelQuantumTaskResponse' | |
|
Instances
newCancelQuantumTaskResponse Source #
Create a value of CancelQuantumTaskResponse
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:CancelQuantumTaskResponse'
, cancelQuantumTaskResponse_httpStatus
- The response's http status code.
$sel:cancellationStatus:CancelQuantumTaskResponse'
, cancelQuantumTaskResponse_cancellationStatus
- The status of the cancellation request.
$sel:quantumTaskArn:CancelQuantumTask'
, cancelQuantumTaskResponse_quantumTaskArn
- The ARN of the task.
Response Lenses
cancelQuantumTaskResponse_httpStatus :: Lens' CancelQuantumTaskResponse Int Source #
The response's http status code.
cancelQuantumTaskResponse_cancellationStatus :: Lens' CancelQuantumTaskResponse CancellationStatus Source #
The status of the cancellation request.
cancelQuantumTaskResponse_quantumTaskArn :: Lens' CancelQuantumTaskResponse Text Source #
The ARN of the task.