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

com.pulumi.azure.appservice.kotlin.inputs.LinuxFunctionAppSlotAuthSettingsActiveDirectoryArgs.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.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.LinuxFunctionAppSlotAuthSettingsActiveDirectoryArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowedAudiences Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
 * > **Note:** The `client_id` value is always considered an allowed audience.
 * @property clientId The ID of the Client to use to authenticate with Azure Active Directory.
 * @property clientSecret The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`.
 * @property clientSecretSettingName The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`.
 */
public data class LinuxFunctionAppSlotAuthSettingsActiveDirectoryArgs(
    public val allowedAudiences: Output>? = null,
    public val clientId: Output,
    public val clientSecret: Output? = null,
    public val clientSecretSettingName: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appservice.inputs.LinuxFunctionAppSlotAuthSettingsActiveDirectoryArgs =
        com.pulumi.azure.appservice.inputs.LinuxFunctionAppSlotAuthSettingsActiveDirectoryArgs.builder()
            .allowedAudiences(allowedAudiences?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .clientId(clientId.applyValue({ args0 -> args0 }))
            .clientSecret(clientSecret?.applyValue({ args0 -> args0 }))
            .clientSecretSettingName(clientSecretSettingName?.applyValue({ args0 -> args0 })).build()
}

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

    private var clientId: Output? = null

    private var clientSecret: Output? = null

    private var clientSecretSettingName: Output? = null

    /**
     * @param value Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
     * > **Note:** The `client_id` value is always considered an allowed audience.
     */
    @JvmName("rcwfnijssoovpmcc")
    public suspend fun allowedAudiences(`value`: Output>) {
        this.allowedAudiences = value
    }

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

    /**
     * @param values Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
     * > **Note:** The `client_id` value is always considered an allowed audience.
     */
    @JvmName("oyhjsacxgigfurrv")
    public suspend fun allowedAudiences(values: List>) {
        this.allowedAudiences = Output.all(values)
    }

    /**
     * @param value The ID of the Client to use to authenticate with Azure Active Directory.
     */
    @JvmName("feebbxdxnquttqeb")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`.
     */
    @JvmName("dvootpfjkoaegqtp")
    public suspend fun clientSecret(`value`: Output) {
        this.clientSecret = value
    }

    /**
     * @param value The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`.
     */
    @JvmName("dwusnjntdhbdmsrc")
    public suspend fun clientSecretSettingName(`value`: Output) {
        this.clientSecretSettingName = value
    }

    /**
     * @param value Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
     * > **Note:** The `client_id` value is always considered an allowed audience.
     */
    @JvmName("xetqpxklnfadggbi")
    public suspend fun allowedAudiences(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedAudiences = mapped
    }

    /**
     * @param values Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
     * > **Note:** The `client_id` value is always considered an allowed audience.
     */
    @JvmName("tqfjcxbyidsbxppt")
    public suspend fun allowedAudiences(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedAudiences = mapped
    }

    /**
     * @param value The ID of the Client to use to authenticate with Azure Active Directory.
     */
    @JvmName("uvpldbbquervvfci")
    public suspend fun clientId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`.
     */
    @JvmName("utavtnvcvblvdinp")
    public suspend fun clientSecret(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientSecret = mapped
    }

    /**
     * @param value The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`.
     */
    @JvmName("weirjrvbreeeydpd")
    public suspend fun clientSecretSettingName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientSecretSettingName = mapped
    }

    internal fun build(): LinuxFunctionAppSlotAuthSettingsActiveDirectoryArgs =
        LinuxFunctionAppSlotAuthSettingsActiveDirectoryArgs(
            allowedAudiences = allowedAudiences,
            clientId = clientId ?: throw PulumiNullFieldException("clientId"),
            clientSecret = clientSecret,
            clientSecretSettingName = clientSecretSettingName,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy