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

*************************
stop_automation_execution
*************************



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

  

  Stop an Automation that is currently running.

  

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


  **Request Syntax**
  ::

    response = client.stop_automation_execution(
        AutomationExecutionId='string',
        Type='Complete'|'Cancel'
    )
    
  :type AutomationExecutionId: string
  :param AutomationExecutionId: **[REQUIRED]** 

    The execution ID of the Automation to stop.

    

  
  :type Type: string
  :param Type: 

    The stop request type. Valid types include the following: Cancel and Complete. The default type is Cancel.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`SSM.Client.exceptions.AutomationExecutionNotFoundException`

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

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

  