@aws-cdk/aws-redshift-alpha
Version:
The CDK Construct Library for AWS::Redshift
24 lines (23 loc) • 673 B
TypeScript
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
import { ICluster } from './cluster';
/**
* Properties for accessing a Redshift database
*/
export interface DatabaseOptions {
/**
* The cluster containing the database.
*/
readonly cluster: ICluster;
/**
* The name of the database.
*/
readonly databaseName: string;
/**
* The secret containing credentials to a Redshift user with administrator privileges.
*
* Secret JSON schema: `{ username: string; password: string }`.
*
* @default - the admin secret is taken from the cluster
*/
readonly adminUser?: secretsmanager.ISecret;
}