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

com.pulumi.azurenative.eventgrid.kotlin.inputs.ClientCertificateAuthenticationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.eventgrid.kotlin.inputs

import com.pulumi.azurenative.eventgrid.inputs.ClientCertificateAuthenticationArgs.builder
import com.pulumi.azurenative.eventgrid.kotlin.enums.ClientCertificateValidationScheme
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The certificate authentication properties for the client.
 * @property allowedThumbprints The list of thumbprints that are allowed during client authentication. This property is required only if the validationScheme is 'ThumbprintMatch'.
 * @property validationScheme The validation scheme used to authenticate the client. Default value is SubjectMatchesAuthenticationName.
 */
public data class ClientCertificateAuthenticationArgs(
    public val allowedThumbprints: Output>? = null,
    public val validationScheme: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.eventgrid.inputs.ClientCertificateAuthenticationArgs = com.pulumi.azurenative.eventgrid.inputs.ClientCertificateAuthenticationArgs.builder()
        .allowedThumbprints(allowedThumbprints?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .validationScheme(
            validationScheme?.applyValue({ args0 ->
                args0.transform(
                    { args0 -> args0 },
                    { args0 -> args0.let({ args0 -> args0.toJava() }) },
                )
            }),
        ).build()
}

/**
 * Builder for [ClientCertificateAuthenticationArgs].
 */
@PulumiTagMarker
public class ClientCertificateAuthenticationArgsBuilder internal constructor() {
    private var allowedThumbprints: Output>? = null

    private var validationScheme: Output>? = null

    /**
     * @param value The list of thumbprints that are allowed during client authentication. This property is required only if the validationScheme is 'ThumbprintMatch'.
     */
    @JvmName("bacxcxdymbmxosgx")
    public suspend fun allowedThumbprints(`value`: Output>) {
        this.allowedThumbprints = value
    }

    @JvmName("msdfvbivvghvogdp")
    public suspend fun allowedThumbprints(vararg values: Output) {
        this.allowedThumbprints = Output.all(values.asList())
    }

    /**
     * @param values The list of thumbprints that are allowed during client authentication. This property is required only if the validationScheme is 'ThumbprintMatch'.
     */
    @JvmName("gydpvemmpjnqcnnd")
    public suspend fun allowedThumbprints(values: List>) {
        this.allowedThumbprints = Output.all(values)
    }

    /**
     * @param value The validation scheme used to authenticate the client. Default value is SubjectMatchesAuthenticationName.
     */
    @JvmName("yrdbnvcmqxxpylxd")
    public suspend fun validationScheme(`value`: Output>) {
        this.validationScheme = value
    }

    /**
     * @param value The list of thumbprints that are allowed during client authentication. This property is required only if the validationScheme is 'ThumbprintMatch'.
     */
    @JvmName("ynukqffrwavxgtpn")
    public suspend fun allowedThumbprints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedThumbprints = mapped
    }

    /**
     * @param values The list of thumbprints that are allowed during client authentication. This property is required only if the validationScheme is 'ThumbprintMatch'.
     */
    @JvmName("ktiqhofirjprolfi")
    public suspend fun allowedThumbprints(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedThumbprints = mapped
    }

    /**
     * @param value The validation scheme used to authenticate the client. Default value is SubjectMatchesAuthenticationName.
     */
    @JvmName("cvvokohgksynvlkb")
    public suspend fun validationScheme(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.validationScheme = mapped
    }

    /**
     * @param value The validation scheme used to authenticate the client. Default value is SubjectMatchesAuthenticationName.
     */
    @JvmName("cetanbjbxeghsrbs")
    public fun validationScheme(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.validationScheme = mapped
    }

    /**
     * @param value The validation scheme used to authenticate the client. Default value is SubjectMatchesAuthenticationName.
     */
    @JvmName("jnkhlhtchjssgytu")
    public fun validationScheme(`value`: ClientCertificateValidationScheme) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.validationScheme = mapped
    }

    internal fun build(): ClientCertificateAuthenticationArgs = ClientCertificateAuthenticationArgs(
        allowedThumbprints = allowedThumbprints,
        validationScheme = validationScheme,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy