:doc:`CloudWatchLogs <../../logs>` / Client / cancel_export_task

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



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

  

  Cancels the specified export task.

   

  The task must be in the ``PENDING`` or ``RUNNING`` state.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CancelExportTask>`_  


  **Request Syntax**
  ::

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

    The ID of the export task.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`CloudWatchLogs.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`CloudWatchLogs.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`CloudWatchLogs.Client.exceptions.InvalidOperationException`

  
  *   :py:class:`CloudWatchLogs.Client.exceptions.ServiceUnavailableException`

  