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

com.pulumi.awsnative.memorydb.kotlin.outputs.AuthenticationModeProperties.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.memorydb.kotlin.outputs

import com.pulumi.awsnative.memorydb.kotlin.enums.UserAuthenticationModePropertiesType
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * 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 AuthenticationModeProperties(
    public val passwords: List? = null,
    public val type: UserAuthenticationModePropertiesType? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.memorydb.outputs.AuthenticationModeProperties): AuthenticationModeProperties = AuthenticationModeProperties(
            passwords = javaType.passwords().map({ args0 -> args0 }),
            type = javaType.type().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.memorydb.kotlin.enums.UserAuthenticationModePropertiesType.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy