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

com.pulumi.awsnative.kafkaconnect.kotlin.ConnectorArgs.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.kafkaconnect.kotlin

import com.pulumi.awsnative.kafkaconnect.ConnectorArgs.builder
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorCapacityArgs
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorCapacityArgsBuilder
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorKafkaClusterArgs
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorKafkaClusterArgsBuilder
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorKafkaClusterClientAuthenticationArgs
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorKafkaClusterClientAuthenticationArgsBuilder
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorKafkaClusterEncryptionInTransitArgs
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorKafkaClusterEncryptionInTransitArgsBuilder
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorLogDeliveryArgs
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorLogDeliveryArgsBuilder
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorPluginArgs
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorPluginArgsBuilder
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorWorkerConfigurationArgs
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorWorkerConfigurationArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::KafkaConnect::Connector
 * @property capacity The connector's compute capacity settings.
 * @property connectorConfiguration The configuration for the connector.
 * @property connectorDescription A summary description of the connector.
 * @property connectorName The name of the connector.
 * @property kafkaCluster The details of the Apache Kafka cluster to which the connector is connected.
 * @property kafkaClusterClientAuthentication The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no client authentication is used.
 * @property kafkaClusterEncryptionInTransit Details of encryption in transit to the Apache Kafka cluster.
 * @property kafkaConnectVersion The version of Kafka Connect. It has to be compatible with both the Kafka cluster's version and the plugins.
 * @property logDelivery The settings for delivering connector logs to Amazon CloudWatch Logs.
 * @property plugins List of plugins to use with the connector.
 * @property serviceExecutionRoleArn The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon S3 objects and other external resources.
 * @property tags A collection of tags associated with a resource
 * @property workerConfiguration The worker configurations that are in use with the connector.
 */
public data class ConnectorArgs(
    public val capacity: Output? = null,
    public val connectorConfiguration: Output>? = null,
    public val connectorDescription: Output? = null,
    public val connectorName: Output? = null,
    public val kafkaCluster: Output? = null,
    public val kafkaClusterClientAuthentication: Output? = null,
    public val kafkaClusterEncryptionInTransit: Output? =
        null,
    public val kafkaConnectVersion: Output? = null,
    public val logDelivery: Output? = null,
    public val plugins: Output>? = null,
    public val serviceExecutionRoleArn: Output? = null,
    public val tags: Output>? = null,
    public val workerConfiguration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kafkaconnect.ConnectorArgs =
        com.pulumi.awsnative.kafkaconnect.ConnectorArgs.builder()
            .capacity(capacity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .connectorConfiguration(
                connectorConfiguration?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .connectorDescription(connectorDescription?.applyValue({ args0 -> args0 }))
            .connectorName(connectorName?.applyValue({ args0 -> args0 }))
            .kafkaCluster(kafkaCluster?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .kafkaClusterClientAuthentication(
                kafkaClusterClientAuthentication?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .kafkaClusterEncryptionInTransit(
                kafkaClusterEncryptionInTransit?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .kafkaConnectVersion(kafkaConnectVersion?.applyValue({ args0 -> args0 }))
            .logDelivery(logDelivery?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .plugins(
                plugins?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .serviceExecutionRoleArn(serviceExecutionRoleArn?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .workerConfiguration(
                workerConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ConnectorArgs].
 */
@PulumiTagMarker
public class ConnectorArgsBuilder internal constructor() {
    private var capacity: Output? = null

    private var connectorConfiguration: Output>? = null

    private var connectorDescription: Output? = null

    private var connectorName: Output? = null

    private var kafkaCluster: Output? = null

    private var kafkaClusterClientAuthentication:
        Output? = null

    private var kafkaClusterEncryptionInTransit: Output? =
        null

    private var kafkaConnectVersion: Output? = null

    private var logDelivery: Output? = null

    private var plugins: Output>? = null

    private var serviceExecutionRoleArn: Output? = null

    private var tags: Output>? = null

    private var workerConfiguration: Output? = null

    /**
     * @param value The connector's compute capacity settings.
     */
    @JvmName("vhnwrrdxmiomgixe")
    public suspend fun capacity(`value`: Output) {
        this.capacity = value
    }

    /**
     * @param value The configuration for the connector.
     */
    @JvmName("blehbpiwhhdihdqd")
    public suspend fun connectorConfiguration(`value`: Output>) {
        this.connectorConfiguration = value
    }

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

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

    /**
     * @param value The details of the Apache Kafka cluster to which the connector is connected.
     */
    @JvmName("sykbpiikrlvfsroh")
    public suspend fun kafkaCluster(`value`: Output) {
        this.kafkaCluster = value
    }

    /**
     * @param value The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no client authentication is used.
     */
    @JvmName("nbipxcwprfhldwcu")
    public suspend fun kafkaClusterClientAuthentication(`value`: Output) {
        this.kafkaClusterClientAuthentication = value
    }

    /**
     * @param value Details of encryption in transit to the Apache Kafka cluster.
     */
    @JvmName("oqpdadpsxpsvisid")
    public suspend fun kafkaClusterEncryptionInTransit(`value`: Output) {
        this.kafkaClusterEncryptionInTransit = value
    }

    /**
     * @param value The version of Kafka Connect. It has to be compatible with both the Kafka cluster's version and the plugins.
     */
    @JvmName("hamdihctawtegcqk")
    public suspend fun kafkaConnectVersion(`value`: Output) {
        this.kafkaConnectVersion = value
    }

    /**
     * @param value The settings for delivering connector logs to Amazon CloudWatch Logs.
     */
    @JvmName("yejqijkhcyjvxwjf")
    public suspend fun logDelivery(`value`: Output) {
        this.logDelivery = value
    }

    /**
     * @param value List of plugins to use with the connector.
     */
    @JvmName("afyhyserdmmkkrkt")
    public suspend fun plugins(`value`: Output>) {
        this.plugins = value
    }

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

    /**
     * @param values List of plugins to use with the connector.
     */
    @JvmName("sndyexoptqtjpnep")
    public suspend fun plugins(values: List>) {
        this.plugins = Output.all(values)
    }

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

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

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

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

    /**
     * @param value The worker configurations that are in use with the connector.
     */
    @JvmName("xiohorlnqmeathjp")
    public suspend fun workerConfiguration(`value`: Output) {
        this.workerConfiguration = value
    }

    /**
     * @param value The connector's compute capacity settings.
     */
    @JvmName("kkjyficxliftaikv")
    public suspend fun capacity(`value`: ConnectorCapacityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacity = mapped
    }

    /**
     * @param argument The connector's compute capacity settings.
     */
    @JvmName("utbjfbomyttkxohw")
    public suspend fun capacity(argument: suspend ConnectorCapacityArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectorCapacityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.capacity = mapped
    }

    /**
     * @param value The configuration for the connector.
     */
    @JvmName("lhirqgxrgtdpknyq")
    public suspend fun connectorConfiguration(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectorConfiguration = mapped
    }

    /**
     * @param values The configuration for the connector.
     */
    @JvmName("ysjwvfdditamlpmg")
    public fun connectorConfiguration(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.connectorConfiguration = mapped
    }

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

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

    /**
     * @param value The details of the Apache Kafka cluster to which the connector is connected.
     */
    @JvmName("dxsofjtuhohwrjgo")
    public suspend fun kafkaCluster(`value`: ConnectorKafkaClusterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kafkaCluster = mapped
    }

    /**
     * @param argument The details of the Apache Kafka cluster to which the connector is connected.
     */
    @JvmName("dmhbpurjyauwwiwa")
    public suspend fun kafkaCluster(argument: suspend ConnectorKafkaClusterArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectorKafkaClusterArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.kafkaCluster = mapped
    }

    /**
     * @param value The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no client authentication is used.
     */
    @JvmName("nnfdxyovmkwabjsu")
    public suspend fun kafkaClusterClientAuthentication(`value`: ConnectorKafkaClusterClientAuthenticationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kafkaClusterClientAuthentication = mapped
    }

    /**
     * @param argument The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no client authentication is used.
     */
    @JvmName("xrpspgkyolbmdsql")
    public suspend fun kafkaClusterClientAuthentication(argument: suspend ConnectorKafkaClusterClientAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectorKafkaClusterClientAuthenticationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.kafkaClusterClientAuthentication = mapped
    }

    /**
     * @param value Details of encryption in transit to the Apache Kafka cluster.
     */
    @JvmName("cdcxdphjjhtgrtfq")
    public suspend fun kafkaClusterEncryptionInTransit(`value`: ConnectorKafkaClusterEncryptionInTransitArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kafkaClusterEncryptionInTransit = mapped
    }

    /**
     * @param argument Details of encryption in transit to the Apache Kafka cluster.
     */
    @JvmName("cywicpnkdqmcaohc")
    public suspend fun kafkaClusterEncryptionInTransit(argument: suspend ConnectorKafkaClusterEncryptionInTransitArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectorKafkaClusterEncryptionInTransitArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.kafkaClusterEncryptionInTransit = mapped
    }

    /**
     * @param value The version of Kafka Connect. It has to be compatible with both the Kafka cluster's version and the plugins.
     */
    @JvmName("mvvxwsftxwxhnjvv")
    public suspend fun kafkaConnectVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kafkaConnectVersion = mapped
    }

    /**
     * @param value The settings for delivering connector logs to Amazon CloudWatch Logs.
     */
    @JvmName("sgjrednqthmlwrme")
    public suspend fun logDelivery(`value`: ConnectorLogDeliveryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logDelivery = mapped
    }

    /**
     * @param argument The settings for delivering connector logs to Amazon CloudWatch Logs.
     */
    @JvmName("rdprrhxarhmpkiys")
    public suspend fun logDelivery(argument: suspend ConnectorLogDeliveryArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectorLogDeliveryArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.logDelivery = mapped
    }

    /**
     * @param value List of plugins to use with the connector.
     */
    @JvmName("ijtjeaoleaqxrgmo")
    public suspend fun plugins(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.plugins = mapped
    }

    /**
     * @param argument List of plugins to use with the connector.
     */
    @JvmName("ufqodfxwehalkjfs")
    public suspend fun plugins(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConnectorPluginArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.plugins = mapped
    }

    /**
     * @param argument List of plugins to use with the connector.
     */
    @JvmName("frlunkpnsvaggtgj")
    public suspend fun plugins(vararg argument: suspend ConnectorPluginArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ConnectorPluginArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.plugins = mapped
    }

    /**
     * @param argument List of plugins to use with the connector.
     */
    @JvmName("wvohjnqhtlwfotcu")
    public suspend fun plugins(argument: suspend ConnectorPluginArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ConnectorPluginArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.plugins = mapped
    }

    /**
     * @param values List of plugins to use with the connector.
     */
    @JvmName("pswlctcwoetqiucn")
    public suspend fun plugins(vararg values: ConnectorPluginArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.plugins = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon S3 objects and other external resources.
     */
    @JvmName("rgujjalwsnfkoqqv")
    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("yncqfqlddtvcqvqn")
    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("kkvrpmutdtlqogmb")
    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("akxljdpcjnurahrb")
    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("wvncutfuvuffqsch")
    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("beomkalsecgfrnfo")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The worker configurations that are in use with the connector.
     */
    @JvmName("fsvmafqpkxlglmbo")
    public suspend fun workerConfiguration(`value`: ConnectorWorkerConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workerConfiguration = mapped
    }

    /**
     * @param argument The worker configurations that are in use with the connector.
     */
    @JvmName("owbriwiuvubhrybn")
    public suspend fun workerConfiguration(argument: suspend ConnectorWorkerConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectorWorkerConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.workerConfiguration = mapped
    }

    internal fun build(): ConnectorArgs = ConnectorArgs(
        capacity = capacity,
        connectorConfiguration = connectorConfiguration,
        connectorDescription = connectorDescription,
        connectorName = connectorName,
        kafkaCluster = kafkaCluster,
        kafkaClusterClientAuthentication = kafkaClusterClientAuthentication,
        kafkaClusterEncryptionInTransit = kafkaClusterEncryptionInTransit,
        kafkaConnectVersion = kafkaConnectVersion,
        logDelivery = logDelivery,
        plugins = plugins,
        serviceExecutionRoleArn = serviceExecutionRoleArn,
        tags = tags,
        workerConfiguration = workerConfiguration,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy