Skip to main content

aws_sdk_context/client/
get_agent_context.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 [`GetAgentContext`](crate::operation::get_agent_context::builders::GetAgentContextFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_context_id(impl Into<String>)`](crate::operation::get_agent_context::builders::GetAgentContextFluentBuilder::agent_context_id) / [`set_agent_context_id(Option<String>)`](crate::operation::get_agent_context::builders::GetAgentContextFluentBuilder::set_agent_context_id):<br>required: **true**<br><p>The agent context to return, by its ID or ARN.</p><br>
7    /// - On success, responds with [`GetAgentContextOutput`](crate::operation::get_agent_context::GetAgentContextOutput) with field(s):
8    ///   - [`id(String)`](crate::operation::get_agent_context::GetAgentContextOutput::id): <p>The agent context's opaque ID.</p>
9    ///   - [`arn(String)`](crate::operation::get_agent_context::GetAgentContextOutput::arn): <p>The ARN of the agent context, in the form <code>arn:&lt;partition&gt;:context:&lt;region&gt;:&lt;account-id&gt;:agent-context/&lt;id&gt;</code>.</p>
10    ///   - [`name(String)`](crate::operation::get_agent_context::GetAgentContextOutput::name): <p>The name of the agent context. If you didn't specify a name when you created it, the name is <code>default</code>.</p>
11    ///   - [`description(Option<String>)`](crate::operation::get_agent_context::GetAgentContextOutput::description): <p>A human-readable description, if one was set.</p>
12    ///   - [`status(AgentContextStatus)`](crate::operation::get_agent_context::GetAgentContextOutput::status): <p>The agent context's lifecycle status.</p> <p>Valid values:</p> <ul>  <li>   <p><code>CREATING</code> - The agent context is being created.</p></li>  <li>   <p><code>ACTIVE</code> - The agent context is ready to use.</p></li>  <li>   <p><code>UPDATING</code> - The agent context is being updated.</p></li>  <li>   <p><code>DELETING</code> - The agent context is being deleted.</p></li>  <li>   <p><code>FAILED</code> - The agent context failed.</p></li> </ul>
13    ///   - [`created_at(DateTime)`](crate::operation::get_agent_context::GetAgentContextOutput::created_at): <p>The date and time when the agent context was created.</p>
14    ///   - [`updated_at(DateTime)`](crate::operation::get_agent_context::GetAgentContextOutput::updated_at): <p>When the resource last changed. Equal to <code>createdAt</code> until the first update.</p>
15    ///   - [`connection_mappings(Option<Vec::<ConnectionMapping>>)`](crate::operation::get_agent_context::GetAgentContextOutput::connection_mappings): <p>The agent context's connection mappings.</p>
16    ///   - [`encryption_config(Option<EncryptionConfig>)`](crate::operation::get_agent_context::GetAgentContextOutput::encryption_config): <p>The agent context's encryption settings.</p>
17    ///   - [`trace_analysis_config(Option<TraceAnalysisConfig>)`](crate::operation::get_agent_context::GetAgentContextOutput::trace_analysis_config): <p>The agent context's trace analysis settings.</p>
18    ///   - [`workforce_sign_in_config(Option<WorkforceSignInConfig>)`](crate::operation::get_agent_context::GetAgentContextOutput::workforce_sign_in_config): <p>How your employees sign in to this agent context's MCP server through your identity provider (workforce sign-in). <code>status</code> reads ENABLED while a sign-in URL is stored, DISABLED otherwise.</p>
19    ///   - [`entity_resolution_config(Option<EntityResolutionConfig>)`](crate::operation::get_agent_context::GetAgentContextOutput::entity_resolution_config): <p>The agent context's entity resolution settings. Populated on every response path that returns the resource.</p>
20    ///   - [`mcp_server_url(Option<String>)`](crate::operation::get_agent_context::GetAgentContextOutput::mcp_server_url): <p>The Model Context Protocol (MCP) server URL to give your employees while workforce sign-in is <code>ENABLED</code>. The URL is the agent context's MCP endpoint, with <code>workforceSignInConfig.signInUrl</code> as its <code>login_hint</code> query parameter and the ID that AWS Context assigns to that sign-in URL as its <code>tenantId</code> query parameter. Absent while workforce sign-in is <code>DISABLED</code>.</p>
21    ///   - [`trusted_identity_sources(Option<Vec::<TrustedIdentitySource>>)`](crate::operation::get_agent_context::GetAgentContextOutput::trusted_identity_sources): <p>Identity sources this agent context trusts in addition to its owner's account. Absent or empty: only the owner's account is trusted.</p>
22    /// - On failure, responds with [`SdkError<GetAgentContextError>`](crate::operation::get_agent_context::GetAgentContextError)
23    pub fn get_agent_context(&self) -> crate::operation::get_agent_context::builders::GetAgentContextFluentBuilder {
24        crate::operation::get_agent_context::builders::GetAgentContextFluentBuilder::new(self.handle.clone())
25    }
26}