public static final class RotationMultiUserOptions.Builder
extends java.lang.Object
RotationMultiUserOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RotationMultiUserOptions.Builder |
automaticallyAfter(Duration automaticallyAfter)
Sets the value of
RotationMultiUserOptions.getAutomaticallyAfter() |
RotationMultiUserOptions |
build()
Builds the configured instance.
|
RotationMultiUserOptions.Builder |
secret(ISecret secret)
Sets the value of
RotationMultiUserOptions.getSecret() |
public RotationMultiUserOptions.Builder secret(ISecret secret)
RotationMultiUserOptions.getSecret()
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> }
this
public RotationMultiUserOptions.Builder automaticallyAfter(Duration automaticallyAfter)
RotationMultiUserOptions.getAutomaticallyAfter()
automaticallyAfter
- Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.this
public RotationMultiUserOptions build()
RotationMultiUserOptions
java.lang.NullPointerException
- if any required attribute was not provided