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 in-process import virtual machine or import snapshot task.
Synopsis
- data CancelImportTask = CancelImportTask' {
- cancelReason :: Maybe Text
- dryRun :: Maybe Bool
- importTaskId :: Maybe Text
- newCancelImportTask :: CancelImportTask
- cancelImportTask_cancelReason :: Lens' CancelImportTask (Maybe Text)
- cancelImportTask_dryRun :: Lens' CancelImportTask (Maybe Bool)
- cancelImportTask_importTaskId :: Lens' CancelImportTask (Maybe Text)
- data CancelImportTaskResponse = CancelImportTaskResponse' {
- importTaskId :: Maybe Text
- previousState :: Maybe Text
- state :: Maybe Text
- httpStatus :: Int
- newCancelImportTaskResponse :: Int -> CancelImportTaskResponse
- cancelImportTaskResponse_importTaskId :: Lens' CancelImportTaskResponse (Maybe Text)
- cancelImportTaskResponse_previousState :: Lens' CancelImportTaskResponse (Maybe Text)
- cancelImportTaskResponse_state :: Lens' CancelImportTaskResponse (Maybe Text)
- cancelImportTaskResponse_httpStatus :: Lens' CancelImportTaskResponse Int
Creating a Request
data CancelImportTask Source #
See: newCancelImportTask
smart constructor.
CancelImportTask' | |
|
Instances
newCancelImportTask :: CancelImportTask Source #
Create a value of CancelImportTask
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:cancelReason:CancelImportTask'
, cancelImportTask_cancelReason
- The reason for canceling the task.
$sel:dryRun:CancelImportTask'
, cancelImportTask_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
CancelImportTask
, cancelImportTask_importTaskId
- The ID of the import image or import snapshot task to be canceled.
Request Lenses
cancelImportTask_cancelReason :: Lens' CancelImportTask (Maybe Text) Source #
The reason for canceling the task.
cancelImportTask_dryRun :: Lens' CancelImportTask (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
cancelImportTask_importTaskId :: Lens' CancelImportTask (Maybe Text) Source #
The ID of the import image or import snapshot task to be canceled.
Destructuring the Response
data CancelImportTaskResponse Source #
See: newCancelImportTaskResponse
smart constructor.
CancelImportTaskResponse' | |
|
Instances
newCancelImportTaskResponse Source #
Create a value of CancelImportTaskResponse
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:
CancelImportTask
, cancelImportTaskResponse_importTaskId
- The ID of the task being canceled.
CancelImportTaskResponse
, cancelImportTaskResponse_previousState
- The current state of the task being canceled.
CancelImportTaskResponse
, cancelImportTaskResponse_state
- The current state of the task being canceled.
$sel:httpStatus:CancelImportTaskResponse'
, cancelImportTaskResponse_httpStatus
- The response's http status code.
Response Lenses
cancelImportTaskResponse_importTaskId :: Lens' CancelImportTaskResponse (Maybe Text) Source #
The ID of the task being canceled.
cancelImportTaskResponse_previousState :: Lens' CancelImportTaskResponse (Maybe Text) Source #
The current state of the task being canceled.
cancelImportTaskResponse_state :: Lens' CancelImportTaskResponse (Maybe Text) Source #
The current state of the task being canceled.
cancelImportTaskResponse_httpStatus :: Lens' CancelImportTaskResponse Int Source #
The response's http status code.