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

com.pulumi.awsnative.kinesis.kotlin.KinesisFunctions.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.11.0.0
Show newest version
@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())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy