All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.msk.kotlin.inputs.ServerlessClusterClientAuthenticationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.msk.kotlin.inputs

import com.pulumi.awsnative.msk.inputs.ServerlessClusterClientAuthenticationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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.
 */
public data class ServerlessClusterClientAuthenticationArgs(
    public val sasl: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.msk.inputs.ServerlessClusterClientAuthenticationArgs =
        com.pulumi.awsnative.msk.inputs.ServerlessClusterClientAuthenticationArgs.builder()
            .sasl(sasl.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ServerlessClusterClientAuthenticationArgs].
 */
@PulumiTagMarker
public class ServerlessClusterClientAuthenticationArgsBuilder internal constructor() {
    private var sasl: 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("dikevqsjuxguruud")
    public suspend fun sasl(`value`: Output) {
        this.sasl = 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("abotheurujbyitau")
    public suspend fun sasl(`value`: ServerlessClusterSaslArgs) {
        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("plgxfptxnkwabyub")
    public suspend fun sasl(argument: suspend ServerlessClusterSaslArgsBuilder.() -> Unit) {
        val toBeMapped = ServerlessClusterSaslArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sasl = mapped
    }

    internal fun build(): ServerlessClusterClientAuthenticationArgs =
        ServerlessClusterClientAuthenticationArgs(
            sasl = sasl ?: throw PulumiNullFieldException("sasl"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy