aws_sdk_lightsail/client/delete_disk.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 [`DeleteDisk`](crate::operation::delete_disk::builders::DeleteDiskFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`disk_name(impl Into<String>)`](crate::operation::delete_disk::builders::DeleteDiskFluentBuilder::disk_name) / [`set_disk_name(Option<String>)`](crate::operation::delete_disk::builders::DeleteDiskFluentBuilder::set_disk_name):<br>required: **true**<br><p>The unique name of the disk you want to delete (<code>my-disk</code>).</p><br>
7 /// - [`force_delete_add_ons(bool)`](crate::operation::delete_disk::builders::DeleteDiskFluentBuilder::force_delete_add_ons) / [`set_force_delete_add_ons(Option<bool>)`](crate::operation::delete_disk::builders::DeleteDiskFluentBuilder::set_force_delete_add_ons):<br>required: **false**<br><p>A Boolean value to indicate whether to delete all add-ons for the disk.</p><br>
8 /// - On success, responds with [`DeleteDiskOutput`](crate::operation::delete_disk::DeleteDiskOutput) with field(s):
9 /// - [`operations(Option<Vec::<Operation>>)`](crate::operation::delete_disk::DeleteDiskOutput::operations): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
10 /// - On failure, responds with [`SdkError<DeleteDiskError>`](crate::operation::delete_disk::DeleteDiskError)
11 pub fn delete_disk(&self) -> crate::operation::delete_disk::builders::DeleteDiskFluentBuilder {
12 crate::operation::delete_disk::builders::DeleteDiskFluentBuilder::new(self.handle.clone())
13 }
14}