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

***********************************
cancel_maintenance_window_execution
***********************************



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

  

  Stops a maintenance window execution that is already in progress and cancels any tasks in the window that haven't already starting running. Tasks already in progress will continue to completion.

  

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


  **Request Syntax**
  ::

    response = client.cancel_maintenance_window_execution(
        WindowExecutionId='string'
    )
    
  :type WindowExecutionId: string
  :param WindowExecutionId: **[REQUIRED]** 

    The ID of the maintenance window execution to stop.

    

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

    
    ::

      {
          'WindowExecutionId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **WindowExecutionId** *(string) --* 

        The ID of the maintenance window execution that has been stopped.

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

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

  