
com.pulumi.awsnative.amplify.kotlin.inputs.AppBasicAuthConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.amplify.kotlin.inputs
import com.pulumi.awsnative.amplify.inputs.AppBasicAuthConfigArgs.builder
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.jvm.JvmName
/**
*
* @property enableBasicAuth Enables basic authorization for the Amplify app's branches.
* @property password The password for basic authorization.
* @property username The user name for basic authorization.
*/
public data class AppBasicAuthConfigArgs(
public val enableBasicAuth: Output? = null,
public val password: Output? = null,
public val username: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.amplify.inputs.AppBasicAuthConfigArgs =
com.pulumi.awsnative.amplify.inputs.AppBasicAuthConfigArgs.builder()
.enableBasicAuth(enableBasicAuth?.applyValue({ args0 -> args0 }))
.password(password?.applyValue({ args0 -> args0 }))
.username(username?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppBasicAuthConfigArgs].
*/
@PulumiTagMarker
public class AppBasicAuthConfigArgsBuilder internal constructor() {
private var enableBasicAuth: Output? = null
private var password: Output? = null
private var username: Output? = null
/**
* @param value Enables basic authorization for the Amplify app's branches.
*/
@JvmName("ysnhedyenawpkgqp")
public suspend fun enableBasicAuth(`value`: Output) {
this.enableBasicAuth = value
}
/**
* @param value The password for basic authorization.
*/
@JvmName("xisavbypsmdsfyof")
public suspend fun password(`value`: Output) {
this.password = value
}
/**
* @param value The user name for basic authorization.
*/
@JvmName("tousmklwhbaeeuld")
public suspend fun username(`value`: Output) {
this.username = value
}
/**
* @param value Enables basic authorization for the Amplify app's branches.
*/
@JvmName("pdikplukqbbkvawb")
public suspend fun enableBasicAuth(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableBasicAuth = mapped
}
/**
* @param value The password for basic authorization.
*/
@JvmName("rrmhievgclheyjym")
public suspend fun password(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.password = mapped
}
/**
* @param value The user name for basic authorization.
*/
@JvmName("waeovqyqvlqhrgyx")
public suspend fun username(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.username = mapped
}
internal fun build(): AppBasicAuthConfigArgs = AppBasicAuthConfigArgs(
enableBasicAuth = enableBasicAuth,
password = password,
username = username,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy