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

com.pulumi.awsnative.workspaces.kotlin.WorkspacesFunctions.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.workspaces.kotlin

import com.pulumi.awsnative.workspaces.WorkspacesFunctions.getConnectionAliasPlain
import com.pulumi.awsnative.workspaces.WorkspacesFunctions.getWorkspacesPoolPlain
import com.pulumi.awsnative.workspaces.kotlin.inputs.GetConnectionAliasPlainArgs
import com.pulumi.awsnative.workspaces.kotlin.inputs.GetConnectionAliasPlainArgsBuilder
import com.pulumi.awsnative.workspaces.kotlin.inputs.GetWorkspacesPoolPlainArgs
import com.pulumi.awsnative.workspaces.kotlin.inputs.GetWorkspacesPoolPlainArgsBuilder
import com.pulumi.awsnative.workspaces.kotlin.outputs.GetConnectionAliasResult
import com.pulumi.awsnative.workspaces.kotlin.outputs.GetWorkspacesPoolResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.workspaces.kotlin.outputs.GetConnectionAliasResult.Companion.toKotlin as getConnectionAliasResultToKotlin
import com.pulumi.awsnative.workspaces.kotlin.outputs.GetWorkspacesPoolResult.Companion.toKotlin as getWorkspacesPoolResultToKotlin

public object WorkspacesFunctions {
    /**
     * Resource Type definition for AWS::WorkSpaces::ConnectionAlias
     * @param argument null
     * @return null
     */
    public suspend fun getConnectionAlias(argument: GetConnectionAliasPlainArgs): GetConnectionAliasResult =
        getConnectionAliasResultToKotlin(getConnectionAliasPlain(argument.toJava()).await())

    /**
     * @see [getConnectionAlias].
     * @param aliasId The identifier of the connection alias, returned as a string.
     * @return null
     */
    public suspend fun getConnectionAlias(aliasId: String): GetConnectionAliasResult {
        val argument = GetConnectionAliasPlainArgs(
            aliasId = aliasId,
        )
        return getConnectionAliasResultToKotlin(getConnectionAliasPlain(argument.toJava()).await())
    }

    /**
     * @see [getConnectionAlias].
     * @param argument Builder for [com.pulumi.awsnative.workspaces.kotlin.inputs.GetConnectionAliasPlainArgs].
     * @return null
     */
    public suspend fun getConnectionAlias(argument: suspend GetConnectionAliasPlainArgsBuilder.() -> Unit): GetConnectionAliasResult {
        val builder = GetConnectionAliasPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getConnectionAliasResultToKotlin(getConnectionAliasPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::WorkSpaces::WorkspacesPool
     * @param argument null
     * @return null
     */
    public suspend fun getWorkspacesPool(argument: GetWorkspacesPoolPlainArgs): GetWorkspacesPoolResult =
        getWorkspacesPoolResultToKotlin(getWorkspacesPoolPlain(argument.toJava()).await())

    /**
     * @see [getWorkspacesPool].
     * @param poolId The identifier of the pool.
     * @return null
     */
    public suspend fun getWorkspacesPool(poolId: String): GetWorkspacesPoolResult {
        val argument = GetWorkspacesPoolPlainArgs(
            poolId = poolId,
        )
        return getWorkspacesPoolResultToKotlin(getWorkspacesPoolPlain(argument.toJava()).await())
    }

    /**
     * @see [getWorkspacesPool].
     * @param argument Builder for [com.pulumi.awsnative.workspaces.kotlin.inputs.GetWorkspacesPoolPlainArgs].
     * @return null
     */
    public suspend fun getWorkspacesPool(argument: suspend GetWorkspacesPoolPlainArgsBuilder.() -> Unit): GetWorkspacesPoolResult {
        val builder = GetWorkspacesPoolPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getWorkspacesPoolResultToKotlin(getWorkspacesPoolPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy