com.pulumi.azure.appservice.kotlin.inputs.StaticWebAppBasicAuthArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.appservice.kotlin.inputs
import com.pulumi.azure.appservice.inputs.StaticWebAppBasicAuthArgs.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.jvm.JvmName
/**
*
* @property environments The Environment types to use the Basic Auth for access. Possible values include `AllEnvironments` and `StagingEnvironments`.
* @property password The password for the basic authentication access.
*/
public data class StaticWebAppBasicAuthArgs(
public val environments: Output,
public val password: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.appservice.inputs.StaticWebAppBasicAuthArgs =
com.pulumi.azure.appservice.inputs.StaticWebAppBasicAuthArgs.builder()
.environments(environments.applyValue({ args0 -> args0 }))
.password(password.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [StaticWebAppBasicAuthArgs].
*/
@PulumiTagMarker
public class StaticWebAppBasicAuthArgsBuilder internal constructor() {
private var environments: Output? = null
private var password: Output? = null
/**
* @param value The Environment types to use the Basic Auth for access. Possible values include `AllEnvironments` and `StagingEnvironments`.
*/
@JvmName("xddriwsmqxelmvtn")
public suspend fun environments(`value`: Output) {
this.environments = value
}
/**
* @param value The password for the basic authentication access.
*/
@JvmName("qicmymxqvwskptnb")
public suspend fun password(`value`: Output) {
this.password = value
}
/**
* @param value The Environment types to use the Basic Auth for access. Possible values include `AllEnvironments` and `StagingEnvironments`.
*/
@JvmName("utoemlhlmavvvlsx")
public suspend fun environments(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.environments = mapped
}
/**
* @param value The password for the basic authentication access.
*/
@JvmName("cxbamfiohyjolthl")
public suspend fun password(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.password = mapped
}
internal fun build(): StaticWebAppBasicAuthArgs = StaticWebAppBasicAuthArgs(
environments = environments ?: throw PulumiNullFieldException("environments"),
password = password ?: throw PulumiNullFieldException("password"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy