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

com.pulumi.awsnative.msk.kotlin.inputs.ReplicatorKafkaClusterArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.msk.kotlin.inputs

import com.pulumi.awsnative.msk.inputs.ReplicatorKafkaClusterArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Details of a Kafka cluster for replication.
 * @property amazonMskCluster Details of an Amazon MSK cluster. Exactly one of AmazonMskCluster is required.
 * @property vpcConfig Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster.
 */
public data class ReplicatorKafkaClusterArgs(
    public val amazonMskCluster: Output,
    public val vpcConfig: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.msk.inputs.ReplicatorKafkaClusterArgs =
        com.pulumi.awsnative.msk.inputs.ReplicatorKafkaClusterArgs.builder()
            .amazonMskCluster(amazonMskCluster.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .vpcConfig(vpcConfig.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ReplicatorKafkaClusterArgs].
 */
@PulumiTagMarker
public class ReplicatorKafkaClusterArgsBuilder internal constructor() {
    private var amazonMskCluster: Output? = null

    private var vpcConfig: Output? = null

    /**
     * @param value Details of an Amazon MSK cluster. Exactly one of AmazonMskCluster is required.
     */
    @JvmName("mnqqwghbvxwbmkjx")
    public suspend fun amazonMskCluster(`value`: Output) {
        this.amazonMskCluster = value
    }

    /**
     * @param value Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster.
     */
    @JvmName("mhfckxhdiahvaxcy")
    public suspend fun vpcConfig(`value`: Output) {
        this.vpcConfig = value
    }

    /**
     * @param value Details of an Amazon MSK cluster. Exactly one of AmazonMskCluster is required.
     */
    @JvmName("drxaelnspgsjsylx")
    public suspend fun amazonMskCluster(`value`: ReplicatorAmazonMskClusterArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.amazonMskCluster = mapped
    }

    /**
     * @param argument Details of an Amazon MSK cluster. Exactly one of AmazonMskCluster is required.
     */
    @JvmName("mpbiinodhefcdwxy")
    public suspend fun amazonMskCluster(argument: suspend ReplicatorAmazonMskClusterArgsBuilder.() -> Unit) {
        val toBeMapped = ReplicatorAmazonMskClusterArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.amazonMskCluster = mapped
    }

    /**
     * @param value Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster.
     */
    @JvmName("epnyuxgjtsbvmufm")
    public suspend fun vpcConfig(`value`: ReplicatorKafkaClusterClientVpcConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcConfig = mapped
    }

    /**
     * @param argument Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster.
     */
    @JvmName("hlgisxqaxblgkgwi")
    public suspend fun vpcConfig(argument: suspend ReplicatorKafkaClusterClientVpcConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ReplicatorKafkaClusterClientVpcConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.vpcConfig = mapped
    }

    internal fun build(): ReplicatorKafkaClusterArgs = ReplicatorKafkaClusterArgs(
        amazonMskCluster = amazonMskCluster ?: throw PulumiNullFieldException("amazonMskCluster"),
        vpcConfig = vpcConfig ?: throw PulumiNullFieldException("vpcConfig"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy