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

com.pulumi.gcp.compute.kotlin.inputs.RegionNetworkEndpointGroupCloudFunctionArgs.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionNetworkEndpointGroupCloudFunctionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property function A user-defined name of the Cloud Function.
 * The function name is case-sensitive and must be 1-63 characters long.
 * Example value: "func1".
 * @property urlMask A template to parse function field from a request URL. URL mask allows
 * for routing to multiple Cloud Functions without having to create
 * multiple Network Endpoint Groups and backend services.
 * For example, request URLs "mydomain.com/function1" and "mydomain.com/function2"
 * can be backed by the same Serverless NEG with URL mask "/". The URL mask
 * will parse them to { function = "function1" } and { function = "function2" } respectively.
 */
public data class RegionNetworkEndpointGroupCloudFunctionArgs(
    public val function: Output? = null,
    public val urlMask: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionNetworkEndpointGroupCloudFunctionArgs =
        com.pulumi.gcp.compute.inputs.RegionNetworkEndpointGroupCloudFunctionArgs.builder()
            .function(function?.applyValue({ args0 -> args0 }))
            .urlMask(urlMask?.applyValue({ args0 -> args0 })).build()
}

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

    private var urlMask: Output? = null

    /**
     * @param value A user-defined name of the Cloud Function.
     * The function name is case-sensitive and must be 1-63 characters long.
     * Example value: "func1".
     */
    @JvmName("mpyovcpyosuvqlty")
    public suspend fun function(`value`: Output) {
        this.function = value
    }

    /**
     * @param value A template to parse function field from a request URL. URL mask allows
     * for routing to multiple Cloud Functions without having to create
     * multiple Network Endpoint Groups and backend services.
     * For example, request URLs "mydomain.com/function1" and "mydomain.com/function2"
     * can be backed by the same Serverless NEG with URL mask "/". The URL mask
     * will parse them to { function = "function1" } and { function = "function2" } respectively.
     */
    @JvmName("tdxilghkttloypym")
    public suspend fun urlMask(`value`: Output) {
        this.urlMask = value
    }

    /**
     * @param value A user-defined name of the Cloud Function.
     * The function name is case-sensitive and must be 1-63 characters long.
     * Example value: "func1".
     */
    @JvmName("jqqkgnwesufhckso")
    public suspend fun function(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.function = mapped
    }

    /**
     * @param value A template to parse function field from a request URL. URL mask allows
     * for routing to multiple Cloud Functions without having to create
     * multiple Network Endpoint Groups and backend services.
     * For example, request URLs "mydomain.com/function1" and "mydomain.com/function2"
     * can be backed by the same Serverless NEG with URL mask "/". The URL mask
     * will parse them to { function = "function1" } and { function = "function2" } respectively.
     */
    @JvmName("jxkeaorfgvnfsteq")
    public suspend fun urlMask(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.urlMask = mapped
    }

    internal fun build(): RegionNetworkEndpointGroupCloudFunctionArgs =
        RegionNetworkEndpointGroupCloudFunctionArgs(
            function = function,
            urlMask = urlMask,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy