Experimental
@aws-cdk/aws-redshift-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
Login Struct
Username and password combination.
Example
ts
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as cdk from 'aws-cdk-lib';
declare const vpc: ec2.Vpc;
new Cluster(this, 'Redshift', {
masterUser: {
masterUsername: 'admin',
masterPassword: cdk.SecretValue.unsafePlainText('tooshort'),
},
vpc,
enhancedVpcRouting: true,
})
csharp
// Install: dotnet add package Amazon.CDK.AWS.Redshift.Alpha
using Amazon.CDK.AWS.EC2;
using Amazon.CDK;
Vpc vpc;
new Cluster(this, "Redshift", new ClusterProps {
MasterUser = new Login {
MasterUsername = "admin",
MasterPassword = SecretValue.UnsafePlainText("tooshort")
},
Vpc = vpc,
EnhancedVpcRouting = true
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdkredshiftalpha/v2
import ec2 "github.com/aws/aws-cdk-go/awscdk"
import cdk "github.com/aws/aws-cdk-go/awscdk"
var vpc Vpc
awscdkredshiftalpha.NewCluster(this, jsii.String("Redshift"), &ClusterProps{
MasterUser: &Login{
MasterUsername: jsii.String("admin"),
MasterPassword: cdk.SecretValue_UnsafePlainText(jsii.String("tooshort")),
},
Vpc: Vpc,
EnhancedVpcRouting: jsii.Boolean(true),
})
Properties
encryptionKeyoptionalIKeyencryption_keyoptionalIKeyencryptionKeyoptionalIKeyEncryptionKeyoptionalIKeyEncryptionKeyoptionalIKey#KMS encryption key to encrypt the generated secret.
Default: default master key
excludeCharactersoptionalstringexclude_charactersoptionalstrexcludeCharactersoptionalStringExcludeCharactersoptionalstringExcludeCharactersoptional*string#Characters to not include in the generated password.
Default: '"@/\\ ''
masterPasswordoptionalSecretValuemaster_passwordoptionalSecretValuemasterPasswordoptionalSecretValueMasterPasswordoptionalSecretValueMasterPasswordoptionalSecretValue#Password.
Default: a Secrets Manager generated password
Do not put passwords in your CDK code directly.
masterUsernamestringmaster_usernamestrmasterUsernameStringMasterUsernamestringMasterUsername*stringrequired#Username.