@Stability(value=Experimental) public static final class RotationMultiUserOptions.Builder extends Object implements software.amazon.jsii.Builder<RotationMultiUserOptions>
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() |
@Stability(value=Experimental) 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: 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>
}
this@Stability(value=Experimental) 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@Stability(value=Experimental) public RotationMultiUserOptions build()
build in interface software.amazon.jsii.Builder<RotationMultiUserOptions>RotationMultiUserOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.