:doc:`ElasticBeanstalk <../../elasticbeanstalk>` / Client / abort_environment_update

************************
abort_environment_update
************************



.. py:method:: ElasticBeanstalk.Client.abort_environment_update(**kwargs)

  

  Cancels in-progress environment configuration update or application version deployment.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/AbortEnvironmentUpdate>`_  


  **Request Syntax**
  ::

    response = client.abort_environment_update(
        EnvironmentId='string',
        EnvironmentName='string'
    )
    
  :type EnvironmentId: string
  :param EnvironmentId: 

    This specifies the ID of the environment with the in-progress update that you want to cancel.

    

  
  :type EnvironmentName: string
  :param EnvironmentName: 

    This specifies the name of the environment with the in-progress update that you want to cancel.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`ElasticBeanstalk.Client.exceptions.InsufficientPrivilegesException`

  

  **Examples**

  The following code aborts a running application version deployment for an environment named my-env:
  ::

    response = client.abort_environment_update(
        EnvironmentName='my-env',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  