Interface ISingleUserHostedRotationOptions
Single user hosted rotation options.
Namespace: Amazon.CDK.AWS.SecretsManager
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ISingleUserHostedRotationOptions
Syntax (vb)
Public Interface 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
Properties
ExcludeCharacters | Single user hosted rotation options. |
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. |
Properties
ExcludeCharacters
Single user hosted rotation options.
string? ExcludeCharacters { get; }
Property Value
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);
FunctionName
A name for the Lambda created to rotate the secret.
string? FunctionName { get; }
Property Value
Remarks
Default: - a CloudFormation generated name
SecurityGroups
A list of security groups for the Lambda created to rotate the secret.
ISecurityGroup[]? SecurityGroups { get; }
Property Value
Remarks
Default: - a new security group is created
Vpc
The VPC where the Lambda rotation function will run.
IVpc? Vpc { get; }
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.
ISubnetSelection? VpcSubnets { get; }
Property Value
Remarks
Default: - the Vpc default strategy if not specified.