@Stability(value=Experimental) public static final class SecretRotationProps.Builder extends Object implements software.amazon.jsii.Builder<SecretRotationProps>
SecretRotationProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public SecretRotationProps.Builder application(SecretRotationApplication application)
SecretRotationProps.getApplication()application - The serverless application for the rotation. This parameter is required.this@Stability(value=Experimental) public SecretRotationProps.Builder secret(ISecret secret)
SecretRotationProps.getSecret()secret - The secret to rotate. It must be a JSON string with the following format:. This parameter is required.
{
"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 SecretRotationProps.Builder target(IConnectable target)
SecretRotationProps.getTarget()target - The target service or database. This parameter is required.this@Stability(value=Experimental) public SecretRotationProps.Builder vpc(IVpc vpc)
SecretRotationProps.getVpc()vpc - The VPC where the Lambda rotation function will run. This parameter is required.this@Stability(value=Experimental) public SecretRotationProps.Builder automaticallyAfter(Duration automaticallyAfter)
SecretRotationProps.getAutomaticallyAfter()automaticallyAfter - Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.this@Stability(value=Experimental) public SecretRotationProps.Builder excludeCharacters(String excludeCharacters)
SecretRotationProps.getExcludeCharacters()excludeCharacters - Characters which should not appear in the generated password.this@Stability(value=Experimental) public SecretRotationProps.Builder masterSecret(ISecret masterSecret)
SecretRotationProps.getMasterSecret()masterSecret - The master secret for a multi user rotation scheme.this@Stability(value=Experimental) public SecretRotationProps.Builder securityGroup(ISecurityGroup securityGroup)
SecretRotationProps.getSecurityGroup()securityGroup - The security group for the Lambda rotation function.this@Stability(value=Experimental) public SecretRotationProps.Builder vpcSubnets(SubnetSelection vpcSubnets)
SecretRotationProps.getVpcSubnets()vpcSubnets - The type of subnets in the VPC where the Lambda rotation function will run.this@Stability(value=Experimental) public SecretRotationProps build()
build in interface software.amazon.jsii.Builder<SecretRotationProps>SecretRotationPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.