com.pulumi.gcp.networkservices.kotlin.inputs.HttpRouteRuleArgs.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.networkservices.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.HttpRouteRuleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property action The detailed rule defining how to route matched traffic.
* Structure is documented below.
* @property matches A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied.
* If no matches field is specified, this rule will unconditionally match traffic.
* If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
* Structure is documented below.
*/
public data class HttpRouteRuleArgs(
public val action: Output? = null,
public val matches: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.HttpRouteRuleArgs =
com.pulumi.gcp.networkservices.inputs.HttpRouteRuleArgs.builder()
.action(action?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.matches(
matches?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [HttpRouteRuleArgs].
*/
@PulumiTagMarker
public class HttpRouteRuleArgsBuilder internal constructor() {
private var action: Output? = null
private var matches: Output>? = null
/**
* @param value The detailed rule defining how to route matched traffic.
* Structure is documented below.
*/
@JvmName("xphvgexygcsramsn")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied.
* If no matches field is specified, this rule will unconditionally match traffic.
* If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
* Structure is documented below.
*/
@JvmName("liytergmwwmueavn")
public suspend fun matches(`value`: Output>) {
this.matches = value
}
@JvmName("cohnhthogrrxwlqq")
public suspend fun matches(vararg values: Output) {
this.matches = Output.all(values.asList())
}
/**
* @param values A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied.
* If no matches field is specified, this rule will unconditionally match traffic.
* If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
* Structure is documented below.
*/
@JvmName("oqvxjixnhfspiygi")
public suspend fun matches(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy