Class RotationMultiUserOptions.Builder

java.lang.Object
software.amazon.awscdk.services.redshift.RotationMultiUserOptions.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<RotationMultiUserOptions>
Enclosing interface:
RotationMultiUserOptions

@Stability(Experimental) public static final class RotationMultiUserOptions.Builder extends Object implements software.amazon.jsii.Builder<RotationMultiUserOptions>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • secret

      @Stability(Experimental) public RotationMultiUserOptions.Builder secret(ISecret secret)
      Parameters:
      secret - The secret to rotate. This parameter is required. 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>
                     }
                     
      Returns:
      this
    • automaticallyAfter

      @Stability(Experimental) public RotationMultiUserOptions.Builder automaticallyAfter(Duration automaticallyAfter)
      Parameters:
      automaticallyAfter - Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
      Returns:
      this
    • build

      @Stability(Experimental) public RotationMultiUserOptions build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<RotationMultiUserOptions>
      Returns:
      a new instance of RotationMultiUserOptions
      Throws:
      NullPointerException - if any required attribute was not provided