aws_sdk_lightsail/client/get_disk_snapshot.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 [`GetDiskSnapshot`](crate::operation::get_disk_snapshot::builders::GetDiskSnapshotFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`disk_snapshot_name(impl Into<String>)`](crate::operation::get_disk_snapshot::builders::GetDiskSnapshotFluentBuilder::disk_snapshot_name) / [`set_disk_snapshot_name(Option<String>)`](crate::operation::get_disk_snapshot::builders::GetDiskSnapshotFluentBuilder::set_disk_snapshot_name):<br>required: **true**<br><p>The name of the disk snapshot (<code>my-disk-snapshot</code>).</p><br>
7 /// - On success, responds with [`GetDiskSnapshotOutput`](crate::operation::get_disk_snapshot::GetDiskSnapshotOutput) with field(s):
8 /// - [`disk_snapshot(Option<DiskSnapshot>)`](crate::operation::get_disk_snapshot::GetDiskSnapshotOutput::disk_snapshot): <p>An object containing information about the disk snapshot.</p>
9 /// - On failure, responds with [`SdkError<GetDiskSnapshotError>`](crate::operation::get_disk_snapshot::GetDiskSnapshotError)
10 pub fn get_disk_snapshot(&self) -> crate::operation::get_disk_snapshot::builders::GetDiskSnapshotFluentBuilder {
11 crate::operation::get_disk_snapshot::builders::GetDiskSnapshotFluentBuilder::new(self.handle.clone())
12 }
13}