All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.rds.kotlin.outputs.DbProxyTargetGroupConnectionPoolConfigurationInfoFormat.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@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 }),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy