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

com.pulumi.azure.apimanagement.kotlin.inputs.BackendCredentialsArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.apimanagement.kotlin.inputs

import com.pulumi.azure.apimanagement.inputs.BackendCredentialsArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property authorization An `authorization` block as defined below.
 * @property certificates A list of client certificate thumbprints to present to the backend host. The certificates must exist within the API Management Service.
 * @property header A mapping of header parameters to pass to the backend host. The keys are the header names and the values are a comma separated string of header values. This is converted to a list before being passed to the API.
 * @property query A mapping of query parameters to pass to the backend host. The keys are the query names and the values are a comma separated string of query values. This is converted to a list before being passed to the API.
 */
public data class BackendCredentialsArgs(
    public val authorization: Output? = null,
    public val certificates: Output>? = null,
    public val `header`: Output>? = null,
    public val query: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.apimanagement.inputs.BackendCredentialsArgs =
        com.pulumi.azure.apimanagement.inputs.BackendCredentialsArgs.builder()
            .authorization(authorization?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .certificates(certificates?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .`header`(
                `header`?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .query(
                query?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [BackendCredentialsArgs].
 */
@PulumiTagMarker
public class BackendCredentialsArgsBuilder internal constructor() {
    private var authorization: Output? = null

    private var certificates: Output>? = null

    private var `header`: Output>? = null

    private var query: Output>? = null

    /**
     * @param value An `authorization` block as defined below.
     */
    @JvmName("gavdbxfljkonnvgh")
    public suspend fun authorization(`value`: Output) {
        this.authorization = value
    }

    /**
     * @param value A list of client certificate thumbprints to present to the backend host. The certificates must exist within the API Management Service.
     */
    @JvmName("psxebpmgiwqrxnrd")
    public suspend fun certificates(`value`: Output>) {
        this.certificates = value
    }

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

    /**
     * @param values A list of client certificate thumbprints to present to the backend host. The certificates must exist within the API Management Service.
     */
    @JvmName("jurnsothvpmimksk")
    public suspend fun certificates(values: List>) {
        this.certificates = Output.all(values)
    }

    /**
     * @param value A mapping of header parameters to pass to the backend host. The keys are the header names and the values are a comma separated string of header values. This is converted to a list before being passed to the API.
     */
    @JvmName("hyxfalkntjaqepfo")
    public suspend fun `header`(`value`: Output>) {
        this.`header` = value
    }

    /**
     * @param value A mapping of query parameters to pass to the backend host. The keys are the query names and the values are a comma separated string of query values. This is converted to a list before being passed to the API.
     */
    @JvmName("qtocbrammjnwayxt")
    public suspend fun query(`value`: Output>) {
        this.query = value
    }

    /**
     * @param value An `authorization` block as defined below.
     */
    @JvmName("tvebnwlxpjtxxlfp")
    public suspend fun authorization(`value`: BackendCredentialsAuthorizationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorization = mapped
    }

    /**
     * @param argument An `authorization` block as defined below.
     */
    @JvmName("flnbobnvnekctdmd")
    public suspend
    fun authorization(argument: suspend BackendCredentialsAuthorizationArgsBuilder.() -> Unit) {
        val toBeMapped = BackendCredentialsAuthorizationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.authorization = mapped
    }

    /**
     * @param value A list of client certificate thumbprints to present to the backend host. The certificates must exist within the API Management Service.
     */
    @JvmName("wverkshbwclwlkdu")
    public suspend fun certificates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificates = mapped
    }

    /**
     * @param values A list of client certificate thumbprints to present to the backend host. The certificates must exist within the API Management Service.
     */
    @JvmName("nkplkkvygckuweqj")
    public suspend fun certificates(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.certificates = mapped
    }

    /**
     * @param value A mapping of header parameters to pass to the backend host. The keys are the header names and the values are a comma separated string of header values. This is converted to a list before being passed to the API.
     */
    @JvmName("biytyeqvpuxrwcjs")
    public suspend fun `header`(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`header` = mapped
    }

    /**
     * @param values A mapping of header parameters to pass to the backend host. The keys are the header names and the values are a comma separated string of header values. This is converted to a list before being passed to the API.
     */
    @JvmName("rxvwmyvjggwelqau")
    public fun `header`(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`header` = mapped
    }

    /**
     * @param value A mapping of query parameters to pass to the backend host. The keys are the query names and the values are a comma separated string of query values. This is converted to a list before being passed to the API.
     */
    @JvmName("lsqukyjppbomluef")
    public suspend fun query(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.query = mapped
    }

    /**
     * @param values A mapping of query parameters to pass to the backend host. The keys are the query names and the values are a comma separated string of query values. This is converted to a list before being passed to the API.
     */
    @JvmName("cryokrkfkliuysdf")
    public fun query(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.query = mapped
    }

    internal fun build(): BackendCredentialsArgs = BackendCredentialsArgs(
        authorization = authorization,
        certificates = certificates,
        `header` = `header`,
        query = query,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy