aws_sdk_bedrockagent/client/
delete_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 [`DeleteKnowledgeBaseDocuments`](crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder::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>
    ///   - [`data_source_id(impl Into<String>)`](crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder::data_source_id) / [`set_data_source_id(Option<String>)`](crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder::set_data_source_id):<br>required: **true**<br><p>The unique identifier of the data source that contains the documents.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder::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>
    ///   - [`document_identifiers(DocumentIdentifier)`](crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder::document_identifiers) / [`set_document_identifiers(Option<Vec::<DocumentIdentifier>>)`](crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder::set_document_identifiers):<br>required: **true**<br><p>A list of objects, each of which contains information to identify a document to delete.</p><br>
    /// - On success, responds with [`DeleteKnowledgeBaseDocumentsOutput`](crate::operation::delete_knowledge_base_documents::DeleteKnowledgeBaseDocumentsOutput) with field(s):
    ///   - [`document_details(Option<Vec::<KnowledgeBaseDocumentDetail>>)`](crate::operation::delete_knowledge_base_documents::DeleteKnowledgeBaseDocumentsOutput::document_details): <p>A list of objects, each of which contains information about the documents that were deleted.</p>
    /// - On failure, responds with [`SdkError<DeleteKnowledgeBaseDocumentsError>`](crate::operation::delete_knowledge_base_documents::DeleteKnowledgeBaseDocumentsError)
    pub fn delete_knowledge_base_documents(
        &self,
    ) -> crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder {
        crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder::new(self.handle.clone())
    }
}