com.pulumi.awsnative.vpclattice.kotlin.outputs.RuleForward.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.vpclattice.kotlin.outputs
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property targetGroups The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
* The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of the traffic goes to that target group.
*/
public data class RuleForward(
public val targetGroups: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.vpclattice.outputs.RuleForward): RuleForward = RuleForward(
targetGroups = javaType.targetGroups().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.vpclattice.kotlin.outputs.RuleWeightedTargetGroup.Companion.toKotlin(args0)
})
}),
)
}
}