#[non_exhaustive]pub struct AuthorizeSnapshotAccessInput {
pub snapshot_identifier: Option<String>,
pub snapshot_arn: Option<String>,
pub snapshot_cluster_identifier: Option<String>,
pub account_with_restore_access: Option<String>,
}
Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.snapshot_identifier: Option<String>
The identifier of the snapshot the account is authorized to restore.
snapshot_arn: Option<String>
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
snapshot_cluster_identifier: Option<String>
The identifier of the cluster the snapshot was created from.
-
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
-
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
account_with_restore_access: Option<String>
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
Implementations§
source§impl AuthorizeSnapshotAccessInput
impl AuthorizeSnapshotAccessInput
sourcepub fn snapshot_identifier(&self) -> Option<&str>
pub fn snapshot_identifier(&self) -> Option<&str>
The identifier of the snapshot the account is authorized to restore.
sourcepub fn snapshot_arn(&self) -> Option<&str>
pub fn snapshot_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
sourcepub fn snapshot_cluster_identifier(&self) -> Option<&str>
pub fn snapshot_cluster_identifier(&self) -> Option<&str>
The identifier of the cluster the snapshot was created from.
-
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
-
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
sourcepub fn account_with_restore_access(&self) -> Option<&str>
pub fn account_with_restore_access(&self) -> Option<&str>
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
source§impl AuthorizeSnapshotAccessInput
impl AuthorizeSnapshotAccessInput
sourcepub fn builder() -> AuthorizeSnapshotAccessInputBuilder
pub fn builder() -> AuthorizeSnapshotAccessInputBuilder
Creates a new builder-style object to manufacture AuthorizeSnapshotAccessInput
.
Trait Implementations§
source§impl Clone for AuthorizeSnapshotAccessInput
impl Clone for AuthorizeSnapshotAccessInput
source§fn clone(&self) -> AuthorizeSnapshotAccessInput
fn clone(&self) -> AuthorizeSnapshotAccessInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AuthorizeSnapshotAccessInput
impl Debug for AuthorizeSnapshotAccessInput
source§impl PartialEq for AuthorizeSnapshotAccessInput
impl PartialEq for AuthorizeSnapshotAccessInput
source§fn eq(&self, other: &AuthorizeSnapshotAccessInput) -> bool
fn eq(&self, other: &AuthorizeSnapshotAccessInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AuthorizeSnapshotAccessInput
Auto Trait Implementations§
impl Freeze for AuthorizeSnapshotAccessInput
impl RefUnwindSafe for AuthorizeSnapshotAccessInput
impl Send for AuthorizeSnapshotAccessInput
impl Sync for AuthorizeSnapshotAccessInput
impl Unpin for AuthorizeSnapshotAccessInput
impl UnwindSafe for AuthorizeSnapshotAccessInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more