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

com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionApiConfigArgs.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.appengine.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionApiConfigArgs.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 authFailAction Action to take when users access resources that require authentication.
 * Default value is `AUTH_FAIL_ACTION_REDIRECT`.
 * Possible values are: `AUTH_FAIL_ACTION_REDIRECT`, `AUTH_FAIL_ACTION_UNAUTHORIZED`.
 * @property login Level of login required to access this resource.
 * Default value is `LOGIN_OPTIONAL`.
 * Possible values are: `LOGIN_OPTIONAL`, `LOGIN_ADMIN`, `LOGIN_REQUIRED`.
 * @property script Path to the script from the application root directory.
 * @property securityLevel Security (HTTPS) enforcement for this URL.
 * Possible values are: `SECURE_DEFAULT`, `SECURE_NEVER`, `SECURE_OPTIONAL`, `SECURE_ALWAYS`.
 * @property url URL to serve the endpoint at.
 */
public data class FlexibleAppVersionApiConfigArgs(
    public val authFailAction: Output? = null,
    public val login: Output? = null,
    public val script: Output,
    public val securityLevel: Output? = null,
    public val url: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.appengine.inputs.FlexibleAppVersionApiConfigArgs =
        com.pulumi.gcp.appengine.inputs.FlexibleAppVersionApiConfigArgs.builder()
            .authFailAction(authFailAction?.applyValue({ args0 -> args0 }))
            .login(login?.applyValue({ args0 -> args0 }))
            .script(script.applyValue({ args0 -> args0 }))
            .securityLevel(securityLevel?.applyValue({ args0 -> args0 }))
            .url(url?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FlexibleAppVersionApiConfigArgs].
 */
@PulumiTagMarker
public class FlexibleAppVersionApiConfigArgsBuilder internal constructor() {
    private var authFailAction: Output? = null

    private var login: Output? = null

    private var script: Output? = null

    private var securityLevel: Output? = null

    private var url: Output? = null

    /**
     * @param value Action to take when users access resources that require authentication.
     * Default value is `AUTH_FAIL_ACTION_REDIRECT`.
     * Possible values are: `AUTH_FAIL_ACTION_REDIRECT`, `AUTH_FAIL_ACTION_UNAUTHORIZED`.
     */
    @JvmName("euqckklfiqfgdhbg")
    public suspend fun authFailAction(`value`: Output) {
        this.authFailAction = value
    }

    /**
     * @param value Level of login required to access this resource.
     * Default value is `LOGIN_OPTIONAL`.
     * Possible values are: `LOGIN_OPTIONAL`, `LOGIN_ADMIN`, `LOGIN_REQUIRED`.
     */
    @JvmName("hwfvoiqqmjmakwri")
    public suspend fun login(`value`: Output) {
        this.login = value
    }

    /**
     * @param value Path to the script from the application root directory.
     */
    @JvmName("wbbbebaiiwhpvifv")
    public suspend fun script(`value`: Output) {
        this.script = value
    }

    /**
     * @param value Security (HTTPS) enforcement for this URL.
     * Possible values are: `SECURE_DEFAULT`, `SECURE_NEVER`, `SECURE_OPTIONAL`, `SECURE_ALWAYS`.
     */
    @JvmName("xwqhtbrfakvmusdc")
    public suspend fun securityLevel(`value`: Output) {
        this.securityLevel = value
    }

    /**
     * @param value URL to serve the endpoint at.
     */
    @JvmName("hvvkupfjphgfxiju")
    public suspend fun url(`value`: Output) {
        this.url = value
    }

    /**
     * @param value Action to take when users access resources that require authentication.
     * Default value is `AUTH_FAIL_ACTION_REDIRECT`.
     * Possible values are: `AUTH_FAIL_ACTION_REDIRECT`, `AUTH_FAIL_ACTION_UNAUTHORIZED`.
     */
    @JvmName("ffukxsghvloxjana")
    public suspend fun authFailAction(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authFailAction = mapped
    }

    /**
     * @param value Level of login required to access this resource.
     * Default value is `LOGIN_OPTIONAL`.
     * Possible values are: `LOGIN_OPTIONAL`, `LOGIN_ADMIN`, `LOGIN_REQUIRED`.
     */
    @JvmName("uiycxjnexjpchjox")
    public suspend fun login(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.login = mapped
    }

    /**
     * @param value Path to the script from the application root directory.
     */
    @JvmName("kqvbwgfuobceperh")
    public suspend fun script(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.script = mapped
    }

    /**
     * @param value Security (HTTPS) enforcement for this URL.
     * Possible values are: `SECURE_DEFAULT`, `SECURE_NEVER`, `SECURE_OPTIONAL`, `SECURE_ALWAYS`.
     */
    @JvmName("hqyciytntllbgsvn")
    public suspend fun securityLevel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityLevel = mapped
    }

    /**
     * @param value URL to serve the endpoint at.
     */
    @JvmName("ynpekelomitmkotm")
    public suspend fun url(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.url = mapped
    }

    internal fun build(): FlexibleAppVersionApiConfigArgs = FlexibleAppVersionApiConfigArgs(
        authFailAction = authFailAction,
        login = login,
        script = script ?: throw PulumiNullFieldException("script"),
        securityLevel = securityLevel,
        url = url,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy