aws_sdk_lightsail/client/
get_instance_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 [`GetInstanceSnapshot`](crate::operation::get_instance_snapshot::builders::GetInstanceSnapshotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`instance_snapshot_name(impl Into<String>)`](crate::operation::get_instance_snapshot::builders::GetInstanceSnapshotFluentBuilder::instance_snapshot_name) / [`set_instance_snapshot_name(Option<String>)`](crate::operation::get_instance_snapshot::builders::GetInstanceSnapshotFluentBuilder::set_instance_snapshot_name):<br>required: **true**<br><p>The name of the snapshot for which you are requesting information.</p><br>
7    /// - On success, responds with [`GetInstanceSnapshotOutput`](crate::operation::get_instance_snapshot::GetInstanceSnapshotOutput) with field(s):
8    ///   - [`instance_snapshot(Option<InstanceSnapshot>)`](crate::operation::get_instance_snapshot::GetInstanceSnapshotOutput::instance_snapshot): <p>An array of key-value pairs containing information about the results of your get instance snapshot request.</p>
9    /// - On failure, responds with [`SdkError<GetInstanceSnapshotError>`](crate::operation::get_instance_snapshot::GetInstanceSnapshotError)
10    pub fn get_instance_snapshot(&self) -> crate::operation::get_instance_snapshot::builders::GetInstanceSnapshotFluentBuilder {
11        crate::operation::get_instance_snapshot::builders::GetInstanceSnapshotFluentBuilder::new(self.handle.clone())
12    }
13}