Skip to content

list_automated_reasoning_policy_build_workflows

list_automated_reasoning_policy_build_workflows(
    policy_arn: AutomatedReasoningPolicyArn,
    *,
    config_overrides: Optional[BedrockClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListAutomatedReasoningPolicyBuildWorkflowsResponse

Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts.

Parameters:

  • policy_arn (AutomatedReasoningPolicyArn) –

    The Amazon Resource Name (ARN) of the Automated Reasoning policy whose build workflows you want to list.

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

    A pagination token from a previous request to continue listing build workflows from where the previous request left off.

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

    The maximum number of build workflows to return in a single response. Valid range is 1-100.

Raises:

Source code in docs_src/capo_bedrock/_services/bedrock.py
def list_automated_reasoning_policy_build_workflows(
    self,
    policy_arn: "capo_bedrock.types.automated_reasoning_policy_arn.AutomatedReasoningPolicyArn",
    *,
    config_overrides: Optional[BedrockClientConfig] = None,
    next_token: Optional[
        "capo_bedrock.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional["capo_bedrock.types.max_results.MaxResults"] = None,
) -> "capo_bedrock.types.list_automated_reasoning_policy_build_workflows_response.ListAutomatedReasoningPolicyBuildWorkflowsResponse":
    """<p>Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts.</p>

    Args:
        policy_arn: <p>The Amazon Resource Name (ARN) of the Automated Reasoning policy whose build workflows you want to list.</p>
        next_token: <p>A pagination token from a previous request to continue listing build workflows from where the previous request left off.</p>
        max_results: <p>The maximum number of build workflows to return in a single response. Valid range is 1-100.</p>

    Raises:
        capo_bedrock.errors.access_denied_exception.AccessDeniedException: <p>The request is denied because of missing access permissions.</p>
        capo_bedrock.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Retry your request.</p>
        capo_bedrock.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
        capo_bedrock.errors.throttling_exception.ThrottlingException: <p>The number of requests exceeds the limit. Resubmit your request later.</p>
        capo_bedrock.errors.validation_exception.ValidationException: <p>Input validation failed. Check your request parameters and retry the request.</p>
        capo_bedrock.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_bedrock.types.list_automated_reasoning_policy_build_workflows_request.ListAutomatedReasoningPolicyBuildWorkflowsRequest]",
    ) -> OperationResponse[
        "capo_bedrock.types.list_automated_reasoning_policy_build_workflows_response.ListAutomatedReasoningPolicyBuildWorkflowsResponse"
    ]:
        import capo_bedrock._operations.amazon_bedrock_control_plane_service.list_automated_reasoning_policy_build_workflows

        output, http_response = (
            capo_bedrock._operations.amazon_bedrock_control_plane_service.list_automated_reasoning_policy_build_workflows.list_automated_reasoning_policy_build_workflows(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("ListAutomatedReasoningPolicyBuildWorkflows"),
    )
    input_: capo_bedrock.types.list_automated_reasoning_policy_build_workflows_request.ListAutomatedReasoningPolicyBuildWorkflowsRequest = {
        "policy_arn": policy_arn
    }
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

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