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

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

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

package com.pulumi.awsnative.memorydb.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.memorydb.SubnetGroupArgs.builder
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

/**
 * The AWS::MemoryDB::SubnetGroup resource creates an Amazon MemoryDB Subnet Group.
 * @property description An optional description of the subnet group.
 * @property subnetGroupName The name of the subnet group. This value must be unique as it also serves as the subnet group identifier.
 * @property subnetIds A list of VPC subnet IDs for the subnet group.
 * @property tags An array of key-value pairs to apply to this subnet group.
 */
public data class SubnetGroupArgs(
    public val description: Output? = null,
    public val subnetGroupName: Output? = null,
    public val subnetIds: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.memorydb.SubnetGroupArgs =
        com.pulumi.awsnative.memorydb.SubnetGroupArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .subnetGroupName(subnetGroupName?.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 description: Output? = null

    private var subnetGroupName: Output? = null

    private var subnetIds: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value An optional description of the subnet group.
     */
    @JvmName("ebylfxbgxmluwhua")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the subnet group. This value must be unique as it also serves as the subnet group identifier.
     */
    @JvmName("wqknmvvxcxxebuke")
    public suspend fun subnetGroupName(`value`: Output) {
        this.subnetGroupName = value
    }

    /**
     * @param value A list of VPC subnet IDs for the subnet group.
     */
    @JvmName("yagvpyibereegxhr")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values A list of VPC subnet IDs for the subnet group.
     */
    @JvmName("wwvhoaevntmugaia")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value An array of key-value pairs to apply to this subnet group.
     */
    @JvmName("ldebwfacpmyechwc")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("crbgntewsgxsbdqt")
    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 subnet group.
     */
    @JvmName("kaqcliylmtvabjyu")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value The name of the subnet group. This value must be unique as it also serves as the subnet group identifier.
     */
    @JvmName("ptikxlhqqqqsimpr")
    public suspend fun subnetGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetGroupName = mapped
    }

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

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

    /**
     * @param value An array of key-value pairs to apply to this subnet group.
     */
    @JvmName("bfotwsdmfblvpstw")
    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 subnet group.
     */
    @JvmName("vwhwrkaqnbqoofrn")
    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 subnet group.
     */
    @JvmName("cxsjmndvsirxwtyw")
    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 subnet group.
     */
    @JvmName("ywdaddbshsrvtssp")
    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 subnet group.
     */
    @JvmName("fofqsdjhhxtudnqx")
    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(
        description = description,
        subnetGroupName = subnetGroupName,
        subnetIds = subnetIds,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy