1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AuthorizeSnapshotAccess`](crate::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`snapshot_identifier(impl Into<String>)`](crate::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessFluentBuilder::snapshot_identifier) / [`set_snapshot_identifier(Option<String>)`](crate::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessFluentBuilder::set_snapshot_identifier):<br>required: **false**<br><p>The identifier of the snapshot the account is authorized to restore.</p><br>
    ///   - [`snapshot_arn(impl Into<String>)`](crate::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessFluentBuilder::snapshot_arn) / [`set_snapshot_arn(Option<String>)`](crate::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessFluentBuilder::set_snapshot_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the snapshot to authorize access to.</p><br>
    ///   - [`snapshot_cluster_identifier(impl Into<String>)`](crate::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessFluentBuilder::snapshot_cluster_identifier) / [`set_snapshot_cluster_identifier(Option<String>)`](crate::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessFluentBuilder::set_snapshot_cluster_identifier):<br>required: **false**<br><p>The identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.</p><br>
    ///   - [`account_with_restore_access(impl Into<String>)`](crate::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessFluentBuilder::account_with_restore_access) / [`set_account_with_restore_access(Option<String>)`](crate::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessFluentBuilder::set_account_with_restore_access):<br>required: **true**<br><p>The identifier of the Amazon Web Services account authorized to restore the specified snapshot.</p>  <p>To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.</p><br>
    /// - On success, responds with [`AuthorizeSnapshotAccessOutput`](crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessOutput) with field(s):
    ///   - [`snapshot(Option<Snapshot>)`](crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessOutput::snapshot): <p>Describes a snapshot.</p>
    /// - On failure, responds with [`SdkError<AuthorizeSnapshotAccessError>`](crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError)
    pub fn authorize_snapshot_access(&self) -> crate::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessFluentBuilder {
        crate::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessFluentBuilder::new(self.handle.clone())
    }
}