Interface RotationMultiUserOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
RotationMultiUserOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-02T15:58:24.087Z") @Stability(Stable) public interface RotationMultiUserOptions extends software.amazon.jsii.JsiiSerializable
Options to add the multi user rotation.

Example:

 import software.amazon.awscdk.services.secretsmanager.*;
 Secret myImportedSecret;
 DatabaseCluster cluster;
 cluster.addRotationMultiUser("MyUser", RotationMultiUserOptions.builder()
         .secret(myImportedSecret)
         .build());
 
  • Method Details

    • getSecret

      @Stability(Stable) @NotNull ISecret getSecret()
      The secret to rotate.

      It must be a JSON string with the following format:

       {
         "engine": <required: must be set to 'mongo'>,
         "host": <required: instance host name>,
         "username": <required: username>,
         "password": <required: password>,
         "dbname": <optional: database name>,
         "port": <optional: if not specified, default port 27017 will be used>,
         "masterarn": <required: the arn of the master secret which will be used to create users/change passwords>
         "ssl": <optional: if not specified, defaults to false. This must be true if being used for DocumentDB rotations
                where the cluster has TLS enabled>
       }
       
    • getAutomaticallyAfter

      @Stability(Stable) @Nullable default Duration getAutomaticallyAfter()
      Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.

      Default: Duration.days(30)

    • builder

      @Stability(Stable) static RotationMultiUserOptions.Builder builder()
      Returns:
      a RotationMultiUserOptions.Builder of RotationMultiUserOptions