aws_sdk_bedrockagent/client/update_agent_knowledge_base.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 [`UpdateAgentKnowledgeBase`](crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`agent_id(impl Into<String>)`](crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder::agent_id) / [`set_agent_id(Option<String>)`](crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder::set_agent_id):<br>required: **true**<br><p>The unique identifier of the agent associated with the knowledge base that you want to update.</p><br>
7 /// - [`agent_version(impl Into<String>)`](crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder::agent_version) / [`set_agent_version(Option<String>)`](crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder::set_agent_version):<br>required: **true**<br><p>The version of the agent associated with the knowledge base that you want to update.</p><br>
8 /// - [`knowledge_base_id(impl Into<String>)`](crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The unique identifier of the knowledge base that has been associated with an agent.</p><br>
9 /// - [`description(impl Into<String>)`](crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder::set_description):<br>required: **false**<br><p>Specifies a new description for the knowledge base associated with an agent.</p><br>
10 /// - [`knowledge_base_state(KnowledgeBaseState)`](crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder::knowledge_base_state) / [`set_knowledge_base_state(Option<KnowledgeBaseState>)`](crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder::set_knowledge_base_state):<br>required: **false**<br><p>Specifies whether the agent uses the knowledge base or not when sending an <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> request.</p><br>
11 /// - On success, responds with [`UpdateAgentKnowledgeBaseOutput`](crate::operation::update_agent_knowledge_base::UpdateAgentKnowledgeBaseOutput) with field(s):
12 /// - [`agent_knowledge_base(Option<AgentKnowledgeBase>)`](crate::operation::update_agent_knowledge_base::UpdateAgentKnowledgeBaseOutput::agent_knowledge_base): <p>Contains details about the knowledge base that has been associated with an agent.</p>
13 /// - On failure, responds with [`SdkError<UpdateAgentKnowledgeBaseError>`](crate::operation::update_agent_knowledge_base::UpdateAgentKnowledgeBaseError)
14 pub fn update_agent_knowledge_base(&self) -> crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder {
15 crate::operation::update_agent_knowledge_base::builders::UpdateAgentKnowledgeBaseFluentBuilder::new(self.handle.clone())
16 }
17}