Struct aws_sdk_docdb::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
Represents the input to ModifyDBClusterSnapshotAttribute.
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 cluster snapshot to modify the attributes for.
attribute_name: 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.
values_to_add: 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.
values_to_remove: 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.
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 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 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) -> &[String]
pub fn values_to_add(&self) -> &[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.
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 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.
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 ==.