Skip to main content

aws_sdk_context/client/
update_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 [`UpdateAgentContext`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_context_id(impl Into<String>)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::agent_context_id) / [`set_agent_context_id(Option<String>)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::set_agent_context_id):<br>required: **true**<br><p>The agent context to update, by its ID or ARN.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::set_name):<br>required: **false**<br><p>The new name. If you omit it, the name is unchanged.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::set_description):<br>required: **false**<br><p>The new description. Absent leaves the description unchanged. An empty string removes it.</p><br>
9    ///   - [`connection_mappings(ConnectionMapping)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::connection_mappings) / [`set_connection_mappings(Option<Vec::<ConnectionMapping>>)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::set_connection_mappings):<br>required: **false**<br><p>The connection mappings for this agent context, 0–20 entries. If you provide a list, it replaces the stored set: AWS Context removes entries that are not in the list, adds new entries, and overwrites retained entries with exactly the values that you provide, without merging fields. An empty list removes all connection links. If you omit this member, the existing links are unchanged.</p> <p>Each newly referenced connection must exist, be owned by your account, and be <code>ACTIVE</code>. Order is significant. When several connections reach the same AWS Glue Data Catalog table, AWS Context tries the connection mapped first, with its own access, and then the next.</p><br>
10    ///   - [`trace_analysis_config(TraceAnalysisConfig)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::trace_analysis_config) / [`set_trace_analysis_config(Option<TraceAnalysisConfig>)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::set_trace_analysis_config):<br>required: **false**<br><p>Merged into the agent context's trace analysis settings: an absent member leaves its stored value unchanged. <code>status</code> ENABLED requires a role, supplied here or already on the agent context. A role supplied without <code>status</code> requires the agent context's <code>status</code> to read ENABLED.</p><br>
11    ///   - [`workforce_sign_in_config(WorkforceSignInConfig)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::workforce_sign_in_config) / [`set_workforce_sign_in_config(Option<WorkforceSignInConfig>)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::set_workforce_sign_in_config):<br>required: **false**<br><p>Merged into the agent context's workforce sign-in settings: an absent member leaves its stored value unchanged. <code>signInUrl</code> replaces the stored URL and reads ENABLED. <code>status</code> DISABLED removes the stored URL. <code>status</code> ENABLED requires a URL, supplied here or already on the agent context.</p><br>
12    ///   - [`entity_resolution_config(EntityResolutionConfig)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::entity_resolution_config) / [`set_entity_resolution_config(Option<EntityResolutionConfig>)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::set_entity_resolution_config):<br>required: **false**<br><p>Merged into the agent context's entity resolution settings: an absent member leaves its stored value unchanged.</p><br>
13    ///   - [`trusted_identity_sources(TrustedIdentitySource)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::trusted_identity_sources) / [`set_trusted_identity_sources(Option<Vec::<TrustedIdentitySource>>)`](crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::set_trusted_identity_sources):<br>required: **false**<br><p>Identity sources to trust in addition to your account. A present list replaces the stored list, <code>\[\]</code> clears it so only your account is trusted, and an absent field leaves it unchanged. Order is not significant: a list with the stored entries in another order changes nothing. A change takes effect within about a minute.</p><br>
14    /// - On success, responds with [`UpdateAgentContextOutput`](crate::operation::update_agent_context::UpdateAgentContextOutput) with field(s):
15    ///   - [`id(String)`](crate::operation::update_agent_context::UpdateAgentContextOutput::id): <p>The agent context's opaque ID.</p>
16    ///   - [`arn(String)`](crate::operation::update_agent_context::UpdateAgentContextOutput::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>
17    ///   - [`name(String)`](crate::operation::update_agent_context::UpdateAgentContextOutput::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>
18    ///   - [`description(Option<String>)`](crate::operation::update_agent_context::UpdateAgentContextOutput::description): <p>A human-readable description, if one was set.</p>
19    ///   - [`status(AgentContextStatus)`](crate::operation::update_agent_context::UpdateAgentContextOutput::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>
20    ///   - [`created_at(DateTime)`](crate::operation::update_agent_context::UpdateAgentContextOutput::created_at): <p>The date and time when the agent context was created.</p>
21    ///   - [`updated_at(DateTime)`](crate::operation::update_agent_context::UpdateAgentContextOutput::updated_at): <p>When the resource last changed. Equal to <code>createdAt</code> until the first update.</p>
22    ///   - [`connection_mappings(Option<Vec::<ConnectionMapping>>)`](crate::operation::update_agent_context::UpdateAgentContextOutput::connection_mappings): <p>The agent context's connection mappings.</p>
23    ///   - [`encryption_config(Option<EncryptionConfig>)`](crate::operation::update_agent_context::UpdateAgentContextOutput::encryption_config): <p>The agent context's encryption settings.</p>
24    ///   - [`trace_analysis_config(Option<TraceAnalysisConfig>)`](crate::operation::update_agent_context::UpdateAgentContextOutput::trace_analysis_config): <p>The agent context's trace analysis settings.</p>
25    ///   - [`workforce_sign_in_config(Option<WorkforceSignInConfig>)`](crate::operation::update_agent_context::UpdateAgentContextOutput::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>
26    ///   - [`entity_resolution_config(Option<EntityResolutionConfig>)`](crate::operation::update_agent_context::UpdateAgentContextOutput::entity_resolution_config): <p>The agent context's entity resolution settings. Populated on every response path that returns the resource.</p>
27    ///   - [`mcp_server_url(Option<String>)`](crate::operation::update_agent_context::UpdateAgentContextOutput::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>
28    ///   - [`trusted_identity_sources(Option<Vec::<TrustedIdentitySource>>)`](crate::operation::update_agent_context::UpdateAgentContextOutput::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>
29    /// - On failure, responds with [`SdkError<UpdateAgentContextError>`](crate::operation::update_agent_context::UpdateAgentContextError)
30    pub fn update_agent_context(&self) -> crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder {
31        crate::operation::update_agent_context::builders::UpdateAgentContextFluentBuilder::new(self.handle.clone())
32    }
33}