com.pulumi.awsnative.elasticache.kotlin.UserGroupArgs.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.elasticache.kotlin
import com.pulumi.awsnative.elasticache.UserGroupArgs.builder
import com.pulumi.awsnative.elasticache.kotlin.enums.UserGroupEngine
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::ElastiCache::UserGroup
* @property engine Must be redis.
* @property tags An array of key-value pairs to apply to this user.
* @property userGroupId The ID of the user group.
* @property userIds List of users associated to this user group.
*/
public data class UserGroupArgs(
public val engine: Output? = null,
public val tags: Output>? = null,
public val userGroupId: Output? = null,
public val userIds: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.elasticache.UserGroupArgs =
com.pulumi.awsnative.elasticache.UserGroupArgs.builder()
.engine(engine?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.userGroupId(userGroupId?.applyValue({ args0 -> args0 }))
.userIds(userIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [UserGroupArgs].
*/
@PulumiTagMarker
public class UserGroupArgsBuilder internal constructor() {
private var engine: Output? = null
private var tags: Output>? = null
private var userGroupId: Output? = null
private var userIds: Output>? = null
/**
* @param value Must be redis.
*/
@JvmName("lcgmjtfbobcdrhbw")
public suspend fun engine(`value`: Output) {
this.engine = value
}
/**
* @param value An array of key-value pairs to apply to this user.
*/
@JvmName("onpejhbncrrqjpfq")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("hpegqcyfbtylrwmp")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values An array of key-value pairs to apply to this user.
*/
@JvmName("mxbdckcsxmhmcnmb")
public suspend fun tags(values: List