aws_sdk_bedrockagentcore/client/
get_agent_card.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 [`GetAgentCard`](crate::operation::get_agent_card::builders::GetAgentCardFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`runtime_session_id(impl Into<String>)`](crate::operation::get_agent_card::builders::GetAgentCardFluentBuilder::runtime_session_id) / [`set_runtime_session_id(Option<String>)`](crate::operation::get_agent_card::builders::GetAgentCardFluentBuilder::set_runtime_session_id):<br>required: **false**<br><p>The session ID that the AgentCore Runtime agent is using.</p><br>
7    ///   - [`agent_runtime_arn(impl Into<String>)`](crate::operation::get_agent_card::builders::GetAgentCardFluentBuilder::agent_runtime_arn) / [`set_agent_runtime_arn(Option<String>)`](crate::operation::get_agent_card::builders::GetAgentCardFluentBuilder::set_agent_runtime_arn):<br>required: **true**<br><p>The ARN of the AgentCore Runtime agent for which you want to get the A2A agent card.</p><br>
8    ///   - [`qualifier(impl Into<String>)`](crate::operation::get_agent_card::builders::GetAgentCardFluentBuilder::qualifier) / [`set_qualifier(Option<String>)`](crate::operation::get_agent_card::builders::GetAgentCardFluentBuilder::set_qualifier):<br>required: **false**<br><p>Optional qualifier to specify an agent alias, such as <code>prod</code>code&gt; or <code>dev</code>. If you don't provide a value, the DEFAULT alias is used.</p><br>
9    /// - On success, responds with [`GetAgentCardOutput`](crate::operation::get_agent_card::GetAgentCardOutput) with field(s):
10    ///   - [`runtime_session_id(Option<String>)`](crate::operation::get_agent_card::GetAgentCardOutput::runtime_session_id): <p>The ID of the session associated with the AgentCore Runtime agent.</p>
11    ///   - [`agent_card(Document)`](crate::operation::get_agent_card::GetAgentCardOutput::agent_card): <p>An agent card document that contains metadata and capabilities for an AgentCore Runtime agent.</p>
12    ///   - [`status_code(Option<i32>)`](crate::operation::get_agent_card::GetAgentCardOutput::status_code): <p>The status code of the request.</p>
13    /// - On failure, responds with [`SdkError<GetAgentCardError>`](crate::operation::get_agent_card::GetAgentCardError)
14    pub fn get_agent_card(&self) -> crate::operation::get_agent_card::builders::GetAgentCardFluentBuilder {
15        crate::operation::get_agent_card::builders::GetAgentCardFluentBuilder::new(self.handle.clone())
16    }
17}