com.pulumi.gcp.compute.kotlin.outputs.BackendServiceConsistentHash.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.String
import kotlin.Suppress
/**
*
* @property httpCookie Hash is based on HTTP Cookie. This field describes a HTTP cookie
* that will be used as the hash key for the consistent hash load
* balancer. If the cookie is not present, it will be generated.
* This field is applicable if the sessionAffinity is set to HTTP_COOKIE.
* Structure is documented below.
* @property httpHeaderName The hash based on the value of the specified header field.
* This field is applicable if the sessionAffinity is set to HEADER_FIELD.
* @property minimumRingSize The minimum number of virtual nodes to use for the hash ring.
* Larger ring sizes result in more granular load
* distributions. If the number of hosts in the load balancing pool
* is larger than the ring size, each host will be assigned a single
* virtual node.
* Defaults to 1024.
*/
public data class BackendServiceConsistentHash(
public val httpCookie: BackendServiceConsistentHashHttpCookie? = null,
public val httpHeaderName: String? = null,
public val minimumRingSize: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.BackendServiceConsistentHash): BackendServiceConsistentHash = BackendServiceConsistentHash(
httpCookie = javaType.httpCookie().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.BackendServiceConsistentHashHttpCookie.Companion.toKotlin(args0)
})
}).orElse(null),
httpHeaderName = javaType.httpHeaderName().map({ args0 -> args0 }).orElse(null),
minimumRingSize = javaType.minimumRingSize().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy