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

A Basic Auth configuration.

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

## 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';
const basicAuthConfig: amplify_alpha.BasicAuthConfig = {
  enableBasicAuth: false,
  password: 'password',
  username: 'username',
};
```

## Properties

- `enableBasicAuth`: boolean (required) — Whether to enable Basic Auth.

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

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