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

com.pulumi.awsnative.msk.kotlin.outputs.ClusterClientAuthentication.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.msk.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @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 ClusterClientAuthentication(
    public val sasl: ClusterSasl? = null,
    public val tls: ClusterTls? = null,
    public val unauthenticated: ClusterUnauthenticated? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.msk.outputs.ClusterClientAuthentication): ClusterClientAuthentication = ClusterClientAuthentication(
            sasl = javaType.sasl().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.msk.kotlin.outputs.ClusterSasl.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tls = javaType.tls().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.msk.kotlin.outputs.ClusterTls.Companion.toKotlin(args0)
                })
            }).orElse(null),
            unauthenticated = javaType.unauthenticated().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.msk.kotlin.outputs.ClusterUnauthenticated.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy