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

*******************************************
describe_environment_managed_action_history
*******************************************



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

  

  Lists an environment's completed and failed managed actions.

  

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


  **Request Syntax**
  ::

    response = client.describe_environment_managed_action_history(
        EnvironmentId='string',
        EnvironmentName='string',
        NextToken='string',
        MaxItems=123
    )
    
  :type EnvironmentId: string
  :param EnvironmentId: 

    The environment ID of the target environment.

    

  
  :type EnvironmentName: string
  :param EnvironmentName: 

    The name of the target environment.

    

  
  :type NextToken: string
  :param NextToken: 

    The pagination token returned by a previous request.

    

  
  :type MaxItems: integer
  :param MaxItems: 

    The maximum number of items to return for a single request.

    

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

    
    ::

      {
          'ManagedActionHistoryItems': [
              {
                  'ActionId': 'string',
                  'ActionType': 'InstanceRefresh'|'PlatformUpdate'|'Unknown',
                  'ActionDescription': 'string',
                  'FailureType': 'UpdateCancelled'|'CancellationFailed'|'RollbackFailed'|'RollbackSuccessful'|'InternalFailure'|'InvalidEnvironmentState'|'PermissionsError',
                  'Status': 'Completed'|'Failed'|'Unknown',
                  'FailureDescription': 'string',
                  'ExecutedTime': datetime(2015, 1, 1),
                  'FinishedTime': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      A result message containing a list of completed and failed managed actions.

      
      

      - **ManagedActionHistoryItems** *(list) --* 

        A list of completed and failed managed actions.

        
        

        - *(dict) --* 

          The record of a completed or failed managed action.

          
          

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

            A unique identifier for the managed action.

            
          

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

            The type of the managed action.

            
          

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

            A description of the managed action.

            
          

          - **FailureType** *(string) --* 

            If the action failed, the type of failure.

            
          

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

            The status of the action.

            
          

          - **FailureDescription** *(string) --* 

            If the action failed, a description of the failure.

            
          

          - **ExecutedTime** *(datetime) --* 

            The date and time that the action started executing.

            
          

          - **FinishedTime** *(datetime) --* 

            The date and time that the action finished executing.

            
      
    
      

      - **NextToken** *(string) --* 

        A pagination token that you pass to  DescribeEnvironmentManagedActionHistory to get the next page of results.

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

  