
com.pulumi.googlenative.compute.beta.kotlin.inputs.HostRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.beta.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.beta.inputs.HostRuleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
* @property description An optional description of this resource. Provide this property when you create the resource.
* @property hosts The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
* @property pathMatcher The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
*/
public data class HostRuleArgs(
public val description: Output? = null,
public val hosts: Output>? = null,
public val pathMatcher: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.beta.inputs.HostRuleArgs =
com.pulumi.googlenative.compute.beta.inputs.HostRuleArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.hosts(hosts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.pathMatcher(pathMatcher?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HostRuleArgs].
*/
@PulumiTagMarker
public class HostRuleArgsBuilder internal constructor() {
private var description: Output? = null
private var hosts: Output>? = null
private var pathMatcher: Output? = null
/**
* @param value An optional description of this resource. Provide this property when you create the resource.
*/
@JvmName("qfiuvgcgpfmrortg")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
*/
@JvmName("qmrdqcucctuyaccw")
public suspend fun hosts(`value`: Output>) {
this.hosts = value
}
@JvmName("dowjylptdqafrfsd")
public suspend fun hosts(vararg values: Output) {
this.hosts = Output.all(values.asList())
}
/**
* @param values The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
*/
@JvmName("ajxluknosvullcri")
public suspend fun hosts(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy