@aws-cdk_aws-redshift-alpha.DatabaseSecretProps

interface DatabaseSecretProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Redshift.Alpha.DatabaseSecretProps
Gogithub.com/aws/aws-cdk-go/awscdkredshiftalpha/v2#DatabaseSecretProps
Javasoftware.amazon.awscdk.services.redshift.alpha.DatabaseSecretProps
Pythonaws_cdk.aws_redshift_alpha.DatabaseSecretProps
TypeScript (source)@aws-cdk/aws-redshift-alpha ยป DatabaseSecretProps

Construction properties for a DatabaseSecret.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';
import { aws_kms as kms } from 'aws-cdk-lib';

declare const key: kms.Key;
const databaseSecretProps: redshift_alpha.DatabaseSecretProps = {
  username: 'username',

  // the properties below are optional
  encryptionKey: key,
};

Properties

NameTypeDescription
username๐Ÿ”นstringThe username.
encryptionKey?๐Ÿ”นIKeyThe KMS key to use to encrypt the secret.

username๐Ÿ”น

Type: string

The username.


encryptionKey?๐Ÿ”น

Type: IKey (optional, default: default master key)

The KMS key to use to encrypt the secret.