com.pulumi.awsnative.rds.kotlin.outputs.DbProxyTargetGroupConnectionPoolConfigurationInfoFormat.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.rds.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property connectionBorrowTimeout The number of seconds for a proxy to wait for a connection to become available in the connection pool.
* @property initQuery One or more SQL statements for the proxy to run when opening each new database connection.
* @property maxConnectionsPercent The maximum size of the connection pool for each target in a target group.
* @property maxIdleConnectionsPercent Controls how actively the proxy closes idle database connections in the connection pool.
* @property sessionPinningFilters 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.
*/
public data class DbProxyTargetGroupConnectionPoolConfigurationInfoFormat(
public val connectionBorrowTimeout: Int? = null,
public val initQuery: String? = null,
public val maxConnectionsPercent: Int? = null,
public val maxIdleConnectionsPercent: Int? = null,
public val sessionPinningFilters: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.rds.outputs.DbProxyTargetGroupConnectionPoolConfigurationInfoFormat): DbProxyTargetGroupConnectionPoolConfigurationInfoFormat =
DbProxyTargetGroupConnectionPoolConfigurationInfoFormat(
connectionBorrowTimeout = javaType.connectionBorrowTimeout().map({ args0 -> args0 }).orElse(null),
initQuery = javaType.initQuery().map({ args0 -> args0 }).orElse(null),
maxConnectionsPercent = javaType.maxConnectionsPercent().map({ args0 -> args0 }).orElse(null),
maxIdleConnectionsPercent = javaType.maxIdleConnectionsPercent().map({ args0 ->
args0
}).orElse(null),
sessionPinningFilters = javaType.sessionPinningFilters().map({ args0 -> args0 }),
)
}
}