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

com.pulumi.gcp.compute.kotlin.inputs.RegionNetworkEndpointGroupAppEngineArgs.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.RegionNetworkEndpointGroupAppEngineArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property service Optional serving service.
 * The service name must be 1-63 characters long, and comply with RFC1035.
 * Example value: "default", "my-service".
 * @property urlMask A template to parse service and version fields from a request URL.
 * URL mask allows for routing to multiple App Engine services without
 * having to create multiple Network Endpoint Groups and backend services.
 * For example, the request URLs "foo1-dot-appname.appspot.com/v1" and
 * "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with
 * URL mask "-dot-appname.appspot.com/". The URL mask will parse
 * them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively.
 * @property version Optional serving version.
 * The version must be 1-63 characters long, and comply with RFC1035.
 * Example value: "v1", "v2".
 */
public data class RegionNetworkEndpointGroupAppEngineArgs(
    public val service: Output? = null,
    public val urlMask: Output? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionNetworkEndpointGroupAppEngineArgs =
        com.pulumi.gcp.compute.inputs.RegionNetworkEndpointGroupAppEngineArgs.builder()
            .service(service?.applyValue({ args0 -> args0 }))
            .urlMask(urlMask?.applyValue({ args0 -> args0 }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionNetworkEndpointGroupAppEngineArgs].
 */
@PulumiTagMarker
public class RegionNetworkEndpointGroupAppEngineArgsBuilder internal constructor() {
    private var service: Output? = null

    private var urlMask: Output? = null

    private var version: Output? = null

    /**
     * @param value Optional serving service.
     * The service name must be 1-63 characters long, and comply with RFC1035.
     * Example value: "default", "my-service".
     */
    @JvmName("vsmlqlhlgrexpyqc")
    public suspend fun service(`value`: Output) {
        this.service = value
    }

    /**
     * @param value A template to parse service and version fields from a request URL.
     * URL mask allows for routing to multiple App Engine services without
     * having to create multiple Network Endpoint Groups and backend services.
     * For example, the request URLs "foo1-dot-appname.appspot.com/v1" and
     * "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with
     * URL mask "-dot-appname.appspot.com/". The URL mask will parse
     * them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively.
     */
    @JvmName("mfctcesdcuiaqnlw")
    public suspend fun urlMask(`value`: Output) {
        this.urlMask = value
    }

    /**
     * @param value Optional serving version.
     * The version must be 1-63 characters long, and comply with RFC1035.
     * Example value: "v1", "v2".
     */
    @JvmName("bcqhqelbiphxnguv")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Optional serving service.
     * The service name must be 1-63 characters long, and comply with RFC1035.
     * Example value: "default", "my-service".
     */
    @JvmName("smoijxauydjnlwyq")
    public suspend fun service(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.service = mapped
    }

    /**
     * @param value A template to parse service and version fields from a request URL.
     * URL mask allows for routing to multiple App Engine services without
     * having to create multiple Network Endpoint Groups and backend services.
     * For example, the request URLs "foo1-dot-appname.appspot.com/v1" and
     * "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with
     * URL mask "-dot-appname.appspot.com/". The URL mask will parse
     * them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively.
     */
    @JvmName("lmqrcuskordbasqi")
    public suspend fun urlMask(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.urlMask = mapped
    }

    /**
     * @param value Optional serving version.
     * The version must be 1-63 characters long, and comply with RFC1035.
     * Example value: "v1", "v2".
     */
    @JvmName("iaooutlsumwhetgl")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): RegionNetworkEndpointGroupAppEngineArgs =
        RegionNetworkEndpointGroupAppEngineArgs(
            service = service,
            urlMask = urlMask,
            version = version,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy