Struct aws_sdk_rds::types::MasterUserSecret
source · #[non_exhaustive]pub struct MasterUserSecret {
pub secret_arn: Option<String>,
pub secret_status: Option<String>,
pub kms_key_id: Option<String>,
}
Expand description
Contains the secret managed by RDS in Amazon Web Services Secrets Manager for the master user password.
For more information, see Password management with Amazon Web Services Secrets Manager in the Amazon RDS User Guide and Password management with Amazon Web Services Secrets Manager in the Amazon Aurora User Guide.
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.secret_arn: Option<String>
The Amazon Resource Name (ARN) of the secret.
secret_status: Option<String>
The status of the secret.
The possible status values include the following:
-
creating
- The secret is being created. -
active
- The secret is available for normal use and rotation. -
rotating
- The secret is being rotated. -
impaired
- The secret can be used to access database credentials, but it can't be rotated. A secret might have this status if, for example, permissions are changed so that RDS can no longer access either the secret or the KMS key for the secret.When a secret has this status, you can correct the condition that caused the status. Alternatively, modify the DB instance to turn off automatic management of database credentials, and then modify the DB instance again to turn on automatic management of database credentials.
kms_key_id: Option<String>
The Amazon Web Services KMS key identifier that is used to encrypt the secret.
Implementations§
source§impl MasterUserSecret
impl MasterUserSecret
sourcepub fn secret_arn(&self) -> Option<&str>
pub fn secret_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the secret.
sourcepub fn secret_status(&self) -> Option<&str>
pub fn secret_status(&self) -> Option<&str>
The status of the secret.
The possible status values include the following:
-
creating
- The secret is being created. -
active
- The secret is available for normal use and rotation. -
rotating
- The secret is being rotated. -
impaired
- The secret can be used to access database credentials, but it can't be rotated. A secret might have this status if, for example, permissions are changed so that RDS can no longer access either the secret or the KMS key for the secret.When a secret has this status, you can correct the condition that caused the status. Alternatively, modify the DB instance to turn off automatic management of database credentials, and then modify the DB instance again to turn on automatic management of database credentials.
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The Amazon Web Services KMS key identifier that is used to encrypt the secret.
source§impl MasterUserSecret
impl MasterUserSecret
sourcepub fn builder() -> MasterUserSecretBuilder
pub fn builder() -> MasterUserSecretBuilder
Creates a new builder-style object to manufacture MasterUserSecret
.
Trait Implementations§
source§impl Clone for MasterUserSecret
impl Clone for MasterUserSecret
source§fn clone(&self) -> MasterUserSecret
fn clone(&self) -> MasterUserSecret
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MasterUserSecret
impl Debug for MasterUserSecret
source§impl PartialEq for MasterUserSecret
impl PartialEq for MasterUserSecret
source§fn eq(&self, other: &MasterUserSecret) -> bool
fn eq(&self, other: &MasterUserSecret) -> bool
self
and other
values to be equal, and is used
by ==
.