# RotationSingleUserOptions

Options to add the multi user rotation.

Extends: RotationSingleUserOptions
Extends: CommonRotationUserOptions

- Source: [`aws-rds/lib/props.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-rds/lib/props.ts#L526)
- Type last changed: v2.16.0 · 12 Mar 2022

## Example

```ts
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
});
```

## Properties

- `automaticallyAfter`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.

  **Default:** 30 days

- `endpoint`: [IInterfaceVpcEndpoint](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IInterfaceVpcEndpoint.html) — The VPC interface endpoint to use for the Secrets Manager API.

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

  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`: string — Specifies characters to not include in generated passwords.

  **Default:** " %+~`#$&*()|[]{}:;<>?!'/@\"\\"

- `rotateImmediatelyOnUpdate`: boolean = true — Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.

- `securityGroup`: [ISecurityGroup](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ISecurityGroup.html) — The security group for the Lambda rotation function.

  **Default:** a new security group is created

- `vpcSubnets`: [SubnetSelection](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.SubnetSelection.html) — Where to place the rotation Lambda function.

  **Default:** same placement as instance or cluster
