Skip to content

/AWS1/CL_EC2=>CANCELCONVERSIONTASK()

About CancelConversionTask

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.

Method Signature

IMPORTING

Required arguments:

IV_CONVERSIONTASKID TYPE /AWS1/EC2CONVERSIONTASKID /AWS1/EC2CONVERSIONTASKID

The ID of the conversion task.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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.

IV_REASONMESSAGE TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The reason for canceling the conversion task.