Struct aws_sdk_rds::types::DbSnapshotAttribute
source · #[non_exhaustive]pub struct DbSnapshotAttribute {
pub attribute_name: Option<String>,
pub attribute_values: Option<Vec<String>>,
}Expand description
Contains the name and values of a manual DB snapshot attribute
Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts to restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute API.
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.attribute_name: Option<String>The name of the manual DB snapshot attribute.
The attribute named restore refers to the list of Amazon Web Services accounts that have permission to copy or restore the manual DB cluster snapshot. For more information, see the ModifyDBSnapshotAttribute API action.
attribute_values: Option<Vec<String>>The value or values for the manual DB snapshot attribute.
If the AttributeName field is set to restore, then this element returns a list of IDs of the Amazon Web Services accounts that are authorized to copy or restore the manual DB snapshot. If a value of all is in the list, then the manual DB snapshot is public and available for any Amazon Web Services account to copy or restore.
Implementations§
source§impl DbSnapshotAttribute
impl DbSnapshotAttribute
sourcepub fn attribute_name(&self) -> Option<&str>
pub fn attribute_name(&self) -> Option<&str>
The name of the manual DB snapshot attribute.
The attribute named restore refers to the list of Amazon Web Services accounts that have permission to copy or restore the manual DB cluster snapshot. For more information, see the ModifyDBSnapshotAttribute API action.
sourcepub fn attribute_values(&self) -> &[String]
pub fn attribute_values(&self) -> &[String]
The value or values for the manual DB snapshot attribute.
If the AttributeName field is set to restore, then this element returns a list of IDs of the Amazon Web Services accounts that are authorized to copy or restore the manual DB snapshot. If a value of all is in the list, then the manual DB snapshot is public and available for any Amazon Web Services account to copy or restore.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .attribute_values.is_none().
source§impl DbSnapshotAttribute
impl DbSnapshotAttribute
sourcepub fn builder() -> DbSnapshotAttributeBuilder
pub fn builder() -> DbSnapshotAttributeBuilder
Creates a new builder-style object to manufacture DbSnapshotAttribute.
Trait Implementations§
source§impl Clone for DbSnapshotAttribute
impl Clone for DbSnapshotAttribute
source§fn clone(&self) -> DbSnapshotAttribute
fn clone(&self) -> DbSnapshotAttribute
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DbSnapshotAttribute
impl Debug for DbSnapshotAttribute
source§impl PartialEq for DbSnapshotAttribute
impl PartialEq for DbSnapshotAttribute
source§fn eq(&self, other: &DbSnapshotAttribute) -> bool
fn eq(&self, other: &DbSnapshotAttribute) -> bool
self and other values to be equal, and is used
by ==.