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

com.pulumi.awsnative.elasticache.kotlin.SubnetGroupArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.elasticache.kotlin

import com.pulumi.awsnative.elasticache.SubnetGroupArgs.builder
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::SubnetGroup
 * @property cacheSubnetGroupName The name for the cache subnet group. This value is stored as a lowercase string.
 * @property description The description for the cache subnet group.
 * @property subnetIds The EC2 subnet IDs for the cache subnet group.
 * @property tags A tag that can be added to an ElastiCache subnet group. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your subnet groups. A tag with a null Value is permitted.
 */
public data class SubnetGroupArgs(
    public val cacheSubnetGroupName: Output? = null,
    public val description: Output? = null,
    public val subnetIds: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.elasticache.SubnetGroupArgs =
        com.pulumi.awsnative.elasticache.SubnetGroupArgs.builder()
            .cacheSubnetGroupName(cacheSubnetGroupName?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .subnetIds(subnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [SubnetGroupArgs].
 */
@PulumiTagMarker
public class SubnetGroupArgsBuilder internal constructor() {
    private var cacheSubnetGroupName: Output? = null

    private var description: Output? = null

    private var subnetIds: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value The name for the cache subnet group. This value is stored as a lowercase string.
     */
    @JvmName("ekkonesmehllubct")
    public suspend fun cacheSubnetGroupName(`value`: Output) {
        this.cacheSubnetGroupName = value
    }

    /**
     * @param value The description for the cache subnet group.
     */
    @JvmName("nrykchabdwcwugms")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The EC2 subnet IDs for the cache subnet group.
     */
    @JvmName("agtfacmbbnohnnnv")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values The EC2 subnet IDs for the cache subnet group.
     */
    @JvmName("wbeltxygciabslov")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value A tag that can be added to an ElastiCache subnet group. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your subnet groups. A tag with a null Value is permitted.
     */
    @JvmName("bjixxksplvxxvsdy")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A tag that can be added to an ElastiCache subnet group. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your subnet groups. A tag with a null Value is permitted.
     */
    @JvmName("ldhvcannqteysose")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name for the cache subnet group. This value is stored as a lowercase string.
     */
    @JvmName("lbrsfhpnegrqvjid")
    public suspend fun cacheSubnetGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cacheSubnetGroupName = mapped
    }

    /**
     * @param value The description for the cache subnet group.
     */
    @JvmName("kgdqkbbobwcgvcgl")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The EC2 subnet IDs for the cache subnet group.
     */
    @JvmName("mlwjwqmbpgnorugg")
    public suspend fun subnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values The EC2 subnet IDs for the cache subnet group.
     */
    @JvmName("kubstaqyyuqombjh")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param value A tag that can be added to an ElastiCache subnet group. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your subnet groups. A tag with a null Value is permitted.
     */
    @JvmName("oxgagsjcvxlkkeqb")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A tag that can be added to an ElastiCache subnet group. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your subnet groups. A tag with a null Value is permitted.
     */
    @JvmName("rmdiyisrtfyeympk")
    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 A tag that can be added to an ElastiCache subnet group. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your subnet groups. A tag with a null Value is permitted.
     */
    @JvmName("etiwhtbhdblvrklv")
    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 A tag that can be added to an ElastiCache subnet group. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your subnet groups. A tag with a null Value is permitted.
     */
    @JvmName("qbnmgsvuopinvypl")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A tag that can be added to an ElastiCache subnet group. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your subnet groups. A tag with a null Value is permitted.
     */
    @JvmName("gogllrbfnfefkkka")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): SubnetGroupArgs = SubnetGroupArgs(
        cacheSubnetGroupName = cacheSubnetGroupName,
        description = description,
        subnetIds = subnetIds,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy