:doc:`IoT <../../iot>` / Client / cancel_detect_mitigation_actions_task

*************************************
cancel_detect_mitigation_actions_task
*************************************



.. py:method:: IoT.Client.cancel_detect_mitigation_actions_task(**kwargs)

  

  Cancels a Device Defender ML Detect mitigation action.

   

  Requires permission to access the `CancelDetectMitigationActionsTask <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/CancelDetectMitigationActionsTask>`_  


  **Request Syntax**
  ::

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

    The unique identifier of the task.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`IoT.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoT.Client.exceptions.ThrottlingException`

  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

  