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