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

********************************
apply_environment_managed_action
********************************



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

  

  Applies a scheduled managed action immediately. A managed action can be applied only if its status is ``Scheduled``. Get the status and action ID of a managed action with  DescribeEnvironmentManagedActions.

  

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


  **Request Syntax**
  ::

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

    The name of the target environment.

    

  
  :type EnvironmentId: string
  :param EnvironmentId: 

    The environment ID of the target environment.

    

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

    The action ID of the scheduled managed action to execute.

    

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

    
    ::

      {
          'ActionId': 'string',
          'ActionDescription': 'string',
          'ActionType': 'InstanceRefresh'|'PlatformUpdate'|'Unknown',
          'Status': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The result message containing information about the managed action.

      
      

      - **ActionId** *(string) --* 

        The action ID of the managed action.

        
      

      - **ActionDescription** *(string) --* 

        A description of the managed action.

        
      

      - **ActionType** *(string) --* 

        The type of managed action.

        
      

      - **Status** *(string) --* 

        The status of the managed action.

        
  
  **Exceptions**
  
  *   :py:class:`ElasticBeanstalk.Client.exceptions.ElasticBeanstalkServiceException`

  
  *   :py:class:`ElasticBeanstalk.Client.exceptions.ManagedActionInvalidStateException`

  