amazonka-ec2-1.3.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




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 Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2 in the Amazon Elastic Compute Cloud User Guide.

See: AWS API Reference for CancelConversionTask.


Creating a Request

cancelConversionTask Source

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:

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.