
com.pulumi.awsnative.vpclattice.kotlin.inputs.RuleHttpMatchArgs.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.inputs
import com.pulumi.awsnative.vpclattice.inputs.RuleHttpMatchArgs.builder
import com.pulumi.awsnative.vpclattice.kotlin.enums.RuleHttpMatchMethod
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 headerMatches The header matches. Matches incoming requests with rule based on request header value before applying rule action.
* @property method The HTTP method type.
* @property pathMatch The path match.
*/
public data class RuleHttpMatchArgs(
public val headerMatches: Output>? = null,
public val method: Output? = null,
public val pathMatch: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.vpclattice.inputs.RuleHttpMatchArgs =
com.pulumi.awsnative.vpclattice.inputs.RuleHttpMatchArgs.builder()
.headerMatches(
headerMatches?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.method(method?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.pathMatch(pathMatch?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [RuleHttpMatchArgs].
*/
@PulumiTagMarker
public class RuleHttpMatchArgsBuilder internal constructor() {
private var headerMatches: Output>? = null
private var method: Output? = null
private var pathMatch: Output? = null
/**
* @param value The header matches. Matches incoming requests with rule based on request header value before applying rule action.
*/
@JvmName("ifrbpyaofmbamdyx")
public suspend fun headerMatches(`value`: Output>) {
this.headerMatches = value
}
@JvmName("ubhdbsxpjjyrxqap")
public suspend fun headerMatches(vararg values: Output) {
this.headerMatches = Output.all(values.asList())
}
/**
* @param values The header matches. Matches incoming requests with rule based on request header value before applying rule action.
*/
@JvmName("ejxkkkgumrkcleed")
public suspend fun headerMatches(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy