:doc:`SSM <../../ssm>` / Client / deregister_task_from_maintenance_window

***************************************
deregister_task_from_maintenance_window
***************************************



.. py:method:: SSM.Client.deregister_task_from_maintenance_window(**kwargs)

  

  Removes a task from a maintenance window.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterTaskFromMaintenanceWindow>`_  


  **Request Syntax**
  ::

    response = client.deregister_task_from_maintenance_window(
        WindowId='string',
        WindowTaskId='string'
    )
    
  :type WindowId: string
  :param WindowId: **[REQUIRED]** 

    The ID of the maintenance window the task should be removed from.

    

  
  :type WindowTaskId: string
  :param WindowTaskId: **[REQUIRED]** 

    The ID of the task to remove from the maintenance window.

    

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

    
    ::

      {
          'WindowId': 'string',
          'WindowTaskId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **WindowId** *(string) --* 

        The ID of the maintenance window the task was removed from.

        
      

      - **WindowTaskId** *(string) --* 

        The ID of the task removed from the maintenance window.

        
  
  **Exceptions**
  
  *   :py:class:`SSM.Client.exceptions.DoesNotExistException`

  
  *   :py:class:`SSM.Client.exceptions.InternalServerError`

  