package awsrds import ( "github.com/aws/aws-cdk-go/awscdk/v2/awskms" "github.com/aws/aws-cdk-go/awscdk/v2/awssecretsmanager" ) // Base options for creating Credentials. // // Example: // var vpc vpc // // engine := rds.DatabaseInstanceEngine_Postgres(&PostgresInstanceEngineProps{ // Version: rds.PostgresEngineVersion_VER_15_2(), // }) // myKey := kms.NewKey(this, jsii.String("MyKey")) // // rds.NewDatabaseInstance(this, jsii.String("InstanceWithCustomizedSecret"), &DatabaseInstanceProps{ // Engine: Engine, // Vpc: Vpc, // Credentials: rds.Credentials_FromGeneratedSecret(jsii.String("postgres"), &CredentialsBaseOptions{ // SecretName: jsii.String("my-cool-name"), // EncryptionKey: myKey, // ExcludeCharacters: jsii.String("!&*^#@()"), // ReplicaRegions: []replicaRegion{ // &replicaRegion{ // Region: jsii.String("eu-west-1"), // }, // &replicaRegion{ // Region: jsii.String("eu-west-2"), // }, // }, // }), // }) // type CredentialsBaseOptions struct { // KMS encryption key to encrypt the generated secret. EncryptionKey awskms.IKey `field:"optional" json:"encryptionKey" yaml:"encryptionKey"` // The characters to exclude from the generated password. // // Has no effect if `password` has been provided. ExcludeCharacters *string `field:"optional" json:"excludeCharacters" yaml:"excludeCharacters"` // A list of regions where to replicate this secret. ReplicaRegions *[]*awssecretsmanager.ReplicaRegion `field:"optional" json:"replicaRegions" yaml:"replicaRegions"` // The name of the secret. SecretName *string `field:"optional" json:"secretName" yaml:"secretName"` }