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

com.pulumi.awsnative.workspacesweb.kotlin.NetworkSettingsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.workspacesweb.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.workspacesweb.NetworkSettingsArgs.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

/**
 * Definition of AWS::WorkSpacesWeb::NetworkSettings Resource Type
 * @property securityGroupIds One or more security groups used to control access from streaming instances to your VPC.
 * *Pattern* : `^[\w+\-]+$`
 * @property subnetIds The subnets in which network interfaces are created to connect streaming instances to your VPC. At least two of these subnets must be in different availability zones.
 * *Pattern* : `^subnet-([0-9a-f]{8}|[0-9a-f]{17})$`
 * @property tags The tags to add to the network settings resource. A tag is a key-value pair.
 * @property vpcId The VPC that streaming instances will connect to.
 * *Pattern* : `^vpc-[0-9a-z]*$`
 */
public data class NetworkSettingsArgs(
    public val securityGroupIds: Output>? = null,
    public val subnetIds: Output>? = null,
    public val tags: Output>? = null,
    public val vpcId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.workspacesweb.NetworkSettingsArgs =
        com.pulumi.awsnative.workspacesweb.NetworkSettingsArgs.builder()
            .securityGroupIds(securityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetIds(subnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .vpcId(vpcId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NetworkSettingsArgs].
 */
@PulumiTagMarker
public class NetworkSettingsArgsBuilder internal constructor() {
    private var securityGroupIds: Output>? = null

    private var subnetIds: Output>? = null

    private var tags: Output>? = null

    private var vpcId: Output? = null

    /**
     * @param value One or more security groups used to control access from streaming instances to your VPC.
     * *Pattern* : `^[\w+\-]+$`
     */
    @JvmName("dkxntqbadpfvmmcx")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

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

    /**
     * @param values One or more security groups used to control access from streaming instances to your VPC.
     * *Pattern* : `^[\w+\-]+$`
     */
    @JvmName("ksogdymvqraimxbe")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value The subnets in which network interfaces are created to connect streaming instances to your VPC. At least two of these subnets must be in different availability zones.
     * *Pattern* : `^subnet-([0-9a-f]{8}|[0-9a-f]{17})$`
     */
    @JvmName("woabuyikslltgeuh")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values The subnets in which network interfaces are created to connect streaming instances to your VPC. At least two of these subnets must be in different availability zones.
     * *Pattern* : `^subnet-([0-9a-f]{8}|[0-9a-f]{17})$`
     */
    @JvmName("wvgmliwedybcnair")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value The tags to add to the network settings resource. A tag is a key-value pair.
     */
    @JvmName("vjnpevmlggtkrose")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags to add to the network settings resource. A tag is a key-value pair.
     */
    @JvmName("geecpmgqxmenymlm")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The VPC that streaming instances will connect to.
     * *Pattern* : `^vpc-[0-9a-z]*$`
     */
    @JvmName("yryxraffphtyrlys")
    public suspend fun vpcId(`value`: Output) {
        this.vpcId = value
    }

    /**
     * @param value One or more security groups used to control access from streaming instances to your VPC.
     * *Pattern* : `^[\w+\-]+$`
     */
    @JvmName("kvcnntqaneuyonfb")
    public suspend fun securityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values One or more security groups used to control access from streaming instances to your VPC.
     * *Pattern* : `^[\w+\-]+$`
     */
    @JvmName("qmjcwqlxrgaesvih")
    public suspend fun securityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param value The subnets in which network interfaces are created to connect streaming instances to your VPC. At least two of these subnets must be in different availability zones.
     * *Pattern* : `^subnet-([0-9a-f]{8}|[0-9a-f]{17})$`
     */
    @JvmName("vxetjrpfclvawxpi")
    public suspend fun subnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values The subnets in which network interfaces are created to connect streaming instances to your VPC. At least two of these subnets must be in different availability zones.
     * *Pattern* : `^subnet-([0-9a-f]{8}|[0-9a-f]{17})$`
     */
    @JvmName("qkmtqgumaftwaave")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param value The tags to add to the network settings resource. A tag is a key-value pair.
     */
    @JvmName("hcjupkovaqwgutrt")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags to add to the network settings resource. A tag is a key-value pair.
     */
    @JvmName("qhlfscfduxessnny")
    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 The tags to add to the network settings resource. A tag is a key-value pair.
     */
    @JvmName("afqlirfukwybrlmr")
    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 The tags to add to the network settings resource. A tag is a key-value pair.
     */
    @JvmName("pxcbmwesajnhxxsr")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags to add to the network settings resource. A tag is a key-value pair.
     */
    @JvmName("twnluejpqebcljpj")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The VPC that streaming instances will connect to.
     * *Pattern* : `^vpc-[0-9a-z]*$`
     */
    @JvmName("xyggkaaxdqrqxgne")
    public suspend fun vpcId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcId = mapped
    }

    internal fun build(): NetworkSettingsArgs = NetworkSettingsArgs(
        securityGroupIds = securityGroupIds,
        subnetIds = subnetIds,
        tags = tags,
        vpcId = vpcId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy