com.pulumi.aws.msk.kotlin.inputs.ReplicatorKafkaClusterArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.msk.kotlin.inputs
import com.pulumi.aws.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
/**
*
* @property amazonMskCluster Details of an Amazon MSK cluster.
* @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.aws.msk.inputs.ReplicatorKafkaClusterArgs =
com.pulumi.aws.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.
*/
@JvmName("tnkwjajfnocbmwvl")
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("tbcsaaulndhhqeby")
public suspend fun vpcConfig(`value`: Output) {
this.vpcConfig = value
}
/**
* @param value Details of an Amazon MSK cluster.
*/
@JvmName("xnbtmexdwlsgmfjt")
public suspend fun amazonMskCluster(`value`: ReplicatorKafkaClusterAmazonMskClusterArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.amazonMskCluster = mapped
}
/**
* @param argument Details of an Amazon MSK cluster.
*/
@JvmName("xptgoseyxbmsatpg")
public suspend fun amazonMskCluster(argument: suspend ReplicatorKafkaClusterAmazonMskClusterArgsBuilder.() -> Unit) {
val toBeMapped = ReplicatorKafkaClusterAmazonMskClusterArgsBuilder().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("auxarefldoogvsuj")
public suspend fun vpcConfig(`value`: ReplicatorKafkaClusterVpcConfigArgs) {
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("oxkpfedheslhecwa")
public suspend fun vpcConfig(argument: suspend ReplicatorKafkaClusterVpcConfigArgsBuilder.() -> Unit) {
val toBeMapped = ReplicatorKafkaClusterVpcConfigArgsBuilder().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 - 2024 Weber Informatics LLC | Privacy Policy