interface RotationSingleUserOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.RDS.RotationSingleUserOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#RotationSingleUserOptions |
![]() | software.amazon.awscdk.services.rds.RotationSingleUserOptions |
![]() | aws_cdk.aws_rds.RotationSingleUserOptions |
![]() | aws-cdk-lib » aws_rds » RotationSingleUserOptions |
Options to add the multi user rotation.
Example
declare const instance: rds.DatabaseInstance;
declare const mySecurityGroup: ec2.SecurityGroup;
instance.addRotationSingleUser({
automaticallyAfter: Duration.days(7), // defaults to 30 days
excludeCharacters: '!@#$%^&*', // defaults to the set " %+~`#$&*()|[]{}:;<>?!'/@\"\\"
securityGroup: mySecurityGroup, // defaults to an auto-created security group
rotateImmediatelyOnUpdate: false, // defaults to true
});
Properties
Name | Type | Description |
---|---|---|
automatically | Duration | Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation. |
endpoint? | IInterface | The VPC interface endpoint to use for the Secrets Manager API. |
exclude | string | Specifies characters to not include in generated passwords. |
rotate | boolean | Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window. |
security | ISecurity | The security group for the Lambda rotation function. |
vpc | Subnet | Where to place the rotation Lambda function. |
automaticallyAfter?
Type:
Duration
(optional, default: 30 days)
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
endpoint?
Type:
IInterface
(optional, default: https://secretsmanager.
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.<region>.amazonaws.com) automatically resolves to your VPC endpoint.
excludeCharacters?
Type:
string
(optional, default: " %+~`#$&()|[]{}:;<>?!'/@"\")*
Specifies characters to not include in generated passwords.
rotateImmediatelyOnUpdate?
Type:
boolean
(optional, default: true)
Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.
securityGroup?
Type:
ISecurity
(optional, default: a new security group is created)
The security group for the Lambda rotation function.
vpcSubnets?
Type:
Subnet
(optional, default: same placement as instance or cluster)
Where to place the rotation Lambda function.