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

com.pulumi.gcp.compute.kotlin.outputs.GetBackendServiceConsistentHash.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property httpCookies 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.
 * @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 GetBackendServiceConsistentHash(
    public val httpCookies: List,
    public val httpHeaderName: String,
    public val minimumRingSize: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetBackendServiceConsistentHash): GetBackendServiceConsistentHash = GetBackendServiceConsistentHash(
            httpCookies = javaType.httpCookies().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetBackendServiceConsistentHashHttpCooky.Companion.toKotlin(args0)
                })
            }),
            httpHeaderName = javaType.httpHeaderName(),
            minimumRingSize = javaType.minimumRingSize(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy