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

com.pulumi.awsnative.msk.kotlin.VpcConnectionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.msk.kotlin

import com.pulumi.awsnative.msk.VpcConnectionArgs.builder
import com.pulumi.awsnative.msk.kotlin.enums.VpcConnectionAuthentication
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::MSK::VpcConnection
 * @property authentication The type of private link authentication.
 * @property clientSubnets The list of subnets in the client VPC to connect to.
 * @property securityGroups The security groups to attach to the ENIs for the broker nodes.
 * @property tags Create tags when creating the VPC connection.
 * @property targetClusterArn The Amazon Resource Name (ARN) of the target cluster
 * @property vpcId The VPC id of the remote client.
 */
public data class VpcConnectionArgs(
    public val authentication: Output? = null,
    public val clientSubnets: Output>? = null,
    public val securityGroups: Output>? = null,
    public val tags: Output>? = null,
    public val targetClusterArn: Output? = null,
    public val vpcId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.msk.VpcConnectionArgs =
        com.pulumi.awsnative.msk.VpcConnectionArgs.builder()
            .authentication(authentication?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .clientSubnets(clientSubnets?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .securityGroups(securityGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .targetClusterArn(targetClusterArn?.applyValue({ args0 -> args0 }))
            .vpcId(vpcId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VpcConnectionArgs].
 */
@PulumiTagMarker
public class VpcConnectionArgsBuilder internal constructor() {
    private var authentication: Output? = null

    private var clientSubnets: Output>? = null

    private var securityGroups: Output>? = null

    private var tags: Output>? = null

    private var targetClusterArn: Output? = null

    private var vpcId: Output? = null

    /**
     * @param value The type of private link authentication.
     */
    @JvmName("olnwwfrslkqtxnky")
    public suspend fun authentication(`value`: Output) {
        this.authentication = value
    }

    /**
     * @param value The list of subnets in the client VPC to connect to.
     */
    @JvmName("fixixopwxkbdthrv")
    public suspend fun clientSubnets(`value`: Output>) {
        this.clientSubnets = value
    }

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

    /**
     * @param values The list of subnets in the client VPC to connect to.
     */
    @JvmName("ahwwpssgnuahcbcg")
    public suspend fun clientSubnets(values: List>) {
        this.clientSubnets = Output.all(values)
    }

    /**
     * @param value The security groups to attach to the ENIs for the broker nodes.
     */
    @JvmName("adobnxddhfafymew")
    public suspend fun securityGroups(`value`: Output>) {
        this.securityGroups = value
    }

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

    /**
     * @param values The security groups to attach to the ENIs for the broker nodes.
     */
    @JvmName("hdpydxkdagatiqkc")
    public suspend fun securityGroups(values: List>) {
        this.securityGroups = Output.all(values)
    }

    /**
     * @param value Create tags when creating the VPC connection.
     */
    @JvmName("pquubrdojwppefvm")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the target cluster
     */
    @JvmName("ccxsjsbcrxayxede")
    public suspend fun targetClusterArn(`value`: Output) {
        this.targetClusterArn = value
    }

    /**
     * @param value The VPC id of the remote client.
     */
    @JvmName("ufpwxdpywofkwgee")
    public suspend fun vpcId(`value`: Output) {
        this.vpcId = value
    }

    /**
     * @param value The type of private link authentication.
     */
    @JvmName("ebatlieudbfksljn")
    public suspend fun authentication(`value`: VpcConnectionAuthentication?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authentication = mapped
    }

    /**
     * @param value The list of subnets in the client VPC to connect to.
     */
    @JvmName("qujkxbxxgudtvhor")
    public suspend fun clientSubnets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientSubnets = mapped
    }

    /**
     * @param values The list of subnets in the client VPC to connect to.
     */
    @JvmName("sdtrujltgtcfsrpy")
    public suspend fun clientSubnets(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientSubnets = mapped
    }

    /**
     * @param value The security groups to attach to the ENIs for the broker nodes.
     */
    @JvmName("kykfwipquwwyvtdo")
    public suspend fun securityGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroups = mapped
    }

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

    /**
     * @param value Create tags when creating the VPC connection.
     */
    @JvmName("ncpxtbfjilljvqij")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Create tags when creating the VPC connection.
     */
    @JvmName("rbonnksqwlresodq")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the target cluster
     */
    @JvmName("vxlllpinnqwrrttv")
    public suspend fun targetClusterArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetClusterArn = mapped
    }

    /**
     * @param value The VPC id of the remote client.
     */
    @JvmName("kacqrfisxbyrodwv")
    public suspend fun vpcId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcId = mapped
    }

    internal fun build(): VpcConnectionArgs = VpcConnectionArgs(
        authentication = authentication,
        clientSubnets = clientSubnets,
        securityGroups = securityGroups,
        tags = tags,
        targetClusterArn = targetClusterArn,
        vpcId = vpcId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy