@Stability(value=Experimental) public static final class SecretRotation.Builder extends Object implements software.amazon.jsii.Builder<SecretRotation>
SecretRotation.| Modifier and Type | Method and Description |
|---|---|
SecretRotation.Builder |
application(SecretRotationApplication application)
(experimental) The serverless application for the rotation.
|
SecretRotation.Builder |
automaticallyAfter(Duration automaticallyAfter)
(experimental) Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
|
SecretRotation |
build() |
static SecretRotation.Builder |
create(software.constructs.Construct scope,
String id) |
SecretRotation.Builder |
excludeCharacters(String excludeCharacters)
(experimental) Characters which should not appear in the generated password.
|
SecretRotation.Builder |
masterSecret(ISecret masterSecret)
(experimental) The master secret for a multi user rotation scheme.
|
SecretRotation.Builder |
secret(ISecret secret)
(experimental) The secret to rotate.
|
SecretRotation.Builder |
securityGroup(ISecurityGroup securityGroup)
(experimental) The security group for the Lambda rotation function.
|
SecretRotation.Builder |
target(IConnectable target)
(experimental) The target service or database.
|
SecretRotation.Builder |
vpc(IVpc vpc)
(experimental) The VPC where the Lambda rotation function will run.
|
SecretRotation.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
(experimental) The type of subnets in the VPC where the Lambda rotation function will run.
|
@Stability(value=Experimental) public static SecretRotation.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.SecretRotation.Builder.@Stability(value=Experimental) public SecretRotation.Builder application(SecretRotationApplication application)
application - The serverless application for the rotation. This parameter is required.this@Stability(value=Experimental) public SecretRotation.Builder secret(ISecret secret)
{
"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.
secret - The secret to rotate. It must be a JSON string with the following format:. This parameter is required.thishttps://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html@Stability(value=Experimental) public SecretRotation.Builder target(IConnectable target)
target - The target service or database. This parameter is required.this@Stability(value=Experimental) public SecretRotation.Builder vpc(IVpc vpc)
vpc - The VPC where the Lambda rotation function will run. This parameter is required.this@Stability(value=Experimental) public SecretRotation.Builder automaticallyAfter(Duration automaticallyAfter)
Default: Duration.days(30)
automaticallyAfter - Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation. This parameter is required.this@Stability(value=Experimental) public SecretRotation.Builder excludeCharacters(String excludeCharacters)
Default: - no additional characters are explicitly excluded
excludeCharacters - Characters which should not appear in the generated password. This parameter is required.this@Stability(value=Experimental) public SecretRotation.Builder masterSecret(ISecret masterSecret)
Default: - single user rotation scheme
masterSecret - The master secret for a multi user rotation scheme. This parameter is required.this@Stability(value=Experimental) public SecretRotation.Builder securityGroup(ISecurityGroup securityGroup)
Default: - a new security group is created
securityGroup - The security group for the Lambda rotation function. This parameter is required.this@Stability(value=Experimental) public SecretRotation.Builder vpcSubnets(SubnetSelection vpcSubnets)
Default: - the Vpc default strategy if not specified.
vpcSubnets - The type of subnets in the VPC where the Lambda rotation function will run. This parameter is required.this@Stability(value=Experimental) public SecretRotation build()
build in interface software.amazon.jsii.Builder<SecretRotation>Copyright © 2021. All rights reserved.