Skip to main content

aws_sdk_bedrockagentruntime/client/
get_ingested_document_acl.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 [`GetIngestedDocumentAcl`](crate::operation::get_ingested_document_acl::builders::GetIngestedDocumentAclFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::get_ingested_document_acl::builders::GetIngestedDocumentAclFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::get_ingested_document_acl::builders::GetIngestedDocumentAclFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The unique identifier of the knowledge base that contains the document.</p><br>
7    ///   - [`data_source_id(impl Into<String>)`](crate::operation::get_ingested_document_acl::builders::GetIngestedDocumentAclFluentBuilder::data_source_id) / [`set_data_source_id(Option<String>)`](crate::operation::get_ingested_document_acl::builders::GetIngestedDocumentAclFluentBuilder::set_data_source_id):<br>required: **true**<br><p>The unique identifier of the data source that contains the document.</p><br>
8    ///   - [`document_id(impl Into<String>)`](crate::operation::get_ingested_document_acl::builders::GetIngestedDocumentAclFluentBuilder::document_id) / [`set_document_id(Option<String>)`](crate::operation::get_ingested_document_acl::builders::GetIngestedDocumentAclFluentBuilder::set_document_id):<br>required: **true**<br><p>The unique identifier of the document to retrieve the ingested access control list (ACL) for.</p><br>
9    /// - On success, responds with [`GetIngestedDocumentAclOutput`](crate::operation::get_ingested_document_acl::GetIngestedDocumentAclOutput) with field(s):
10    ///   - [`document_acl(Option<DocumentAcl>)`](crate::operation::get_ingested_document_acl::GetIngestedDocumentAclOutput::document_acl): <p>The ingested document access control list (ACL) containing allow and deny membership information.</p>
11    /// - On failure, responds with [`SdkError<GetIngestedDocumentAclError>`](crate::operation::get_ingested_document_acl::GetIngestedDocumentAclError)
12    pub fn get_ingested_document_acl(&self) -> crate::operation::get_ingested_document_acl::builders::GetIngestedDocumentAclFluentBuilder {
13        crate::operation::get_ingested_document_acl::builders::GetIngestedDocumentAclFluentBuilder::new(self.handle.clone())
14    }
15}