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

com.pulumi.awsnative.elasticache.kotlin.UserGroupArgs.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.11.0.0
Show newest version
@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>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The ID of the user group.
     */
    @JvmName("dhtocedmmnwumfql")
    public suspend fun userGroupId(`value`: Output) {
        this.userGroupId = value
    }

    /**
     * @param value List of users associated to this user group.
     */
    @JvmName("ychufgkthvffmcgr")
    public suspend fun userIds(`value`: Output>) {
        this.userIds = value
    }

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

    /**
     * @param values List of users associated to this user group.
     */
    @JvmName("guohcddwlqxfcxlv")
    public suspend fun userIds(values: List>) {
        this.userIds = Output.all(values)
    }

    /**
     * @param value Must be redis.
     */
    @JvmName("rruuntdmeewfqbej")
    public suspend fun engine(`value`: UserGroupEngine?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.engine = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this user.
     */
    @JvmName("iqlgccvrbbyakwac")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this user.
     */
    @JvmName("qbyrxeiufysqmgka")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this user.
     */
    @JvmName("ajwvnypaxkdftulq")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this user.
     */
    @JvmName("ctoibocmcmanrfss")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this user.
     */
    @JvmName("bllavfybjsiyyqid")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The ID of the user group.
     */
    @JvmName("qfwehixtwowqaxog")
    public suspend fun userGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userGroupId = mapped
    }

    /**
     * @param value List of users associated to this user group.
     */
    @JvmName("kioofaockpimgedr")
    public suspend fun userIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userIds = mapped
    }

    /**
     * @param values List of users associated to this user group.
     */
    @JvmName("iolsiyqxbvpwvrmr")
    public suspend fun userIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.userIds = mapped
    }

    internal fun build(): UserGroupArgs = UserGroupArgs(
        engine = engine,
        tags = tags,
        userGroupId = userGroupId,
        userIds = userIds,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy