aws-sdk-lightsail 1.107.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 [`GetDisk`](crate::operation::get_disk::builders::GetDiskFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    /// - On success, responds with [`GetDiskOutput`](crate::operation::get_disk::GetDiskOutput) with field(s):
    ///   - [`disk(Option<Disk>)`](crate::operation::get_disk::GetDiskOutput::disk): <p>An object containing information about the disk.</p>
    /// - On failure, responds with [`SdkError<GetDiskError>`](crate::operation::get_disk::GetDiskError)
    pub fn get_disk(&self) -> crate::operation::get_disk::builders::GetDiskFluentBuilder {
        crate::operation::get_disk::builders::GetDiskFluentBuilder::new(self.handle.clone())
    }
}