com.pulumi.gcp.compute.kotlin.inputs.BackendServiceIapArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.BackendServiceIapArgs.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 BackendServiceIapArgs(
public val oauth2ClientId: Output,
public val oauth2ClientSecret: Output,
public val oauth2ClientSecretSha256: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.BackendServiceIapArgs =
com.pulumi.gcp.compute.inputs.BackendServiceIapArgs.builder()
.oauth2ClientId(oauth2ClientId.applyValue({ args0 -> args0 }))
.oauth2ClientSecret(oauth2ClientSecret.applyValue({ args0 -> args0 }))
.oauth2ClientSecretSha256(oauth2ClientSecretSha256?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BackendServiceIapArgs].
*/
@PulumiTagMarker
public class BackendServiceIapArgsBuilder 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("gvuchsmihyiqtxqc")
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("dhbxafrlgswkhirv")
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("ojhcxruqjywofern")
public suspend fun oauth2ClientSecretSha256(`value`: Output) {
this.oauth2ClientSecretSha256 = value
}
/**
* @param value OAuth2 Client ID for IAP
*/
@JvmName("dgmxqsdaoxercwxy")
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("xeporpaxhsnufiao")
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("twntfmwatcrfyxxs")
public suspend fun oauth2ClientSecretSha256(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.oauth2ClientSecretSha256 = mapped
}
internal fun build(): BackendServiceIapArgs = BackendServiceIapArgs(
oauth2ClientId = oauth2ClientId ?: throw PulumiNullFieldException("oauth2ClientId"),
oauth2ClientSecret = oauth2ClientSecret ?: throw PulumiNullFieldException("oauth2ClientSecret"),
oauth2ClientSecretSha256 = oauth2ClientSecretSha256,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy