Skip to content

describe_environment_managed_action_history

describe_environment_managed_action_history(
    *,
    config_overrides: Optional[ElasticBeanstalkClientConfig] = None,
    environment_id: Optional[EnvironmentId] = None,
    environment_name: Optional[EnvironmentName] = None,
    next_token: Optional[String] = None,
    max_items: Optional[ManagedActionHistoryMaxItems] = None,
) -> DescribeEnvironmentManagedActionHistoryResult

Lists an environment's completed and failed managed actions.

Parameters:

Raises:

Source code in docs_src/capo_elastic_beanstalk/_services/elastic_beanstalk.py
def describe_environment_managed_action_history(
    self,
    *,
    config_overrides: Optional[ElasticBeanstalkClientConfig] = None,
    environment_id: Optional[
        "capo_elastic_beanstalk.types.environment_id.EnvironmentId"
    ] = None,
    environment_name: Optional[
        "capo_elastic_beanstalk.types.environment_name.EnvironmentName"
    ] = None,
    next_token: Optional["capo_elastic_beanstalk.types.string.String"] = None,
    max_items: Optional[
        "capo_elastic_beanstalk.types.managed_action_history_max_items.ManagedActionHistoryMaxItems"
    ] = None,
) -> "capo_elastic_beanstalk.types.describe_environment_managed_action_history_result.DescribeEnvironmentManagedActionHistoryResult":
    """<p>Lists an environment's completed and failed managed actions.</p>

    Args:
        environment_id: <p>The environment ID of the target environment.</p>
        environment_name: <p>The name of the target environment.</p>
        next_token: <p>The pagination token returned by a previous request.</p>
        max_items: <p>The maximum number of items to return for a single request.</p>

    Raises:
        capo_elastic_beanstalk.errors.elastic_beanstalk_service_exception.ElasticBeanstalkServiceException: <p>A generic service exception has occurred.</p>
        capo_elastic_beanstalk.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_elastic_beanstalk.types.describe_environment_managed_action_history_request.DescribeEnvironmentManagedActionHistoryRequest]",
    ) -> OperationResponse[
        "capo_elastic_beanstalk.types.describe_environment_managed_action_history_result.DescribeEnvironmentManagedActionHistoryResult"
    ]:
        import capo_elastic_beanstalk._operations.aws_elastic_beanstalk_service.describe_environment_managed_action_history

        output, http_response = (
            capo_elastic_beanstalk._operations.aws_elastic_beanstalk_service.describe_environment_managed_action_history.describe_environment_managed_action_history(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("DescribeEnvironmentManagedActionHistory"),
    )
    input_: capo_elastic_beanstalk.types.describe_environment_managed_action_history_request.DescribeEnvironmentManagedActionHistoryRequest = {}
    if environment_id is not None:
        input_["environment_id"] = environment_id
    if environment_name is not None:
        input_["environment_name"] = environment_name
    if next_token is not None:
        input_["next_token"] = next_token
    if max_items is not None:
        input_["max_items"] = max_items

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output