Skip to content
v2.274.0

CommonRotationUserOptions Struct ​

Properties common to single-user and multi-user rotation options.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
import { aws_rds as rds } from 'aws-cdk-lib';

declare const interfaceVpcEndpoint: ec2.InterfaceVpcEndpoint;
declare const securityGroup: ec2.SecurityGroup;
declare const subnet: ec2.Subnet;
declare const subnetFilter: ec2.SubnetFilter;
const commonRotationUserOptions: rds.CommonRotationUserOptions = {
  automaticallyAfter: cdk.Duration.minutes(30),
  endpoint: interfaceVpcEndpoint,
  excludeCharacters: 'excludeCharacters',
  rotateImmediatelyOnUpdate: false,
  securityGroup: securityGroup,
  vpcSubnets: {
    availabilityZones: ['availabilityZones'],
    onePerAz: false,
    subnetFilters: [subnetFilter],
    subnetGroupName: 'subnetGroupName',
    subnets: [subnet],
    subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
  },
};

Properties ​

automaticallyAfterDurationautomatically_afterDurationautomaticallyAfterDurationAutomaticallyAfterDurationAutomaticallyAfterDuration= 30 days#
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
endpointIInterfaceVpcEndpointendpointIInterfaceVpcEndpointendpointIInterfaceVpcEndpointEndpointIInterfaceVpcEndpointEndpointIInterfaceVpcEndpoint= https://secretsmanager.<region>.…#
The VPC interface endpoint to use for the Secrets Manager API.
notes · default

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.

Default: https://secretsmanager.<region>.amazonaws.com

excludeCharactersstringexclude_charactersstrexcludeCharactersStringExcludeCharactersstringExcludeCharacters*string= " %+~`#$&*()|[]{}:;<>?!'/@\"\\"#
Specifies characters to not include in generated passwords.
rotateImmediatelyOnUpdatebooleanrotate_immediately_on_updateboolrotateImmediatelyOnUpdateBooleanRotateImmediatelyOnUpdateboolRotateImmediatelyOnUpdate*bool= true#
Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.
securityGroupISecurityGroupsecurity_groupISecurityGroupsecurityGroupISecurityGroupSecurityGroupISecurityGroupSecurityGroupISecurityGroup= a new security group is created#
The security group for the Lambda rotation function.
vpcSubnetsSubnetSelectionvpc_subnetsSubnetSelectionvpcSubnetsSubnetSelectionVpcSubnetsSubnetSelectionVpcSubnetsSubnetSelection= same placement as instance or cl…#
Where to place the rotation Lambda function.
default

Default: same placement as instance or cluster