aws_sdk_bedrockagent/client/
get_agent.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 [`GetAgent`](crate::operation::get_agent::builders::GetAgentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_id(impl Into<String>)`](crate::operation::get_agent::builders::GetAgentFluentBuilder::agent_id) / [`set_agent_id(Option<String>)`](crate::operation::get_agent::builders::GetAgentFluentBuilder::set_agent_id):<br>required: **true**<br><p>The unique identifier of the agent.</p><br>
7    /// - On success, responds with [`GetAgentOutput`](crate::operation::get_agent::GetAgentOutput) with field(s):
8    ///   - [`agent(Option<Agent>)`](crate::operation::get_agent::GetAgentOutput::agent): <p>Contains details about the agent.</p>
9    /// - On failure, responds with [`SdkError<GetAgentError>`](crate::operation::get_agent::GetAgentError)
10    pub fn get_agent(&self) -> crate::operation::get_agent::builders::GetAgentFluentBuilder {
11        crate::operation::get_agent::builders::GetAgentFluentBuilder::new(self.handle.clone())
12    }
13}