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

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

package com.pulumi.aws.elasticache.kotlin.inputs

import com.pulumi.aws.elasticache.inputs.UserAuthenticationModeArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property passwordCount
 * @property passwords Specifies the passwords to use for authentication if `type` is set to `password`.
 * @property type Specifies the authentication type. Possible options are: `password`, `no-password-required` or `iam`.
 */
public data class UserAuthenticationModeArgs(
    public val passwordCount: Output? = null,
    public val passwords: Output>? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.elasticache.inputs.UserAuthenticationModeArgs =
        com.pulumi.aws.elasticache.inputs.UserAuthenticationModeArgs.builder()
            .passwordCount(passwordCount?.applyValue({ args0 -> args0 }))
            .passwords(passwords?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UserAuthenticationModeArgs].
 */
@PulumiTagMarker
public class UserAuthenticationModeArgsBuilder internal constructor() {
    private var passwordCount: Output? = null

    private var passwords: Output>? = null

    private var type: Output? = null

    /**
     * @param value
     */
    @JvmName("eykxcrrcfvnawudv")
    public suspend fun passwordCount(`value`: Output) {
        this.passwordCount = value
    }

    /**
     * @param value Specifies the passwords to use for authentication if `type` is set to `password`.
     */
    @JvmName("ldggogiixhnxwdaq")
    public suspend fun passwords(`value`: Output>) {
        this.passwords = value
    }

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

    /**
     * @param values Specifies the passwords to use for authentication if `type` is set to `password`.
     */
    @JvmName("bxwvdatauxohulhr")
    public suspend fun passwords(values: List>) {
        this.passwords = Output.all(values)
    }

    /**
     * @param value Specifies the authentication type. Possible options are: `password`, `no-password-required` or `iam`.
     */
    @JvmName("xlcvimlhigyybpgg")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value
     */
    @JvmName("pqjthpbfrbqwukuk")
    public suspend fun passwordCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.passwordCount = mapped
    }

    /**
     * @param value Specifies the passwords to use for authentication if `type` is set to `password`.
     */
    @JvmName("pfifgqrdxaenbfdc")
    public suspend fun passwords(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.passwords = mapped
    }

    /**
     * @param values Specifies the passwords to use for authentication if `type` is set to `password`.
     */
    @JvmName("cvhoexctnhvykfec")
    public suspend fun passwords(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.passwords = mapped
    }

    /**
     * @param value Specifies the authentication type. Possible options are: `password`, `no-password-required` or `iam`.
     */
    @JvmName("urjxgqmfhgwdrpsh")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): UserAuthenticationModeArgs = UserAuthenticationModeArgs(
        passwordCount = passwordCount,
        passwords = passwords,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy