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

com.pulumi.azure.appservice.kotlin.inputs.WindowsFunctionAppSlotAuthSettingsActiveDirectoryArgs.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.WindowsFunctionAppSlotAuthSettingsActiveDirectoryArgs.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 WindowsFunctionAppSlotAuthSettingsActiveDirectoryArgs(
    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.WindowsFunctionAppSlotAuthSettingsActiveDirectoryArgs =
        com.pulumi.azure.appservice.inputs.WindowsFunctionAppSlotAuthSettingsActiveDirectoryArgs.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 [WindowsFunctionAppSlotAuthSettingsActiveDirectoryArgs].
 */
@PulumiTagMarker
public class WindowsFunctionAppSlotAuthSettingsActiveDirectoryArgsBuilder 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("eajxcqajcrkvehig")
    public suspend fun allowedAudiences(`value`: Output>) {
        this.allowedAudiences = value
    }

    @JvmName("vaorfqkovyosveyx")
    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("kwshttpibrlyxsyr")
    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("fvmrwycudrstygkx")
    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("inwciardlxyseofl")
    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("yhurgvqaoldaaral")
    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("fgjtfyycjlbtetbc")
    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("msbsqyffgkxlupux")
    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("utdribqxwdbyfgaw")
    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("qyroebsapawuqffw")
    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("begegbuqfkgndiiw")
    public suspend fun clientSecretSettingName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientSecretSettingName = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy