Interface RotationMultiUserOptions

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

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

Example:

 User user = User.Builder.create(this, "User")
         .cluster(cluster)
         .databaseName("databaseName")
         .build();
 cluster.addRotationMultiUser("MultiUserRotation", RotationMultiUserOptions.builder()
         .secret(user.getSecret())
         .build());
 
  • 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()
      Returns:
      a RotationMultiUserOptions.Builder of RotationMultiUserOptions