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

com.pulumi.gcp.compute.kotlin.inputs.RegionBackendServiceIapArgs.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.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionBackendServiceIapArgs.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 oauth2ClientId OAuth2 Client ID for IAP
 * @property oauth2ClientSecret OAuth2 Client Secret for IAP
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * @property oauth2ClientSecretSha256 (Output)
 * OAuth2 Client Secret SHA-256 for IAP
 * **Note**: This property is sensitive and will not be displayed in the plan.
 */
public data class RegionBackendServiceIapArgs(
    public val oauth2ClientId: Output,
    public val oauth2ClientSecret: Output,
    public val oauth2ClientSecretSha256: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionBackendServiceIapArgs =
        com.pulumi.gcp.compute.inputs.RegionBackendServiceIapArgs.builder()
            .oauth2ClientId(oauth2ClientId.applyValue({ args0 -> args0 }))
            .oauth2ClientSecret(oauth2ClientSecret.applyValue({ args0 -> args0 }))
            .oauth2ClientSecretSha256(oauth2ClientSecretSha256?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionBackendServiceIapArgs].
 */
@PulumiTagMarker
public class RegionBackendServiceIapArgsBuilder internal constructor() {
    private var oauth2ClientId: Output? = null

    private var oauth2ClientSecret: Output? = null

    private var oauth2ClientSecretSha256: Output? = null

    /**
     * @param value OAuth2 Client ID for IAP
     */
    @JvmName("pqymlyxoarhdpbsl")
    public suspend fun oauth2ClientId(`value`: Output) {
        this.oauth2ClientId = value
    }

    /**
     * @param value OAuth2 Client Secret for IAP
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("wjadmnvfekisgswg")
    public suspend fun oauth2ClientSecret(`value`: Output) {
        this.oauth2ClientSecret = value
    }

    /**
     * @param value (Output)
     * OAuth2 Client Secret SHA-256 for IAP
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("hbdqjoagiuhiygmm")
    public suspend fun oauth2ClientSecretSha256(`value`: Output) {
        this.oauth2ClientSecretSha256 = value
    }

    /**
     * @param value OAuth2 Client ID for IAP
     */
    @JvmName("cjariecneuvluxgq")
    public suspend fun oauth2ClientId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.oauth2ClientId = mapped
    }

    /**
     * @param value OAuth2 Client Secret for IAP
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("goavloelwunxkjin")
    public suspend fun oauth2ClientSecret(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.oauth2ClientSecret = mapped
    }

    /**
     * @param value (Output)
     * OAuth2 Client Secret SHA-256 for IAP
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("bkhgefnnhtjuaesm")
    public suspend fun oauth2ClientSecretSha256(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oauth2ClientSecretSha256 = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy