Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Cancels an in-process import virtual machine or import snapshot task.
- cancelImportTask :: CancelImportTask
- data CancelImportTask
- citCancelReason :: Lens' CancelImportTask (Maybe Text)
- citImportTaskId :: Lens' CancelImportTask (Maybe Text)
- citDryRun :: Lens' CancelImportTask (Maybe Bool)
- cancelImportTaskResponse :: Int -> CancelImportTaskResponse
- data CancelImportTaskResponse
- citrsState :: Lens' CancelImportTaskResponse (Maybe Text)
- citrsImportTaskId :: Lens' CancelImportTaskResponse (Maybe Text)
- citrsPreviousState :: Lens' CancelImportTaskResponse (Maybe Text)
- citrsResponseStatus :: Lens' CancelImportTaskResponse Int
Creating a Request
cancelImportTask :: CancelImportTask Source #
Creates a value of CancelImportTask
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
citCancelReason
- The reason for canceling the task.citImportTaskId
- The ID of the import image or import snapshot task to be canceled.citDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.
data CancelImportTask Source #
Contains the parameters for CancelImportTask.
See: cancelImportTask
smart constructor.
Request Lenses
citCancelReason :: Lens' CancelImportTask (Maybe Text) Source #
The reason for canceling the task.
citImportTaskId :: Lens' CancelImportTask (Maybe Text) Source #
The ID of the import image or import snapshot task to be canceled.
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
.
Destructuring the Response
cancelImportTaskResponse Source #
Creates a value of CancelImportTaskResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
citrsState
- The current state of the task being canceled.citrsImportTaskId
- The ID of the task being canceled.citrsPreviousState
- The current state of the task being canceled.citrsResponseStatus
- -- | The response status code.
data CancelImportTaskResponse Source #
Contains the output for CancelImportTask.
See: cancelImportTaskResponse
smart constructor.
Response Lenses
citrsState :: Lens' CancelImportTaskResponse (Maybe Text) Source #
The current state of the task being canceled.
citrsImportTaskId :: Lens' CancelImportTaskResponse (Maybe Text) Source #
The ID of the task being canceled.
citrsPreviousState :: Lens' CancelImportTaskResponse (Maybe Text) Source #
The current state of the task being canceled.
citrsResponseStatus :: Lens' CancelImportTaskResponse Int Source #
- - | The response status code.