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

com.pulumi.azure.appservice.kotlin.inputs.AppServiceAuthSettingsActiveDirectoryArgs.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.AppServiceAuthSettingsActiveDirectoryArgs.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 Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
 * @property clientId The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
 * @property clientSecret The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
 */
public data class AppServiceAuthSettingsActiveDirectoryArgs(
    public val allowedAudiences: Output>? = null,
    public val clientId: Output,
    public val clientSecret: Output? = null,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appservice.inputs.AppServiceAuthSettingsActiveDirectoryArgs =
        com.pulumi.azure.appservice.inputs.AppServiceAuthSettingsActiveDirectoryArgs.builder()
            .allowedAudiences(allowedAudiences?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .clientId(clientId.applyValue({ args0 -> args0 }))
            .clientSecret(clientSecret?.applyValue({ args0 -> args0 })).build()
}

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

    private var clientId: Output? = null

    private var clientSecret: Output? = null

    /**
     * @param value Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
     */
    @JvmName("kxjwyisgovmypwqp")
    public suspend fun allowedAudiences(`value`: Output>) {
        this.allowedAudiences = value
    }

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

    /**
     * @param values Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
     */
    @JvmName("qlugctnxkbvijekp")
    public suspend fun allowedAudiences(values: List>) {
        this.allowedAudiences = Output.all(values)
    }

    /**
     * @param value The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
     */
    @JvmName("suygtswuwsvbcyxo")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
     */
    @JvmName("vxoahdqeacpvpgtk")
    public suspend fun clientSecret(`value`: Output) {
        this.clientSecret = value
    }

    /**
     * @param value Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
     */
    @JvmName("efsetebatyewbgqy")
    public suspend fun allowedAudiences(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedAudiences = mapped
    }

    /**
     * @param values Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
     */
    @JvmName("torfmagdmnjhnixf")
    public suspend fun allowedAudiences(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedAudiences = mapped
    }

    /**
     * @param value The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
     */
    @JvmName("wmrcminqcaislgeg")
    public suspend fun clientId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
     */
    @JvmName("houtlluujqlhaiqb")
    public suspend fun clientSecret(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientSecret = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy