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

com.pulumi.cloudflare.kotlin.outputs.LoadBalancerRandomSteering.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: 5.40.0.0
Show newest version
@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(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy