AWS SDK for .NET Documentation
CancelConversionTask Method (request)
AmazonAmazon.EC2AmazonEC2ClientCancelConversionTask(CancelConversionTaskRequest) Did this page help you?   Yes   No    Tell us about it...
Cancels an active conversion task. The task can be the import of an instance or volume.
Declaration Syntax
C#
public CancelConversionTaskResponse CancelConversionTask(
	CancelConversionTaskRequest request
)
Parameters
request (CancelConversionTaskRequest)
Cancel Conversion Task request
Return Value
Cancel Conversion Task Response from the service
Remarks
The command 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.
Exceptions

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)