Interface RotationMultiUserOptions

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.939Z") @Stability(Stable) public interface RotationMultiUserOptions extends
Options to add the multi user rotation.


 Secret myImportedSecret;
 DatabaseCluster cluster;
 cluster.addRotationMultiUser("MyUser", RotationMultiUserOptions.builder()
  • 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()
      a RotationMultiUserOptions.Builder of RotationMultiUserOptions