Struct aws_sdk_rds::operation::modify_db_cluster_snapshot_attribute::builders::ModifyDBClusterSnapshotAttributeFluentBuilder
source · pub struct ModifyDBClusterSnapshotAttributeFluentBuilder { /* 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 DB cluster snapshot.
To share a manual DB 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 DB cluster snapshot. Use the value all to make the manual DB cluster snapshot public, which means that it can be copied or restored by all Amazon Web Services accounts.
Don't add the all value for any manual DB cluster snapshots that contain private information that you don't want available to all Amazon Web Services accounts.
If a manual DB 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.
To view which Amazon Web Services accounts have access to copy or restore a manual DB cluster snapshot, or whether a manual DB cluster snapshot is public or private, use the DescribeDBClusterSnapshotAttributes API operation. The accounts are returned as values for the restore attribute.
Implementations§
source§impl ModifyDBClusterSnapshotAttributeFluentBuilder
impl ModifyDBClusterSnapshotAttributeFluentBuilder
sourcepub fn as_input(&self) -> &ModifyDbClusterSnapshotAttributeInputBuilder
pub fn as_input(&self) -> &ModifyDbClusterSnapshotAttributeInputBuilder
Access the ModifyDBClusterSnapshotAttribute as a reference.
sourcepub async fn send(
self
) -> Result<ModifyDbClusterSnapshotAttributeOutput, SdkError<ModifyDBClusterSnapshotAttributeError, HttpResponse>>
pub async fn send( self ) -> Result<ModifyDbClusterSnapshotAttributeOutput, SdkError<ModifyDBClusterSnapshotAttributeError, 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<ModifyDbClusterSnapshotAttributeOutput, ModifyDBClusterSnapshotAttributeError, Self>
pub fn customize( self ) -> CustomizableOperation<ModifyDbClusterSnapshotAttributeOutput, ModifyDBClusterSnapshotAttributeError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 DB 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 DB cluster snapshot to modify the attributes for.
sourcepub fn get_db_cluster_snapshot_identifier(&self) -> &Option<String>
pub fn get_db_cluster_snapshot_identifier(&self) -> &Option<String>
The identifier for the DB 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 DB cluster snapshot attribute to modify.
To manage authorization for other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this value to restore.
To view the list of attributes available to modify, use the DescribeDBClusterSnapshotAttributes API operation.
sourcepub fn set_attribute_name(self, input: Option<String>) -> Self
pub fn set_attribute_name(self, input: Option<String>) -> Self
The name of the DB cluster snapshot attribute to modify.
To manage authorization for other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this value to restore.
To view the list of attributes available to modify, use the DescribeDBClusterSnapshotAttributes API operation.
sourcepub fn get_attribute_name(&self) -> &Option<String>
pub fn get_attribute_name(&self) -> &Option<String>
The name of the DB cluster snapshot attribute to modify.
To manage authorization for other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this value to restore.
To view the list of attributes available to modify, use the DescribeDBClusterSnapshotAttributes API operation.
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 DB cluster snapshot attributes to add to the attribute specified by AttributeName.
To authorize other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon Web Services account IDs, or all to make the manual DB cluster snapshot restorable by any Amazon Web Services account. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want 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 DB cluster snapshot attributes to add to the attribute specified by AttributeName.
To authorize other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon Web Services account IDs, or all to make the manual DB cluster snapshot restorable by any Amazon Web Services account. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want available to all Amazon Web Services accounts.
sourcepub fn get_values_to_add(&self) -> &Option<Vec<String>>
pub fn get_values_to_add(&self) -> &Option<Vec<String>>
A list of DB cluster snapshot attributes to add to the attribute specified by AttributeName.
To authorize other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon Web Services account IDs, or all to make the manual DB cluster snapshot restorable by any Amazon Web Services account. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want 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 DB 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 DB cluster snapshot, set this list to include one or more Amazon Web Services account identifiers, or all to remove authorization for any Amazon Web Services account to copy or restore the DB cluster snapshot. 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 DB 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 DB 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 DB cluster snapshot, set this list to include one or more Amazon Web Services account identifiers, or all to remove authorization for any Amazon Web Services account to copy or restore the DB cluster snapshot. 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 DB cluster snapshot.
sourcepub fn get_values_to_remove(&self) -> &Option<Vec<String>>
pub fn get_values_to_remove(&self) -> &Option<Vec<String>>
A list of DB 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 DB cluster snapshot, set this list to include one or more Amazon Web Services account identifiers, or all to remove authorization for any Amazon Web Services account to copy or restore the DB cluster snapshot. 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 DB cluster snapshot.
Trait Implementations§
source§impl Clone for ModifyDBClusterSnapshotAttributeFluentBuilder
impl Clone for ModifyDBClusterSnapshotAttributeFluentBuilder
source§fn clone(&self) -> ModifyDBClusterSnapshotAttributeFluentBuilder
fn clone(&self) -> ModifyDBClusterSnapshotAttributeFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more