# BasicAuthenticationCredentialsProperty

For supplying basic auth credentials when not providing a `SecretArn` value.

- Source: Generated at build time
- Type last changed: v2.178.0 · 6 Feb 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const basicAuthenticationCredentialsProperty: glue.CfnConnection.BasicAuthenticationCredentialsProperty = {
  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.
from aws_cdk import aws_glue as glue

basic_authentication_credentials_property = glue.CfnConnection.BasicAuthenticationCredentialsProperty(
    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.glue.*;

BasicAuthenticationCredentialsProperty basicAuthenticationCredentialsProperty = BasicAuthenticationCredentialsProperty.builder()
        .password("password")
        .username("username")
        .build();
```

C# / .NET:

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

var basicAuthenticationCredentialsProperty = new BasicAuthenticationCredentialsProperty {
    Password = "password",
    Username = "username"
};
```

Golang:

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

basicAuthenticationCredentialsProperty := &BasicAuthenticationCredentialsProperty{
	Password: jsii.String("password"),
	Username: jsii.String("username"),
}
```

## Properties

- `password`: string — The password to connect to the data source.

- `username`: string — The username to connect to the data source.
