com.pulumi.azurenative.web.kotlin.inputs.GlobalValidationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin.inputs
import com.pulumi.azurenative.web.inputs.GlobalValidationArgs.builder
import com.pulumi.azurenative.web.kotlin.enums.UnauthenticatedClientActionV2
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The configuration settings that determines the validation flow of users using App Service Authentication/Authorization.
* @property excludedPaths The paths for which unauthenticated flow would not be redirected to the login page.
* @property redirectToProvider The default authentication provider to use when multiple providers are configured.
* This setting is only needed if multiple providers are configured and the unauthenticated client
* action is set to "RedirectToLoginPage".
* @property requireAuthentication true
if the authentication flow is required any request is made; otherwise, false
.
* @property unauthenticatedClientAction The action to take when an unauthenticated client attempts to access the app.
*/
public data class GlobalValidationArgs(
public val excludedPaths: Output>? = null,
public val redirectToProvider: Output? = null,
public val requireAuthentication: Output? = null,
public val unauthenticatedClientAction: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.inputs.GlobalValidationArgs =
com.pulumi.azurenative.web.inputs.GlobalValidationArgs.builder()
.excludedPaths(excludedPaths?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.redirectToProvider(redirectToProvider?.applyValue({ args0 -> args0 }))
.requireAuthentication(requireAuthentication?.applyValue({ args0 -> args0 }))
.unauthenticatedClientAction(
unauthenticatedClientAction?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [GlobalValidationArgs].
*/
@PulumiTagMarker
public class GlobalValidationArgsBuilder internal constructor() {
private var excludedPaths: Output>? = null
private var redirectToProvider: Output? = null
private var requireAuthentication: Output? = null
private var unauthenticatedClientAction: Output? = null
/**
* @param value The paths for which unauthenticated flow would not be redirected to the login page.
*/
@JvmName("bcsknmjswqcvxjsm")
public suspend fun excludedPaths(`value`: Output>) {
this.excludedPaths = value
}
@JvmName("lrgeusaphcroqlwq")
public suspend fun excludedPaths(vararg values: Output) {
this.excludedPaths = Output.all(values.asList())
}
/**
* @param values The paths for which unauthenticated flow would not be redirected to the login page.
*/
@JvmName("tvtpglywesfcbovq")
public suspend fun excludedPaths(values: List