aws_sdk_bedrockagent/client/
delete_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 [`DeleteKnowledgeBaseDocuments`](crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    ///   - [`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>
8    ///   - [`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>
9    ///   - [`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>
10    /// - On success, responds with [`DeleteKnowledgeBaseDocumentsOutput`](crate::operation::delete_knowledge_base_documents::DeleteKnowledgeBaseDocumentsOutput) with field(s):
11    ///   - [`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>
12    /// - On failure, responds with [`SdkError<DeleteKnowledgeBaseDocumentsError>`](crate::operation::delete_knowledge_base_documents::DeleteKnowledgeBaseDocumentsError)
13    pub fn delete_knowledge_base_documents(
14        &self,
15    ) -> crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder {
16        crate::operation::delete_knowledge_base_documents::builders::DeleteKnowledgeBaseDocumentsFluentBuilder::new(self.handle.clone())
17    }
18}