Interface DatabaseProxyProps

All Superinterfaces:
DatabaseProxyOptions, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
DatabaseProxyProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.170Z") @Stability(Stable) public interface DatabaseProxyProps extends software.amazon.jsii.JsiiSerializable, DatabaseProxyOptions
Construction properties for a DatabaseProxy.

Example:

 Vpc vpc;
 DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
         .engine(DatabaseClusterEngine.AURORA)
         .instanceProps(InstanceProps.builder().vpc(vpc).build())
         .build();
 DatabaseProxy proxy = DatabaseProxy.Builder.create(this, "Proxy")
         .proxyTarget(ProxyTarget.fromCluster(cluster))
         .secrets(List.of(cluster.getSecret()))
         .vpc(vpc)
         .build();
 Role role = Role.Builder.create(this, "DBProxyRole").assumedBy(new AccountPrincipal(this.account)).build();
 proxy.grantConnect(role, "admin");