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

com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorVpcArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.kafkaconnect.kotlin.inputs

import com.pulumi.awsnative.kafkaconnect.inputs.ConnectorVpcArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Information about a VPC used with the connector.
 * @property securityGroups The AWS security groups to associate with the elastic network interfaces in order to specify what the connector has access to.
 * @property subnets The list of subnets to connect to in the virtual private cloud (VPC). AWS creates elastic network interfaces inside these subnets.
 */
public data class ConnectorVpcArgs(
    public val securityGroups: Output>,
    public val subnets: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kafkaconnect.inputs.ConnectorVpcArgs =
        com.pulumi.awsnative.kafkaconnect.inputs.ConnectorVpcArgs.builder()
            .securityGroups(securityGroups.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnets(subnets.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var subnets: Output>? = null

    /**
     * @param value The AWS security groups to associate with the elastic network interfaces in order to specify what the connector has access to.
     */
    @JvmName("lscklcthsldlrdts")
    public suspend fun securityGroups(`value`: Output>) {
        this.securityGroups = value
    }

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

    /**
     * @param values The AWS security groups to associate with the elastic network interfaces in order to specify what the connector has access to.
     */
    @JvmName("dbudrqnqefdchfpi")
    public suspend fun securityGroups(values: List>) {
        this.securityGroups = Output.all(values)
    }

    /**
     * @param value The list of subnets to connect to in the virtual private cloud (VPC). AWS creates elastic network interfaces inside these subnets.
     */
    @JvmName("bbgctrenvavwbvgu")
    public suspend fun subnets(`value`: Output>) {
        this.subnets = value
    }

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

    /**
     * @param values The list of subnets to connect to in the virtual private cloud (VPC). AWS creates elastic network interfaces inside these subnets.
     */
    @JvmName("yslplxuleyjhjivm")
    public suspend fun subnets(values: List>) {
        this.subnets = Output.all(values)
    }

    /**
     * @param value The AWS security groups to associate with the elastic network interfaces in order to specify what the connector has access to.
     */
    @JvmName("wfgkpcaavcxoerei")
    public suspend fun securityGroups(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroups = mapped
    }

    /**
     * @param values The AWS security groups to associate with the elastic network interfaces in order to specify what the connector has access to.
     */
    @JvmName("hxqkinpuqobjffsu")
    public suspend fun securityGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroups = mapped
    }

    /**
     * @param value The list of subnets to connect to in the virtual private cloud (VPC). AWS creates elastic network interfaces inside these subnets.
     */
    @JvmName("yuobnfjrsxqtckyy")
    public suspend fun subnets(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    /**
     * @param values The list of subnets to connect to in the virtual private cloud (VPC). AWS creates elastic network interfaces inside these subnets.
     */
    @JvmName("diltlsgompgixlwu")
    public suspend fun subnets(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    internal fun build(): ConnectorVpcArgs = ConnectorVpcArgs(
        securityGroups = securityGroups ?: throw PulumiNullFieldException("securityGroups"),
        subnets = subnets ?: throw PulumiNullFieldException("subnets"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy