com.pulumi.awsnative.emrserverless.kotlin.EmrserverlessFunctions.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.emrserverless.kotlin
import com.pulumi.awsnative.emrserverless.EmrserverlessFunctions.getApplicationPlain
import com.pulumi.awsnative.emrserverless.kotlin.inputs.GetApplicationPlainArgs
import com.pulumi.awsnative.emrserverless.kotlin.inputs.GetApplicationPlainArgsBuilder
import com.pulumi.awsnative.emrserverless.kotlin.outputs.GetApplicationResult
import com.pulumi.awsnative.emrserverless.kotlin.outputs.GetApplicationResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
public object EmrserverlessFunctions {
/**
* Resource schema for AWS::EMRServerless::Application Type
* @param argument null
* @return null
*/
public suspend fun getApplication(argument: GetApplicationPlainArgs): GetApplicationResult =
toKotlin(getApplicationPlain(argument.toJava()).await())
/**
* @see [getApplication].
* @param applicationId The ID of the EMR Serverless Application.
* @return null
*/
public suspend fun getApplication(applicationId: String): GetApplicationResult {
val argument = GetApplicationPlainArgs(
applicationId = applicationId,
)
return toKotlin(getApplicationPlain(argument.toJava()).await())
}
/**
* @see [getApplication].
* @param argument Builder for [com.pulumi.awsnative.emrserverless.kotlin.inputs.GetApplicationPlainArgs].
* @return null
*/
public suspend fun getApplication(argument: suspend GetApplicationPlainArgsBuilder.() -> Unit): GetApplicationResult {
val builder = GetApplicationPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return toKotlin(getApplicationPlain(builtArgument.toJava()).await())
}
}