aws_sdk_qapps/client/create_presigned_url.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 [`CreatePresignedUrl`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`instance_id(impl Into<String>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::set_instance_id):<br>required: **true**<br><p>The unique identifier of the Amazon Q Business application environment instance.</p><br>
7 /// - [`card_id(impl Into<String>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::card_id) / [`set_card_id(Option<String>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::set_card_id):<br>required: **true**<br><p>The unique identifier of the card the file is associated with.</p><br>
8 /// - [`app_id(impl Into<String>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::set_app_id):<br>required: **true**<br><p>The unique identifier of the Q App the file is associated with.</p><br>
9 /// - [`file_contents_sha256(impl Into<String>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::file_contents_sha256) / [`set_file_contents_sha256(Option<String>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::set_file_contents_sha256):<br>required: **true**<br><p>The Base64-encoded SHA-256 digest of the contents of the file to be uploaded.</p><br>
10 /// - [`file_name(impl Into<String>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::file_name) / [`set_file_name(Option<String>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::set_file_name):<br>required: **true**<br><p>The name of the file to be uploaded.</p><br>
11 /// - [`scope(DocumentScope)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::scope) / [`set_scope(Option<DocumentScope>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::set_scope):<br>required: **true**<br><p>Whether the file is associated with a Q App definition or a specific Q App session.</p><br>
12 /// - [`session_id(impl Into<String>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::set_session_id):<br>required: **false**<br><p>The unique identifier of the Q App session the file is associated with, if applicable.</p><br>
13 /// - On success, responds with [`CreatePresignedUrlOutput`](crate::operation::create_presigned_url::CreatePresignedUrlOutput) with field(s):
14 /// - [`file_id(String)`](crate::operation::create_presigned_url::CreatePresignedUrlOutput::file_id): <p>The unique identifier assigned to the file to be uploaded.</p>
15 /// - [`presigned_url(String)`](crate::operation::create_presigned_url::CreatePresignedUrlOutput::presigned_url): <p>The URL for a presigned S3 POST operation used to upload a file.</p>
16 /// - [`presigned_url_fields(HashMap::<String, String>)`](crate::operation::create_presigned_url::CreatePresignedUrlOutput::presigned_url_fields): <p>The form fields to include in the presigned S3 POST operation used to upload a file.</p>
17 /// - [`presigned_url_expiration(DateTime)`](crate::operation::create_presigned_url::CreatePresignedUrlOutput::presigned_url_expiration): <p>The date and time that the presigned URL will expire in ISO 8601 format.</p>
18 /// - On failure, responds with [`SdkError<CreatePresignedUrlError>`](crate::operation::create_presigned_url::CreatePresignedUrlError)
19 pub fn create_presigned_url(&self) -> crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder {
20 crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::new(self.handle.clone())
21 }
22}