aws_sdk_lightsail/client/get_auto_snapshots.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 [`GetAutoSnapshots`](crate::operation::get_auto_snapshots::builders::GetAutoSnapshotsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`resource_name(impl Into<String>)`](crate::operation::get_auto_snapshots::builders::GetAutoSnapshotsFluentBuilder::resource_name) / [`set_resource_name(Option<String>)`](crate::operation::get_auto_snapshots::builders::GetAutoSnapshotsFluentBuilder::set_resource_name):<br>required: **true**<br><p>The name of the source instance or disk from which to get automatic snapshot information.</p><br>
7 /// - On success, responds with [`GetAutoSnapshotsOutput`](crate::operation::get_auto_snapshots::GetAutoSnapshotsOutput) with field(s):
8 /// - [`resource_name(Option<String>)`](crate::operation::get_auto_snapshots::GetAutoSnapshotsOutput::resource_name): <p>The name of the source instance or disk for the automatic snapshots.</p>
9 /// - [`resource_type(Option<ResourceType>)`](crate::operation::get_auto_snapshots::GetAutoSnapshotsOutput::resource_type): <p>The resource type of the automatic snapshot. The possible values are <code>Instance</code>, and <code>Disk</code>.</p>
10 /// - [`auto_snapshots(Option<Vec::<AutoSnapshotDetails>>)`](crate::operation::get_auto_snapshots::GetAutoSnapshotsOutput::auto_snapshots): <p>An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.</p>
11 /// - On failure, responds with [`SdkError<GetAutoSnapshotsError>`](crate::operation::get_auto_snapshots::GetAutoSnapshotsError)
12 pub fn get_auto_snapshots(&self) -> crate::operation::get_auto_snapshots::builders::GetAutoSnapshotsFluentBuilder {
13 crate::operation::get_auto_snapshots::builders::GetAutoSnapshotsFluentBuilder::new(self.handle.clone())
14 }
15}