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

com.pulumi.awsnative.mwaa.kotlin.MwaaFunctions.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.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())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy