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

Properties for a BasicAuth.

Extends: BasicAuthProps
Used as props by: BasicAuth

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/basic-auth.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-amplify-alpha/lib/basic-auth.ts#L9)

## Example

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

declare const key: kms.Key;
declare const secretValue: cdk.SecretValue;
const basicAuthProps: amplify_alpha.BasicAuthProps = {
  username: 'username',

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

## Properties

- `encryptionKey`: [IKey](/cdk/api/v2/docs/aws-cdk-lib.aws_kms.IKey.html) — The encryption key to use to encrypt the password when it's generated in Secrets Manager.

  **Default:** default master key

- `password`: [SecretValue](/cdk/api/v2/docs/aws-cdk-lib.SecretValue.html) — The password.

  **Default:** A Secrets Manager generated password

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