com.pulumi.gcp.eventarc.kotlin.inputs.TriggerDestinationGkeArgs.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.eventarc.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.eventarc.inputs.TriggerDestinationGkeArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property cluster Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
* @property location Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.
* @property namespace Required. The namespace the GKE service is running in.
* @property path Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
* @property service Required. Name of the GKE service.
*/
public data class TriggerDestinationGkeArgs(
public val cluster: Output,
public val location: Output,
public val namespace: Output,
public val path: Output? = null,
public val service: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.eventarc.inputs.TriggerDestinationGkeArgs =
com.pulumi.gcp.eventarc.inputs.TriggerDestinationGkeArgs.builder()
.cluster(cluster.applyValue({ args0 -> args0 }))
.location(location.applyValue({ args0 -> args0 }))
.namespace(namespace.applyValue({ args0 -> args0 }))
.path(path?.applyValue({ args0 -> args0 }))
.service(service.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerDestinationGkeArgs].
*/
@PulumiTagMarker
public class TriggerDestinationGkeArgsBuilder internal constructor() {
private var cluster: Output? = null
private var location: Output? = null
private var namespace: Output? = null
private var path: Output? = null
private var service: Output? = null
/**
* @param value Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
*/
@JvmName("labfsbokddqtogxx")
public suspend fun cluster(`value`: Output) {
this.cluster = value
}
/**
* @param value Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.
*/
@JvmName("euapqjobbwlpomcv")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Required. The namespace the GKE service is running in.
*/
@JvmName("weidmkaaaugyblbh")
public suspend fun namespace(`value`: Output) {
this.namespace = value
}
/**
* @param value Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
*/
@JvmName("mawjfsvybmlkjveo")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Required. Name of the GKE service.
*/
@JvmName("qwgstlykwbictsrq")
public suspend fun service(`value`: Output) {
this.service = value
}
/**
* @param value Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
*/
@JvmName("mycfmrbbpxwebufv")
public suspend fun cluster(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.cluster = mapped
}
/**
* @param value Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.
*/
@JvmName("cqyiyhrjesichynh")
public suspend fun location(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Required. The namespace the GKE service is running in.
*/
@JvmName("evuixlitxiaadwsp")
public suspend fun namespace(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.namespace = mapped
}
/**
* @param value Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
*/
@JvmName("vihpsruukqgncuhu")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value Required. Name of the GKE service.
*/
@JvmName("mkxfbpadvgmmmwsn")
public suspend fun service(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.service = mapped
}
internal fun build(): TriggerDestinationGkeArgs = TriggerDestinationGkeArgs(
cluster = cluster ?: throw PulumiNullFieldException("cluster"),
location = location ?: throw PulumiNullFieldException("location"),
namespace = namespace ?: throw PulumiNullFieldException("namespace"),
path = path,
service = service ?: throw PulumiNullFieldException("service"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy