aws_sdk_bedrockagentcore/client/get_recommendation.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 [`GetRecommendation`](crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`recommendation_id(impl Into<String>)`](crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder::recommendation_id) / [`set_recommendation_id(Option<String>)`](crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder::set_recommendation_id):<br>required: **true**<br><p>The unique identifier of the recommendation to retrieve.</p><br>
7 /// - On success, responds with [`GetRecommendationOutput`](crate::operation::get_recommendation::GetRecommendationOutput) with field(s):
8 /// - [`recommendation_id(String)`](crate::operation::get_recommendation::GetRecommendationOutput::recommendation_id): <p>The unique identifier of the recommendation.</p>
9 /// - [`recommendation_arn(String)`](crate::operation::get_recommendation::GetRecommendationOutput::recommendation_arn): <p>The Amazon Resource Name (ARN) of the recommendation.</p>
10 /// - [`name(String)`](crate::operation::get_recommendation::GetRecommendationOutput::name): <p>The name of the recommendation.</p>
11 /// - [`description(Option<String>)`](crate::operation::get_recommendation::GetRecommendationOutput::description): <p>The description of the recommendation.</p>
12 /// - [`r#type(RecommendationType)`](crate::operation::get_recommendation::GetRecommendationOutput::type): <p>The type of recommendation.</p>
13 /// - [`recommendation_config(Option<RecommendationConfig>)`](crate::operation::get_recommendation::GetRecommendationOutput::recommendation_config): <p>The configuration for the recommendation.</p>
14 /// - [`status(RecommendationStatus)`](crate::operation::get_recommendation::GetRecommendationOutput::status): <p>The current status of the recommendation.</p>
15 /// - [`created_at(DateTime)`](crate::operation::get_recommendation::GetRecommendationOutput::created_at): <p>The timestamp when the recommendation was created.</p>
16 /// - [`updated_at(DateTime)`](crate::operation::get_recommendation::GetRecommendationOutput::updated_at): <p>The timestamp when the recommendation was last updated.</p>
17 /// - [`recommendation_result(Option<RecommendationResult>)`](crate::operation::get_recommendation::GetRecommendationOutput::recommendation_result): <p>The result of the recommendation, containing the optimized system prompt or tool descriptions. Only present when the recommendation status is <code>COMPLETED</code>.</p>
18 /// - [`kms_key_arn(Option<String>)`](crate::operation::get_recommendation::GetRecommendationOutput::kms_key_arn): <p>The ARN of the KMS key used to encrypt recommendation data.</p>
19 /// - On failure, responds with [`SdkError<GetRecommendationError>`](crate::operation::get_recommendation::GetRecommendationError)
20 pub fn get_recommendation(&self) -> crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder {
21 crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder::new(self.handle.clone())
22 }
23}