aws_sdk_qconnect/client/
get_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 [`GetKnowledgeBase`](crate::operation::get_knowledge_base::builders::GetKnowledgeBaseFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::get_knowledge_base::builders::GetKnowledgeBaseFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::get_knowledge_base::builders::GetKnowledgeBaseFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
7    /// - On success, responds with [`GetKnowledgeBaseOutput`](crate::operation::get_knowledge_base::GetKnowledgeBaseOutput) with field(s):
8    ///   - [`knowledge_base(Option<KnowledgeBaseData>)`](crate::operation::get_knowledge_base::GetKnowledgeBaseOutput::knowledge_base): <p>The knowledge base.</p>
9    /// - On failure, responds with [`SdkError<GetKnowledgeBaseError>`](crate::operation::get_knowledge_base::GetKnowledgeBaseError)
10    pub fn get_knowledge_base(&self) -> crate::operation::get_knowledge_base::builders::GetKnowledgeBaseFluentBuilder {
11        crate::operation::get_knowledge_base::builders::GetKnowledgeBaseFluentBuilder::new(self.handle.clone())
12    }
13}