aws_sdk_networkmanager/client/delete_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 [`DeleteAttachment`](crate::operation::delete_attachment::builders::DeleteAttachmentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`attachment_id(impl Into<String>)`](crate::operation::delete_attachment::builders::DeleteAttachmentFluentBuilder::attachment_id) / [`set_attachment_id(Option<String>)`](crate::operation::delete_attachment::builders::DeleteAttachmentFluentBuilder::set_attachment_id):<br>required: **true**<br><p>The ID of the attachment to delete.</p><br>
7 /// - On success, responds with [`DeleteAttachmentOutput`](crate::operation::delete_attachment::DeleteAttachmentOutput) with field(s):
8 /// - [`attachment(Option<Attachment>)`](crate::operation::delete_attachment::DeleteAttachmentOutput::attachment): <p>Information about the deleted attachment.</p>
9 /// - On failure, responds with [`SdkError<DeleteAttachmentError>`](crate::operation::delete_attachment::DeleteAttachmentError)
10 pub fn delete_attachment(&self) -> crate::operation::delete_attachment::builders::DeleteAttachmentFluentBuilder {
11 crate::operation::delete_attachment::builders::DeleteAttachmentFluentBuilder::new(self.handle.clone())
12 }
13}