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
dbClustersoptionalIDatabaseCluster[]db_clustersoptionaltyping.List[IDatabaseCluster]dbClustersoptionalList<IDatabaseCluster>DbClustersoptionalIDatabaseCluster[]DbClustersoptional*[]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.
dbInstancesoptionalIDatabaseInstance[]db_instancesoptionaltyping.List[IDatabaseInstance]dbInstancesoptionalList<IDatabaseInstance>DbInstancesoptionalIDatabaseInstance[]DbInstancesoptional*[]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.
The engine family of the database instance or cluster this proxy connects with.