aws-sdk-support 1.113.0

AWS SDK for AWS Support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetAttachmentDownloadLink`](crate::operation::get_attachment_download_link::builders::GetAttachmentDownloadLinkFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`attachment_id(impl Into<String>)`](crate::operation::get_attachment_download_link::builders::GetAttachmentDownloadLinkFluentBuilder::attachment_id) / [`set_attachment_id(Option<String>)`](crate::operation::get_attachment_download_link::builders::GetAttachmentDownloadLinkFluentBuilder::set_attachment_id):<br>required: **true**<br><p>The unique identifier of the attachment for which to retrieve a download link. Attachment IDs are returned in the <code>AttachmentDetails</code> objects in the <code>attachments</code> field of a <code>Communication</code> returned by <code>DescribeCommunications</code> or <code>DescribeCases</code>.</p><br>
    ///   - [`dry_run(bool)`](crate::operation::get_attachment_download_link::builders::GetAttachmentDownloadLinkFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::get_attachment_download_link::builders::GetAttachmentDownloadLinkFluentBuilder::set_dry_run):<br>required: **false**<br><p>Specifies whether to validate the request without actually returning a download link. When set to <code>true</code>, the request is validated but no URL is returned, and the operation returns a <code>DryRunOperationException</code>. When omitted or set to <code>false</code>, the request runs normally.</p><br>
    /// - On success, responds with [`GetAttachmentDownloadLinkOutput`](crate::operation::get_attachment_download_link::GetAttachmentDownloadLinkOutput) with field(s):
    ///   - [`file_name(String)`](crate::operation::get_attachment_download_link::GetAttachmentDownloadLinkOutput::file_name): <p>The name of the attachment file, including the file extension.</p>
    ///   - [`download_url(Option<DownloadUrl>)`](crate::operation::get_attachment_download_link::GetAttachmentDownloadLinkOutput::download_url): <p>The presigned download URL and the date and time the URL expires.</p>
    /// - On failure, responds with [`SdkError<GetAttachmentDownloadLinkError>`](crate::operation::get_attachment_download_link::GetAttachmentDownloadLinkError)
    pub fn get_attachment_download_link(&self) -> crate::operation::get_attachment_download_link::builders::GetAttachmentDownloadLinkFluentBuilder {
        crate::operation::get_attachment_download_link::builders::GetAttachmentDownloadLinkFluentBuilder::new(self.handle.clone())
    }
}