com.pulumi.gcp.container.kotlin.inputs.ClusterMasterAuthArgs.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.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterMasterAuthArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property clientCertificate Base64 encoded public certificate
* used by clients to authenticate to the cluster endpoint.
* @property clientCertificateConfig Whether client certificate authorization is enabled for this cluster. For example:
* @property clientKey Base64 encoded private key used by clients
* to authenticate to the cluster endpoint.
* @property clusterCaCertificate Base64 encoded public certificate
* that is the root certificate of the cluster.
*/
public data class ClusterMasterAuthArgs(
public val clientCertificate: Output? = null,
public val clientCertificateConfig: Output,
public val clientKey: Output? = null,
public val clusterCaCertificate: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterMasterAuthArgs =
com.pulumi.gcp.container.inputs.ClusterMasterAuthArgs.builder()
.clientCertificate(clientCertificate?.applyValue({ args0 -> args0 }))
.clientCertificateConfig(
clientCertificateConfig.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.clientKey(clientKey?.applyValue({ args0 -> args0 }))
.clusterCaCertificate(clusterCaCertificate?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterMasterAuthArgs].
*/
@PulumiTagMarker
public class ClusterMasterAuthArgsBuilder internal constructor() {
private var clientCertificate: Output? = null
private var clientCertificateConfig: Output? = null
private var clientKey: Output? = null
private var clusterCaCertificate: Output? = null
/**
* @param value Base64 encoded public certificate
* used by clients to authenticate to the cluster endpoint.
*/
@JvmName("kkrfwkeydbdncqvc")
public suspend fun clientCertificate(`value`: Output) {
this.clientCertificate = value
}
/**
* @param value Whether client certificate authorization is enabled for this cluster. For example:
*/
@JvmName("jqyhufskusufdvfn")
public suspend fun clientCertificateConfig(`value`: Output) {
this.clientCertificateConfig = value
}
/**
* @param value Base64 encoded private key used by clients
* to authenticate to the cluster endpoint.
*/
@JvmName("xenhbroeupriftck")
public suspend fun clientKey(`value`: Output) {
this.clientKey = value
}
/**
* @param value Base64 encoded public certificate
* that is the root certificate of the cluster.
*/
@JvmName("prshoifjnueteeev")
public suspend fun clusterCaCertificate(`value`: Output) {
this.clusterCaCertificate = value
}
/**
* @param value Base64 encoded public certificate
* used by clients to authenticate to the cluster endpoint.
*/
@JvmName("dyjyktcithgmgtes")
public suspend fun clientCertificate(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientCertificate = mapped
}
/**
* @param value Whether client certificate authorization is enabled for this cluster. For example:
*/
@JvmName("mvlmlvfniitagudp")
public suspend fun clientCertificateConfig(`value`: ClusterMasterAuthClientCertificateConfigArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.clientCertificateConfig = mapped
}
/**
* @param argument Whether client certificate authorization is enabled for this cluster. For example:
*/
@JvmName("xgimwitjmcsobekw")
public suspend fun clientCertificateConfig(argument: suspend ClusterMasterAuthClientCertificateConfigArgsBuilder.() -> Unit) {
val toBeMapped = ClusterMasterAuthClientCertificateConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.clientCertificateConfig = mapped
}
/**
* @param value Base64 encoded private key used by clients
* to authenticate to the cluster endpoint.
*/
@JvmName("ddcfvykefspdvjga")
public suspend fun clientKey(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientKey = mapped
}
/**
* @param value Base64 encoded public certificate
* that is the root certificate of the cluster.
*/
@JvmName("rkcnvtkgrsxthisx")
public suspend fun clusterCaCertificate(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clusterCaCertificate = mapped
}
internal fun build(): ClusterMasterAuthArgs = ClusterMasterAuthArgs(
clientCertificate = clientCertificate,
clientCertificateConfig = clientCertificateConfig ?: throw
PulumiNullFieldException("clientCertificateConfig"),
clientKey = clientKey,
clusterCaCertificate = clusterCaCertificate,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy