aws_sdk_redshift/client/
revoke_snapshot_access.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 [`RevokeSnapshotAccess`](crate::operation::revoke_snapshot_access::builders::RevokeSnapshotAccessFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`snapshot_identifier(impl Into<String>)`](crate::operation::revoke_snapshot_access::builders::RevokeSnapshotAccessFluentBuilder::snapshot_identifier) / [`set_snapshot_identifier(Option<String>)`](crate::operation::revoke_snapshot_access::builders::RevokeSnapshotAccessFluentBuilder::set_snapshot_identifier):<br>required: **false**<br><p>The identifier of the snapshot that the account can no longer access.</p><br>
7    ///   - [`snapshot_arn(impl Into<String>)`](crate::operation::revoke_snapshot_access::builders::RevokeSnapshotAccessFluentBuilder::snapshot_arn) / [`set_snapshot_arn(Option<String>)`](crate::operation::revoke_snapshot_access::builders::RevokeSnapshotAccessFluentBuilder::set_snapshot_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the snapshot associated with the message to revoke access.</p><br>
8    ///   - [`snapshot_cluster_identifier(impl Into<String>)`](crate::operation::revoke_snapshot_access::builders::RevokeSnapshotAccessFluentBuilder::snapshot_cluster_identifier) / [`set_snapshot_cluster_identifier(Option<String>)`](crate::operation::revoke_snapshot_access::builders::RevokeSnapshotAccessFluentBuilder::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>
9    ///   - [`account_with_restore_access(impl Into<String>)`](crate::operation::revoke_snapshot_access::builders::RevokeSnapshotAccessFluentBuilder::account_with_restore_access) / [`set_account_with_restore_access(Option<String>)`](crate::operation::revoke_snapshot_access::builders::RevokeSnapshotAccessFluentBuilder::set_account_with_restore_access):<br>required: **true**<br><p>The identifier of the Amazon Web Services account that can no longer restore the specified snapshot.</p><br>
10    /// - On success, responds with [`RevokeSnapshotAccessOutput`](crate::operation::revoke_snapshot_access::RevokeSnapshotAccessOutput) with field(s):
11    ///   - [`snapshot(Option<Snapshot>)`](crate::operation::revoke_snapshot_access::RevokeSnapshotAccessOutput::snapshot): <p>Describes a snapshot.</p>
12    /// - On failure, responds with [`SdkError<RevokeSnapshotAccessError>`](crate::operation::revoke_snapshot_access::RevokeSnapshotAccessError)
13    pub fn revoke_snapshot_access(&self) -> crate::operation::revoke_snapshot_access::builders::RevokeSnapshotAccessFluentBuilder {
14        crate::operation::revoke_snapshot_access::builders::RevokeSnapshotAccessFluentBuilder::new(self.handle.clone())
15    }
16}