-
Notifications
You must be signed in to change notification settings - Fork 17
/
SnapshotCredentialsFromGeneratedPasswordOptions.go
50 lines (47 loc) · 1.79 KB
/
SnapshotCredentialsFromGeneratedPasswordOptions.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
48
49
package awsrds
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awskms"
"github.com/aws/aws-cdk-go/awscdk/v2/awssecretsmanager"
)
// Options used in the `SnapshotCredentials.fromGeneratedPassword` method.
//
// Example:
// var vpc vpc
//
// engine := rds.DatabaseInstanceEngine_Postgres(&PostgresInstanceEngineProps{
// Version: rds.PostgresEngineVersion_VER_15_2(),
// })
// myKey := kms.NewKey(this, jsii.String("MyKey"))
//
// rds.NewDatabaseInstanceFromSnapshot(this, jsii.String("InstanceFromSnapshotWithCustomizedSecret"), &DatabaseInstanceFromSnapshotProps{
// Engine: Engine,
// Vpc: Vpc,
// SnapshotIdentifier: jsii.String("mySnapshot"),
// Credentials: rds.SnapshotCredentials_FromGeneratedSecret(jsii.String("username"), &SnapshotCredentialsFromGeneratedPasswordOptions{
// EncryptionKey: myKey,
// ExcludeCharacters: jsii.String("!&*^#@()"),
// ReplicaRegions: []replicaRegion{
// &replicaRegion{
// Region: jsii.String("eu-west-1"),
// },
// &replicaRegion{
// Region: jsii.String("eu-west-2"),
// },
// },
// }),
// })
//
type SnapshotCredentialsFromGeneratedPasswordOptions struct {
// KMS encryption key to encrypt the generated secret.
// Default: - default master key.
//
EncryptionKey awskms.IKey `field:"optional" json:"encryptionKey" yaml:"encryptionKey"`
// The characters to exclude from the generated password.
// Default: - the DatabaseSecret default exclude character set (" %+~`#$&*()|[]{}:;<>?!'/@\"\\")
//
ExcludeCharacters *string `field:"optional" json:"excludeCharacters" yaml:"excludeCharacters"`
// A list of regions where to replicate this secret.
// Default: - Secret is not replicated.
//
ReplicaRegions *[]*awssecretsmanager.ReplicaRegion `field:"optional" json:"replicaRegions" yaml:"replicaRegions"`
}