Struct aws_sdk_redshift::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessFluentBuilder
source · pub struct AuthorizeSnapshotAccessFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to AuthorizeSnapshotAccess
.
Authorizes the specified Amazon Web Services account to restore the specified snapshot.
For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.
Implementations§
source§impl AuthorizeSnapshotAccessFluentBuilder
impl AuthorizeSnapshotAccessFluentBuilder
sourcepub fn as_input(&self) -> &AuthorizeSnapshotAccessInputBuilder
pub fn as_input(&self) -> &AuthorizeSnapshotAccessInputBuilder
Access the AuthorizeSnapshotAccess as a reference.
sourcepub async fn send(
self
) -> Result<AuthorizeSnapshotAccessOutput, SdkError<AuthorizeSnapshotAccessError, HttpResponse>>
pub async fn send( self ) -> Result<AuthorizeSnapshotAccessOutput, SdkError<AuthorizeSnapshotAccessError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<AuthorizeSnapshotAccessOutput, AuthorizeSnapshotAccessError, Self>
pub fn customize( self ) -> CustomizableOperation<AuthorizeSnapshotAccessOutput, AuthorizeSnapshotAccessError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn snapshot_identifier(self, input: impl Into<String>) -> Self
The identifier of the snapshot the account is authorized to restore.
sourcepub fn set_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_snapshot_identifier(self, input: Option<String>) -> Self
The identifier of the snapshot the account is authorized to restore.
sourcepub fn get_snapshot_identifier(&self) -> &Option<String>
pub fn get_snapshot_identifier(&self) -> &Option<String>
The identifier of the snapshot the account is authorized to restore.
sourcepub fn snapshot_arn(self, input: impl Into<String>) -> Self
pub fn snapshot_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
sourcepub fn set_snapshot_arn(self, input: Option<String>) -> Self
pub fn set_snapshot_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
sourcepub fn get_snapshot_arn(&self) -> &Option<String>
pub fn get_snapshot_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
sourcepub fn snapshot_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn snapshot_cluster_identifier(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_snapshot_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_snapshot_cluster_identifier(self, input: Option<String>) -> Self
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.
sourcepub fn get_snapshot_cluster_identifier(&self) -> &Option<String>
pub fn get_snapshot_cluster_identifier(&self) -> &Option<String>
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.
sourcepub fn account_with_restore_access(self, input: impl Into<String>) -> Self
pub fn account_with_restore_access(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_account_with_restore_access(self, input: Option<String>) -> Self
pub fn set_account_with_restore_access(self, input: Option<String>) -> Self
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.
sourcepub fn get_account_with_restore_access(&self) -> &Option<String>
pub fn get_account_with_restore_access(&self) -> &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.
Trait Implementations§
source§impl Clone for AuthorizeSnapshotAccessFluentBuilder
impl Clone for AuthorizeSnapshotAccessFluentBuilder
source§fn clone(&self) -> AuthorizeSnapshotAccessFluentBuilder
fn clone(&self) -> AuthorizeSnapshotAccessFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more