aws_sdk_bedrock/client/
create_automated_reasoning_policy.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 [`CreateAutomatedReasoningPolicy`](crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder::set_name):<br>required: **true**<br><p>A unique name for the Automated Reasoning policy. The name must be between 1 and 63 characters and can contain letters, numbers, hyphens, and underscores.</p><br>
7    ///   - [`description(impl Into<String>)`](crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder::set_description):<br>required: **false**<br><p>A description of the Automated Reasoning policy. Use this to provide context about the policy's purpose and the types of validations it performs.</p><br>
8    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder::set_client_request_token):<br>required: **false**<br><p>A unique, case-sensitive identifier to ensure that the operation completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request but doesn't return an error.</p><br>
9    ///   - [`policy_definition(AutomatedReasoningPolicyDefinition)`](crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder::policy_definition) / [`set_policy_definition(Option<AutomatedReasoningPolicyDefinition>)`](crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder::set_policy_definition):<br>required: **false**<br><p>The policy definition that contains the formal logic rules, variables, and custom variable types used to validate foundation model responses in your application.</p><br>
10    ///   - [`tags(Tag)`](crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder::set_tags):<br>required: **false**<br><p>A list of tags to associate with the Automated Reasoning policy. Tags help you organize and manage your policies.</p><br>
11    /// - On success, responds with [`CreateAutomatedReasoningPolicyOutput`](crate::operation::create_automated_reasoning_policy::CreateAutomatedReasoningPolicyOutput) with field(s):
12    ///   - [`policy_arn(String)`](crate::operation::create_automated_reasoning_policy::CreateAutomatedReasoningPolicyOutput::policy_arn): <p>The Amazon Resource Name (ARN) of the Automated Reasoning policy that you created.</p>
13    ///   - [`version(String)`](crate::operation::create_automated_reasoning_policy::CreateAutomatedReasoningPolicyOutput::version): <p>The version number of the newly created Automated Reasoning policy. The initial version is always DRAFT.</p>
14    ///   - [`name(String)`](crate::operation::create_automated_reasoning_policy::CreateAutomatedReasoningPolicyOutput::name): <p>The name of the Automated Reasoning policy.</p>
15    ///   - [`description(Option<String>)`](crate::operation::create_automated_reasoning_policy::CreateAutomatedReasoningPolicyOutput::description): <p>The description of the Automated Reasoning policy.</p>
16    ///   - [`definition_hash(Option<String>)`](crate::operation::create_automated_reasoning_policy::CreateAutomatedReasoningPolicyOutput::definition_hash): <p>The hash of the policy definition. This is used as a concurrency token for creating policy versions that you can use in your application.</p>
17    ///   - [`created_at(DateTime)`](crate::operation::create_automated_reasoning_policy::CreateAutomatedReasoningPolicyOutput::created_at): <p>The timestamp when the policy was created.</p>
18    ///   - [`updated_at(DateTime)`](crate::operation::create_automated_reasoning_policy::CreateAutomatedReasoningPolicyOutput::updated_at): <p>The timestamp when the policy was last updated.</p>
19    /// - On failure, responds with [`SdkError<CreateAutomatedReasoningPolicyError>`](crate::operation::create_automated_reasoning_policy::CreateAutomatedReasoningPolicyError)
20    pub fn create_automated_reasoning_policy(
21        &self,
22    ) -> crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder {
23        crate::operation::create_automated_reasoning_policy::builders::CreateAutomatedReasoningPolicyFluentBuilder::new(self.handle.clone())
24    }
25}