
com.pulumi.googlenative.networkservices.v1.kotlin.TlsRouteArgs.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.networkservices.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.networkservices.v1.TlsRouteArgs.builder
import com.pulumi.googlenative.networkservices.v1.kotlin.inputs.TlsRouteRouteRuleArgs
import com.pulumi.googlenative.networkservices.v1.kotlin.inputs.TlsRouteRouteRuleArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Creates a new TlsRoute in a given project and location.
* @property description Optional. A free-text description of the resource. Max length 1024 characters.
* @property gateways Optional. Gateways defines a list of gateways this TlsRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/*/locations/global/gateways/`
* @property location
* @property meshes Optional. Meshes defines a list of meshes this TlsRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: `projects/*/locations/global/meshes/` The attached Mesh should be of a type SIDECAR
* @property name Name of the TlsRoute resource. It matches pattern `projects/*/locations/global/tlsRoutes/tls_route_name>`.
* @property project
* @property rules Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.
* @property tlsRouteId Required. Short name of the TlsRoute resource to be created. E.g. TODO(Add an example).
* */*/*/
*/
public data class TlsRouteArgs(
public val description: Output? = null,
public val gateways: Output>? = null,
public val location: Output? = null,
public val meshes: Output>? = null,
public val name: Output? = null,
public val project: Output? = null,
public val rules: Output>? = null,
public val tlsRouteId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.networkservices.v1.TlsRouteArgs =
com.pulumi.googlenative.networkservices.v1.TlsRouteArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.gateways(gateways?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.location(location?.applyValue({ args0 -> args0 }))
.meshes(meshes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.rules(rules?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.tlsRouteId(tlsRouteId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TlsRouteArgs].
*/
@PulumiTagMarker
public class TlsRouteArgsBuilder internal constructor() {
private var description: Output? = null
private var gateways: Output>? = null
private var location: Output? = null
private var meshes: Output>? = null
private var name: Output? = null
private var project: Output? = null
private var rules: Output>? = null
private var tlsRouteId: Output? = null
/**
* @param value Optional. A free-text description of the resource. Max length 1024 characters.
*/
@JvmName("fkhjurdlklsxmtnb")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Optional. Gateways defines a list of gateways this TlsRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/*/locations/global/gateways/`
* */
*/
@JvmName("apyneqrankolmlms")
public suspend fun gateways(`value`: Output>) {
this.gateways = value
}
@JvmName("eglvmyhtxgawfqae")
public suspend fun gateways(vararg values: Output) {
this.gateways = Output.all(values.asList())
}
/**
* @param values Optional. Gateways defines a list of gateways this TlsRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/*/locations/global/gateways/`
* */
*/
@JvmName("onkojvwyfgmsmqep")
public suspend fun gateways(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy