Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.
For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI .
- cancelConversionTask :: Text -> CancelConversionTask
- data CancelConversionTask
- cctReasonMessage :: Lens' CancelConversionTask (Maybe Text)
- cctDryRun :: Lens' CancelConversionTask (Maybe Bool)
- cctConversionTaskId :: Lens' CancelConversionTask Text
- cancelConversionTaskResponse :: CancelConversionTaskResponse
- data CancelConversionTaskResponse
Creating a Request
Creates a value of CancelConversionTask
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cctReasonMessage
- The reason for canceling the conversion task.cctDryRun
- 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
.cctConversionTaskId
- The ID of the conversion task.
data CancelConversionTask Source #
Contains the parameters for CancelConversionTask.
See: cancelConversionTask
smart constructor.
Request Lenses
cctReasonMessage :: Lens' CancelConversionTask (Maybe Text) Source #
The reason for canceling the conversion task.
cctDryRun :: Lens' CancelConversionTask (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
.
cctConversionTaskId :: Lens' CancelConversionTask Text Source #
The ID of the conversion task.
Destructuring the Response
cancelConversionTaskResponse :: CancelConversionTaskResponse Source #
Creates a value of CancelConversionTaskResponse
with the minimum fields required to make a request.
data CancelConversionTaskResponse Source #
See: cancelConversionTaskResponse
smart constructor.