:doc:`EC2 <../../ec2>` / Client / cancel_export_task

******************
cancel_export_task
******************



.. py:method:: EC2.Client.cancel_export_task(**kwargs)

  

  Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTask>`_  


  **Request Syntax**
  ::

    response = client.cancel_export_task(
        ExportTaskId='string'
    )
    
  :type ExportTaskId: string
  :param ExportTaskId: **[REQUIRED]** 

    The ID of the export task. This is the ID returned by the ``CreateInstanceExportTask`` and ``ExportImage`` operations.

    

  
  
  :returns: None