![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.elasticache.kotlin.UserArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.elasticache.kotlin
import com.pulumi.awsnative.elasticache.UserArgs.builder
import com.pulumi.awsnative.elasticache.kotlin.enums.UserEngine
import com.pulumi.awsnative.elasticache.kotlin.inputs.AuthenticationModePropertiesArgs
import com.pulumi.awsnative.elasticache.kotlin.inputs.AuthenticationModePropertiesArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::ElastiCache::User
* @property accessString Access permissions string used for this user account.
* @property authenticationMode Specifies the authentication mode to use. Below is an example of the possible JSON values:
* ```
* { Passwords: ["*****", "******"] // If Type is password.
* }
* ```
* @property engine Must be redis.
* @property noPasswordRequired Indicates a password is not required for this user account.
* @property passwords Passwords used for this user account. You can create up to two passwords for each user.
* @property tags An array of key-value pairs to apply to this user.
* @property userId The ID of the user.
* @property userName The username of the user.
*/
public data class UserArgs(
public val accessString: Output? = null,
public val authenticationMode: Output? = null,
public val engine: Output? = null,
public val noPasswordRequired: Output? = null,
public val passwords: Output>? = null,
public val tags: Output>? = null,
public val userId: Output? = null,
public val userName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.elasticache.UserArgs =
com.pulumi.awsnative.elasticache.UserArgs.builder()
.accessString(accessString?.applyValue({ args0 -> args0 }))
.authenticationMode(
authenticationMode?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.engine(engine?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.noPasswordRequired(noPasswordRequired?.applyValue({ args0 -> args0 }))
.passwords(passwords?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.userId(userId?.applyValue({ args0 -> args0 }))
.userName(userName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [UserArgs].
*/
@PulumiTagMarker
public class UserArgsBuilder internal constructor() {
private var accessString: Output? = null
private var authenticationMode: Output? = null
private var engine: Output? = null
private var noPasswordRequired: Output? = null
private var passwords: Output>? = null
private var tags: Output>? = null
private var userId: Output? = null
private var userName: Output? = null
/**
* @param value Access permissions string used for this user account.
*/
@JvmName("vblnlsvphhnrdslo")
public suspend fun accessString(`value`: Output) {
this.accessString = value
}
/**
* @param value Specifies the authentication mode to use. Below is an example of the possible JSON values:
* ```
* { Passwords: ["*****", "******"] // If Type is password.
* }
* ```
*/
@JvmName("waycanjkbeawbofn")
public suspend fun authenticationMode(`value`: Output) {
this.authenticationMode = value
}
/**
* @param value Must be redis.
*/
@JvmName("ikkutgoyofxhqrfh")
public suspend fun engine(`value`: Output) {
this.engine = value
}
/**
* @param value Indicates a password is not required for this user account.
*/
@JvmName("ovbejekediqwogix")
public suspend fun noPasswordRequired(`value`: Output) {
this.noPasswordRequired = value
}
/**
* @param value Passwords used for this user account. You can create up to two passwords for each user.
*/
@JvmName("phxcidvakafemsqi")
public suspend fun passwords(`value`: Output>) {
this.passwords = value
}
@JvmName("ludjjhtbvdjjthiq")
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("rinwwqswvridbeyt")
public suspend fun passwords(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy