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

com.pulumi.awsnative.emrserverless.kotlin.EmrserverlessFunctions.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: 0.122.0.0
Show newest version
@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())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy