Class RotationSingleUserOptions
Options to add the multi user rotation.
Inherited Members
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RotationSingleUserOptions : IRotationSingleUserOptions, ICommonRotationUserOptions
Syntax (vb)
Public Class RotationSingleUserOptions Implements IRotationSingleUserOptions, ICommonRotationUserOptions
Remarks
ExampleMetadata: infused
Examples
DatabaseInstance instance;
SecurityGroup mySecurityGroup;
instance.AddRotationSingleUser(new RotationSingleUserOptions {
AutomaticallyAfter = Duration.Days(7), // defaults to 30 days
ExcludeCharacters = "!@#$%^&*", // defaults to the set " %+~`#/// here*()|[]{}:;<>?!'/@\"\\"
SecurityGroup = mySecurityGroup
});
Synopsis
Constructors
| RotationSingleUserOptions() | Options to add the multi user rotation. |
Properties
| AutomaticallyAfter | Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation. |
| Endpoint | Options to add the multi user rotation. |
| ExcludeCharacters | Options to add the multi user rotation. |
| RotateImmediatelyOnUpdate | Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window. |
| SecurityGroup | The security group for the Lambda rotation function. |
| VpcSubnets | Where to place the rotation Lambda function. |
Constructors
RotationSingleUserOptions()
Options to add the multi user rotation.
public RotationSingleUserOptions()
Remarks
ExampleMetadata: infused
Examples
DatabaseInstance instance;
SecurityGroup mySecurityGroup;
instance.AddRotationSingleUser(new RotationSingleUserOptions {
AutomaticallyAfter = Duration.Days(7), // defaults to 30 days
ExcludeCharacters = "!@#$%^&*", // defaults to the set " %+~`#/// here*()|[]{}:;<>?!'/@\"\\"
SecurityGroup = mySecurityGroup
});
Properties
AutomaticallyAfter
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
public Duration? AutomaticallyAfter { get; set; }
Property Value
Remarks
Default: - 30 days
Endpoint
Options to add the multi user rotation.
public IInterfaceVpcEndpoint? Endpoint { get; set; }
Property Value
Remarks
ExampleMetadata: infused
ExcludeCharacters
Options to add the multi user rotation.
public string? ExcludeCharacters { get; set; }
Property Value
Remarks
ExampleMetadata: infused
RotateImmediatelyOnUpdate
Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.
public bool? RotateImmediatelyOnUpdate { get; set; }
Property Value
bool?
Remarks
Default: true
SecurityGroup
The security group for the Lambda rotation function.
public ISecurityGroup? SecurityGroup { get; set; }
Property Value
Remarks
Default: - a new security group is created
VpcSubnets
Where to place the rotation Lambda function.
public ISubnetSelection? VpcSubnets { get; set; }
Property Value
Remarks
Default: - same placement as instance or cluster