Class ProxyTargetConfig
The result of binding a ProxyTarget to a DatabaseProxy.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ProxyTargetConfig : IProxyTargetConfig
Syntax (vb)
Public Class ProxyTargetConfig Implements IProxyTargetConfig
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.RDS;
DatabaseCluster databaseCluster;
DatabaseInstance databaseInstance;
var proxyTargetConfig = new ProxyTargetConfig {
EngineFamily = "engineFamily",
// the properties below are optional
DbClusters = new [] { databaseCluster },
DbInstances = new [] { databaseInstance }
};
Synopsis
Constructors
| ProxyTargetConfig() | The result of binding a |
Properties
| DbClusters | The database clusters to which this proxy connects. |
| DbInstances | The database instances to which this proxy connects. |
| EngineFamily | The engine family of the database instance or cluster this proxy connects with. |
Constructors
ProxyTargetConfig()
The result of binding a ProxyTarget to a DatabaseProxy.
public ProxyTargetConfig()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.RDS;
DatabaseCluster databaseCluster;
DatabaseInstance databaseInstance;
var proxyTargetConfig = new ProxyTargetConfig {
EngineFamily = "engineFamily",
// the properties below are optional
DbClusters = new [] { databaseCluster },
DbInstances = new [] { databaseInstance }
};
Properties
DbClusters
The database clusters to which this proxy connects.
public IDatabaseCluster[]? DbClusters { get; set; }
Property Value
Remarks
Either this or dbInstances will be set and the other undefined.
Default: - undefined if dbInstances is set.
DbInstances
The database instances to which this proxy connects.
public IDatabaseInstance[]? DbInstances { get; set; }
Property Value
Remarks
Either this or dbClusters will be set and the other undefined.
Default: - undefined if dbClusters is set.
EngineFamily
The engine family of the database instance or cluster this proxy connects with.
public string EngineFamily { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated