![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.network.kotlin.inputs.RulesEngineRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.RulesEngineRuleArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.MatchProcessingBehavior
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers manipulation.
* @property action Actions to perform on the request and response if all of the match conditions are met.
* @property matchConditions A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.
* @property matchProcessingBehavior If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.
* @property name A name to refer to this specific rule.
* @property priority A priority assigned to this rule.
*/
public data class RulesEngineRuleArgs(
public val action: Output,
public val matchConditions: Output>? = null,
public val matchProcessingBehavior: Output>? = null,
public val name: Output,
public val priority: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.RulesEngineRuleArgs =
com.pulumi.azurenative.network.inputs.RulesEngineRuleArgs.builder()
.action(action.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.matchConditions(
matchConditions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.matchProcessingBehavior(
matchProcessingBehavior?.applyValue({ args0 ->
args0.transform({ args0 ->
args0
}, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.name(name.applyValue({ args0 -> args0 }))
.priority(priority.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RulesEngineRuleArgs].
*/
@PulumiTagMarker
public class RulesEngineRuleArgsBuilder internal constructor() {
private var action: Output? = null
private var matchConditions: Output>? = null
private var matchProcessingBehavior: Output>? = null
private var name: Output? = null
private var priority: Output? = null
/**
* @param value Actions to perform on the request and response if all of the match conditions are met.
*/
@JvmName("vnfhtbrsdwldaton")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.
*/
@JvmName("kuiltqvalwpyhsij")
public suspend fun matchConditions(`value`: Output>) {
this.matchConditions = value
}
@JvmName("qajcnsgtikhkoqrd")
public suspend fun matchConditions(vararg values: Output) {
this.matchConditions = Output.all(values.asList())
}
/**
* @param values A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.
*/
@JvmName("pcpxgikysagrytlc")
public suspend fun matchConditions(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy