com.pulumi.cloudflare.kotlin.outputs.GetLoadBalancerPoolsPoolLoadShedding.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.outputs
import kotlin.Double
import kotlin.String
import kotlin.Suppress
/**
*
* @property defaultPercent Percent of traffic to shed 0 - 100.
* @property defaultPolicy Method of shedding traffic. Available values: `""`, `hash`, `random`
* @property sessionPercent Percent of session traffic to shed 0 - 100.
* @property sessionPolicy Method of shedding traffic. Available values: `""`, `hash`
*/
public data class GetLoadBalancerPoolsPoolLoadShedding(
public val defaultPercent: Double? = null,
public val defaultPolicy: String? = null,
public val sessionPercent: Double? = null,
public val sessionPolicy: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.GetLoadBalancerPoolsPoolLoadShedding): GetLoadBalancerPoolsPoolLoadShedding = GetLoadBalancerPoolsPoolLoadShedding(
defaultPercent = javaType.defaultPercent().map({ args0 -> args0 }).orElse(null),
defaultPolicy = javaType.defaultPolicy().map({ args0 -> args0 }).orElse(null),
sessionPercent = javaType.sessionPercent().map({ args0 -> args0 }).orElse(null),
sessionPolicy = javaType.sessionPolicy().map({ args0 -> args0 }).orElse(null),
)
}
}