# ProxyTargetConfig

The result of binding a `ProxyTarget` to a `DatabaseProxy`.

- Source: [`aws-rds/lib/proxy.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-rds/lib/proxy.ts#L153)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rds as rds } from 'aws-cdk-lib';

declare const databaseCluster: rds.DatabaseCluster;
declare const databaseInstance: rds.DatabaseInstance;
const proxyTargetConfig: rds.ProxyTargetConfig = {
  engineFamily: 'engineFamily',

  // the properties below are optional
  dbClusters: [databaseCluster],
  dbInstances: [databaseInstance],
};
```

## Properties

- `dbClusters`: [IDatabaseCluster](/cdk/api/v2/docs/aws-cdk-lib.aws_rds.IDatabaseCluster.html)[] — The database clusters to which this proxy connects.

  **Default:** `undefined` if `dbInstances` is set.

  Either this or `dbInstances` will be set and the other `undefined`.

- `dbInstances`: [IDatabaseInstance](/cdk/api/v2/docs/aws-cdk-lib.aws_rds.IDatabaseInstance.html)[] — The database instances to which this proxy connects.

  **Default:** `undefined` if `dbClusters` is set.

  Either this or `dbClusters` will be set and the other `undefined`.

- `engineFamily`: string (required) — The engine family of the database instance or cluster this proxy connects with.
