com.pulumi.googlenative.firebasehosting.v1beta1.kotlin.inputs.CloudRunRewriteArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.firebasehosting.v1beta1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.firebasehosting.v1beta1.inputs.CloudRunRewriteArgs.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
/**
* A configured rewrite that directs requests to a Cloud Run service. If the Cloud Run service does not exist when setting or updating your Firebase Hosting configuration, then the request fails. Any errors from the Cloud Run service are passed to the end user (for example, if you delete a service, any requests directed to that service receive a `404` error).
* @property region Optional. User-provided region where the Cloud Run service is hosted. Defaults to `us-central1` if not supplied.
* @property serviceId User-defined ID of the Cloud Run service.
* @property tag Optional. User-provided TrafficConfig tag to send traffic to. When omitted, traffic is sent to the service-wide URI
*/
public data class CloudRunRewriteArgs(
public val region: Output? = null,
public val serviceId: Output,
public val tag: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.firebasehosting.v1beta1.inputs.CloudRunRewriteArgs = com.pulumi.googlenative.firebasehosting.v1beta1.inputs.CloudRunRewriteArgs.builder()
.region(region?.applyValue({ args0 -> args0 }))
.serviceId(serviceId.applyValue({ args0 -> args0 }))
.tag(tag?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CloudRunRewriteArgs].
*/
@PulumiTagMarker
public class CloudRunRewriteArgsBuilder internal constructor() {
private var region: Output? = null
private var serviceId: Output? = null
private var tag: Output? = null
/**
* @param value Optional. User-provided region where the Cloud Run service is hosted. Defaults to `us-central1` if not supplied.
*/
@JvmName("begxgxhqnfuotsrm")
public suspend fun region(`value`: Output) {
this.region = value
}
/**
* @param value User-defined ID of the Cloud Run service.
*/
@JvmName("mnoagwnwwmbpdxml")
public suspend fun serviceId(`value`: Output) {
this.serviceId = value
}
/**
* @param value Optional. User-provided TrafficConfig tag to send traffic to. When omitted, traffic is sent to the service-wide URI
*/
@JvmName("quncrdfcqfqeseyu")
public suspend fun tag(`value`: Output) {
this.tag = value
}
/**
* @param value Optional. User-provided region where the Cloud Run service is hosted. Defaults to `us-central1` if not supplied.
*/
@JvmName("hrpbqycleaxnnisp")
public suspend fun region(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.region = mapped
}
/**
* @param value User-defined ID of the Cloud Run service.
*/
@JvmName("jkonbwkpxgsglodu")
public suspend fun serviceId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.serviceId = mapped
}
/**
* @param value Optional. User-provided TrafficConfig tag to send traffic to. When omitted, traffic is sent to the service-wide URI
*/
@JvmName("uhwsnrvayeimxcqd")
public suspend fun tag(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tag = mapped
}
internal fun build(): CloudRunRewriteArgs = CloudRunRewriteArgs(
region = region,
serviceId = serviceId ?: throw PulumiNullFieldException("serviceId"),
tag = tag,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy