aws_sdk_bedrockagent/client/
delete_knowledge_base.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 [`DeleteKnowledgeBase`](crate::operation::delete_knowledge_base::builders::DeleteKnowledgeBaseFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::delete_knowledge_base::builders::DeleteKnowledgeBaseFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::delete_knowledge_base::builders::DeleteKnowledgeBaseFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The unique identifier of the knowledge base to delete.</p><br>
7    /// - On success, responds with [`DeleteKnowledgeBaseOutput`](crate::operation::delete_knowledge_base::DeleteKnowledgeBaseOutput) with field(s):
8    ///   - [`knowledge_base_id(String)`](crate::operation::delete_knowledge_base::DeleteKnowledgeBaseOutput::knowledge_base_id): <p>The unique identifier of the knowledge base that was deleted.</p>
9    ///   - [`status(KnowledgeBaseStatus)`](crate::operation::delete_knowledge_base::DeleteKnowledgeBaseOutput::status): <p>The status of the knowledge base and whether it has been successfully deleted.</p>
10    /// - On failure, responds with [`SdkError<DeleteKnowledgeBaseError>`](crate::operation::delete_knowledge_base::DeleteKnowledgeBaseError)
11    pub fn delete_knowledge_base(&self) -> crate::operation::delete_knowledge_base::builders::DeleteKnowledgeBaseFluentBuilder {
12        crate::operation::delete_knowledge_base::builders::DeleteKnowledgeBaseFluentBuilder::new(self.handle.clone())
13    }
14}