Class RotationSingleUserOptions
Options to add the multi user rotation.
Inheritance
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RotationSingleUserOptions : Object, IRotationSingleUserOptions, ICommonRotationUserOptions
Syntax (vb)
Public Class RotationSingleUserOptions
Inherits Object
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, // defaults to an auto-created security group
RotateImmediatelyOnUpdate = false
});
Synopsis
Constructors
RotationSingleUserOptions() |
Properties
AutomaticallyAfter | Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation. |
Endpoint | |
ExcludeCharacters | |
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()
public RotationSingleUserOptions()
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
ExcludeCharacters
public string ExcludeCharacters { get; set; }
Property Value
System.String
RotateImmediatelyOnUpdate
Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.
public Nullable<bool> RotateImmediatelyOnUpdate { get; set; }
Property Value
System.Nullable<System.Boolean>
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