All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.firebase.kotlin.inputs.HostingVersionConfigRewriteArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.firebase.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.firebase.inputs.HostingVersionConfigRewriteArgs.builder
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.jvm.JvmName

/**
 *
 * @property function The function to proxy requests to. Must match the exported function name exactly.
 * @property glob The user-supplied glob to match against the request URL path.
 * @property path The URL path to rewrite the request to.
 * @property regex The user-supplied RE2 regular expression to match against the request URL path.
 * @property run The request will be forwarded to Cloud Run.
 * Structure is documented below.
 */
public data class HostingVersionConfigRewriteArgs(
    public val function: Output? = null,
    public val glob: Output? = null,
    public val path: Output? = null,
    public val regex: Output? = null,
    public val run: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.firebase.inputs.HostingVersionConfigRewriteArgs =
        com.pulumi.gcp.firebase.inputs.HostingVersionConfigRewriteArgs.builder()
            .function(function?.applyValue({ args0 -> args0 }))
            .glob(glob?.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 }))
            .regex(regex?.applyValue({ args0 -> args0 }))
            .run(run?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [HostingVersionConfigRewriteArgs].
 */
@PulumiTagMarker
public class HostingVersionConfigRewriteArgsBuilder internal constructor() {
    private var function: Output? = null

    private var glob: Output? = null

    private var path: Output? = null

    private var regex: Output? = null

    private var run: Output? = null

    /**
     * @param value The function to proxy requests to. Must match the exported function name exactly.
     */
    @JvmName("tsbapeilcojejsmd")
    public suspend fun function(`value`: Output) {
        this.function = value
    }

    /**
     * @param value The user-supplied glob to match against the request URL path.
     */
    @JvmName("cexknbafutmrbqdm")
    public suspend fun glob(`value`: Output) {
        this.glob = value
    }

    /**
     * @param value The URL path to rewrite the request to.
     */
    @JvmName("uskdlveatrbaptgg")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value The user-supplied RE2 regular expression to match against the request URL path.
     */
    @JvmName("qtdeepdgeyiycfli")
    public suspend fun regex(`value`: Output) {
        this.regex = value
    }

    /**
     * @param value The request will be forwarded to Cloud Run.
     * Structure is documented below.
     */
    @JvmName("gtdhlhcgqedrukjx")
    public suspend fun run(`value`: Output) {
        this.run = value
    }

    /**
     * @param value The function to proxy requests to. Must match the exported function name exactly.
     */
    @JvmName("hnolnfjuywskkrbj")
    public suspend fun function(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.function = mapped
    }

    /**
     * @param value The user-supplied glob to match against the request URL path.
     */
    @JvmName("ovlwjpvcjftnhbyj")
    public suspend fun glob(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.glob = mapped
    }

    /**
     * @param value The URL path to rewrite the request to.
     */
    @JvmName("ucdoqsrsfipercqe")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value The user-supplied RE2 regular expression to match against the request URL path.
     */
    @JvmName("uqbvxovhskoweipx")
    public suspend fun regex(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regex = mapped
    }

    /**
     * @param value The request will be forwarded to Cloud Run.
     * Structure is documented below.
     */
    @JvmName("tccopbtyvfaacvvd")
    public suspend fun run(`value`: HostingVersionConfigRewriteRunArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.run = mapped
    }

    /**
     * @param argument The request will be forwarded to Cloud Run.
     * Structure is documented below.
     */
    @JvmName("ppqvuhfaijvhjfvq")
    public suspend fun run(argument: suspend HostingVersionConfigRewriteRunArgsBuilder.() -> Unit) {
        val toBeMapped = HostingVersionConfigRewriteRunArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.run = mapped
    }

    internal fun build(): HostingVersionConfigRewriteArgs = HostingVersionConfigRewriteArgs(
        function = function,
        glob = glob,
        path = path,
        regex = regex,
        run = run,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy