Interface ProxyTargetConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ProxyTargetConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.255Z") @Stability(Stable) public interface ProxyTargetConfig extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.rds.*;
 DatabaseCluster databaseCluster;
 DatabaseInstance databaseInstance;
 ProxyTargetConfig proxyTargetConfig = ProxyTargetConfig.builder()
         .engineFamily("engineFamily")
         // the properties below are optional
         .dbClusters(List.of(databaseCluster))
         .dbInstances(List.of(databaseInstance))
         .build();
 
  • Method Details

    • getEngineFamily

      @Stability(Stable) @NotNull String getEngineFamily()
      The engine family of the database instance or cluster this proxy connects with.
    • getDbClusters

      @Stability(Stable) @Nullable default List<IDatabaseCluster> getDbClusters()
      The database clusters to which this proxy connects.

      Either this or dbInstances will be set and the other undefined.

      Default: - `undefined` if `dbInstances` is set.

    • getDbInstances

      @Stability(Stable) @Nullable default List<IDatabaseInstance> getDbInstances()
      The database instances to which this proxy connects.

      Either this or dbClusters will be set and the other undefined.

      Default: - `undefined` if `dbClusters` is set.

    • builder

      @Stability(Stable) static ProxyTargetConfig.Builder builder()
      Returns:
      a ProxyTargetConfig.Builder of ProxyTargetConfig