com.pulumi.gcp.compute.kotlin.outputs.RouterRoutePolicyTerm.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 RouterRoutePolicyTerm(
public val actions: List? = null,
public val match: RouterRoutePolicyTermMatch? = null,
public val priority: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RouterRoutePolicyTerm): RouterRoutePolicyTerm = RouterRoutePolicyTerm(
actions = javaType.actions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.RouterRoutePolicyTermAction.Companion.toKotlin(args0)
})
}),
match = javaType.match().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.RouterRoutePolicyTermMatch.Companion.toKotlin(args0)
})
}).orElse(null),
priority = javaType.priority(),
)
}
}