com.pulumi.awsnative.kinesis.kotlin.KinesisFunctions.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.kinesis.kotlin
import com.pulumi.awsnative.kinesis.KinesisFunctions.getStreamPlain
import com.pulumi.awsnative.kinesis.kotlin.inputs.GetStreamPlainArgs
import com.pulumi.awsnative.kinesis.kotlin.inputs.GetStreamPlainArgsBuilder
import com.pulumi.awsnative.kinesis.kotlin.outputs.GetStreamResult
import com.pulumi.awsnative.kinesis.kotlin.outputs.GetStreamResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
public object KinesisFunctions {
/**
* Resource Type definition for AWS::Kinesis::Stream
* @param argument null
* @return null
*/
public suspend fun getStream(argument: GetStreamPlainArgs): GetStreamResult =
toKotlin(getStreamPlain(argument.toJava()).await())
/**
* @see [getStream].
* @param name The name of the Kinesis stream.
* @return null
*/
public suspend fun getStream(name: String): GetStreamResult {
val argument = GetStreamPlainArgs(
name = name,
)
return toKotlin(getStreamPlain(argument.toJava()).await())
}
/**
* @see [getStream].
* @param argument Builder for [com.pulumi.awsnative.kinesis.kotlin.inputs.GetStreamPlainArgs].
* @return null
*/
public suspend fun getStream(argument: suspend GetStreamPlainArgsBuilder.() -> Unit): GetStreamResult {
val builder = GetStreamPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return toKotlin(getStreamPlain(builtArgument.toJava()).await())
}
}