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

com.pulumi.azure.appservice.kotlin.inputs.LinuxFunctionAppAuthSettingsV2CustomOidcV2Args.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.LinuxFunctionAppAuthSettingsV2CustomOidcV2Args.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 authorisationEndpoint The endpoint to make the Authorisation Request as supplied by `openid_configuration_endpoint` response.
 * @property certificationUri The endpoint that provides the keys necessary to validate the token as supplied by `openid_configuration_endpoint` response.
 * @property clientCredentialMethod The Client Credential Method used.
 * @property clientId The ID of the Client to use to authenticate with the Custom OIDC.
 * @property clientSecretSettingName The App Setting name that contains the secret for this Custom OIDC Client. This is generated from `name` above and suffixed with `_PROVIDER_AUTHENTICATION_SECRET`.
 * @property issuerEndpoint The endpoint that issued the Token as supplied by `openid_configuration_endpoint` response.
 * @property name The name of the Custom OIDC Authentication Provider.
 * > **NOTE:** An `app_setting` matching this value in upper case with the suffix of `_PROVIDER_AUTHENTICATION_SECRET` is required. e.g. `MYOIDC_PROVIDER_AUTHENTICATION_SECRET` for a value of `myoidc`.
 * @property nameClaimType The name of the claim that contains the users name.
 * @property openidConfigurationEndpoint The app setting name that contains the `client_secret` value used for the Custom OIDC Login.
 * @property scopes The list of the scopes that should be requested while authenticating.
 * @property tokenEndpoint The endpoint used to request a Token as supplied by `openid_configuration_endpoint` response.
 */
public data class LinuxFunctionAppAuthSettingsV2CustomOidcV2Args(
    public val authorisationEndpoint: Output? = null,
    public val certificationUri: Output? = null,
    public val clientCredentialMethod: Output? = null,
    public val clientId: Output,
    public val clientSecretSettingName: Output? = null,
    public val issuerEndpoint: Output? = null,
    public val name: Output,
    public val nameClaimType: Output? = null,
    public val openidConfigurationEndpoint: Output,
    public val scopes: Output>? = null,
    public val tokenEndpoint: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appservice.inputs.LinuxFunctionAppAuthSettingsV2CustomOidcV2Args =
        com.pulumi.azure.appservice.inputs.LinuxFunctionAppAuthSettingsV2CustomOidcV2Args.builder()
            .authorisationEndpoint(authorisationEndpoint?.applyValue({ args0 -> args0 }))
            .certificationUri(certificationUri?.applyValue({ args0 -> args0 }))
            .clientCredentialMethod(clientCredentialMethod?.applyValue({ args0 -> args0 }))
            .clientId(clientId.applyValue({ args0 -> args0 }))
            .clientSecretSettingName(clientSecretSettingName?.applyValue({ args0 -> args0 }))
            .issuerEndpoint(issuerEndpoint?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .nameClaimType(nameClaimType?.applyValue({ args0 -> args0 }))
            .openidConfigurationEndpoint(openidConfigurationEndpoint.applyValue({ args0 -> args0 }))
            .scopes(scopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tokenEndpoint(tokenEndpoint?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LinuxFunctionAppAuthSettingsV2CustomOidcV2Args].
 */
@PulumiTagMarker
public class LinuxFunctionAppAuthSettingsV2CustomOidcV2ArgsBuilder internal constructor() {
    private var authorisationEndpoint: Output? = null

    private var certificationUri: Output? = null

    private var clientCredentialMethod: Output? = null

    private var clientId: Output? = null

    private var clientSecretSettingName: Output? = null

    private var issuerEndpoint: Output? = null

    private var name: Output? = null

    private var nameClaimType: Output? = null

    private var openidConfigurationEndpoint: Output? = null

    private var scopes: Output>? = null

    private var tokenEndpoint: Output? = null

    /**
     * @param value The endpoint to make the Authorisation Request as supplied by `openid_configuration_endpoint` response.
     */
    @JvmName("viykvanwjdcowfua")
    public suspend fun authorisationEndpoint(`value`: Output) {
        this.authorisationEndpoint = value
    }

    /**
     * @param value The endpoint that provides the keys necessary to validate the token as supplied by `openid_configuration_endpoint` response.
     */
    @JvmName("yhfcsliorrccgkse")
    public suspend fun certificationUri(`value`: Output) {
        this.certificationUri = value
    }

    /**
     * @param value The Client Credential Method used.
     */
    @JvmName("qqduaosrkrbdddkd")
    public suspend fun clientCredentialMethod(`value`: Output) {
        this.clientCredentialMethod = value
    }

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

    /**
     * @param value The App Setting name that contains the secret for this Custom OIDC Client. This is generated from `name` above and suffixed with `_PROVIDER_AUTHENTICATION_SECRET`.
     */
    @JvmName("fhwebhvhevvcjljj")
    public suspend fun clientSecretSettingName(`value`: Output) {
        this.clientSecretSettingName = value
    }

    /**
     * @param value The endpoint that issued the Token as supplied by `openid_configuration_endpoint` response.
     */
    @JvmName("usmxsulyvhitqjdx")
    public suspend fun issuerEndpoint(`value`: Output) {
        this.issuerEndpoint = value
    }

    /**
     * @param value The name of the Custom OIDC Authentication Provider.
     * > **NOTE:** An `app_setting` matching this value in upper case with the suffix of `_PROVIDER_AUTHENTICATION_SECRET` is required. e.g. `MYOIDC_PROVIDER_AUTHENTICATION_SECRET` for a value of `myoidc`.
     */
    @JvmName("euxkysktecnkeamd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the claim that contains the users name.
     */
    @JvmName("pkooeyumehbldrqg")
    public suspend fun nameClaimType(`value`: Output) {
        this.nameClaimType = value
    }

    /**
     * @param value The app setting name that contains the `client_secret` value used for the Custom OIDC Login.
     */
    @JvmName("pgchdkhclpieghjq")
    public suspend fun openidConfigurationEndpoint(`value`: Output) {
        this.openidConfigurationEndpoint = value
    }

    /**
     * @param value The list of the scopes that should be requested while authenticating.
     */
    @JvmName("deesqtsabidncpqc")
    public suspend fun scopes(`value`: Output>) {
        this.scopes = value
    }

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

    /**
     * @param values The list of the scopes that should be requested while authenticating.
     */
    @JvmName("dsfmnolugkkcxpvi")
    public suspend fun scopes(values: List>) {
        this.scopes = Output.all(values)
    }

    /**
     * @param value The endpoint used to request a Token as supplied by `openid_configuration_endpoint` response.
     */
    @JvmName("ghlifgenogmpwixk")
    public suspend fun tokenEndpoint(`value`: Output) {
        this.tokenEndpoint = value
    }

    /**
     * @param value The endpoint to make the Authorisation Request as supplied by `openid_configuration_endpoint` response.
     */
    @JvmName("auqfdyxufqsmhqfe")
    public suspend fun authorisationEndpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorisationEndpoint = mapped
    }

    /**
     * @param value The endpoint that provides the keys necessary to validate the token as supplied by `openid_configuration_endpoint` response.
     */
    @JvmName("whookctvqfnrjgmj")
    public suspend fun certificationUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificationUri = mapped
    }

    /**
     * @param value The Client Credential Method used.
     */
    @JvmName("psiyxkgqpvoqilhh")
    public suspend fun clientCredentialMethod(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientCredentialMethod = mapped
    }

    /**
     * @param value The ID of the Client to use to authenticate with the Custom OIDC.
     */
    @JvmName("jandgryblqiytymp")
    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 that contains the secret for this Custom OIDC Client. This is generated from `name` above and suffixed with `_PROVIDER_AUTHENTICATION_SECRET`.
     */
    @JvmName("mqrtdcgxfpriqhtv")
    public suspend fun clientSecretSettingName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientSecretSettingName = mapped
    }

    /**
     * @param value The endpoint that issued the Token as supplied by `openid_configuration_endpoint` response.
     */
    @JvmName("uigfpoxncidqyfio")
    public suspend fun issuerEndpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.issuerEndpoint = mapped
    }

    /**
     * @param value The name of the Custom OIDC Authentication Provider.
     * > **NOTE:** An `app_setting` matching this value in upper case with the suffix of `_PROVIDER_AUTHENTICATION_SECRET` is required. e.g. `MYOIDC_PROVIDER_AUTHENTICATION_SECRET` for a value of `myoidc`.
     */
    @JvmName("bigurnyvxtkodkwq")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the claim that contains the users name.
     */
    @JvmName("xyonikltvppuobpa")
    public suspend fun nameClaimType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nameClaimType = mapped
    }

    /**
     * @param value The app setting name that contains the `client_secret` value used for the Custom OIDC Login.
     */
    @JvmName("krdtdwntglampxdi")
    public suspend fun openidConfigurationEndpoint(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.openidConfigurationEndpoint = mapped
    }

    /**
     * @param value The list of the scopes that should be requested while authenticating.
     */
    @JvmName("dgcyxhyaloyughpg")
    public suspend fun scopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param values The list of the scopes that should be requested while authenticating.
     */
    @JvmName("jqjlaumiwlaqfwif")
    public suspend fun scopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param value The endpoint used to request a Token as supplied by `openid_configuration_endpoint` response.
     */
    @JvmName("xioioemtxvuxgmbp")
    public suspend fun tokenEndpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tokenEndpoint = mapped
    }

    internal fun build(): LinuxFunctionAppAuthSettingsV2CustomOidcV2Args =
        LinuxFunctionAppAuthSettingsV2CustomOidcV2Args(
            authorisationEndpoint = authorisationEndpoint,
            certificationUri = certificationUri,
            clientCredentialMethod = clientCredentialMethod,
            clientId = clientId ?: throw PulumiNullFieldException("clientId"),
            clientSecretSettingName = clientSecretSettingName,
            issuerEndpoint = issuerEndpoint,
            name = name ?: throw PulumiNullFieldException("name"),
            nameClaimType = nameClaimType,
            openidConfigurationEndpoint = openidConfigurationEndpoint ?: throw
                PulumiNullFieldException("openidConfigurationEndpoint"),
            scopes = scopes,
            tokenEndpoint = tokenEndpoint,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy