Class MasterUserSecret

    • Method Detail

      • secretArn

        public final String secretArn()

        The Amazon Resource Name (ARN) of the secret.

        Returns:
        The Amazon Resource Name (ARN) of the secret.
      • secretStatus

        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.

        Returns:
        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.

      • kmsKeyId

        public final String kmsKeyId()

        The Amazon Web Services KMS key identifier that is used to encrypt the secret.

        Returns:
        The Amazon Web Services KMS key identifier that is used to encrypt the secret.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)