#[non_exhaustive]pub struct RdsDbSnapshotConfiguration {
pub attributes: Option<HashMap<String, RdsDbSnapshotAttributeValue>>,
pub kms_key_id: Option<String>,
}Expand description
The proposed access control configuration for an Amazon RDS DB snapshot. You can propose a configuration for a new Amazon RDS DB snapshot or an Amazon RDS DB snapshot that you own by specifying the RdsDbSnapshotAttributeValue and optional KMS encryption key. For more information, see ModifyDBSnapshotAttribute.
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.attributes: Option<HashMap<String, RdsDbSnapshotAttributeValue>>The names and values of manual DB snapshot attributes. Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts to restore a manual DB snapshot. The only valid value for attributeName for the attribute map is restore.
kms_key_id: Option<String>The KMS key identifier for an encrypted Amazon RDS DB snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
-
If the configuration is for an existing Amazon RDS DB snapshot and you do not specify the
kmsKeyId, or you specify an empty string, then the access preview uses the existingkmsKeyIdof the snapshot. -
If the access preview is for a new resource and you do not specify the specify the
kmsKeyId, then the access preview considers the snapshot as unencrypted.
Implementations§
source§impl RdsDbSnapshotConfiguration
impl RdsDbSnapshotConfiguration
sourcepub fn attributes(
&self
) -> Option<&HashMap<String, RdsDbSnapshotAttributeValue>>
pub fn attributes( &self ) -> Option<&HashMap<String, RdsDbSnapshotAttributeValue>>
The names and values of manual DB snapshot attributes. Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts to restore a manual DB snapshot. The only valid value for attributeName for the attribute map is restore.
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The KMS key identifier for an encrypted Amazon RDS DB snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
-
If the configuration is for an existing Amazon RDS DB snapshot and you do not specify the
kmsKeyId, or you specify an empty string, then the access preview uses the existingkmsKeyIdof the snapshot. -
If the access preview is for a new resource and you do not specify the specify the
kmsKeyId, then the access preview considers the snapshot as unencrypted.
source§impl RdsDbSnapshotConfiguration
impl RdsDbSnapshotConfiguration
sourcepub fn builder() -> RdsDbSnapshotConfigurationBuilder
pub fn builder() -> RdsDbSnapshotConfigurationBuilder
Creates a new builder-style object to manufacture RdsDbSnapshotConfiguration.
Trait Implementations§
source§impl Clone for RdsDbSnapshotConfiguration
impl Clone for RdsDbSnapshotConfiguration
source§fn clone(&self) -> RdsDbSnapshotConfiguration
fn clone(&self) -> RdsDbSnapshotConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RdsDbSnapshotConfiguration
impl Debug for RdsDbSnapshotConfiguration
source§impl PartialEq for RdsDbSnapshotConfiguration
impl PartialEq for RdsDbSnapshotConfiguration
source§fn eq(&self, other: &RdsDbSnapshotConfiguration) -> bool
fn eq(&self, other: &RdsDbSnapshotConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RdsDbSnapshotConfiguration
Auto Trait Implementations§
impl Freeze for RdsDbSnapshotConfiguration
impl RefUnwindSafe for RdsDbSnapshotConfiguration
impl Send for RdsDbSnapshotConfiguration
impl Sync for RdsDbSnapshotConfiguration
impl Unpin for RdsDbSnapshotConfiguration
impl UnwindSafe for RdsDbSnapshotConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more