# ClientPasswordAuthType

Client password authentication type used by a proxy to log in as a specific database user.

- Source: [`aws-rds/lib/proxy.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-rds/lib/proxy.ts#L23)
- Type last changed: v2.215.0 · 15 Sep 2025

## Example

```ts
declare const vpc: ec2.Vpc;
const cluster = new rds.DatabaseCluster(this, 'Database', {
  engine: rds.DatabaseClusterEngine.auroraMysql({
    version: rds.AuroraMysqlEngineVersion.VER_3_03_0,
  }),
  writer: rds.ClusterInstance.provisioned('writer'),
  vpc,
});

const proxy = new rds.DatabaseProxy(this, 'Proxy', {
  proxyTarget: rds.ProxyTarget.fromCluster(cluster),
  secrets: [cluster.secret!],
  vpc,
  clientPasswordAuthType: rds.ClientPasswordAuthType.MYSQL_NATIVE_PASSWORD,
});
```

## Members

| Member | Description |
| --- | --- |
| `MYSQL_NATIVE_PASSWORD` | MySQL Native Password client authentication type. |
| `POSTGRES_SCRAM_SHA_256` | SCRAM SHA 256 client authentication type. |
| `POSTGRES_MD5` | PostgreSQL MD5 client authentication type. |
| `SQL_SERVER_AUTHENTICATION` | SQL Server Authentication client authentication type. |
| `MYSQL_CACHING_SHA2_PASSWORD` | MySQL Caching SHA2 Password client authentication type. |

## Referenced by

- [`DatabaseProxyOptions`](/v2/docs/aws-cdk-lib.aws_rds.DatabaseProxyOptions).clientPasswordAuthType
