Skip to content

list_action_executions async

list_action_executions(
    pipeline_name: PipelineName,
    *,
    config_overrides: Optional[AsyncCodePipelineClientConfig] = None,
    filter: Optional[ActionExecutionFilter] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListActionExecutionsOutput

Lists the action executions that have occurred in a pipeline.

Parameters:

  • pipeline_name (PipelineName) –

    The name of the pipeline for which you want to list action execution history.

  • filter (Optional[ActionExecutionFilter], default: None ) –

    Input information used to filter action execution history.

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value. Action execution history is retained for up to 12 months, based on action execution start times. Default value is 100.

  • next_token (Optional[NextToken], default: None ) –

    The token that was returned from the previous ListActionExecutions call, which can be used to return the next set of action executions in the list.

Raises:

Source code in docs_src/capo_codepipeline/_services/async_code_pipeline.py
async def list_action_executions(
    self,
    pipeline_name: "capo_codepipeline.types.pipeline_name.PipelineName",
    *,
    config_overrides: Optional[AsyncCodePipelineClientConfig] = None,
    filter: Optional[
        "capo_codepipeline.types.action_execution_filter.ActionExecutionFilter"
    ] = None,
    max_results: Optional["capo_codepipeline.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_codepipeline.types.next_token.NextToken"] = None,
) -> "capo_codepipeline.types.list_action_executions_output.ListActionExecutionsOutput":
    """<p>Lists the action executions that have occurred in a pipeline.</p>

    Args:
        pipeline_name: <p> The name of the pipeline for which you want to list action execution history.</p>
        filter: <p>Input information used to filter action execution history.</p>
        max_results: <p>The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value. Action execution history is retained for up to 12 months, based on action execution start times. Default value is 100. </p>
        next_token: <p>The token that was returned from the previous <code>ListActionExecutions</code> call, which can be used to return the next set of action executions in the list.</p>

    Raises:
        capo_codepipeline.errors.invalid_next_token_exception.InvalidNextTokenException: <p>The next token was specified in an invalid format. Make sure that the next token you provide is the token returned by a previous call.</p>
        capo_codepipeline.errors.pipeline_execution_not_found_exception.PipelineExecutionNotFoundException: <p>The pipeline execution was specified in an invalid format or cannot be found, or an execution ID does not belong to the specified pipeline. </p>
        capo_codepipeline.errors.pipeline_not_found_exception.PipelineNotFoundException: <p>The pipeline was specified in an invalid format or cannot be found.</p>
        capo_codepipeline.errors.validation_exception.ValidationException: <p>The validation was specified in an invalid format.</p>
        capo_codepipeline.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_codepipeline.types.list_action_executions_input.ListActionExecutionsInput]",
    ) -> AsyncOperationResponse[
        "capo_codepipeline.types.list_action_executions_output.ListActionExecutionsOutput"
    ]:
        import capo_codepipeline._operations.code_pipeline_20150709.list_action_executions

        (
            output,
            http_response,
        ) = await capo_codepipeline._operations.code_pipeline_20150709.list_action_executions.async_list_action_executions(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListActionExecutions")
    )
    input_: capo_codepipeline.types.list_action_executions_input.ListActionExecutionsInput = {
        "pipeline_name": pipeline_name
    }
    if filter is not None:
        input_["filter"] = filter
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output