Struct aws_sdk_rds::types::builders::MasterUserSecretBuilder
source · #[non_exhaustive]pub struct MasterUserSecretBuilder { /* private fields */ }Expand description
A builder for MasterUserSecret.
Implementations§
source§impl MasterUserSecretBuilder
impl MasterUserSecretBuilder
sourcepub fn secret_arn(self, input: impl Into<String>) -> Self
pub fn secret_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the secret.
sourcepub fn set_secret_arn(self, input: Option<String>) -> Self
pub fn set_secret_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the secret.
sourcepub fn get_secret_arn(&self) -> &Option<String>
pub fn get_secret_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the secret.
sourcepub fn secret_status(self, input: impl Into<String>) -> Self
pub fn secret_status(self, input: impl Into<String>) -> Self
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 set_secret_status(self, input: Option<String>) -> Self
pub fn set_secret_status(self, input: Option<String>) -> Self
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 get_secret_status(&self) -> &Option<String>
pub fn get_secret_status(&self) -> &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.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The Amazon Web Services KMS key identifier that is used to encrypt the secret.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The Amazon Web Services KMS key identifier that is used to encrypt the secret.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The Amazon Web Services KMS key identifier that is used to encrypt the secret.
sourcepub fn build(self) -> MasterUserSecret
pub fn build(self) -> MasterUserSecret
Consumes the builder and constructs a MasterUserSecret.
Trait Implementations§
source§impl Clone for MasterUserSecretBuilder
impl Clone for MasterUserSecretBuilder
source§fn clone(&self) -> MasterUserSecretBuilder
fn clone(&self) -> MasterUserSecretBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MasterUserSecretBuilder
impl Debug for MasterUserSecretBuilder
source§impl Default for MasterUserSecretBuilder
impl Default for MasterUserSecretBuilder
source§fn default() -> MasterUserSecretBuilder
fn default() -> MasterUserSecretBuilder
source§impl PartialEq for MasterUserSecretBuilder
impl PartialEq for MasterUserSecretBuilder
source§fn eq(&self, other: &MasterUserSecretBuilder) -> bool
fn eq(&self, other: &MasterUserSecretBuilder) -> bool
self and other values to be equal, and is used
by ==.