![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.gcp.compute.kotlin.inputs.RouterRoutePolicyTermArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RouterRoutePolicyTermArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property actions 'CEL expressions to evaluate to modify a route when this term matches.'\
* Structure is documented below.
* @property match CEL expression evaluated against a route to determine if this term applies (see Policy Language). When not set, the term applies to all routes.
* Structure is documented below.
* @property priority The evaluation priority for this term, which must be between 0 (inclusive) and 231 (exclusive), and unique within the list.
*/
public data class RouterRoutePolicyTermArgs(
public val actions: Output>? = null,
public val match: Output? = null,
public val priority: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RouterRoutePolicyTermArgs =
com.pulumi.gcp.compute.inputs.RouterRoutePolicyTermArgs.builder()
.actions(
actions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.match(match?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.priority(priority.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RouterRoutePolicyTermArgs].
*/
@PulumiTagMarker
public class RouterRoutePolicyTermArgsBuilder internal constructor() {
private var actions: Output>? = null
private var match: Output? = null
private var priority: Output? = null
/**
* @param value 'CEL expressions to evaluate to modify a route when this term matches.'\
* Structure is documented below.
*/
@JvmName("ymnnkdujqqgeyuav")
public suspend fun actions(`value`: Output>) {
this.actions = value
}
@JvmName("pdmfxtfgvbjuqmpg")
public suspend fun actions(vararg values: Output) {
this.actions = Output.all(values.asList())
}
/**
* @param values 'CEL expressions to evaluate to modify a route when this term matches.'\
* Structure is documented below.
*/
@JvmName("ityqbwrxtbskarfc")
public suspend fun actions(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy