> **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.277.0/packages/@aws-cdk/aws-amplify-alpha/lib/basic-auth.ts#L34)

## Example

TypeScript:

```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',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_amplify_alpha as amplify_alpha

basic_auth_config = amplify_alpha.BasicAuthConfig(
    enable_basic_auth=False,
    password="password",
    username="username"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.amplify.alpha.*;

BasicAuthConfig basicAuthConfig = BasicAuthConfig.builder()
        .enableBasicAuth(false)
        .password("password")
        .username("username")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Amplify.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Amplify.Alpha;

var basicAuthConfig = new BasicAuthConfig {
    EnableBasicAuth = false,
    Password = "password",
    Username = "username"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkamplifyalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import amplify_alpha "github.com/aws/aws-cdk-go/awscdkamplifyalpha"

basicAuthConfig := &BasicAuthConfig{
	EnableBasicAuth: jsii.Boolean(false),
	Password: jsii.String("password"),
	Username: jsii.String("username"),
}
```

## Properties

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

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

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