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

com.pulumi.awsnative.memorydb.kotlin.inputs.AuthenticationModePropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.memorydb.kotlin.inputs

import com.pulumi.awsnative.memorydb.inputs.AuthenticationModePropertiesArgs.builder
import com.pulumi.awsnative.memorydb.kotlin.enums.UserAuthenticationModePropertiesType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Denotes whether the user requires a password to authenticate.
 * *Example:*
 * `mynewdbuser: Type: AWS::MemoryDB::User Properties: AccessString: on ~* &* +@all AuthenticationMode: Passwords: '1234567890123456' Type: password UserName: mynewdbuser AuthenticationMode: { "Passwords": ["1234567890123456"], "Type": "Password" }`
 * @property passwords Passwords used for this user account. You can create up to two passwords for each user.
 * @property type Type of authentication strategy for this user.
 */
public data class AuthenticationModePropertiesArgs(
    public val passwords: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.memorydb.inputs.AuthenticationModePropertiesArgs =
        com.pulumi.awsnative.memorydb.inputs.AuthenticationModePropertiesArgs.builder()
            .passwords(passwords?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AuthenticationModePropertiesArgs].
 */
@PulumiTagMarker
public class AuthenticationModePropertiesArgsBuilder internal constructor() {
    private var passwords: Output>? = null

    private var type: Output? = null

    /**
     * @param value Passwords used for this user account. You can create up to two passwords for each user.
     */
    @JvmName("vfrqiimeakfmorwx")
    public suspend fun passwords(`value`: Output>) {
        this.passwords = value
    }

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

    /**
     * @param values Passwords used for this user account. You can create up to two passwords for each user.
     */
    @JvmName("rxreauktyjsmdawt")
    public suspend fun passwords(values: List>) {
        this.passwords = Output.all(values)
    }

    /**
     * @param value Type of authentication strategy for this user.
     */
    @JvmName("ngobrpojcgfmhtyy")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Passwords used for this user account. You can create up to two passwords for each user.
     */
    @JvmName("fiiemflibcmpqegg")
    public suspend fun passwords(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.passwords = mapped
    }

    /**
     * @param values Passwords used for this user account. You can create up to two passwords for each user.
     */
    @JvmName("ygajfnlhcjmknxcb")
    public suspend fun passwords(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.passwords = mapped
    }

    /**
     * @param value Type of authentication strategy for this user.
     */
    @JvmName("cfvnhsppylirmklb")
    public suspend fun type(`value`: UserAuthenticationModePropertiesType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): AuthenticationModePropertiesArgs = AuthenticationModePropertiesArgs(
        passwords = passwords,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy