aws_sdk_bedrockagent/client/
list_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 [`ListKnowledgeBaseDocuments`](crate::operation::list_knowledge_base_documents::builders::ListKnowledgeBaseDocumentsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_knowledge_base_documents::builders::ListKnowledgeBaseDocumentsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::list_knowledge_base_documents::builders::ListKnowledgeBaseDocumentsFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::list_knowledge_base_documents::builders::ListKnowledgeBaseDocumentsFluentBuilder::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>
8    ///   - [`data_source_id(impl Into<String>)`](crate::operation::list_knowledge_base_documents::builders::ListKnowledgeBaseDocumentsFluentBuilder::data_source_id) / [`set_data_source_id(Option<String>)`](crate::operation::list_knowledge_base_documents::builders::ListKnowledgeBaseDocumentsFluentBuilder::set_data_source_id):<br>required: **true**<br><p>The unique identifier of the data source that contains the documents.</p><br>
9    ///   - [`max_results(i32)`](crate::operation::list_knowledge_base_documents::builders::ListKnowledgeBaseDocumentsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_knowledge_base_documents::builders::ListKnowledgeBaseDocumentsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the <code>nextToken</code> field when making another request to return the next batch of results.</p><br>
10    ///   - [`next_token(impl Into<String>)`](crate::operation::list_knowledge_base_documents::builders::ListKnowledgeBaseDocumentsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_knowledge_base_documents::builders::ListKnowledgeBaseDocumentsFluentBuilder::set_next_token):<br>required: **false**<br><p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, enter the token returned in the <code>nextToken</code> field in the response in this field to return the next batch of results.</p><br>
11    /// - On success, responds with [`ListKnowledgeBaseDocumentsOutput`](crate::operation::list_knowledge_base_documents::ListKnowledgeBaseDocumentsOutput) with field(s):
12    ///   - [`document_details(Vec::<KnowledgeBaseDocumentDetail>)`](crate::operation::list_knowledge_base_documents::ListKnowledgeBaseDocumentsOutput::document_details): <p>A list of objects, each of which contains information about the documents that were retrieved.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::list_knowledge_base_documents::ListKnowledgeBaseDocumentsOutput::next_token): <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, use this token when making another request in the <code>nextToken</code> field to return the next batch of results.</p>
14    /// - On failure, responds with [`SdkError<ListKnowledgeBaseDocumentsError>`](crate::operation::list_knowledge_base_documents::ListKnowledgeBaseDocumentsError)
15    pub fn list_knowledge_base_documents(
16        &self,
17    ) -> crate::operation::list_knowledge_base_documents::builders::ListKnowledgeBaseDocumentsFluentBuilder {
18        crate::operation::list_knowledge_base_documents::builders::ListKnowledgeBaseDocumentsFluentBuilder::new(self.handle.clone())
19    }
20}