aws_sdk_lightsail/client/
get_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 [`GetDisk`](crate::operation::get_disk::builders::GetDiskFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`disk_name(impl Into<String>)`](crate::operation::get_disk::builders::GetDiskFluentBuilder::disk_name) / [`set_disk_name(Option<String>)`](crate::operation::get_disk::builders::GetDiskFluentBuilder::set_disk_name):<br>required: **true**<br><p>The name of the disk (<code>my-disk</code>).</p><br>
7    /// - On success, responds with [`GetDiskOutput`](crate::operation::get_disk::GetDiskOutput) with field(s):
8    ///   - [`disk(Option<Disk>)`](crate::operation::get_disk::GetDiskOutput::disk): <p>An object containing information about the disk.</p>
9    /// - On failure, responds with [`SdkError<GetDiskError>`](crate::operation::get_disk::GetDiskError)
10    pub fn get_disk(&self) -> crate::operation::get_disk::builders::GetDiskFluentBuilder {
11        crate::operation::get_disk::builders::GetDiskFluentBuilder::new(self.handle.clone())
12    }
13}