![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.msk.kotlin.inputs.ClusterClientAuthenticationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.msk.kotlin.inputs
import com.pulumi.awsnative.msk.inputs.ClusterClientAuthenticationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property sasl Details for client authentication using SASL. To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true.
* @property tls Details for ClientAuthentication using TLS. To turn on TLS access control, you must also turn on `EncryptionInTransit` by setting `inCluster` to true and `clientBroker` to `TLS` .
* @property unauthenticated Details for ClientAuthentication using no authentication.
*/
public data class ClusterClientAuthenticationArgs(
public val sasl: Output? = null,
public val tls: Output? = null,
public val unauthenticated: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.msk.inputs.ClusterClientAuthenticationArgs =
com.pulumi.awsnative.msk.inputs.ClusterClientAuthenticationArgs.builder()
.sasl(sasl?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.tls(tls?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.unauthenticated(
unauthenticated?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ClusterClientAuthenticationArgs].
*/
@PulumiTagMarker
public class ClusterClientAuthenticationArgsBuilder internal constructor() {
private var sasl: Output? = null
private var tls: Output? = null
private var unauthenticated: Output? = null
/**
* @param value Details for client authentication using SASL. To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true.
*/
@JvmName("nmhuogbkvshrfrcv")
public suspend fun sasl(`value`: Output) {
this.sasl = value
}
/**
* @param value Details for ClientAuthentication using TLS. To turn on TLS access control, you must also turn on `EncryptionInTransit` by setting `inCluster` to true and `clientBroker` to `TLS` .
*/
@JvmName("pguddorspfebslmf")
public suspend fun tls(`value`: Output) {
this.tls = value
}
/**
* @param value Details for ClientAuthentication using no authentication.
*/
@JvmName("tpdjjcmpcnfqrhnp")
public suspend fun unauthenticated(`value`: Output) {
this.unauthenticated = value
}
/**
* @param value Details for client authentication using SASL. To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true.
*/
@JvmName("vxficfhhjkssdrmm")
public suspend fun sasl(`value`: ClusterSaslArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sasl = mapped
}
/**
* @param argument Details for client authentication using SASL. To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true.
*/
@JvmName("bswvbepnatpmuuvc")
public suspend fun sasl(argument: suspend ClusterSaslArgsBuilder.() -> Unit) {
val toBeMapped = ClusterSaslArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sasl = mapped
}
/**
* @param value Details for ClientAuthentication using TLS. To turn on TLS access control, you must also turn on `EncryptionInTransit` by setting `inCluster` to true and `clientBroker` to `TLS` .
*/
@JvmName("uyxvgnjuwuccrqym")
public suspend fun tls(`value`: ClusterTlsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tls = mapped
}
/**
* @param argument Details for ClientAuthentication using TLS. To turn on TLS access control, you must also turn on `EncryptionInTransit` by setting `inCluster` to true and `clientBroker` to `TLS` .
*/
@JvmName("xmawhutxjsdlevfi")
public suspend fun tls(argument: suspend ClusterTlsArgsBuilder.() -> Unit) {
val toBeMapped = ClusterTlsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.tls = mapped
}
/**
* @param value Details for ClientAuthentication using no authentication.
*/
@JvmName("ypaxeemrrcrhuhyx")
public suspend fun unauthenticated(`value`: ClusterUnauthenticatedArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.unauthenticated = mapped
}
/**
* @param argument Details for ClientAuthentication using no authentication.
*/
@JvmName("chktcpnmebgnoawx")
public suspend fun unauthenticated(argument: suspend ClusterUnauthenticatedArgsBuilder.() -> Unit) {
val toBeMapped = ClusterUnauthenticatedArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.unauthenticated = mapped
}
internal fun build(): ClusterClientAuthenticationArgs = ClusterClientAuthenticationArgs(
sasl = sasl,
tls = tls,
unauthenticated = unauthenticated,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy