Class SingleUserHostedRotationOptions
Single user hosted rotation options.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.SecretsManager
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SingleUserHostedRotationOptions : Object, ISingleUserHostedRotationOptions
Syntax (vb)
Public Class SingleUserHostedRotationOptions
Inherits Object
Implements ISingleUserHostedRotationOptions
Remarks
ExampleMetadata: infused
Examples
IVpc myVpc;
Connections dbConnections;
Secret secret;
var myHostedRotation = HostedRotation.MysqlSingleUser(new SingleUserHostedRotationOptions { Vpc = myVpc });
secret.AddRotationSchedule("RotationSchedule", new RotationScheduleOptions { HostedRotation = myHostedRotation });
dbConnections.AllowDefaultPortFrom(myHostedRotation);
Synopsis
Constructors
SingleUserHostedRotationOptions() |
Properties
ExcludeCharacters | |
FunctionName | A name for the Lambda created to rotate the secret. |
SecurityGroups | A list of security groups for the Lambda created to rotate the secret. |
Vpc | The VPC where the Lambda rotation function will run. |
VpcSubnets | The type of subnets in the VPC where the Lambda rotation function will run. |
Constructors
SingleUserHostedRotationOptions()
public SingleUserHostedRotationOptions()
Properties
ExcludeCharacters
public string ExcludeCharacters { get; set; }
Property Value
System.String
FunctionName
A name for the Lambda created to rotate the secret.
public string FunctionName { get; set; }
Property Value
System.String
Remarks
Default: - a CloudFormation generated name
SecurityGroups
A list of security groups for the Lambda created to rotate the secret.
public ISecurityGroup[] SecurityGroups { get; set; }
Property Value
Remarks
Default: - a new security group is created
Vpc
The VPC where the Lambda rotation function will run.
public IVpc Vpc { get; set; }
Property Value
Remarks
Default: - the Lambda is not deployed in a VPC
VpcSubnets
The type of subnets in the VPC where the Lambda rotation function will run.
public ISubnetSelection VpcSubnets { get; set; }
Property Value
Remarks
Default: - the Vpc default strategy if not specified.