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

com.pulumi.azurenative.iotoperations.kotlin.inputs.BrokerAuthenticatorMethodCustomArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.iotoperations.kotlin.inputs

import com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorMethodCustomArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Custom method for BrokerAuthentication
 * @property auth Optional authentication needed for authenticating with the custom authentication server.
 * @property caCertConfigMap Optional CA certificate for validating the custom authentication server's certificate.
 * @property endpoint Endpoint of the custom authentication server. Must be an HTTPS endpoint.
 * @property headers Additional HTTP headers to pass to the custom authentication server.
 */
public data class BrokerAuthenticatorMethodCustomArgs(
    public val auth: Output? = null,
    public val caCertConfigMap: Output? = null,
    public val endpoint: Output,
    public val headers: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorMethodCustomArgs =
        com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorMethodCustomArgs.builder()
            .auth(auth?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .caCertConfigMap(caCertConfigMap?.applyValue({ args0 -> args0 }))
            .endpoint(endpoint.applyValue({ args0 -> args0 }))
            .headers(
                headers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [BrokerAuthenticatorMethodCustomArgs].
 */
@PulumiTagMarker
public class BrokerAuthenticatorMethodCustomArgsBuilder internal constructor() {
    private var auth: Output? = null

    private var caCertConfigMap: Output? = null

    private var endpoint: Output? = null

    private var headers: Output>? = null

    /**
     * @param value Optional authentication needed for authenticating with the custom authentication server.
     */
    @JvmName("tvqnkhheyimvrdyr")
    public suspend fun auth(`value`: Output) {
        this.auth = value
    }

    /**
     * @param value Optional CA certificate for validating the custom authentication server's certificate.
     */
    @JvmName("lxslvpyidscryxmb")
    public suspend fun caCertConfigMap(`value`: Output) {
        this.caCertConfigMap = value
    }

    /**
     * @param value Endpoint of the custom authentication server. Must be an HTTPS endpoint.
     */
    @JvmName("juewmkohtkxgogrq")
    public suspend fun endpoint(`value`: Output) {
        this.endpoint = value
    }

    /**
     * @param value Additional HTTP headers to pass to the custom authentication server.
     */
    @JvmName("yfxynuqibjoiotie")
    public suspend fun headers(`value`: Output>) {
        this.headers = value
    }

    /**
     * @param value Optional authentication needed for authenticating with the custom authentication server.
     */
    @JvmName("vcariskxpbjiliju")
    public suspend fun auth(`value`: BrokerAuthenticatorCustomAuthArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.auth = mapped
    }

    /**
     * @param argument Optional authentication needed for authenticating with the custom authentication server.
     */
    @JvmName("lshfrqurjbtvjnma")
    public suspend fun auth(argument: suspend BrokerAuthenticatorCustomAuthArgsBuilder.() -> Unit) {
        val toBeMapped = BrokerAuthenticatorCustomAuthArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.auth = mapped
    }

    /**
     * @param value Optional CA certificate for validating the custom authentication server's certificate.
     */
    @JvmName("cdpiveujwkpsmquu")
    public suspend fun caCertConfigMap(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.caCertConfigMap = mapped
    }

    /**
     * @param value Endpoint of the custom authentication server. Must be an HTTPS endpoint.
     */
    @JvmName("gesyeqcdulfenadu")
    public suspend fun endpoint(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpoint = mapped
    }

    /**
     * @param value Additional HTTP headers to pass to the custom authentication server.
     */
    @JvmName("thorfasbfirlktav")
    public suspend fun headers(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.headers = mapped
    }

    /**
     * @param values Additional HTTP headers to pass to the custom authentication server.
     */
    @JvmName("cmnnjjfljxkaywps")
    public fun headers(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headers = mapped
    }

    internal fun build(): BrokerAuthenticatorMethodCustomArgs = BrokerAuthenticatorMethodCustomArgs(
        auth = auth,
        caCertConfigMap = caCertConfigMap,
        endpoint = endpoint ?: throw PulumiNullFieldException("endpoint"),
        headers = headers,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy