Table of Contents

Class SingleUserHostedRotationOptions

Namespace
Amazon.CDK.AWS.SecretsManager
Assembly
Amazon.CDK.AWS.SecretsManager.dll

Single user hosted rotation options.

public class SingleUserHostedRotationOptions : ISingleUserHostedRotationOptions
Inheritance
SingleUserHostedRotationOptions
Implements
Inherited Members

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

Constructors

SingleUserHostedRotationOptions()

public SingleUserHostedRotationOptions()

Properties

FunctionName

A name for the Lambda created to rotate the secret.

public string? FunctionName { get; set; }

Property Value

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

ISecurityGroup[]

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

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.

public ISubnetSelection? VpcSubnets { get; set; }

Property Value

ISubnetSelection

Remarks

Default: - the Vpc default strategy if not specified.