Skip to content

list_deploy_action_execution_targets

list_deploy_action_execution_targets(
    action_execution_id: ActionExecutionId,
    *,
    config_overrides: Optional[CodePipelineClientConfig] = None,
    pipeline_name: Optional[PipelineName] = None,
    filters: Optional[TargetFilterList] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListDeployActionExecutionTargetsOutput

Lists the targets for the deploy action.

Parameters:

  • pipeline_name (Optional[PipelineName], default: None ) –

    The name of the pipeline with the deploy action.

  • action_execution_id (ActionExecutionId) –

    The execution ID for the deploy action.

  • filters (Optional[TargetFilterList], default: None ) –

    Filters the targets for a specified deploy action.

  • 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.

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

    An identifier that was returned from the previous list action types call, which can be used to return the next set of action types in the list.

Raises:

Source code in docs_src/capo_codepipeline/_services/code_pipeline.py
def list_deploy_action_execution_targets(
    self,
    action_execution_id: "capo_codepipeline.types.action_execution_id.ActionExecutionId",
    *,
    config_overrides: Optional[CodePipelineClientConfig] = None,
    pipeline_name: Optional[
        "capo_codepipeline.types.pipeline_name.PipelineName"
    ] = None,
    filters: Optional[
        "capo_codepipeline.types.target_filter_list.TargetFilterList"
    ] = 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_deploy_action_execution_targets_output.ListDeployActionExecutionTargetsOutput":
    """<p>Lists the targets for the deploy action.</p>

    Args:
        pipeline_name: <p>The name of the pipeline with the deploy action.</p>
        action_execution_id: <p>The execution ID for the deploy action.</p>
        filters: <p>Filters the targets for a specified deploy action.</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.</p>
        next_token: <p>An identifier that was returned from the previous list action types call, which can be used to return the next set of action types in the list.</p>

    Raises:
        capo_codepipeline.errors.action_execution_not_found_exception.ActionExecutionNotFoundException: <p>The action execution was not found.</p>
        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_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.
    """

    def _handler(
        req: "OperationRequest[capo_codepipeline.types.list_deploy_action_execution_targets_input.ListDeployActionExecutionTargetsInput]",
    ) -> OperationResponse[
        "capo_codepipeline.types.list_deploy_action_execution_targets_output.ListDeployActionExecutionTargetsOutput"
    ]:
        import capo_codepipeline._operations.code_pipeline_20150709.list_deploy_action_execution_targets

        output, http_response = (
            capo_codepipeline._operations.code_pipeline_20150709.list_deploy_action_execution_targets.list_deploy_action_execution_targets(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListDeployActionExecutionTargets")
    )
    input_: capo_codepipeline.types.list_deploy_action_execution_targets_input.ListDeployActionExecutionTargetsInput = {
        "action_execution_id": action_execution_id
    }
    if pipeline_name is not None:
        input_["pipeline_name"] = pipeline_name
    if filters is not None:
        input_["filters"] = filters
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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