com.pulumi.awsnative.iotanalytics.kotlin.IotanalyticsFunctions.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.iotanalytics.kotlin
import com.pulumi.awsnative.iotanalytics.IotanalyticsFunctions.getChannelPlain
import com.pulumi.awsnative.iotanalytics.IotanalyticsFunctions.getDatasetPlain
import com.pulumi.awsnative.iotanalytics.IotanalyticsFunctions.getDatastorePlain
import com.pulumi.awsnative.iotanalytics.IotanalyticsFunctions.getPipelinePlain
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.GetChannelPlainArgs
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.GetChannelPlainArgsBuilder
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.GetDatasetPlainArgs
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.GetDatasetPlainArgsBuilder
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.GetDatastorePlainArgs
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.GetDatastorePlainArgsBuilder
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.GetPipelinePlainArgs
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.GetPipelinePlainArgsBuilder
import com.pulumi.awsnative.iotanalytics.kotlin.outputs.GetChannelResult
import com.pulumi.awsnative.iotanalytics.kotlin.outputs.GetDatasetResult
import com.pulumi.awsnative.iotanalytics.kotlin.outputs.GetDatastoreResult
import com.pulumi.awsnative.iotanalytics.kotlin.outputs.GetPipelineResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.iotanalytics.kotlin.outputs.GetChannelResult.Companion.toKotlin as getChannelResultToKotlin
import com.pulumi.awsnative.iotanalytics.kotlin.outputs.GetDatasetResult.Companion.toKotlin as getDatasetResultToKotlin
import com.pulumi.awsnative.iotanalytics.kotlin.outputs.GetDatastoreResult.Companion.toKotlin as getDatastoreResultToKotlin
import com.pulumi.awsnative.iotanalytics.kotlin.outputs.GetPipelineResult.Companion.toKotlin as getPipelineResultToKotlin
public object IotanalyticsFunctions {
/**
* Resource Type definition for AWS::IoTAnalytics::Channel
* @param argument null
* @return null
*/
public suspend fun getChannel(argument: GetChannelPlainArgs): GetChannelResult =
getChannelResultToKotlin(getChannelPlain(argument.toJava()).await())
/**
* @see [getChannel].
* @param channelName The name of the channel.
* @return null
*/
public suspend fun getChannel(channelName: String): GetChannelResult {
val argument = GetChannelPlainArgs(
channelName = channelName,
)
return getChannelResultToKotlin(getChannelPlain(argument.toJava()).await())
}
/**
* @see [getChannel].
* @param argument Builder for [com.pulumi.awsnative.iotanalytics.kotlin.inputs.GetChannelPlainArgs].
* @return null
*/
public suspend fun getChannel(argument: suspend GetChannelPlainArgsBuilder.() -> Unit): GetChannelResult {
val builder = GetChannelPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getChannelResultToKotlin(getChannelPlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::IoTAnalytics::Dataset
* @param argument null
* @return null
*/
public suspend fun getDataset(argument: GetDatasetPlainArgs): GetDatasetResult =
getDatasetResultToKotlin(getDatasetPlain(argument.toJava()).await())
/**
* @see [getDataset].
* @param datasetName The name of the dataset.
* @return null
*/
public suspend fun getDataset(datasetName: String): GetDatasetResult {
val argument = GetDatasetPlainArgs(
datasetName = datasetName,
)
return getDatasetResultToKotlin(getDatasetPlain(argument.toJava()).await())
}
/**
* @see [getDataset].
* @param argument Builder for [com.pulumi.awsnative.iotanalytics.kotlin.inputs.GetDatasetPlainArgs].
* @return null
*/
public suspend fun getDataset(argument: suspend GetDatasetPlainArgsBuilder.() -> Unit): GetDatasetResult {
val builder = GetDatasetPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getDatasetResultToKotlin(getDatasetPlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::IoTAnalytics::Datastore
* @param argument null
* @return null
*/
public suspend fun getDatastore(argument: GetDatastorePlainArgs): GetDatastoreResult =
getDatastoreResultToKotlin(getDatastorePlain(argument.toJava()).await())
/**
* @see [getDatastore].
* @param datastoreName The name of the data store.
* @return null
*/
public suspend fun getDatastore(datastoreName: String): GetDatastoreResult {
val argument = GetDatastorePlainArgs(
datastoreName = datastoreName,
)
return getDatastoreResultToKotlin(getDatastorePlain(argument.toJava()).await())
}
/**
* @see [getDatastore].
* @param argument Builder for [com.pulumi.awsnative.iotanalytics.kotlin.inputs.GetDatastorePlainArgs].
* @return null
*/
public suspend fun getDatastore(argument: suspend GetDatastorePlainArgsBuilder.() -> Unit): GetDatastoreResult {
val builder = GetDatastorePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getDatastoreResultToKotlin(getDatastorePlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::IoTAnalytics::Pipeline
* @param argument null
* @return null
*/
public suspend fun getPipeline(argument: GetPipelinePlainArgs): GetPipelineResult =
getPipelineResultToKotlin(getPipelinePlain(argument.toJava()).await())
/**
* @see [getPipeline].
* @param pipelineName The name of the pipeline.
* @return null
*/
public suspend fun getPipeline(pipelineName: String): GetPipelineResult {
val argument = GetPipelinePlainArgs(
pipelineName = pipelineName,
)
return getPipelineResultToKotlin(getPipelinePlain(argument.toJava()).await())
}
/**
* @see [getPipeline].
* @param argument Builder for [com.pulumi.awsnative.iotanalytics.kotlin.inputs.GetPipelinePlainArgs].
* @return null
*/
public suspend fun getPipeline(argument: suspend GetPipelinePlainArgsBuilder.() -> Unit): GetPipelineResult {
val builder = GetPipelinePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getPipelineResultToKotlin(getPipelinePlain(builtArgument.toJava()).await())
}
}