Class RotationMultiUserOptions.Builder
java.lang.Object
software.amazon.awscdk.services.docdb.RotationMultiUserOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RotationMultiUserOptions>
- Enclosing interface:
RotationMultiUserOptions
@Stability(Stable)
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: must be set to 'mongo'>, "host": <required: instance host name>, "username": <required: username>, "password": <required: password>, "dbname": <optional: database name>, "port": <optional: if not specified, default port 27017 will be used>, "masterarn": <required: the arn of the master secret which will be used to create users/change passwords> "ssl": <optional: if not specified, defaults to false. This must be true if being used for DocumentDB rotations where the cluster has TLS enabled> }
- Returns:
this
-
automaticallyAfter
@Stability(Stable) 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
-