@Generated(value="software.amazon.awssdk:codegen") public final class MasterUserSecret extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MasterUserSecret.Builder,MasterUserSecret>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MasterUserSecret.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MasterUserSecret.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
kmsKeyId()
The Amazon Web Services KMS key identifier that is used to encrypt the secret.
|
List<SdkField<?>> |
sdkFields() |
String |
secretArn()
The Amazon Resource Name (ARN) of the secret.
|
String |
secretStatus()
The status of the secret.
|
static Class<? extends MasterUserSecret.Builder> |
serializableBuilderClass() |
MasterUserSecret.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String secretArn()
The Amazon Resource Name (ARN) of the secret.
public final String secretStatus()
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.
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.
public final String kmsKeyId()
The Amazon Web Services KMS key identifier that is used to encrypt the secret.
public MasterUserSecret.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MasterUserSecret.Builder,MasterUserSecret>public static MasterUserSecret.Builder builder()
public static Class<? extends MasterUserSecret.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.