aws-sdk-lightsail 1.106.0

AWS SDK for Amazon Lightsail
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DetachDisk`](crate::operation::detach_disk::builders::DetachDiskFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`disk_name(impl Into<String>)`](crate::operation::detach_disk::builders::DetachDiskFluentBuilder::disk_name) / [`set_disk_name(Option<String>)`](crate::operation::detach_disk::builders::DetachDiskFluentBuilder::set_disk_name):<br>required: **true**<br><p>The unique name of the disk you want to detach from your instance (<code>my-disk</code>).</p><br>
    /// - On success, responds with [`DetachDiskOutput`](crate::operation::detach_disk::DetachDiskOutput) with field(s):
    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::detach_disk::DetachDiskOutput::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>
    /// - On failure, responds with [`SdkError<DetachDiskError>`](crate::operation::detach_disk::DetachDiskError)
    pub fn detach_disk(&self) -> crate::operation::detach_disk::builders::DetachDiskFluentBuilder {
        crate::operation::detach_disk::builders::DetachDiskFluentBuilder::new(self.handle.clone())
    }
}