aws_sdk_qbusiness/client/get_document_content.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 [`GetDocumentContent`](crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`application_id(impl Into<String>)`](crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder::set_application_id):<br>required: **true**<br><p>The unique identifier of the Amazon Q Business application containing the document. This ensures the request is scoped to the correct application environment and its associated security policies.</p><br>
7 /// - [`index_id(impl Into<String>)`](crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder::index_id) / [`set_index_id(Option<String>)`](crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder::set_index_id):<br>required: **true**<br><p>The identifier of the index where documents are indexed.</p><br>
8 /// - [`data_source_id(impl Into<String>)`](crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder::data_source_id) / [`set_data_source_id(Option<String>)`](crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder::set_data_source_id):<br>required: **false**<br><p>The identifier of the data source from which the document was ingested. This field is not present if the document is ingested by directly calling the BatchPutDocument API. If the document is from a file-upload data source, the datasource will be "uploaded-docs-file-stat-datasourceid".</p><br>
9 /// - [`document_id(impl Into<String>)`](crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder::document_id) / [`set_document_id(Option<String>)`](crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder::set_document_id):<br>required: **true**<br><p>The unique identifier of the document that is indexed via BatchPutDocument API or file-upload or connector sync. It is also found in chat or chatSync response.</p><br>
10 /// - [`output_format(OutputFormat)`](crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder::output_format) / [`set_output_format(Option<OutputFormat>)`](crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder::set_output_format):<br>required: **false**<br><p>Document outputFormat. Defaults to RAW if not selected.</p><br>
11 /// - On success, responds with [`GetDocumentContentOutput`](crate::operation::get_document_content::GetDocumentContentOutput) with field(s):
12 /// - [`presigned_url(String)`](crate::operation::get_document_content::GetDocumentContentOutput::presigned_url): <p>A pre-signed URL that provides temporary access to download the document content directly from Amazon Q Business. The URL expires after 5 minutes for security purposes. This URL is generated only after successful ACL validation.</p>
13 /// - [`mime_type(String)`](crate::operation::get_document_content::GetDocumentContentOutput::mime_type): <p>The MIME type of the document content. When outputFormat is RAW, this corresponds to the original document's MIME type (e.g., application/pdf, text/plain, application/vnd.openxmlformats-officedocument.wordprocessingml.document). When outputFormat is EXTRACTED, the MIME type is always application/json.</p>
14 /// - On failure, responds with [`SdkError<GetDocumentContentError>`](crate::operation::get_document_content::GetDocumentContentError)
15 pub fn get_document_content(&self) -> crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder {
16 crate::operation::get_document_content::builders::GetDocumentContentFluentBuilder::new(self.handle.clone())
17 }
18}