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

com.pulumi.aws.mskconnect.kotlin.inputs.ConnectorKafkaClusterApacheKafkaClusterVpcArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.mskconnect.kotlin.inputs

import com.pulumi.aws.mskconnect.inputs.ConnectorKafkaClusterApacheKafkaClusterVpcArgs.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

/**
 *
 * @property securityGroups The security groups for the connector.
 * @property subnets The subnets for the connector.
 */
public data class ConnectorKafkaClusterApacheKafkaClusterVpcArgs(
    public val securityGroups: Output>,
    public val subnets: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.mskconnect.inputs.ConnectorKafkaClusterApacheKafkaClusterVpcArgs =
        com.pulumi.aws.mskconnect.inputs.ConnectorKafkaClusterApacheKafkaClusterVpcArgs.builder()
            .securityGroups(securityGroups.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnets(subnets.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var subnets: Output>? = null

    /**
     * @param value The security groups for the connector.
     */
    @JvmName("shnbasjsyprrcheh")
    public suspend fun securityGroups(`value`: Output>) {
        this.securityGroups = value
    }

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

    /**
     * @param values The security groups for the connector.
     */
    @JvmName("oxihsrapwobtjaoy")
    public suspend fun securityGroups(values: List>) {
        this.securityGroups = Output.all(values)
    }

    /**
     * @param value The subnets for the connector.
     */
    @JvmName("hdrlxagsmnyovanj")
    public suspend fun subnets(`value`: Output>) {
        this.subnets = value
    }

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

    /**
     * @param values The subnets for the connector.
     */
    @JvmName("bmgngttinjwnkmxn")
    public suspend fun subnets(values: List>) {
        this.subnets = Output.all(values)
    }

    /**
     * @param value The security groups for the connector.
     */
    @JvmName("vyulccefcpgpwbpm")
    public suspend fun securityGroups(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroups = mapped
    }

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

    /**
     * @param value The subnets for the connector.
     */
    @JvmName("kjxfynipbhfkhxsi")
    public suspend fun subnets(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    /**
     * @param values The subnets for the connector.
     */
    @JvmName("idwskbtpbsycrtxn")
    public suspend fun subnets(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy