
com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorPluginArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.kafkaconnect.kotlin.inputs
import com.pulumi.awsnative.kafkaconnect.inputs.ConnectorPluginArgs.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 about a Kafka Connect plugin which will be used with the connector.
* @property customPlugin Details about a custom plugin.
*/
public data class ConnectorPluginArgs(
public val customPlugin: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.kafkaconnect.inputs.ConnectorPluginArgs =
com.pulumi.awsnative.kafkaconnect.inputs.ConnectorPluginArgs.builder()
.customPlugin(customPlugin.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ConnectorPluginArgs].
*/
@PulumiTagMarker
public class ConnectorPluginArgsBuilder internal constructor() {
private var customPlugin: Output? = null
/**
* @param value Details about a custom plugin.
*/
@JvmName("qgrrkssauomwdexn")
public suspend fun customPlugin(`value`: Output) {
this.customPlugin = value
}
/**
* @param value Details about a custom plugin.
*/
@JvmName("wpbjgwabqquuvsca")
public suspend fun customPlugin(`value`: ConnectorCustomPluginArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.customPlugin = mapped
}
/**
* @param argument Details about a custom plugin.
*/
@JvmName("fqsssirmddqegywx")
public suspend fun customPlugin(argument: suspend ConnectorCustomPluginArgsBuilder.() -> Unit) {
val toBeMapped = ConnectorCustomPluginArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.customPlugin = mapped
}
internal fun build(): ConnectorPluginArgs = ConnectorPluginArgs(
customPlugin = customPlugin ?: throw PulumiNullFieldException("customPlugin"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy