com.pulumi.gcp.eventarc.kotlin.inputs.TriggerDestinationCloudRunServiceArgs.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.TriggerDestinationCloudRunServiceArgs.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 path Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
* @property region Required. The region the Cloud Run service is deployed in.
* @property service Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
*/
public data class TriggerDestinationCloudRunServiceArgs(
public val path: Output? = null,
public val region: Output? = null,
public val service: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.eventarc.inputs.TriggerDestinationCloudRunServiceArgs =
com.pulumi.gcp.eventarc.inputs.TriggerDestinationCloudRunServiceArgs.builder()
.path(path?.applyValue({ args0 -> args0 }))
.region(region?.applyValue({ args0 -> args0 }))
.service(service.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerDestinationCloudRunServiceArgs].
*/
@PulumiTagMarker
public class TriggerDestinationCloudRunServiceArgsBuilder internal constructor() {
private var path: Output? = null
private var region: Output? = null
private var service: Output? = null
/**
* @param value Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
*/
@JvmName("diegtcyqmomyjmck")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Required. The region the Cloud Run service is deployed in.
*/
@JvmName("dpfsndakhwfqdawg")
public suspend fun region(`value`: Output) {
this.region = value
}
/**
* @param value Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
*/
@JvmName("slydaqpepkwrcapk")
public suspend fun service(`value`: Output) {
this.service = value
}
/**
* @param value Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
*/
@JvmName("qvwiamlaexvhfcvx")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value Required. The region the Cloud Run service is deployed in.
*/
@JvmName("hshacubmnsjvfkyk")
public suspend fun region(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.region = mapped
}
/**
* @param value Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
*/
@JvmName("nxiqqdggbjoojoap")
public suspend fun service(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.service = mapped
}
internal fun build(): TriggerDestinationCloudRunServiceArgs =
TriggerDestinationCloudRunServiceArgs(
path = path,
region = region,
service = service ?: throw PulumiNullFieldException("service"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy