
com.pulumi.awsnative.rds.kotlin.inputs.DbProxyTargetGroupConnectionPoolConfigurationInfoFormatArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.rds.kotlin.inputs
import com.pulumi.awsnative.rds.inputs.DbProxyTargetGroupConnectionPoolConfigurationInfoFormatArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 DbProxyTargetGroupConnectionPoolConfigurationInfoFormatArgs(
public val connectionBorrowTimeout: Output? = null,
public val initQuery: Output? = null,
public val maxConnectionsPercent: Output? = null,
public val maxIdleConnectionsPercent: Output? = null,
public val sessionPinningFilters: Output>? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.rds.inputs.DbProxyTargetGroupConnectionPoolConfigurationInfoFormatArgs =
com.pulumi.awsnative.rds.inputs.DbProxyTargetGroupConnectionPoolConfigurationInfoFormatArgs.builder()
.connectionBorrowTimeout(connectionBorrowTimeout?.applyValue({ args0 -> args0 }))
.initQuery(initQuery?.applyValue({ args0 -> args0 }))
.maxConnectionsPercent(maxConnectionsPercent?.applyValue({ args0 -> args0 }))
.maxIdleConnectionsPercent(maxIdleConnectionsPercent?.applyValue({ args0 -> args0 }))
.sessionPinningFilters(
sessionPinningFilters?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
).build()
}
/**
* Builder for [DbProxyTargetGroupConnectionPoolConfigurationInfoFormatArgs].
*/
@PulumiTagMarker
public class DbProxyTargetGroupConnectionPoolConfigurationInfoFormatArgsBuilder internal constructor() {
private var connectionBorrowTimeout: Output? = null
private var initQuery: Output? = null
private var maxConnectionsPercent: Output? = null
private var maxIdleConnectionsPercent: Output? = null
private var sessionPinningFilters: Output>? = null
/**
* @param value The number of seconds for a proxy to wait for a connection to become available in the connection pool.
*/
@JvmName("wvvweuwbycmyftyn")
public suspend fun connectionBorrowTimeout(`value`: Output) {
this.connectionBorrowTimeout = value
}
/**
* @param value One or more SQL statements for the proxy to run when opening each new database connection.
*/
@JvmName("jdgqiilklmqqtcrt")
public suspend fun initQuery(`value`: Output) {
this.initQuery = value
}
/**
* @param value The maximum size of the connection pool for each target in a target group.
*/
@JvmName("sdudsijswdljjbur")
public suspend fun maxConnectionsPercent(`value`: Output) {
this.maxConnectionsPercent = value
}
/**
* @param value Controls how actively the proxy closes idle database connections in the connection pool.
*/
@JvmName("bfljaudnqvsynylt")
public suspend fun maxIdleConnectionsPercent(`value`: Output) {
this.maxIdleConnectionsPercent = value
}
/**
* @param value 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.
*/
@JvmName("djlxdljpntoiqhil")
public suspend fun sessionPinningFilters(`value`: Output>) {
this.sessionPinningFilters = value
}
@JvmName("iajvgibmjggyhbgw")
public suspend fun sessionPinningFilters(vararg values: Output) {
this.sessionPinningFilters = Output.all(values.asList())
}
/**
* @param values 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.
*/
@JvmName("iyrnxsjksbxfuygy")
public suspend fun sessionPinningFilters(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy