DBProxyTargetGroup
Source:
src/AWS/RDS/DBProxyTargetGroup.ts
The proxy target group that registers Aurora clusters or instances behind an RDS Proxy.
Every DBProxy has exactly one default target group; this resource
adopts it, tunes its connection pool, and reconciles the registered
cluster/instance targets. Deleting it deregisters the targets rather than
deleting the group itself.
Registering Targets
Section titled “Registering Targets”Register a Cluster Behind a Proxy
const targets = yield* DBProxyTargetGroup("ProxyTargets", { dbProxyName: proxy.dbProxyName, dbClusterIdentifiers: [cluster.dbClusterIdentifier],});Tune the Connection Pool
const targets = yield* DBProxyTargetGroup("ProxyTargets", { dbProxyName: proxy.dbProxyName, dbClusterIdentifiers: [cluster.dbClusterIdentifier], connectionPoolConfig: { MaxConnectionsPercent: 90, MaxIdleConnectionsPercent: 10, },});