aws_sdk_redshiftserverless/client/
get_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 [`GetSnapshot`](crate::operation::get_snapshot::builders::GetSnapshotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`snapshot_name(impl Into<String>)`](crate::operation::get_snapshot::builders::GetSnapshotFluentBuilder::snapshot_name) / [`set_snapshot_name(Option<String>)`](crate::operation::get_snapshot::builders::GetSnapshotFluentBuilder::set_snapshot_name):<br>required: **false**<br><p>The name of the snapshot to return.</p><br>
7    ///   - [`owner_account(impl Into<String>)`](crate::operation::get_snapshot::builders::GetSnapshotFluentBuilder::owner_account) / [`set_owner_account(Option<String>)`](crate::operation::get_snapshot::builders::GetSnapshotFluentBuilder::set_owner_account):<br>required: **false**<br><p>The owner Amazon Web Services account of a snapshot shared with another user.</p><br>
8    ///   - [`snapshot_arn(impl Into<String>)`](crate::operation::get_snapshot::builders::GetSnapshotFluentBuilder::snapshot_arn) / [`set_snapshot_arn(Option<String>)`](crate::operation::get_snapshot::builders::GetSnapshotFluentBuilder::set_snapshot_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the snapshot to return.</p><br>
9    /// - On success, responds with [`GetSnapshotOutput`](crate::operation::get_snapshot::GetSnapshotOutput) with field(s):
10    ///   - [`snapshot(Option<Snapshot>)`](crate::operation::get_snapshot::GetSnapshotOutput::snapshot): <p>The returned snapshot object.</p>
11    /// - On failure, responds with [`SdkError<GetSnapshotError>`](crate::operation::get_snapshot::GetSnapshotError)
12    pub fn get_snapshot(&self) -> crate::operation::get_snapshot::builders::GetSnapshotFluentBuilder {
13        crate::operation::get_snapshot::builders::GetSnapshotFluentBuilder::new(self.handle.clone())
14    }
15}