> **Experimental**
>
> `@aws-cdk/aws-redshift-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# DatabaseSecretProps

Construction properties for a DatabaseSecret.

Extends: DatabaseSecretProps
Used as props by: DatabaseSecret

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/database-secret.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-redshift-alpha/lib/database-secret.ts#L10)

## Example

```ts
// 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,
  excludeCharacters: 'excludeCharacters',
};
```

## Properties

- `encryptionKey`: [IKey](/cdk/api/v2/docs/aws-cdk-lib.aws_kms.IKey.html) — The KMS key to use to encrypt the secret.

  **Default:** default master key

- `excludeCharacters`: string — Characters to not include in the generated password.

  **Default:** '"@/\\\ \''

- `username`: string (required) — The username.
