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

@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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Whether the serving infrastructure will authenticate and authorize all incoming requests.
 * @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 enabled: Output,
    public val oauth2ClientId: Output? = null,
    public val oauth2ClientSecret: Output? = null,
    public val oauth2ClientSecretSha256: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionBackendServiceIapArgs =
        com.pulumi.gcp.compute.inputs.RegionBackendServiceIapArgs.builder()
            .enabled(enabled.applyValue({ args0 -> args0 }))
            .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 enabled: Output? = null

    private var oauth2ClientId: Output? = null

    private var oauth2ClientSecret: Output? = null

    private var oauth2ClientSecretSha256: Output? = null

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

    /**
     * @param value OAuth2 Client ID for IAP
     */
    @JvmName("mldvayrahakggeda")
    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("pdbxwbrqvvoffmsi")
    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("llysfycuwkxmgrds")
    public suspend fun oauth2ClientSecretSha256(`value`: Output) {
        this.oauth2ClientSecretSha256 = value
    }

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

    /**
     * @param value OAuth2 Client ID for IAP
     */
    @JvmName("hcdhwxgakswocewd")
    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("hcncpdxvxbdafrwt")
    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("oumdsfvhatabjsvu")
    public suspend fun oauth2ClientSecretSha256(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oauth2ClientSecretSha256 = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy