-
Notifications
You must be signed in to change notification settings - Fork 17
/
Login.go
48 lines (45 loc) · 1.46 KB
/
Login.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
46
47
package awsdocdb
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
"github.com/aws/aws-cdk-go/awscdk/v2/awskms"
)
// Login credentials for a database cluster.
//
// Example:
// var vpc vpc
//
//
// cluster := docdb.NewDatabaseCluster(this, jsii.String("Database"), &DatabaseClusterProps{
// MasterUser: &Login{
// Username: jsii.String("myuser"),
// },
// InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_MEMORY5, ec2.InstanceSize_LARGE),
// VpcSubnets: &SubnetSelection{
// SubnetType: ec2.SubnetType_PUBLIC,
// },
// Vpc: Vpc,
// RemovalPolicy: awscdk.RemovalPolicy_SNAPSHOT,
// })
//
type Login struct {
// Username.
Username *string `field:"required" json:"username" yaml:"username"`
// Specifies characters to not include in generated passwords.
// Default: "\"@/".
//
ExcludeCharacters *string `field:"optional" json:"excludeCharacters" yaml:"excludeCharacters"`
// KMS encryption key to encrypt the generated secret.
// Default: default master key.
//
KmsKey awskms.IKey `field:"optional" json:"kmsKey" yaml:"kmsKey"`
// Password.
//
// Do not put passwords in your CDK code directly.
// Default: a Secrets Manager generated password.
//
Password awscdk.SecretValue `field:"optional" json:"password" yaml:"password"`
// The physical name of the secret, that will be generated.
// Default: Secretsmanager will generate a physical name for the secret.
//
SecretName *string `field:"optional" json:"secretName" yaml:"secretName"`
}