aws-sdk-qapps 1.67.0

AWS SDK for QApps
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreatePresignedUrl`](crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`CreatePresignedUrlOutput`](crate::operation::create_presigned_url::CreatePresignedUrlOutput) with field(s):
    ///   - [`file_id(String)`](crate::operation::create_presigned_url::CreatePresignedUrlOutput::file_id): <p>The unique identifier assigned to the file to be uploaded.</p>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On failure, responds with [`SdkError<CreatePresignedUrlError>`](crate::operation::create_presigned_url::CreatePresignedUrlError)
    pub fn create_presigned_url(&self) -> crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder {
        crate::operation::create_presigned_url::builders::CreatePresignedUrlFluentBuilder::new(self.handle.clone())
    }
}