@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.469Z") @Stability(value=Stable) public interface DatabaseProxyProps extends software.amazon.jsii.JsiiSerializable, DatabaseProxyOptions
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");
| Modifier and Type | Interface and Description |
|---|---|
static class |
DatabaseProxyProps.Builder
A builder for
DatabaseProxyProps |
static class |
DatabaseProxyProps.Jsii$Proxy
An implementation for
DatabaseProxyProps |
| Modifier and Type | Method and Description |
|---|---|
static DatabaseProxyProps.Builder |
builder() |
ProxyTarget |
getProxyTarget()
DB proxy target: Instance or Cluster.
|
getBorrowTimeout, getDbProxyName, getDebugLogging, getIamAuth, getIdleClientTimeout, getInitQuery, getMaxConnectionsPercent, getMaxIdleConnectionsPercent, getRequireTLS, getRole, getSecrets, getSecurityGroups, getSessionPinningFilters, getVpc, getVpcSubnets@Stability(value=Stable) @NotNull ProxyTarget getProxyTarget()
@Stability(value=Stable) static DatabaseProxyProps.Builder builder()
builder in interface DatabaseProxyOptionsDatabaseProxyProps.Builder of DatabaseProxyPropsCopyright © 2022. All rights reserved.