com.pulumi.gcp.networkservices.kotlin.inputs.EdgeCacheServiceRoutingArgs.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.EdgeCacheServiceRoutingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 hostRules The list of hostRules to match against. These rules define which hostnames the EdgeCacheService will match against, and which route configurations apply.
* Structure is documented below.
* @property pathMatchers The list of pathMatchers referenced via name by hostRules. PathMatcher is used to match the path portion of the URL when a HostRule matches the URL's host portion.
* Structure is documented below.
*/
public data class EdgeCacheServiceRoutingArgs(
public val hostRules: Output>,
public val pathMatchers: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.EdgeCacheServiceRoutingArgs =
com.pulumi.gcp.networkservices.inputs.EdgeCacheServiceRoutingArgs.builder()
.hostRules(
hostRules.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.pathMatchers(
pathMatchers.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [EdgeCacheServiceRoutingArgs].
*/
@PulumiTagMarker
public class EdgeCacheServiceRoutingArgsBuilder internal constructor() {
private var hostRules: Output>? = null
private var pathMatchers: Output>? = null
/**
* @param value The list of hostRules to match against. These rules define which hostnames the EdgeCacheService will match against, and which route configurations apply.
* Structure is documented below.
*/
@JvmName("pvjxmirubccbdqvu")
public suspend fun hostRules(`value`: Output>) {
this.hostRules = value
}
@JvmName("ewwxbbynpraniwlk")
public suspend fun hostRules(vararg values: Output) {
this.hostRules = Output.all(values.asList())
}
/**
* @param values The list of hostRules to match against. These rules define which hostnames the EdgeCacheService will match against, and which route configurations apply.
* Structure is documented below.
*/
@JvmName("sfrraqohxfrjptur")
public suspend fun hostRules(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy