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

com.pulumi.azure.appservice.kotlin.inputs.WindowsFunctionAppSlotAuthSettingsV2MicrosoftV2Args.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.WindowsFunctionAppSlotAuthSettingsV2MicrosoftV2Args.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 Audiences that will be requested as part of Microsoft Sign-In authentication.
 * @property clientId The OAuth 2.0 client ID that was created for the app used for authentication.
 * @property clientSecretSettingName The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.
 * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
 * @property loginScopes The list of Login scopes that should be requested as part of Microsoft Account authentication.
 */
public data class WindowsFunctionAppSlotAuthSettingsV2MicrosoftV2Args(
    public val allowedAudiences: Output>? = null,
    public val clientId: Output,
    public val clientSecretSettingName: Output,
    public val loginScopes: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appservice.inputs.WindowsFunctionAppSlotAuthSettingsV2MicrosoftV2Args =
        com.pulumi.azure.appservice.inputs.WindowsFunctionAppSlotAuthSettingsV2MicrosoftV2Args.builder()
            .allowedAudiences(allowedAudiences?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .clientId(clientId.applyValue({ args0 -> args0 }))
            .clientSecretSettingName(clientSecretSettingName.applyValue({ args0 -> args0 }))
            .loginScopes(loginScopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var clientId: Output? = null

    private var clientSecretSettingName: Output? = null

    private var loginScopes: Output>? = null

    /**
     * @param value Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.
     */
    @JvmName("bcflbyyodnsqgvwh")
    public suspend fun allowedAudiences(`value`: Output>) {
        this.allowedAudiences = value
    }

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

    /**
     * @param values Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.
     */
    @JvmName("onscrnwdgwinxfsh")
    public suspend fun allowedAudiences(values: List>) {
        this.allowedAudiences = Output.all(values)
    }

    /**
     * @param value The OAuth 2.0 client ID that was created for the app used for authentication.
     */
    @JvmName("khudexcbvmocermc")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.
     * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
     */
    @JvmName("yjaeomkkijxbduns")
    public suspend fun clientSecretSettingName(`value`: Output) {
        this.clientSecretSettingName = value
    }

    /**
     * @param value The list of Login scopes that should be requested as part of Microsoft Account authentication.
     */
    @JvmName("knotvnmuliuwyoba")
    public suspend fun loginScopes(`value`: Output>) {
        this.loginScopes = value
    }

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

    /**
     * @param values The list of Login scopes that should be requested as part of Microsoft Account authentication.
     */
    @JvmName("lkweejpolmwyubdn")
    public suspend fun loginScopes(values: List>) {
        this.loginScopes = Output.all(values)
    }

    /**
     * @param value Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.
     */
    @JvmName("gqxxadpupfgaxajm")
    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 Audiences that will be requested as part of Microsoft Sign-In authentication.
     */
    @JvmName("vqctgjlvibdanxbq")
    public suspend fun allowedAudiences(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedAudiences = mapped
    }

    /**
     * @param value The OAuth 2.0 client ID that was created for the app used for authentication.
     */
    @JvmName("oeklbepnvqipwtxg")
    public suspend fun clientId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.
     * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
     */
    @JvmName("axjysntqpklxkkyb")
    public suspend fun clientSecretSettingName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientSecretSettingName = mapped
    }

    /**
     * @param value The list of Login scopes that should be requested as part of Microsoft Account authentication.
     */
    @JvmName("ikhrgeunyqjrgupr")
    public suspend fun loginScopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loginScopes = mapped
    }

    /**
     * @param values The list of Login scopes that should be requested as part of Microsoft Account authentication.
     */
    @JvmName("ntvwcmvgwaklecut")
    public suspend fun loginScopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.loginScopes = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy