aws_sdk_bedrockagent/client/get_knowledge_base_documents.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 [`GetKnowledgeBaseDocuments`](crate::operation::get_knowledge_base_documents::builders::GetKnowledgeBaseDocumentsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`knowledge_base_id(impl Into<String>)`](crate::operation::get_knowledge_base_documents::builders::GetKnowledgeBaseDocumentsFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::get_knowledge_base_documents::builders::GetKnowledgeBaseDocumentsFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The unique identifier of the knowledge base that is connected to the data source.</p><br>
7 /// - [`data_source_id(impl Into<String>)`](crate::operation::get_knowledge_base_documents::builders::GetKnowledgeBaseDocumentsFluentBuilder::data_source_id) / [`set_data_source_id(Option<String>)`](crate::operation::get_knowledge_base_documents::builders::GetKnowledgeBaseDocumentsFluentBuilder::set_data_source_id):<br>required: **true**<br><p>The unique identifier of the data source that contains the documents.</p><br>
8 /// - [`document_identifiers(DocumentIdentifier)`](crate::operation::get_knowledge_base_documents::builders::GetKnowledgeBaseDocumentsFluentBuilder::document_identifiers) / [`set_document_identifiers(Option<Vec::<DocumentIdentifier>>)`](crate::operation::get_knowledge_base_documents::builders::GetKnowledgeBaseDocumentsFluentBuilder::set_document_identifiers):<br>required: **true**<br><p>A list of objects, each of which contains information to identify a document for which to retrieve information.</p><br>
9 /// - On success, responds with [`GetKnowledgeBaseDocumentsOutput`](crate::operation::get_knowledge_base_documents::GetKnowledgeBaseDocumentsOutput) with field(s):
10 /// - [`document_details(Option<Vec::<KnowledgeBaseDocumentDetail>>)`](crate::operation::get_knowledge_base_documents::GetKnowledgeBaseDocumentsOutput::document_details): <p>A list of objects, each of which contains information about the documents that were retrieved.</p>
11 /// - On failure, responds with [`SdkError<GetKnowledgeBaseDocumentsError>`](crate::operation::get_knowledge_base_documents::GetKnowledgeBaseDocumentsError)
12 pub fn get_knowledge_base_documents(&self) -> crate::operation::get_knowledge_base_documents::builders::GetKnowledgeBaseDocumentsFluentBuilder {
13 crate::operation::get_knowledge_base_documents::builders::GetKnowledgeBaseDocumentsFluentBuilder::new(self.handle.clone())
14 }
15}