@Stability(value=Experimental) public static final class RotationScheduleProps.Builder extends Object implements software.amazon.jsii.Builder<RotationScheduleProps>
RotationScheduleProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RotationScheduleProps.Builder |
automaticallyAfter(Duration automaticallyAfter)
Sets the value of
RotationScheduleOptions.getAutomaticallyAfter() |
RotationScheduleProps |
build()
Builds the configured instance.
|
RotationScheduleProps.Builder |
hostedRotation(HostedRotation hostedRotation)
Sets the value of
RotationScheduleOptions.getHostedRotation() |
RotationScheduleProps.Builder |
rotationLambda(IFunction rotationLambda)
Sets the value of
RotationScheduleOptions.getRotationLambda() |
RotationScheduleProps.Builder |
secret(ISecret secret)
Sets the value of
RotationScheduleProps.getSecret() |
@Stability(value=Experimental) public RotationScheduleProps.Builder secret(ISecret secret)
RotationScheduleProps.getSecret()secret - The secret to rotate. This parameter is required.
If hosted rotation is used, this 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 for multi user rotation: the arn of the master secret which will be used to create users/change passwords>
}
This is typically the case for a secret referenced from an AWS::SecretsManager::SecretTargetAttachment
or an ISecret returned by the attach() method of Secret.
this@Stability(value=Experimental) public RotationScheduleProps.Builder automaticallyAfter(Duration automaticallyAfter)
RotationScheduleOptions.getAutomaticallyAfter()automaticallyAfter - Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.this@Stability(value=Experimental) public RotationScheduleProps.Builder hostedRotation(HostedRotation hostedRotation)
RotationScheduleOptions.getHostedRotation()hostedRotation - Hosted rotation.this@Stability(value=Experimental) public RotationScheduleProps.Builder rotationLambda(IFunction rotationLambda)
RotationScheduleOptions.getRotationLambda()rotationLambda - A Lambda function that can rotate the secret.this@Stability(value=Experimental) public RotationScheduleProps build()
build in interface software.amazon.jsii.Builder<RotationScheduleProps>RotationSchedulePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.