pub struct ModifyDBClusterSnapshotAttribute { /* private fields */ }Expand description
Fluent builder constructing a request to ModifyDBClusterSnapshotAttribute.
Adds an attribute and values to, or removes an attribute and values from, a manual cluster snapshot.
To share a manual cluster snapshot with other Amazon Web Services accounts, specify restore as the AttributeName, and use the ValuesToAdd parameter to add a list of IDs of the Amazon Web Services accounts that are authorized to restore the manual cluster snapshot. Use the value all to make the manual cluster snapshot public, which means that it can be copied or restored by all Amazon Web Services accounts. Do not add the all value for any manual cluster snapshots that contain private information that you don't want available to all Amazon Web Services accounts. If a manual cluster snapshot is encrypted, it can be shared, but only by specifying a list of authorized Amazon Web Services account IDs for the ValuesToAdd parameter. You can't use all as a value for that parameter in this case.
Implementations
sourceimpl ModifyDBClusterSnapshotAttribute
impl ModifyDBClusterSnapshotAttribute
sourcepub async fn send(
self
) -> Result<ModifyDbClusterSnapshotAttributeOutput, SdkError<ModifyDBClusterSnapshotAttributeError>>
pub async fn send(
self
) -> Result<ModifyDbClusterSnapshotAttributeOutput, SdkError<ModifyDBClusterSnapshotAttributeError>>
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 db_cluster_snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn db_cluster_snapshot_identifier(self, input: impl Into<String>) -> Self
The identifier for the cluster snapshot to modify the attributes for.
sourcepub fn set_db_cluster_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_db_cluster_snapshot_identifier(self, input: Option<String>) -> Self
The identifier for the cluster snapshot to modify the attributes for.
sourcepub fn attribute_name(self, input: impl Into<String>) -> Self
pub fn attribute_name(self, input: impl Into<String>) -> Self
The name of the cluster snapshot attribute to modify.
To manage authorization for other Amazon Web Services accounts to copy or restore a manual cluster snapshot, set this value to restore.
sourcepub fn set_attribute_name(self, input: Option<String>) -> Self
pub fn set_attribute_name(self, input: Option<String>) -> Self
The name of the cluster snapshot attribute to modify.
To manage authorization for other Amazon Web Services accounts to copy or restore a manual cluster snapshot, set this value to restore.
sourcepub fn values_to_add(self, input: impl Into<String>) -> Self
pub fn values_to_add(self, input: impl Into<String>) -> Self
Appends an item to ValuesToAdd.
To override the contents of this collection use set_values_to_add.
A list of cluster snapshot attributes to add to the attribute specified by AttributeName.
To authorize other Amazon Web Services accounts to copy or restore a manual cluster snapshot, set this list to include one or more Amazon Web Services account IDs. To make the manual cluster snapshot restorable by any Amazon Web Services account, set it to all. Do not add the all value for any manual cluster snapshots that contain private information that you don't want to be available to all Amazon Web Services accounts.
sourcepub fn set_values_to_add(self, input: Option<Vec<String>>) -> Self
pub fn set_values_to_add(self, input: Option<Vec<String>>) -> Self
A list of cluster snapshot attributes to add to the attribute specified by AttributeName.
To authorize other Amazon Web Services accounts to copy or restore a manual cluster snapshot, set this list to include one or more Amazon Web Services account IDs. To make the manual cluster snapshot restorable by any Amazon Web Services account, set it to all. Do not add the all value for any manual cluster snapshots that contain private information that you don't want to be available to all Amazon Web Services accounts.
sourcepub fn values_to_remove(self, input: impl Into<String>) -> Self
pub fn values_to_remove(self, input: impl Into<String>) -> Self
Appends an item to ValuesToRemove.
To override the contents of this collection use set_values_to_remove.
A list of cluster snapshot attributes to remove from the attribute specified by AttributeName.
To remove authorization for other Amazon Web Services accounts to copy or restore a manual cluster snapshot, set this list to include one or more Amazon Web Services account identifiers. To remove authorization for any Amazon Web Services account to copy or restore the cluster snapshot, set it to all . If you specify all, an Amazon Web Services account whose account ID is explicitly added to the restore attribute can still copy or restore a manual cluster snapshot.
sourcepub fn set_values_to_remove(self, input: Option<Vec<String>>) -> Self
pub fn set_values_to_remove(self, input: Option<Vec<String>>) -> Self
A list of cluster snapshot attributes to remove from the attribute specified by AttributeName.
To remove authorization for other Amazon Web Services accounts to copy or restore a manual cluster snapshot, set this list to include one or more Amazon Web Services account identifiers. To remove authorization for any Amazon Web Services account to copy or restore the cluster snapshot, set it to all . If you specify all, an Amazon Web Services account whose account ID is explicitly added to the restore attribute can still copy or restore a manual cluster snapshot.
Trait Implementations
sourceimpl Clone for ModifyDBClusterSnapshotAttribute
impl Clone for ModifyDBClusterSnapshotAttribute
sourcefn clone(&self) -> ModifyDBClusterSnapshotAttribute
fn clone(&self) -> ModifyDBClusterSnapshotAttribute
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ModifyDBClusterSnapshotAttribute
impl Send for ModifyDBClusterSnapshotAttribute
impl Sync for ModifyDBClusterSnapshotAttribute
impl Unpin for ModifyDBClusterSnapshotAttribute
impl !UnwindSafe for ModifyDBClusterSnapshotAttribute
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more