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>
A builder for
RotationMultiUserOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautomaticallyAfter
(Duration automaticallyAfter) Sets the value ofRotationMultiUserOptions.getAutomaticallyAfter()
build()
Builds the configured instance.Sets the value ofRotationMultiUserOptions.getSecret()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
secret
Sets the value ofRotationMultiUserOptions.getSecret()
- 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) Sets the value ofRotationMultiUserOptions.getAutomaticallyAfter()
- Parameters:
automaticallyAfter
- Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RotationMultiUserOptions>
- Returns:
- a new instance of
RotationMultiUserOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-