@Stability(value=Stable) 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)
The serverless application for the rotation.
|
SecretRotation.Builder |
automaticallyAfter(Duration automaticallyAfter)
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 |
endpoint(IInterfaceVpcEndpoint endpoint)
The VPC interface endpoint to use for the Secrets Manager API.
|
SecretRotation.Builder |
excludeCharacters(String excludeCharacters)
Characters which should not appear in the generated password.
|
SecretRotation.Builder |
masterSecret(ISecret masterSecret)
The master secret for a multi user rotation scheme.
|
SecretRotation.Builder |
secret(ISecret secret)
The secret to rotate.
|
SecretRotation.Builder |
securityGroup(ISecurityGroup securityGroup)
The security group for the Lambda rotation function.
|
SecretRotation.Builder |
target(IConnectable target)
The target service or database.
|
SecretRotation.Builder |
vpc(IVpc vpc)
The VPC where the Lambda rotation function will run.
|
SecretRotation.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
The type of subnets in the VPC where the Lambda rotation function will run.
|
@Stability(value=Stable) 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=Stable) public SecretRotation.Builder application(SecretRotationApplication application)
application - The serverless application for the rotation. This parameter is required.this@Stability(value=Stable) 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.this@Stability(value=Stable) public SecretRotation.Builder target(IConnectable target)
target - The target service or database. This parameter is required.this@Stability(value=Stable) public SecretRotation.Builder vpc(IVpc vpc)
vpc - The VPC where the Lambda rotation function will run. This parameter is required.this@Stability(value=Stable) 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=Stable) public SecretRotation.Builder endpoint(IInterfaceVpcEndpoint endpoint)
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.
Default: https://secretsmanager.
endpoint - The VPC interface endpoint to use for the Secrets Manager API. This parameter is required.this@Stability(value=Stable) 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=Stable) 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=Stable) 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=Stable) 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=Stable) public SecretRotation build()
build in interface software.amazon.jsii.Builder<SecretRotation>Copyright © 2022. All rights reserved.