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 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.
Synopsis
- data CancelConversionTask = CancelConversionTask' {}
- newCancelConversionTask :: Text -> CancelConversionTask
- cancelConversionTask_dryRun :: Lens' CancelConversionTask (Maybe Bool)
- cancelConversionTask_reasonMessage :: Lens' CancelConversionTask (Maybe Text)
- cancelConversionTask_conversionTaskId :: Lens' CancelConversionTask Text
- data CancelConversionTaskResponse = CancelConversionTaskResponse' {
- newCancelConversionTaskResponse :: CancelConversionTaskResponse
Creating a Request
data CancelConversionTask Source #
See: newCancelConversionTask
smart constructor.
CancelConversionTask' | |
|
Instances
newCancelConversionTask Source #
Create a value of CancelConversionTask
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:dryRun:CancelConversionTask'
, cancelConversionTask_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
.
$sel:reasonMessage:CancelConversionTask'
, cancelConversionTask_reasonMessage
- The reason for canceling the conversion task.
CancelConversionTask
, cancelConversionTask_conversionTaskId
- The ID of the conversion task.
Request Lenses
cancelConversionTask_dryRun :: 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
.
cancelConversionTask_reasonMessage :: Lens' CancelConversionTask (Maybe Text) Source #
The reason for canceling the conversion task.
cancelConversionTask_conversionTaskId :: Lens' CancelConversionTask Text Source #
The ID of the conversion task.
Destructuring the Response
data CancelConversionTaskResponse Source #
See: newCancelConversionTaskResponse
smart constructor.
Instances
newCancelConversionTaskResponse :: CancelConversionTaskResponse Source #
Create a value of CancelConversionTaskResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.