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

com.pulumi.azure.appservice.kotlin.inputs.WindowsWebAppSlotAuthSettingsFacebookArgs.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.WindowsWebAppSlotAuthSettingsFacebookArgs.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 appId The App ID of the Facebook app used for login.
 * @property appSecret The App Secret of the Facebook app used for Facebook login. Cannot be specified with `app_secret_setting_name`.
 * @property appSecretSettingName The app setting name that contains the `app_secret` value used for Facebook login. Cannot be specified with `app_secret`.
 * @property oauthScopes Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook login authentication.
 */
public data class WindowsWebAppSlotAuthSettingsFacebookArgs(
    public val appId: Output,
    public val appSecret: Output? = null,
    public val appSecretSettingName: Output? = null,
    public val oauthScopes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appservice.inputs.WindowsWebAppSlotAuthSettingsFacebookArgs =
        com.pulumi.azure.appservice.inputs.WindowsWebAppSlotAuthSettingsFacebookArgs.builder()
            .appId(appId.applyValue({ args0 -> args0 }))
            .appSecret(appSecret?.applyValue({ args0 -> args0 }))
            .appSecretSettingName(appSecretSettingName?.applyValue({ args0 -> args0 }))
            .oauthScopes(oauthScopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [WindowsWebAppSlotAuthSettingsFacebookArgs].
 */
@PulumiTagMarker
public class WindowsWebAppSlotAuthSettingsFacebookArgsBuilder internal constructor() {
    private var appId: Output? = null

    private var appSecret: Output? = null

    private var appSecretSettingName: Output? = null

    private var oauthScopes: Output>? = null

    /**
     * @param value The App ID of the Facebook app used for login.
     */
    @JvmName("ptmjiupmxrgxcnax")
    public suspend fun appId(`value`: Output) {
        this.appId = value
    }

    /**
     * @param value The App Secret of the Facebook app used for Facebook login. Cannot be specified with `app_secret_setting_name`.
     */
    @JvmName("cmgpvxmfnnwxbmow")
    public suspend fun appSecret(`value`: Output) {
        this.appSecret = value
    }

    /**
     * @param value The app setting name that contains the `app_secret` value used for Facebook login. Cannot be specified with `app_secret`.
     */
    @JvmName("tjckxrvuipedishi")
    public suspend fun appSecretSettingName(`value`: Output) {
        this.appSecretSettingName = value
    }

    /**
     * @param value Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook login authentication.
     */
    @JvmName("ltnixwvcejquxwdk")
    public suspend fun oauthScopes(`value`: Output>) {
        this.oauthScopes = value
    }

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

    /**
     * @param values Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook login authentication.
     */
    @JvmName("kwtpptlyvgysrvbd")
    public suspend fun oauthScopes(values: List>) {
        this.oauthScopes = Output.all(values)
    }

    /**
     * @param value The App ID of the Facebook app used for login.
     */
    @JvmName("yffginrrelhrwcir")
    public suspend fun appId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.appId = mapped
    }

    /**
     * @param value The App Secret of the Facebook app used for Facebook login. Cannot be specified with `app_secret_setting_name`.
     */
    @JvmName("pgsxtytjntlwvlkc")
    public suspend fun appSecret(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appSecret = mapped
    }

    /**
     * @param value The app setting name that contains the `app_secret` value used for Facebook login. Cannot be specified with `app_secret`.
     */
    @JvmName("cguqervueywjthsa")
    public suspend fun appSecretSettingName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appSecretSettingName = mapped
    }

    /**
     * @param value Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook login authentication.
     */
    @JvmName("feielrhwcusyrgis")
    public suspend fun oauthScopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oauthScopes = mapped
    }

    /**
     * @param values Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook login authentication.
     */
    @JvmName("hbslhnpuxgqaucil")
    public suspend fun oauthScopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.oauthScopes = mapped
    }

    internal fun build(): WindowsWebAppSlotAuthSettingsFacebookArgs =
        WindowsWebAppSlotAuthSettingsFacebookArgs(
            appId = appId ?: throw PulumiNullFieldException("appId"),
            appSecret = appSecret,
            appSecretSettingName = appSecretSettingName,
            oauthScopes = oauthScopes,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy