aws_sdk_bedrock/client/get_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 [`GetAutomatedReasoningPolicy`](crate::operation::get_automated_reasoning_policy::builders::GetAutomatedReasoningPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`policy_arn(impl Into<String>)`](crate::operation::get_automated_reasoning_policy::builders::GetAutomatedReasoningPolicyFluentBuilder::policy_arn) / [`set_policy_arn(Option<String>)`](crate::operation::get_automated_reasoning_policy::builders::GetAutomatedReasoningPolicyFluentBuilder::set_policy_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the Automated Reasoning policy to retrieve. Can be either the unversioned ARN for the draft policy or an ARN for a specific policy version.</p><br>
7 /// - On success, responds with [`GetAutomatedReasoningPolicyOutput`](crate::operation::get_automated_reasoning_policy::GetAutomatedReasoningPolicyOutput) with field(s):
8 /// - [`policy_arn(String)`](crate::operation::get_automated_reasoning_policy::GetAutomatedReasoningPolicyOutput::policy_arn): <p>The Amazon Resource Name (ARN) of the policy.</p>
9 /// - [`name(String)`](crate::operation::get_automated_reasoning_policy::GetAutomatedReasoningPolicyOutput::name): <p>The name of the policy.</p>
10 /// - [`version(String)`](crate::operation::get_automated_reasoning_policy::GetAutomatedReasoningPolicyOutput::version): <p>The version of the policy.</p>
11 /// - [`policy_id(String)`](crate::operation::get_automated_reasoning_policy::GetAutomatedReasoningPolicyOutput::policy_id): <p>The unique identifier of the policy.</p>
12 /// - [`description(Option<String>)`](crate::operation::get_automated_reasoning_policy::GetAutomatedReasoningPolicyOutput::description): <p>The description of the policy.</p>
13 /// - [`definition_hash(String)`](crate::operation::get_automated_reasoning_policy::GetAutomatedReasoningPolicyOutput::definition_hash): <p>The hash of the policy definition used as a concurrency token.</p>
14 /// - [`created_at(Option<DateTime>)`](crate::operation::get_automated_reasoning_policy::GetAutomatedReasoningPolicyOutput::created_at): <p>The timestamp when the policy was created.</p>
15 /// - [`updated_at(DateTime)`](crate::operation::get_automated_reasoning_policy::GetAutomatedReasoningPolicyOutput::updated_at): <p>The timestamp when the policy was last updated.</p>
16 /// - On failure, responds with [`SdkError<GetAutomatedReasoningPolicyError>`](crate::operation::get_automated_reasoning_policy::GetAutomatedReasoningPolicyError)
17 pub fn get_automated_reasoning_policy(
18 &self,
19 ) -> crate::operation::get_automated_reasoning_policy::builders::GetAutomatedReasoningPolicyFluentBuilder {
20 crate::operation::get_automated_reasoning_policy::builders::GetAutomatedReasoningPolicyFluentBuilder::new(self.handle.clone())
21 }
22}