aws_sdk_pinpointsmsvoicev2/client/
delete_registration_attachment.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 [`DeleteRegistrationAttachment`](crate::operation::delete_registration_attachment::builders::DeleteRegistrationAttachmentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`registration_attachment_id(impl Into<String>)`](crate::operation::delete_registration_attachment::builders::DeleteRegistrationAttachmentFluentBuilder::registration_attachment_id) / [`set_registration_attachment_id(Option<String>)`](crate::operation::delete_registration_attachment::builders::DeleteRegistrationAttachmentFluentBuilder::set_registration_attachment_id):<br>required: **true**<br><p>The unique identifier for the registration attachment.</p><br>
7    /// - On success, responds with [`DeleteRegistrationAttachmentOutput`](crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentOutput) with field(s):
8    ///   - [`registration_attachment_arn(String)`](crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentOutput::registration_attachment_arn): <p>The Amazon Resource Name (ARN) for the registration attachment.</p>
9    ///   - [`registration_attachment_id(String)`](crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentOutput::registration_attachment_id): <p>The unique identifier for the registration attachment.</p>
10    ///   - [`attachment_status(AttachmentStatus)`](crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentOutput::attachment_status): <p>The status of the registration attachment.</p> <ul>  <li>   <p><code>UPLOAD_IN_PROGRESS</code> The attachment is being uploaded.</p></li>  <li>   <p><code>UPLOAD_COMPLETE</code> The attachment has been uploaded.</p></li>  <li>   <p><code>UPLOAD_FAILED</code> The attachment failed to uploaded.</p></li>  <li>   <p><code>DELETED</code> The attachment has been deleted..</p></li> </ul>
11    ///   - [`attachment_upload_error_reason(Option<AttachmentUploadErrorReason>)`](crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentOutput::attachment_upload_error_reason): <p>The error message if the upload failed.</p>
12    ///   - [`created_timestamp(DateTime)`](crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentOutput::created_timestamp): <p>The time when the registration attachment was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
13    /// - On failure, responds with [`SdkError<DeleteRegistrationAttachmentError>`](crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError)
14    pub fn delete_registration_attachment(
15        &self,
16    ) -> crate::operation::delete_registration_attachment::builders::DeleteRegistrationAttachmentFluentBuilder {
17        crate::operation::delete_registration_attachment::builders::DeleteRegistrationAttachmentFluentBuilder::new(self.handle.clone())
18    }
19}