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

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

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

package com.pulumi.awsnative.msk.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.msk.ReplicatorArgs.builder
import com.pulumi.awsnative.msk.kotlin.inputs.ReplicatorKafkaClusterArgs
import com.pulumi.awsnative.msk.kotlin.inputs.ReplicatorKafkaClusterArgsBuilder
import com.pulumi.awsnative.msk.kotlin.inputs.ReplicatorReplicationInfoArgs
import com.pulumi.awsnative.msk.kotlin.inputs.ReplicatorReplicationInfoArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::MSK::Replicator
 * @property currentVersion The current version of the MSK replicator.
 * @property description A summary description of the replicator.
 * @property kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator.
 * @property replicationInfoList A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.
 * @property replicatorName The name of the replicator.
 * @property serviceExecutionRoleArn The Amazon Resource Name (ARN) of the IAM role used by the replicator to access external resources.
 * @property tags A collection of tags associated with a resource
 */
public data class ReplicatorArgs(
    public val currentVersion: Output? = null,
    public val description: Output? = null,
    public val kafkaClusters: Output>? = null,
    public val replicationInfoList: Output>? = null,
    public val replicatorName: Output? = null,
    public val serviceExecutionRoleArn: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.msk.ReplicatorArgs =
        com.pulumi.awsnative.msk.ReplicatorArgs.builder()
            .currentVersion(currentVersion?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .kafkaClusters(
                kafkaClusters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .replicationInfoList(
                replicationInfoList?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .replicatorName(replicatorName?.applyValue({ args0 -> args0 }))
            .serviceExecutionRoleArn(serviceExecutionRoleArn?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ReplicatorArgs].
 */
@PulumiTagMarker
public class ReplicatorArgsBuilder internal constructor() {
    private var currentVersion: Output? = null

    private var description: Output? = null

    private var kafkaClusters: Output>? = null

    private var replicationInfoList: Output>? = null

    private var replicatorName: Output? = null

    private var serviceExecutionRoleArn: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The current version of the MSK replicator.
     */
    @JvmName("swqwqdcexmxvichf")
    public suspend fun currentVersion(`value`: Output) {
        this.currentVersion = value
    }

    /**
     * @param value A summary description of the replicator.
     */
    @JvmName("dwfysklmgmedtnbj")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Specifies a list of Kafka clusters which are targets of the replicator.
     */
    @JvmName("ynbxggefmuyoippi")
    public suspend fun kafkaClusters(`value`: Output>) {
        this.kafkaClusters = value
    }

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

    /**
     * @param values Specifies a list of Kafka clusters which are targets of the replicator.
     */
    @JvmName("hqdttnahjwwqrbfm")
    public suspend fun kafkaClusters(values: List>) {
        this.kafkaClusters = Output.all(values)
    }

    /**
     * @param value A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.
     */
    @JvmName("efqtndwubhtbqqpm")
    public suspend fun replicationInfoList(`value`: Output>) {
        this.replicationInfoList = value
    }

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

    /**
     * @param values A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.
     */
    @JvmName("jncsdgqlcuulcoog")
    public suspend fun replicationInfoList(values: List>) {
        this.replicationInfoList = Output.all(values)
    }

    /**
     * @param value The name of the replicator.
     */
    @JvmName("adjufvmxecgaeioa")
    public suspend fun replicatorName(`value`: Output) {
        this.replicatorName = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role used by the replicator to access external resources.
     */
    @JvmName("xwhyxtunvvnwchuk")
    public suspend fun serviceExecutionRoleArn(`value`: Output) {
        this.serviceExecutionRoleArn = value
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("vptvyhshrspfrvhr")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A collection of tags associated with a resource
     */
    @JvmName("vcyumvfdcxskunbc")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The current version of the MSK replicator.
     */
    @JvmName("rpbfsakmcgrhdlkr")
    public suspend fun currentVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.currentVersion = mapped
    }

    /**
     * @param value A summary description of the replicator.
     */
    @JvmName("sskyjudctyjjuoab")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Specifies a list of Kafka clusters which are targets of the replicator.
     */
    @JvmName("xshqyflrgalgibai")
    public suspend fun kafkaClusters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kafkaClusters = mapped
    }

    /**
     * @param argument Specifies a list of Kafka clusters which are targets of the replicator.
     */
    @JvmName("qcsygemvdykkuawr")
    public suspend fun kafkaClusters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ReplicatorKafkaClusterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.kafkaClusters = mapped
    }

    /**
     * @param argument Specifies a list of Kafka clusters which are targets of the replicator.
     */
    @JvmName("wambdchjkkqalqud")
    public suspend fun kafkaClusters(vararg argument: suspend ReplicatorKafkaClusterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ReplicatorKafkaClusterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.kafkaClusters = mapped
    }

    /**
     * @param argument Specifies a list of Kafka clusters which are targets of the replicator.
     */
    @JvmName("ustesseiwpgaisng")
    public suspend fun kafkaClusters(argument: suspend ReplicatorKafkaClusterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ReplicatorKafkaClusterArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.kafkaClusters = mapped
    }

    /**
     * @param values Specifies a list of Kafka clusters which are targets of the replicator.
     */
    @JvmName("exlxbvvkkdmsydhp")
    public suspend fun kafkaClusters(vararg values: ReplicatorKafkaClusterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.kafkaClusters = mapped
    }

    /**
     * @param value A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.
     */
    @JvmName("wgdbcgovwkhpocrm")
    public suspend fun replicationInfoList(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicationInfoList = mapped
    }

    /**
     * @param argument A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.
     */
    @JvmName("hxcjnhqmvtpruhjh")
    public suspend fun replicationInfoList(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ReplicatorReplicationInfoArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.replicationInfoList = mapped
    }

    /**
     * @param argument A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.
     */
    @JvmName("qkvrwoyddliwggph")
    public suspend fun replicationInfoList(vararg argument: suspend ReplicatorReplicationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ReplicatorReplicationInfoArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.replicationInfoList = mapped
    }

    /**
     * @param argument A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.
     */
    @JvmName("fgtsxdhvlsfketqa")
    public suspend fun replicationInfoList(argument: suspend ReplicatorReplicationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ReplicatorReplicationInfoArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.replicationInfoList = mapped
    }

    /**
     * @param values A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.
     */
    @JvmName("faokvjhygcbtwifp")
    public suspend fun replicationInfoList(vararg values: ReplicatorReplicationInfoArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.replicationInfoList = mapped
    }

    /**
     * @param value The name of the replicator.
     */
    @JvmName("munkhbunqwygxcvu")
    public suspend fun replicatorName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicatorName = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role used by the replicator to access external resources.
     */
    @JvmName("xxqhspolrjmhxeml")
    public suspend fun serviceExecutionRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceExecutionRoleArn = mapped
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("pcyhsajclyabuito")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource
     */
    @JvmName("vcvvwuxncalxbiej")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource
     */
    @JvmName("cyuytatcrubwjyqg")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource
     */
    @JvmName("qtsqinowrrbsoqoh")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A collection of tags associated with a resource
     */
    @JvmName("evuxilrrfenrdevt")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ReplicatorArgs = ReplicatorArgs(
        currentVersion = currentVersion,
        description = description,
        kafkaClusters = kafkaClusters,
        replicationInfoList = replicationInfoList,
        replicatorName = replicatorName,
        serviceExecutionRoleArn = serviceExecutionRoleArn,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy