Interface ISingleUserHostedRotationOptions
- Namespace
- Amazon.CDK.AWS.SecretsManager
- Assembly
- Amazon.CDK.AWS.SecretsManager.dll
Single user hosted rotation options.
public interface ISingleUserHostedRotationOptions
Examples
Vpc myVpc;
Connections dbConnections;
Secret secret;
var myHostedRotation = HostedRotation.MysqlSingleUser(new SingleUserHostedRotationOptions { Vpc = myVpc });
secret.AddRotationSchedule("RotationSchedule", new RotationScheduleOptions { HostedRotation = myHostedRotation });
dbConnections.AllowDefaultPortFrom(myHostedRotation);
Remarks
ExampleMetadata: infused
Properties
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
- ISecurityGroup[]
Remarks
Default: - a new security group is created
Vpc
The VPC where the Lambda rotation function will run.
IVpc? Vpc { get; }
Property Value
- IVpc
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
- ISubnetSelection
Remarks
Default: - the Vpc default strategy if not specified.