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