def describe_environment_managed_action_history(EnvironmentId=None,
    EnvironmentName=None, NextToken=None, MaxItems=None):
    """
    Lists an environment's completed and failed managed actions.
    See also: AWS API Documentation
    
    
    :example: 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
    :return: {
        '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'
    }
    
    
    """
    pass
