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

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

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.appengine.inputs.ApplicationIapArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled (Optional) Whether the serving infrastructure will authenticate and authorize all incoming requests.
 * (default is false)
 * @property oauth2ClientId OAuth2 client ID to use for the authentication flow.
 * @property oauth2ClientSecret OAuth2 client secret to use for the authentication flow.
 * The SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field.
 * @property oauth2ClientSecretSha256 Hex-encoded SHA-256 hash of the client secret.
 */
public data class ApplicationIapArgs(
    public val enabled: Output? = null,
    public val oauth2ClientId: Output,
    public val oauth2ClientSecret: Output,
    public val oauth2ClientSecretSha256: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.appengine.inputs.ApplicationIapArgs =
        com.pulumi.gcp.appengine.inputs.ApplicationIapArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .oauth2ClientId(oauth2ClientId.applyValue({ args0 -> args0 }))
            .oauth2ClientSecret(oauth2ClientSecret.applyValue({ args0 -> args0 }))
            .oauth2ClientSecretSha256(oauth2ClientSecretSha256?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationIapArgs].
 */
@PulumiTagMarker
public class ApplicationIapArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var oauth2ClientId: Output? = null

    private var oauth2ClientSecret: Output? = null

    private var oauth2ClientSecretSha256: Output? = null

    /**
     * @param value (Optional) Whether the serving infrastructure will authenticate and authorize all incoming requests.
     * (default is false)
     */
    @JvmName("pukkaqewegfohmjd")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value OAuth2 client ID to use for the authentication flow.
     */
    @JvmName("vpiffgjupadivixi")
    public suspend fun oauth2ClientId(`value`: Output) {
        this.oauth2ClientId = value
    }

    /**
     * @param value OAuth2 client secret to use for the authentication flow.
     * The SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field.
     */
    @JvmName("sksybxrbuhtvmexo")
    public suspend fun oauth2ClientSecret(`value`: Output) {
        this.oauth2ClientSecret = value
    }

    /**
     * @param value Hex-encoded SHA-256 hash of the client secret.
     */
    @JvmName("jvlrafckcktumpku")
    public suspend fun oauth2ClientSecretSha256(`value`: Output) {
        this.oauth2ClientSecretSha256 = value
    }

    /**
     * @param value (Optional) Whether the serving infrastructure will authenticate and authorize all incoming requests.
     * (default is false)
     */
    @JvmName("icmmvovmgikpjnqw")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value OAuth2 client ID to use for the authentication flow.
     */
    @JvmName("pwevepmstskievrf")
    public suspend fun oauth2ClientId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.oauth2ClientId = mapped
    }

    /**
     * @param value OAuth2 client secret to use for the authentication flow.
     * The SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field.
     */
    @JvmName("spfeeoassnxrxfdr")
    public suspend fun oauth2ClientSecret(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.oauth2ClientSecret = mapped
    }

    /**
     * @param value Hex-encoded SHA-256 hash of the client secret.
     */
    @JvmName("eepifglopfttdnxy")
    public suspend fun oauth2ClientSecretSha256(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oauth2ClientSecretSha256 = mapped
    }

    internal fun build(): ApplicationIapArgs = ApplicationIapArgs(
        enabled = enabled,
        oauth2ClientId = oauth2ClientId ?: throw PulumiNullFieldException("oauth2ClientId"),
        oauth2ClientSecret = oauth2ClientSecret ?: throw PulumiNullFieldException("oauth2ClientSecret"),
        oauth2ClientSecretSha256 = oauth2ClientSecretSha256,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy