com.pulumi.digitalocean.kotlin.outputs.LoadBalancerGlbSettings.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @property cdn CDN configuration supporting the following:
* @property failoverThreshold fail-over threshold
* @property regionPriorities region priority map
* @property targetPort An integer representing the port on the backend Droplets to which the Load Balancer will send traffic. The possible values are: `80` for `http` and `443` for `https`.
* @property targetProtocol The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: `http` and `https`.
*/
public data class LoadBalancerGlbSettings(
public val cdn: LoadBalancerGlbSettingsCdn? = null,
public val failoverThreshold: Int? = null,
public val regionPriorities: Map? = null,
public val targetPort: Int,
public val targetProtocol: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.LoadBalancerGlbSettings): LoadBalancerGlbSettings = LoadBalancerGlbSettings(
cdn = javaType.cdn().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.LoadBalancerGlbSettingsCdn.Companion.toKotlin(args0)
})
}).orElse(null),
failoverThreshold = javaType.failoverThreshold().map({ args0 -> args0 }).orElse(null),
regionPriorities = javaType.regionPriorities().map({ args0 -> args0.key.to(args0.value) }).toMap(),
targetPort = javaType.targetPort(),
targetProtocol = javaType.targetProtocol(),
)
}
}