@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:21.879Z") @Stability(value=Experimental) public interface DatabaseProxyOptions extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
DatabaseProxyOptions.Builder
A builder for
DatabaseProxyOptions |
static class |
DatabaseProxyOptions.Jsii$Proxy
An implementation for
DatabaseProxyOptions |
| Modifier and Type | Method and Description |
|---|---|
static DatabaseProxyOptions.Builder |
builder() |
default Duration |
getBorrowTimeout()
(experimental) The duration for a proxy to wait for a connection to become available in the connection pool.
|
default String |
getDbProxyName()
(experimental) The identifier for the proxy.
|
default Boolean |
getDebugLogging()
(experimental) Whether the proxy includes detailed information about SQL statements in its logs.
|
default Boolean |
getIamAuth()
(experimental) Whether to require or disallow AWS Identity and Access Management (IAM) authentication for connections to the proxy.
|
default Duration |
getIdleClientTimeout()
(experimental) The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.
|
default String |
getInitQuery()
(experimental) One or more SQL statements for the proxy to run when opening each new database connection.
|
default Number |
getMaxConnectionsPercent()
(experimental) The maximum size of the connection pool for each target in a target group.
|
default Number |
getMaxIdleConnectionsPercent()
(experimental) Controls how actively the proxy closes idle database connections in the connection pool.
|
default Boolean |
getRequireTLS()
(experimental) A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.
|
default IRole |
getRole()
(experimental) IAM role that the proxy uses to access secrets in AWS Secrets Manager.
|
List<ISecret> |
getSecrets()
(experimental) The secret that the proxy uses to authenticate to the RDS DB instance or Aurora DB cluster.
|
default List<ISecurityGroup> |
getSecurityGroups()
(experimental) One or more VPC security groups to associate with the new proxy.
|
default List<SessionPinningFilter> |
getSessionPinningFilters()
(experimental) Each item in the list represents a class of SQL operations that normally cause all later statements in a session using a proxy to be pinned to the same underlying database connection.
|
IVpc |
getVpc()
(experimental) The VPC to associate with the new proxy.
|
default SubnetSelection |
getVpcSubnets()
(experimental) The subnets used by the proxy.
|
@Stability(value=Experimental) @NotNull List<ISecret> getSecrets()
These secrets are stored within Amazon Secrets Manager. One or more secrets are required.
@Stability(value=Experimental) @NotNull IVpc getVpc()
@Stability(value=Experimental) @Nullable default Duration getBorrowTimeout()
Only applies when the proxy has opened its maximum number of connections and all connections are busy with client sessions.
Value must be between 1 second and 1 hour, or Duration.seconds(0) to represent unlimited.
Default: cdk.Duration.seconds(120)
@Stability(value=Experimental) @Nullable default String getDbProxyName()
This name must be unique for all proxies owned by your AWS account in the specified AWS Region. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
Default: - Generated by CloudFormation (recommended)
@Stability(value=Experimental) @Nullable default Boolean getDebugLogging()
This information helps you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting when needed for debugging, and only when you have security measures in place to safeguard any sensitive information that appears in the logs.
Default: false
@Stability(value=Experimental) @Nullable default Boolean getIamAuth()
Default: false
@Stability(value=Experimental) @Nullable default Duration getIdleClientTimeout()
You can set this value higher or lower than the connection timeout limit for the associated database.
Default: cdk.Duration.minutes(30)
@Stability(value=Experimental) @Nullable default String getInitQuery()
Typically used with SET statements to make sure that each connection has identical settings such as time zone and character set. For multiple statements, use semicolons as the separator. You can also include multiple variables in a single SET statement, such as SET x=1, y=2.
not currently supported for PostgreSQL.
Default: - no initialization query
@Stability(value=Experimental) @Nullable default Number getMaxConnectionsPercent()
For Aurora MySQL, it is expressed as a percentage of the max_connections setting for the RDS DB instance or Aurora DB cluster used by the target group.
1-100
Default: 100
@Stability(value=Experimental) @Nullable default Number getMaxIdleConnectionsPercent()
A high value enables the proxy to leave a high percentage of idle connections open. A low value causes the proxy to close idle client connections and return the underlying database connections to the connection pool. For Aurora MySQL, it is expressed as a percentage of the max_connections setting for the RDS DB instance or Aurora DB cluster used by the target group.
between 0 and MaxConnectionsPercent
Default: 50
@Stability(value=Experimental) @Nullable default Boolean getRequireTLS()
By enabling this setting, you can enforce encrypted TLS connections to the proxy.
Default: true
@Stability(value=Experimental) @Nullable default IRole getRole()
Default: - A role will automatically be created
@Stability(value=Experimental) @Nullable default List<ISecurityGroup> getSecurityGroups()
Default: - No security groups
@Stability(value=Experimental) @Nullable default List<SessionPinningFilter> getSessionPinningFilters()
Including an item in the list exempts that class of SQL operations from the pinning behavior.
Default: - no session pinning filters
@Stability(value=Experimental) @Nullable default SubnetSelection getVpcSubnets()
Default: - the VPC default strategy if not specified.
@Stability(value=Experimental) static DatabaseProxyOptions.Builder builder()
DatabaseProxyOptions.Builder of DatabaseProxyOptionsCopyright © 2021. All rights reserved.