interface Login
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Redshift.Alpha.Login |
Go | github.com/aws/aws-cdk-go/awscdkredshiftalpha/v2#Login |
Java | software.amazon.awscdk.services.redshift.alpha.Login |
Python | aws_cdk.aws_redshift_alpha.Login |
TypeScript (source) | @aws-cdk/aws-redshift-alpha ยป Login |
Username and password combination.
Example
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,
publiclyAccessible: true,
elasticIp: '10.123.123.255', // A elastic ip you own
})
Properties
| Name | Type | Description |
|---|---|---|
| master | string | Username. |
| encryption | IKey | KMS encryption key to encrypt the generated secret. |
| exclude | string | Characters to not include in the generated password. |
| master | Secret | Password. |
masterUsername
Type:
string
Username.
encryptionKey?
Type:
IKey
(optional, default: default master key)
KMS encryption key to encrypt the generated secret.
excludeCharacters?
Type:
string
(optional, default: '"@/\\ '')
Characters to not include in the generated password.
masterPassword?
Type:
Secret
(optional, default: a Secrets Manager generated password)
Password.
Do not put passwords in your CDK code directly.

.NET
Go
Java
Python
TypeScript (