/
SingleUserHostedRotationOptions.go
46 lines (43 loc) · 1.67 KB
/
SingleUserHostedRotationOptions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package awssecretsmanager
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awsec2"
)
// Single user hosted rotation options.
//
// Example:
// var myVpc iVpc
// var dbConnections connections
// var secret secret
//
//
// myHostedRotation := secretsmanager.HostedRotation_MysqlSingleUser(&SingleUserHostedRotationOptions{
// Vpc: myVpc,
// })
// secret.addRotationSchedule(jsii.String("RotationSchedule"), &RotationScheduleOptions{
// HostedRotation: myHostedRotation,
// })
// dbConnections.AllowDefaultPortFrom(myHostedRotation)
//
type SingleUserHostedRotationOptions struct {
// A string of the characters that you don't want in the password.
// Default: the same exclude characters as the ones used for the
// secret or " %+~`#$&*()|[]{}:;<>?!'/@\"\\"
//
ExcludeCharacters *string `field:"optional" json:"excludeCharacters" yaml:"excludeCharacters"`
// A name for the Lambda created to rotate the secret.
// Default: - a CloudFormation generated name.
//
FunctionName *string `field:"optional" json:"functionName" yaml:"functionName"`
// A list of security groups for the Lambda created to rotate the secret.
// Default: - a new security group is created.
//
SecurityGroups *[]awsec2.ISecurityGroup `field:"optional" json:"securityGroups" yaml:"securityGroups"`
// The VPC where the Lambda rotation function will run.
// Default: - the Lambda is not deployed in a VPC.
//
Vpc awsec2.IVpc `field:"optional" json:"vpc" yaml:"vpc"`
// The type of subnets in the VPC where the Lambda rotation function will run.
// Default: - the Vpc default strategy if not specified.
//
VpcSubnets *awsec2.SubnetSelection `field:"optional" json:"vpcSubnets" yaml:"vpcSubnets"`
}