interface ProxyTargetConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.RDS.ProxyTargetConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#ProxyTargetConfig |
Java | software.amazon.awscdk.services.rds.ProxyTargetConfig |
Python | aws_cdk.aws_rds.ProxyTargetConfig |
TypeScript (source) | aws-cdk-lib » aws_rds » ProxyTargetConfig |
Obtainable from
Proxy
.bind()
The result of binding a ProxyTarget
to a DatabaseProxy
.
Example
// 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
Name | Type | Description |
---|---|---|
engine | string | The engine family of the database instance or cluster this proxy connects with. |
db | IDatabase [] | The database clusters to which this proxy connects. |
db | IDatabase [] | The database instances to which this proxy connects. |
engineFamily
Type:
string
The engine family of the database instance or cluster this proxy connects with.
dbClusters?
Type:
IDatabase
[]
(optional, default: undefined
if dbInstances
is set.)
The database clusters to which this proxy connects.
Either this or dbInstances
will be set and the other undefined
.
dbInstances?
Type:
IDatabase
[]
(optional, default: undefined
if dbClusters
is set.)
The database instances to which this proxy connects.
Either this or dbClusters
will be set and the other undefined
.