Skip to content
v2.274.0

ProxyTargetConfig Struct ​

The result of binding a ProxyTarget to a DatabaseProxy.

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 ​

dbClustersIDatabaseCluster[]db_clusterstyping.List[IDatabaseCluster]dbClustersList<IDatabaseCluster>DbClustersIDatabaseCluster[]DbClusters*[]IDatabaseCluster#
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.

dbInstancesIDatabaseInstance[]db_instancestyping.List[IDatabaseInstance]dbInstancesList<IDatabaseInstance>DbInstancesIDatabaseInstance[]DbInstances*[]IDatabaseInstance#
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.

engineFamilystringengine_familystrengineFamilyStringEngineFamilystringEngineFamily*stringrequired#
The engine family of the database instance or cluster this proxy connects with.