com.pulumi.gcp.compute.kotlin.inputs.URLMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs.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.URLMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property exactMatch The value should exactly match contents of exactMatch. Only one of exactMatch,
* prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
* @property headerName The name of the HTTP header to match. For matching against the HTTP request's
* authority, use a headerMatch with the header name ":authority". For matching a
* request's method, use the headerName ":method".
* @property invertMatch If set to false, the headerMatch is considered a match if the match criteria
* above are met. If set to true, the headerMatch is considered a match if the
* match criteria above are NOT met. Defaults to false.
* @property prefixMatch The value of the header must start with the contents of prefixMatch. Only one of
* exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch
* must be set.
* @property presentMatch A header with the contents of headerName must exist. The match takes place
* whether or not the request's header has a value or not. Only one of exactMatch,
* prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
* @property rangeMatch The header value must be an integer and its value must be in the range specified
* in rangeMatch. If the header does not contain an integer, number or is empty,
* the match fails. For example for a range [-5, 0] - -3 will match. - 0 will
* not match. - 0.25 will not match. - -3someString will not match. Only one of
* exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch
* must be set.
* Structure is documented below.
* @property regexMatch The value of the header must match the regular expression specified in
* regexMatch. For regular expression grammar, please see:
* en.cppreference.com/w/cpp/regex/ecmascript For matching against a port
* specified in the HTTP request, use a headerMatch with headerName set to PORT and
* a regular expression that satisfies the RFC2616 Host header's port specifier.
* Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or
* rangeMatch must be set.
* @property suffixMatch The value of the header must end with the contents of suffixMatch. Only one of
* exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch
* must be set.
*/
public data class URLMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs(
public val exactMatch: Output? = null,
public val headerName: Output,
public val invertMatch: Output? = null,
public val prefixMatch: Output? = null,
public val presentMatch: Output? = null,
public val rangeMatch: Output? =
null,
public val regexMatch: Output? = null,
public val suffixMatch: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.URLMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs =
com.pulumi.gcp.compute.inputs.URLMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs.builder()
.exactMatch(exactMatch?.applyValue({ args0 -> args0 }))
.headerName(headerName.applyValue({ args0 -> args0 }))
.invertMatch(invertMatch?.applyValue({ args0 -> args0 }))
.prefixMatch(prefixMatch?.applyValue({ args0 -> args0 }))
.presentMatch(presentMatch?.applyValue({ args0 -> args0 }))
.rangeMatch(rangeMatch?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.regexMatch(regexMatch?.applyValue({ args0 -> args0 }))
.suffixMatch(suffixMatch?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [URLMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs].
*/
@PulumiTagMarker
public class URLMapPathMatcherRouteRuleMatchRuleHeaderMatchArgsBuilder internal constructor() {
private var exactMatch: Output? = null
private var headerName: Output? = null
private var invertMatch: Output? = null
private var prefixMatch: Output? = null
private var presentMatch: Output? = null
private var rangeMatch: Output? =
null
private var regexMatch: Output? = null
private var suffixMatch: Output? = null
/**
* @param value The value should exactly match contents of exactMatch. Only one of exactMatch,
* prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
*/
@JvmName("rekjqhnehcbehfqc")
public suspend fun exactMatch(`value`: Output) {
this.exactMatch = value
}
/**
* @param value The name of the HTTP header to match. For matching against the HTTP request's
* authority, use a headerMatch with the header name ":authority". For matching a
* request's method, use the headerName ":method".
*/
@JvmName("vigyijvgxlivnppk")
public suspend fun headerName(`value`: Output) {
this.headerName = value
}
/**
* @param value If set to false, the headerMatch is considered a match if the match criteria
* above are met. If set to true, the headerMatch is considered a match if the
* match criteria above are NOT met. Defaults to false.
*/
@JvmName("ahlerduuwefrwhrn")
public suspend fun invertMatch(`value`: Output) {
this.invertMatch = value
}
/**
* @param value The value of the header must start with the contents of prefixMatch. Only one of
* exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch
* must be set.
*/
@JvmName("xidduqhbnjgnkqjv")
public suspend fun prefixMatch(`value`: Output) {
this.prefixMatch = value
}
/**
* @param value A header with the contents of headerName must exist. The match takes place
* whether or not the request's header has a value or not. Only one of exactMatch,
* prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
*/
@JvmName("apmrkbuhunpphjyc")
public suspend fun presentMatch(`value`: Output) {
this.presentMatch = value
}
/**
* @param value The header value must be an integer and its value must be in the range specified
* in rangeMatch. If the header does not contain an integer, number or is empty,
* the match fails. For example for a range [-5, 0] - -3 will match. - 0 will
* not match. - 0.25 will not match. - -3someString will not match. Only one of
* exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch
* must be set.
* Structure is documented below.
*/
@JvmName("tcqgahigxwllofne")
public suspend fun rangeMatch(`value`: Output) {
this.rangeMatch = value
}
/**
* @param value The value of the header must match the regular expression specified in
* regexMatch. For regular expression grammar, please see:
* en.cppreference.com/w/cpp/regex/ecmascript For matching against a port
* specified in the HTTP request, use a headerMatch with headerName set to PORT and
* a regular expression that satisfies the RFC2616 Host header's port specifier.
* Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or
* rangeMatch must be set.
*/
@JvmName("dinxbbwspjmjnhid")
public suspend fun regexMatch(`value`: Output) {
this.regexMatch = value
}
/**
* @param value The value of the header must end with the contents of suffixMatch. Only one of
* exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch
* must be set.
*/
@JvmName("ceglykkjpgeettgk")
public suspend fun suffixMatch(`value`: Output) {
this.suffixMatch = value
}
/**
* @param value The value should exactly match contents of exactMatch. Only one of exactMatch,
* prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
*/
@JvmName("tilyvmisnhjjuuvx")
public suspend fun exactMatch(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.exactMatch = mapped
}
/**
* @param value The name of the HTTP header to match. For matching against the HTTP request's
* authority, use a headerMatch with the header name ":authority". For matching a
* request's method, use the headerName ":method".
*/
@JvmName("wbidumdnsliybsky")
public suspend fun headerName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.headerName = mapped
}
/**
* @param value If set to false, the headerMatch is considered a match if the match criteria
* above are met. If set to true, the headerMatch is considered a match if the
* match criteria above are NOT met. Defaults to false.
*/
@JvmName("muwgjwwjwxasdlmr")
public suspend fun invertMatch(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.invertMatch = mapped
}
/**
* @param value The value of the header must start with the contents of prefixMatch. Only one of
* exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch
* must be set.
*/
@JvmName("afngclmkxugeywpg")
public suspend fun prefixMatch(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.prefixMatch = mapped
}
/**
* @param value A header with the contents of headerName must exist. The match takes place
* whether or not the request's header has a value or not. Only one of exactMatch,
* prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
*/
@JvmName("qrnpfmosbdpulmnj")
public suspend fun presentMatch(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.presentMatch = mapped
}
/**
* @param value The header value must be an integer and its value must be in the range specified
* in rangeMatch. If the header does not contain an integer, number or is empty,
* the match fails. For example for a range [-5, 0] - -3 will match. - 0 will
* not match. - 0.25 will not match. - -3someString will not match. Only one of
* exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch
* must be set.
* Structure is documented below.
*/
@JvmName("sbxdkqlikgblnstw")
public suspend fun rangeMatch(`value`: URLMapPathMatcherRouteRuleMatchRuleHeaderMatchRangeMatchArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rangeMatch = mapped
}
/**
* @param argument The header value must be an integer and its value must be in the range specified
* in rangeMatch. If the header does not contain an integer, number or is empty,
* the match fails. For example for a range [-5, 0] - -3 will match. - 0 will
* not match. - 0.25 will not match. - -3someString will not match. Only one of
* exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch
* must be set.
* Structure is documented below.
*/
@JvmName("jglapcaxqaetsrfk")
public suspend fun rangeMatch(argument: suspend URLMapPathMatcherRouteRuleMatchRuleHeaderMatchRangeMatchArgsBuilder.() -> Unit) {
val toBeMapped =
URLMapPathMatcherRouteRuleMatchRuleHeaderMatchRangeMatchArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.rangeMatch = mapped
}
/**
* @param value The value of the header must match the regular expression specified in
* regexMatch. For regular expression grammar, please see:
* en.cppreference.com/w/cpp/regex/ecmascript For matching against a port
* specified in the HTTP request, use a headerMatch with headerName set to PORT and
* a regular expression that satisfies the RFC2616 Host header's port specifier.
* Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or
* rangeMatch must be set.
*/
@JvmName("bgdfsrdwthcessum")
public suspend fun regexMatch(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.regexMatch = mapped
}
/**
* @param value The value of the header must end with the contents of suffixMatch. Only one of
* exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch
* must be set.
*/
@JvmName("ggfmmlpuyyvhlgja")
public suspend fun suffixMatch(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.suffixMatch = mapped
}
internal fun build(): URLMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs =
URLMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs(
exactMatch = exactMatch,
headerName = headerName ?: throw PulumiNullFieldException("headerName"),
invertMatch = invertMatch,
prefixMatch = prefixMatch,
presentMatch = presentMatch,
rangeMatch = rangeMatch,
regexMatch = regexMatch,
suffixMatch = suffixMatch,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy