com.pulumi.awsnative.mwaa.kotlin.MwaaFunctions.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.mwaa.kotlin
import com.pulumi.awsnative.mwaa.MwaaFunctions.getEnvironmentPlain
import com.pulumi.awsnative.mwaa.kotlin.inputs.GetEnvironmentPlainArgs
import com.pulumi.awsnative.mwaa.kotlin.inputs.GetEnvironmentPlainArgsBuilder
import com.pulumi.awsnative.mwaa.kotlin.outputs.GetEnvironmentResult
import com.pulumi.awsnative.mwaa.kotlin.outputs.GetEnvironmentResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
public object MwaaFunctions {
/**
* Resource schema for AWS::MWAA::Environment
* @param argument null
* @return null
*/
public suspend fun getEnvironment(argument: GetEnvironmentPlainArgs): GetEnvironmentResult =
toKotlin(getEnvironmentPlain(argument.toJava()).await())
/**
* @see [getEnvironment].
* @param name The name of your Amazon MWAA environment.
* @return null
*/
public suspend fun getEnvironment(name: String): GetEnvironmentResult {
val argument = GetEnvironmentPlainArgs(
name = name,
)
return toKotlin(getEnvironmentPlain(argument.toJava()).await())
}
/**
* @see [getEnvironment].
* @param argument Builder for [com.pulumi.awsnative.mwaa.kotlin.inputs.GetEnvironmentPlainArgs].
* @return null
*/
public suspend fun getEnvironment(argument: suspend GetEnvironmentPlainArgsBuilder.() -> Unit): GetEnvironmentResult {
val builder = GetEnvironmentPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return toKotlin(getEnvironmentPlain(builtArgument.toJava()).await())
}
}