Interface RotationMultiUserOptions

All Superinterfaces:
All Known Implementing Classes:

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


 User user = User.Builder.create(this, "User")
 cluster.addRotationMultiUser("MultiUserRotation", RotationMultiUserOptions.builder()
  • Method Details

    • getSecret

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

      It must be a JSON string with the following format:

          "engine": <required: database engine>,
          "host": <required: instance host name>,
          "username": <required: username>,
          "password": <required: password>,
          "dbname": <optional: database name>,
          "port": <optional: if not specified, default port will be used>,
          "masterarn": <required: the arn of the master secret which will be used to create users/change passwords>
    • getAutomaticallyAfter

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

      Default: Duration.days(30)

    • builder

      @Stability(Experimental) static RotationMultiUserOptions.Builder builder()
      a RotationMultiUserOptions.Builder of RotationMultiUserOptions