Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cancels an in-process import virtual machine or import snapshot task.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CancelImportTask.html
- data CancelImportTask
- cancelImportTask :: CancelImportTask
- citCancelReason :: Lens' CancelImportTask (Maybe Text)
- citDryRun :: Lens' CancelImportTask (Maybe Bool)
- citImportTaskId :: Lens' CancelImportTask (Maybe Text)
- data CancelImportTaskResponse
- cancelImportTaskResponse :: CancelImportTaskResponse
- citrImportTaskId :: Lens' CancelImportTaskResponse (Maybe Text)
- citrPreviousState :: Lens' CancelImportTaskResponse (Maybe Text)
- citrState :: Lens' CancelImportTaskResponse (Maybe Text)
Request
data CancelImportTask Source
Request constructor
cancelImportTask :: CancelImportTask Source
CancelImportTask
constructor.
The fields accessible through corresponding lenses are:
Request lenses
citCancelReason :: Lens' CancelImportTask (Maybe Text) Source
The reason for canceling the task.
citDryRun :: 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
.
citImportTaskId :: Lens' CancelImportTask (Maybe Text) Source
The ID of the import image or import snapshot task to be canceled.
Response
Response constructor
cancelImportTaskResponse :: CancelImportTaskResponse Source
CancelImportTaskResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
citrImportTaskId :: Lens' CancelImportTaskResponse (Maybe Text) Source
The ID of the task being canceled.
citrPreviousState :: Lens' CancelImportTaskResponse (Maybe Text) Source
The current state of the task being canceled.