Struct aws_sdk_rds::operation::modify_db_cluster_snapshot_attribute::ModifyDbClusterSnapshotAttributeInput
source · #[non_exhaustive]pub struct ModifyDbClusterSnapshotAttributeInput {
pub db_cluster_snapshot_identifier: Option<String>,
pub attribute_name: Option<String>,
pub values_to_add: Option<Vec<String>>,
pub values_to_remove: Option<Vec<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.db_cluster_snapshot_identifier: Option<String>The identifier for the DB cluster snapshot to modify the attributes for.
attribute_name: 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.
values_to_add: 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.
values_to_remove: 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.
Implementations§
source§impl ModifyDbClusterSnapshotAttributeInput
impl ModifyDbClusterSnapshotAttributeInput
sourcepub fn db_cluster_snapshot_identifier(&self) -> Option<&str>
pub fn db_cluster_snapshot_identifier(&self) -> Option<&str>
The identifier for the DB cluster snapshot to modify the attributes for.
sourcepub fn attribute_name(&self) -> Option<&str>
pub fn attribute_name(&self) -> Option<&str>
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) -> &[String]
pub fn values_to_add(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .values_to_add.is_none().
sourcepub fn values_to_remove(&self) -> &[String]
pub fn values_to_remove(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .values_to_remove.is_none().
source§impl ModifyDbClusterSnapshotAttributeInput
impl ModifyDbClusterSnapshotAttributeInput
sourcepub fn builder() -> ModifyDbClusterSnapshotAttributeInputBuilder
pub fn builder() -> ModifyDbClusterSnapshotAttributeInputBuilder
Creates a new builder-style object to manufacture ModifyDbClusterSnapshotAttributeInput.
Trait Implementations§
source§impl Clone for ModifyDbClusterSnapshotAttributeInput
impl Clone for ModifyDbClusterSnapshotAttributeInput
source§fn clone(&self) -> ModifyDbClusterSnapshotAttributeInput
fn clone(&self) -> ModifyDbClusterSnapshotAttributeInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for ModifyDbClusterSnapshotAttributeInput
impl PartialEq for ModifyDbClusterSnapshotAttributeInput
source§fn eq(&self, other: &ModifyDbClusterSnapshotAttributeInput) -> bool
fn eq(&self, other: &ModifyDbClusterSnapshotAttributeInput) -> bool
self and other values to be equal, and is used
by ==.