Struct aws_sdk_docdb::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 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§
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 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 get_db_cluster_snapshot_identifier(&self) -> &Option<String>
pub fn get_db_cluster_snapshot_identifier(&self) -> &Option<String>
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 get_attribute_name(&self) -> &Option<String>
pub fn get_attribute_name(&self) -> &Option<String>
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 get_values_to_add(&self) -> &Option<Vec<String>>
pub fn get_values_to_add(&self) -> &Option<Vec<String>>
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.
sourcepub fn get_values_to_remove(&self) -> &Option<Vec<String>>
pub fn get_values_to_remove(&self) -> &Option<Vec<String>>
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§
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