com.pulumi.cloudflare.kotlin.outputs.LoadBalancerRandomSteering.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.cloudflare.kotlin.outputs
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @property defaultWeight The default weight for pools in the load balancer that are not specified in the `pool_weights` map.
* @property poolWeights A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.
*/
public data class LoadBalancerRandomSteering(
public val defaultWeight: Double? = null,
public val poolWeights: Map? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.LoadBalancerRandomSteering): LoadBalancerRandomSteering = LoadBalancerRandomSteering(
defaultWeight = javaType.defaultWeight().map({ args0 -> args0 }).orElse(null),
poolWeights = javaType.poolWeights().map({ args0 -> args0.key.to(args0.value) }).toMap(),
)
}
}