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

com.pulumi.awsnative.elasticache.kotlin.inputs.AuthenticationModePropertiesArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.elasticache.kotlin.inputs

import com.pulumi.awsnative.elasticache.inputs.AuthenticationModePropertiesArgs.builder
import com.pulumi.awsnative.elasticache.kotlin.enums.UserAuthenticationModePropertiesType
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

/**
 * Specifies the authentication mode to use. Below is an example of the possible JSON values:
 * ```
 * { Passwords: ["*****", "******"] // If Type is password.
 * }
 * ```
 * @property passwords Passwords used for this user account. You can create up to two passwords for each user.
 * @property type Authentication Type
 */
public data class AuthenticationModePropertiesArgs(
    public val passwords: Output>? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.elasticache.inputs.AuthenticationModePropertiesArgs =
        com.pulumi.awsnative.elasticache.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("rnrdhfjeryavslal")
    public suspend fun passwords(`value`: Output>) {
        this.passwords = value
    }

    @JvmName("hwhigrjrxgddqvbh")
    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("ovpfdkdthgoioonl")
    public suspend fun passwords(values: List>) {
        this.passwords = Output.all(values)
    }

    /**
     * @param value Authentication Type
     */
    @JvmName("suoyvykibkheevyb")
    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("okarnutxmkysihms")
    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("mjggtfcfnjnhwmhs")
    public suspend fun passwords(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.passwords = mapped
    }

    /**
     * @param value Authentication Type
     */
    @JvmName("ojghcwgxmavmgsgq")
    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 ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy