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

com.pulumi.awsnative.msk.kotlin.ReplicatorArgs.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: 1.24.0.0
Show newest version
@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("rslhddrxjyggbxyi")
    public suspend fun currentVersion(`value`: Output) {
        this.currentVersion = value
    }

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

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

    @JvmName("tcekbgesgpygymln")
    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("tmxclwnspjirnfup")
    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("vrlfcehrmeveakwq")
    public suspend fun replicationInfoList(`value`: Output>) {
        this.replicationInfoList = value
    }

    @JvmName("qstofmylufxjkddl")
    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("lwosnmdpwfsqqcdg")
    public suspend fun replicationInfoList(values: List>) {
        this.replicationInfoList = Output.all(values)
    }

    /**
     * @param value The name of the replicator.
     */
    @JvmName("qabmhxhnduugaoju")
    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("ihcssgpnsyqivstc")
    public suspend fun serviceExecutionRoleArn(`value`: Output) {
        this.serviceExecutionRoleArn = value
    }

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

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

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

    /**
     * @param value The current version of the MSK replicator.
     */
    @JvmName("alwexnlihfaokfqn")
    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("lpmalrgaaxkndpwh")
    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("wbbudahgnplwqkbt")
    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("uvybhvntfvbeoitg")
    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("eigpwkmdeuhristv")
    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("espyfergdmprmqrb")
    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("jrxgqirbxsqbjkqv")
    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("dndriusstkfpnvhk")
    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("soxewdmwgsvnatur")
    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("cqgndlqssvanxsby")
    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("qmxtycfbqinoutlv")
    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("ogjwfndyiuicetwi")
    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("bygifrnkdhfrdrdo")
    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("kfrpllaiesyoelbv")
    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("bolukoopnyuornxa")
    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("krxcfarrjejoleav")
    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("omrltswmkvkqxldv")
    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("hrtjcoqlwotjfged")
    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("lgbjvxqtyptdwjdk")
    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