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

com.pulumi.awsnative.appstream.kotlin.inputs.ImageBuilderVpcConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.appstream.kotlin.inputs

import com.pulumi.awsnative.appstream.inputs.ImageBuilderVpcConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property securityGroupIds The identifiers of the security groups for the image builder.
 * @property subnetIds The identifier of the subnet to which a network interface is attached from the image builder instance. An image builder instance can use one subnet.
 */
public data class ImageBuilderVpcConfigArgs(
    public val securityGroupIds: Output>? = null,
    public val subnetIds: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appstream.inputs.ImageBuilderVpcConfigArgs =
        com.pulumi.awsnative.appstream.inputs.ImageBuilderVpcConfigArgs.builder()
            .securityGroupIds(securityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetIds(subnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var subnetIds: Output>? = null

    /**
     * @param value The identifiers of the security groups for the image builder.
     */
    @JvmName("whbdqklspibuatfr")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

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

    /**
     * @param values The identifiers of the security groups for the image builder.
     */
    @JvmName("hspbqxouxbitonlt")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value The identifier of the subnet to which a network interface is attached from the image builder instance. An image builder instance can use one subnet.
     */
    @JvmName("scyslntcniplilqc")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values The identifier of the subnet to which a network interface is attached from the image builder instance. An image builder instance can use one subnet.
     */
    @JvmName("ffnskshiutcmbynl")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value The identifiers of the security groups for the image builder.
     */
    @JvmName("uisunvacfaxvqbtl")
    public suspend fun securityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values The identifiers of the security groups for the image builder.
     */
    @JvmName("bkixwyegwrgyfuqk")
    public suspend fun securityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param value The identifier of the subnet to which a network interface is attached from the image builder instance. An image builder instance can use one subnet.
     */
    @JvmName("ytixdmwdoewrdbho")
    public suspend fun subnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values The identifier of the subnet to which a network interface is attached from the image builder instance. An image builder instance can use one subnet.
     */
    @JvmName("bghubtnbhiddxtwf")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    internal fun build(): ImageBuilderVpcConfigArgs = ImageBuilderVpcConfigArgs(
        securityGroupIds = securityGroupIds,
        subnetIds = subnetIds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy