com.pulumi.awsnative.medialive.kotlin.MedialiveFunctions.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.medialive.kotlin
import com.pulumi.awsnative.medialive.MedialiveFunctions.getMultiplexPlain
import com.pulumi.awsnative.medialive.MedialiveFunctions.getMultiplexprogramPlain
import com.pulumi.awsnative.medialive.kotlin.inputs.GetMultiplexPlainArgs
import com.pulumi.awsnative.medialive.kotlin.inputs.GetMultiplexPlainArgsBuilder
import com.pulumi.awsnative.medialive.kotlin.inputs.GetMultiplexprogramPlainArgs
import com.pulumi.awsnative.medialive.kotlin.inputs.GetMultiplexprogramPlainArgsBuilder
import com.pulumi.awsnative.medialive.kotlin.outputs.GetMultiplexResult
import com.pulumi.awsnative.medialive.kotlin.outputs.GetMultiplexprogramResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.medialive.kotlin.outputs.GetMultiplexResult.Companion.toKotlin as getMultiplexResultToKotlin
import com.pulumi.awsnative.medialive.kotlin.outputs.GetMultiplexprogramResult.Companion.toKotlin as getMultiplexprogramResultToKotlin
public object MedialiveFunctions {
/**
* Resource schema for AWS::MediaLive::Multiplex
* @param argument null
* @return null
*/
public suspend fun getMultiplex(argument: GetMultiplexPlainArgs): GetMultiplexResult =
getMultiplexResultToKotlin(getMultiplexPlain(argument.toJava()).await())
/**
* @see [getMultiplex].
* @param id The unique id of the multiplex.
* @return null
*/
public suspend fun getMultiplex(id: String): GetMultiplexResult {
val argument = GetMultiplexPlainArgs(
id = id,
)
return getMultiplexResultToKotlin(getMultiplexPlain(argument.toJava()).await())
}
/**
* @see [getMultiplex].
* @param argument Builder for [com.pulumi.awsnative.medialive.kotlin.inputs.GetMultiplexPlainArgs].
* @return null
*/
public suspend fun getMultiplex(argument: suspend GetMultiplexPlainArgsBuilder.() -> Unit): GetMultiplexResult {
val builder = GetMultiplexPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getMultiplexResultToKotlin(getMultiplexPlain(builtArgument.toJava()).await())
}
/**
* Resource schema for AWS::MediaLive::Multiplexprogram
* @param argument null
* @return null
*/
public suspend fun getMultiplexprogram(argument: GetMultiplexprogramPlainArgs): GetMultiplexprogramResult =
getMultiplexprogramResultToKotlin(getMultiplexprogramPlain(argument.toJava()).await())
/**
* @see [getMultiplexprogram].
* @param multiplexId The ID of the multiplex that the program belongs to.
* @param programName The name of the multiplex program.
* @return null
*/
public suspend fun getMultiplexprogram(multiplexId: String, programName: String): GetMultiplexprogramResult {
val argument = GetMultiplexprogramPlainArgs(
multiplexId = multiplexId,
programName = programName,
)
return getMultiplexprogramResultToKotlin(getMultiplexprogramPlain(argument.toJava()).await())
}
/**
* @see [getMultiplexprogram].
* @param argument Builder for [com.pulumi.awsnative.medialive.kotlin.inputs.GetMultiplexprogramPlainArgs].
* @return null
*/
public suspend fun getMultiplexprogram(argument: suspend GetMultiplexprogramPlainArgsBuilder.() -> Unit): GetMultiplexprogramResult {
val builder = GetMultiplexprogramPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getMultiplexprogramResultToKotlin(getMultiplexprogramPlain(builtArgument.toJava()).await())
}
}