interface DatabaseSecretProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Redshift.DatabaseSecretProps |
![]() | software.amazon.awscdk.services.redshift.DatabaseSecretProps |
![]() | aws_cdk.aws_redshift.DatabaseSecretProps |
![]() | @aws-cdk/aws-redshift » 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 kms from '@aws-cdk/aws-kms';
import * as redshift from '@aws-cdk/aws-redshift';
declare const key: kms.Key;
const databaseSecretProps: redshift.DatabaseSecretProps = {
username: 'username',
// the properties below are optional
encryptionKey: key,
};
Properties
Name | Type | Description |
---|---|---|
username | string | The username. |
encryption | IKey | The 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.