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

com.pulumi.awsnative.grafana.kotlin.GrafanaFunctions.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.grafana.kotlin

import com.pulumi.awsnative.grafana.GrafanaFunctions.getWorkspacePlain
import com.pulumi.awsnative.grafana.kotlin.inputs.GetWorkspacePlainArgs
import com.pulumi.awsnative.grafana.kotlin.inputs.GetWorkspacePlainArgsBuilder
import com.pulumi.awsnative.grafana.kotlin.outputs.GetWorkspaceResult
import com.pulumi.awsnative.grafana.kotlin.outputs.GetWorkspaceResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object GrafanaFunctions {
    /**
     * Definition of AWS::Grafana::Workspace Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getWorkspace(argument: GetWorkspacePlainArgs): GetWorkspaceResult =
        toKotlin(getWorkspacePlain(argument.toJava()).await())

    /**
     * @see [getWorkspace].
     * @param id The id that uniquely identifies a Grafana workspace.
     * @return null
     */
    public suspend fun getWorkspace(id: String): GetWorkspaceResult {
        val argument = GetWorkspacePlainArgs(
            id = id,
        )
        return toKotlin(getWorkspacePlain(argument.toJava()).await())
    }

    /**
     * @see [getWorkspace].
     * @param argument Builder for [com.pulumi.awsnative.grafana.kotlin.inputs.GetWorkspacePlainArgs].
     * @return null
     */
    public suspend fun getWorkspace(argument: suspend GetWorkspacePlainArgsBuilder.() -> Unit): GetWorkspaceResult {
        val builder = GetWorkspacePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getWorkspacePlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy