
com.pulumi.awsnative.kafkaconnect.kotlin.KafkaconnectFunctions.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
import com.pulumi.awsnative.kafkaconnect.KafkaconnectFunctions.getConnectorPlain
import com.pulumi.awsnative.kafkaconnect.KafkaconnectFunctions.getCustomPluginPlain
import com.pulumi.awsnative.kafkaconnect.KafkaconnectFunctions.getWorkerConfigurationPlain
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.GetConnectorPlainArgs
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.GetConnectorPlainArgsBuilder
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.GetCustomPluginPlainArgs
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.GetCustomPluginPlainArgsBuilder
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.GetWorkerConfigurationPlainArgs
import com.pulumi.awsnative.kafkaconnect.kotlin.inputs.GetWorkerConfigurationPlainArgsBuilder
import com.pulumi.awsnative.kafkaconnect.kotlin.outputs.GetConnectorResult
import com.pulumi.awsnative.kafkaconnect.kotlin.outputs.GetCustomPluginResult
import com.pulumi.awsnative.kafkaconnect.kotlin.outputs.GetWorkerConfigurationResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.kafkaconnect.kotlin.outputs.GetConnectorResult.Companion.toKotlin as getConnectorResultToKotlin
import com.pulumi.awsnative.kafkaconnect.kotlin.outputs.GetCustomPluginResult.Companion.toKotlin as getCustomPluginResultToKotlin
import com.pulumi.awsnative.kafkaconnect.kotlin.outputs.GetWorkerConfigurationResult.Companion.toKotlin as getWorkerConfigurationResultToKotlin
public object KafkaconnectFunctions {
/**
* Resource Type definition for AWS::KafkaConnect::Connector
* @param argument null
* @return null
*/
public suspend fun getConnector(argument: GetConnectorPlainArgs): GetConnectorResult =
getConnectorResultToKotlin(getConnectorPlain(argument.toJava()).await())
/**
* @see [getConnector].
* @param connectorArn Amazon Resource Name for the created Connector.
* @return null
*/
public suspend fun getConnector(connectorArn: String): GetConnectorResult {
val argument = GetConnectorPlainArgs(
connectorArn = connectorArn,
)
return getConnectorResultToKotlin(getConnectorPlain(argument.toJava()).await())
}
/**
* @see [getConnector].
* @param argument Builder for [com.pulumi.awsnative.kafkaconnect.kotlin.inputs.GetConnectorPlainArgs].
* @return null
*/
public suspend fun getConnector(argument: suspend GetConnectorPlainArgsBuilder.() -> Unit): GetConnectorResult {
val builder = GetConnectorPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getConnectorResultToKotlin(getConnectorPlain(builtArgument.toJava()).await())
}
/**
* An example resource schema demonstrating some basic constructs and validation rules.
* @param argument null
* @return null
*/
public suspend fun getCustomPlugin(argument: GetCustomPluginPlainArgs): GetCustomPluginResult =
getCustomPluginResultToKotlin(getCustomPluginPlain(argument.toJava()).await())
/**
* @see [getCustomPlugin].
* @param customPluginArn The Amazon Resource Name (ARN) of the custom plugin to use.
* @return null
*/
public suspend fun getCustomPlugin(customPluginArn: String): GetCustomPluginResult {
val argument = GetCustomPluginPlainArgs(
customPluginArn = customPluginArn,
)
return getCustomPluginResultToKotlin(getCustomPluginPlain(argument.toJava()).await())
}
/**
* @see [getCustomPlugin].
* @param argument Builder for [com.pulumi.awsnative.kafkaconnect.kotlin.inputs.GetCustomPluginPlainArgs].
* @return null
*/
public suspend fun getCustomPlugin(argument: suspend GetCustomPluginPlainArgsBuilder.() -> Unit): GetCustomPluginResult {
val builder = GetCustomPluginPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getCustomPluginResultToKotlin(getCustomPluginPlain(builtArgument.toJava()).await())
}
/**
* The configuration of the workers, which are the processes that run the connector logic.
* @param argument null
* @return null
*/
public suspend fun getWorkerConfiguration(argument: GetWorkerConfigurationPlainArgs): GetWorkerConfigurationResult =
getWorkerConfigurationResultToKotlin(getWorkerConfigurationPlain(argument.toJava()).await())
/**
* @see [getWorkerConfiguration].
* @param workerConfigurationArn The Amazon Resource Name (ARN) of the custom configuration.
* @return null
*/
public suspend fun getWorkerConfiguration(workerConfigurationArn: String): GetWorkerConfigurationResult {
val argument = GetWorkerConfigurationPlainArgs(
workerConfigurationArn = workerConfigurationArn,
)
return getWorkerConfigurationResultToKotlin(getWorkerConfigurationPlain(argument.toJava()).await())
}
/**
* @see [getWorkerConfiguration].
* @param argument Builder for [com.pulumi.awsnative.kafkaconnect.kotlin.inputs.GetWorkerConfigurationPlainArgs].
* @return null
*/
public suspend fun getWorkerConfiguration(argument: suspend GetWorkerConfigurationPlainArgsBuilder.() -> Unit): GetWorkerConfigurationResult {
val builder = GetWorkerConfigurationPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getWorkerConfigurationResultToKotlin(getWorkerConfigurationPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy