
com.pulumi.awsnative.msk.kotlin.inputs.ClusterClientAuthenticationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.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("dljformtstleawul")
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("mfdvjrimgyqehsub")
public suspend fun tls(`value`: Output) {
this.tls = value
}
/**
* @param value Details for ClientAuthentication using no authentication.
*/
@JvmName("phxribomsnuprpbk")
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("hkewpemqinxwlyhb")
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("ddsjwurqispstpae")
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("lcsnbaavluhpwtnd")
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("vnsprwalsbncvkvw")
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("mpkrawbrcwjdpqvl")
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("kvgsqsoecexwovpo")
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