com.pulumi.gcp.compute.kotlin.outputs.GetBackendServiceCircuitBreaker.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.compute.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property connectTimeouts The timeout for new network connections to hosts.
* @property maxConnections The maximum number of connections to the backend cluster.
* Defaults to 1024.
* @property maxPendingRequests The maximum number of pending requests to the backend cluster.
* Defaults to 1024.
* @property maxRequests The maximum number of parallel requests to the backend cluster.
* Defaults to 1024.
* @property maxRequestsPerConnection Maximum requests for a single backend connection. This parameter
* is respected by both the HTTP/1.1 and HTTP/2 implementations. If
* not specified, there is no limit. Setting this parameter to 1
* will effectively disable keep alive.
* @property maxRetries The maximum number of parallel retries to the backend cluster.
* Defaults to 3.
*/
public data class GetBackendServiceCircuitBreaker(
public val connectTimeouts: List,
public val maxConnections: Int,
public val maxPendingRequests: Int,
public val maxRequests: Int,
public val maxRequestsPerConnection: Int,
public val maxRetries: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetBackendServiceCircuitBreaker): GetBackendServiceCircuitBreaker = GetBackendServiceCircuitBreaker(
connectTimeouts = javaType.connectTimeouts().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetBackendServiceCircuitBreakerConnectTimeout.Companion.toKotlin(args0)
})
}),
maxConnections = javaType.maxConnections(),
maxPendingRequests = javaType.maxPendingRequests(),
maxRequests = javaType.maxRequests(),
maxRequestsPerConnection = javaType.maxRequestsPerConnection(),
maxRetries = javaType.maxRetries(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy