@Stability(value=Stable) 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
CommonRotationUserOptions.getAutomaticallyAfter() |
RotationMultiUserOptions |
build()
Builds the configured instance.
|
RotationMultiUserOptions.Builder |
endpoint(IInterfaceVpcEndpoint endpoint)
Sets the value of
CommonRotationUserOptions.getEndpoint() |
RotationMultiUserOptions.Builder |
excludeCharacters(String excludeCharacters)
Sets the value of
CommonRotationUserOptions.getExcludeCharacters() |
RotationMultiUserOptions.Builder |
secret(ISecret secret)
Sets the value of
RotationMultiUserOptions.getSecret() |
RotationMultiUserOptions.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
Sets the value of
CommonRotationUserOptions.getVpcSubnets() |
@Stability(value=Stable) 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@Stability(value=Stable) public RotationMultiUserOptions.Builder automaticallyAfter(Duration automaticallyAfter)
CommonRotationUserOptions.getAutomaticallyAfter()automaticallyAfter - Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.this@Stability(value=Stable) public RotationMultiUserOptions.Builder endpoint(IInterfaceVpcEndpoint endpoint)
CommonRotationUserOptions.getEndpoint()endpoint - The VPC interface endpoint to use for the Secrets Manager API.
If you enable private DNS hostnames for your VPC private endpoint (the default), you don't
need to specify an endpoint. The standard Secrets Manager DNS hostname the Secrets Manager
CLI and SDKs use by default (https://secretsmanager.this@Stability(value=Stable) public RotationMultiUserOptions.Builder excludeCharacters(String excludeCharacters)
CommonRotationUserOptions.getExcludeCharacters()excludeCharacters - Specifies characters to not include in generated passwords.this@Stability(value=Stable) public RotationMultiUserOptions.Builder vpcSubnets(SubnetSelection vpcSubnets)
CommonRotationUserOptions.getVpcSubnets()vpcSubnets - Where to place the rotation Lambda function.this@Stability(value=Stable) public RotationMultiUserOptions build()
build in interface software.amazon.jsii.Builder<RotationMultiUserOptions>RotationMultiUserOptionsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.