aws_sdk_bedrock/client/
start_automated_reasoning_policy_test_workflow.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`StartAutomatedReasoningPolicyTestWorkflow`](crate::operation::start_automated_reasoning_policy_test_workflow::builders::StartAutomatedReasoningPolicyTestWorkflowFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`policy_arn(impl Into<String>)`](crate::operation::start_automated_reasoning_policy_test_workflow::builders::StartAutomatedReasoningPolicyTestWorkflowFluentBuilder::policy_arn) / [`set_policy_arn(Option<String>)`](crate::operation::start_automated_reasoning_policy_test_workflow::builders::StartAutomatedReasoningPolicyTestWorkflowFluentBuilder::set_policy_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the Automated Reasoning policy to test.</p><br>
7    ///   - [`build_workflow_id(impl Into<String>)`](crate::operation::start_automated_reasoning_policy_test_workflow::builders::StartAutomatedReasoningPolicyTestWorkflowFluentBuilder::build_workflow_id) / [`set_build_workflow_id(Option<String>)`](crate::operation::start_automated_reasoning_policy_test_workflow::builders::StartAutomatedReasoningPolicyTestWorkflowFluentBuilder::set_build_workflow_id):<br>required: **true**<br><p>The build workflow identifier. The build workflow must show a <code>COMPLETED</code> status before running tests.</p><br>
8    ///   - [`test_case_ids(impl Into<String>)`](crate::operation::start_automated_reasoning_policy_test_workflow::builders::StartAutomatedReasoningPolicyTestWorkflowFluentBuilder::test_case_ids) / [`set_test_case_ids(Option<Vec::<String>>)`](crate::operation::start_automated_reasoning_policy_test_workflow::builders::StartAutomatedReasoningPolicyTestWorkflowFluentBuilder::set_test_case_ids):<br>required: **false**<br><p>The list of test identifiers to run. If not provided, all tests for the policy are run.</p><br>
9    ///   - [`client_request_token(impl Into<String>)`](crate::operation::start_automated_reasoning_policy_test_workflow::builders::StartAutomatedReasoningPolicyTestWorkflowFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::start_automated_reasoning_policy_test_workflow::builders::StartAutomatedReasoningPolicyTestWorkflowFluentBuilder::set_client_request_token):<br>required: **false**<br><p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but doesn't return an error.</p><br>
10    /// - On success, responds with [`StartAutomatedReasoningPolicyTestWorkflowOutput`](crate::operation::start_automated_reasoning_policy_test_workflow::StartAutomatedReasoningPolicyTestWorkflowOutput) with field(s):
11    ///   - [`policy_arn(String)`](crate::operation::start_automated_reasoning_policy_test_workflow::StartAutomatedReasoningPolicyTestWorkflowOutput::policy_arn): <p>The Amazon Resource Name (ARN) of the policy for which the test workflow was started.</p>
12    /// - On failure, responds with [`SdkError<StartAutomatedReasoningPolicyTestWorkflowError>`](crate::operation::start_automated_reasoning_policy_test_workflow::StartAutomatedReasoningPolicyTestWorkflowError)
13    pub fn start_automated_reasoning_policy_test_workflow(
14        &self,
15    ) -> crate::operation::start_automated_reasoning_policy_test_workflow::builders::StartAutomatedReasoningPolicyTestWorkflowFluentBuilder {
16        crate::operation::start_automated_reasoning_policy_test_workflow::builders::StartAutomatedReasoningPolicyTestWorkflowFluentBuilder::new(
17            self.handle.clone(),
18        )
19    }
20}