aws_sdk_bedrockagent/client/
ingest_knowledge_base_documents.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`IngestKnowledgeBaseDocuments`](crate::operation::ingest_knowledge_base_documents::builders::IngestKnowledgeBaseDocumentsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::ingest_knowledge_base_documents::builders::IngestKnowledgeBaseDocumentsFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::ingest_knowledge_base_documents::builders::IngestKnowledgeBaseDocumentsFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The unique identifier of the knowledge base to ingest the documents into.</p><br>
    ///   - [`data_source_id(impl Into<String>)`](crate::operation::ingest_knowledge_base_documents::builders::IngestKnowledgeBaseDocumentsFluentBuilder::data_source_id) / [`set_data_source_id(Option<String>)`](crate::operation::ingest_knowledge_base_documents::builders::IngestKnowledgeBaseDocumentsFluentBuilder::set_data_source_id):<br>required: **true**<br><p>The unique identifier of the data source connected to the knowledge base that you're adding documents to.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::ingest_knowledge_base_documents::builders::IngestKnowledgeBaseDocumentsFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::ingest_knowledge_base_documents::builders::IngestKnowledgeBaseDocumentsFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p><br>
    ///   - [`documents(KnowledgeBaseDocument)`](crate::operation::ingest_knowledge_base_documents::builders::IngestKnowledgeBaseDocumentsFluentBuilder::documents) / [`set_documents(Option<Vec::<KnowledgeBaseDocument>>)`](crate::operation::ingest_knowledge_base_documents::builders::IngestKnowledgeBaseDocumentsFluentBuilder::set_documents):<br>required: **true**<br><p>A list of objects, each of which contains information about the documents to add.</p><br>
    /// - On success, responds with [`IngestKnowledgeBaseDocumentsOutput`](crate::operation::ingest_knowledge_base_documents::IngestKnowledgeBaseDocumentsOutput) with field(s):
    ///   - [`document_details(Option<Vec::<KnowledgeBaseDocumentDetail>>)`](crate::operation::ingest_knowledge_base_documents::IngestKnowledgeBaseDocumentsOutput::document_details): <p>A list of objects, each of which contains information about the documents that were ingested.</p>
    /// - On failure, responds with [`SdkError<IngestKnowledgeBaseDocumentsError>`](crate::operation::ingest_knowledge_base_documents::IngestKnowledgeBaseDocumentsError)
    pub fn ingest_knowledge_base_documents(
        &self,
    ) -> crate::operation::ingest_knowledge_base_documents::builders::IngestKnowledgeBaseDocumentsFluentBuilder {
        crate::operation::ingest_knowledge_base_documents::builders::IngestKnowledgeBaseDocumentsFluentBuilder::new(self.handle.clone())
    }
}