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

com.pulumi.awsnative.appstream.kotlin.AppstreamFunctions.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.appstream.kotlin

import com.pulumi.awsnative.appstream.AppstreamFunctions.getAppBlockBuilderPlain
import com.pulumi.awsnative.appstream.AppstreamFunctions.getAppBlockPlain
import com.pulumi.awsnative.appstream.AppstreamFunctions.getApplicationPlain
import com.pulumi.awsnative.appstream.AppstreamFunctions.getDirectoryConfigPlain
import com.pulumi.awsnative.appstream.AppstreamFunctions.getEntitlementPlain
import com.pulumi.awsnative.appstream.AppstreamFunctions.getImageBuilderPlain
import com.pulumi.awsnative.appstream.kotlin.inputs.GetAppBlockBuilderPlainArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.GetAppBlockBuilderPlainArgsBuilder
import com.pulumi.awsnative.appstream.kotlin.inputs.GetAppBlockPlainArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.GetAppBlockPlainArgsBuilder
import com.pulumi.awsnative.appstream.kotlin.inputs.GetApplicationPlainArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.GetApplicationPlainArgsBuilder
import com.pulumi.awsnative.appstream.kotlin.inputs.GetDirectoryConfigPlainArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.GetDirectoryConfigPlainArgsBuilder
import com.pulumi.awsnative.appstream.kotlin.inputs.GetEntitlementPlainArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.GetEntitlementPlainArgsBuilder
import com.pulumi.awsnative.appstream.kotlin.inputs.GetImageBuilderPlainArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.GetImageBuilderPlainArgsBuilder
import com.pulumi.awsnative.appstream.kotlin.outputs.GetAppBlockBuilderResult
import com.pulumi.awsnative.appstream.kotlin.outputs.GetAppBlockResult
import com.pulumi.awsnative.appstream.kotlin.outputs.GetApplicationResult
import com.pulumi.awsnative.appstream.kotlin.outputs.GetDirectoryConfigResult
import com.pulumi.awsnative.appstream.kotlin.outputs.GetEntitlementResult
import com.pulumi.awsnative.appstream.kotlin.outputs.GetImageBuilderResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.appstream.kotlin.outputs.GetAppBlockBuilderResult.Companion.toKotlin as getAppBlockBuilderResultToKotlin
import com.pulumi.awsnative.appstream.kotlin.outputs.GetAppBlockResult.Companion.toKotlin as getAppBlockResultToKotlin
import com.pulumi.awsnative.appstream.kotlin.outputs.GetApplicationResult.Companion.toKotlin as getApplicationResultToKotlin
import com.pulumi.awsnative.appstream.kotlin.outputs.GetDirectoryConfigResult.Companion.toKotlin as getDirectoryConfigResultToKotlin
import com.pulumi.awsnative.appstream.kotlin.outputs.GetEntitlementResult.Companion.toKotlin as getEntitlementResultToKotlin
import com.pulumi.awsnative.appstream.kotlin.outputs.GetImageBuilderResult.Companion.toKotlin as getImageBuilderResultToKotlin

public object AppstreamFunctions {
    /**
     * Resource Type definition for AWS::AppStream::AppBlock
     * @param argument null
     * @return null
     */
    public suspend fun getAppBlock(argument: GetAppBlockPlainArgs): GetAppBlockResult =
        getAppBlockResultToKotlin(getAppBlockPlain(argument.toJava()).await())

    /**
     * @see [getAppBlock].
     * @param arn The ARN of the app block.
     * @return null
     */
    public suspend fun getAppBlock(arn: String): GetAppBlockResult {
        val argument = GetAppBlockPlainArgs(
            arn = arn,
        )
        return getAppBlockResultToKotlin(getAppBlockPlain(argument.toJava()).await())
    }

    /**
     * @see [getAppBlock].
     * @param argument Builder for [com.pulumi.awsnative.appstream.kotlin.inputs.GetAppBlockPlainArgs].
     * @return null
     */
    public suspend fun getAppBlock(argument: suspend GetAppBlockPlainArgsBuilder.() -> Unit): GetAppBlockResult {
        val builder = GetAppBlockPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getAppBlockResultToKotlin(getAppBlockPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::AppStream::AppBlockBuilder.
     * @param argument null
     * @return null
     */
    public suspend fun getAppBlockBuilder(argument: GetAppBlockBuilderPlainArgs): GetAppBlockBuilderResult =
        getAppBlockBuilderResultToKotlin(getAppBlockBuilderPlain(argument.toJava()).await())

    /**
     * @see [getAppBlockBuilder].
     * @param name The name of the app block builder.
     * @return null
     */
    public suspend fun getAppBlockBuilder(name: String): GetAppBlockBuilderResult {
        val argument = GetAppBlockBuilderPlainArgs(
            name = name,
        )
        return getAppBlockBuilderResultToKotlin(getAppBlockBuilderPlain(argument.toJava()).await())
    }

    /**
     * @see [getAppBlockBuilder].
     * @param argument Builder for [com.pulumi.awsnative.appstream.kotlin.inputs.GetAppBlockBuilderPlainArgs].
     * @return null
     */
    public suspend fun getAppBlockBuilder(argument: suspend GetAppBlockBuilderPlainArgsBuilder.() -> Unit): GetAppBlockBuilderResult {
        val builder = GetAppBlockBuilderPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getAppBlockBuilderResultToKotlin(getAppBlockBuilderPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::AppStream::Application
     * @param argument null
     * @return null
     */
    public suspend fun getApplication(argument: GetApplicationPlainArgs): GetApplicationResult =
        getApplicationResultToKotlin(getApplicationPlain(argument.toJava()).await())

    /**
     * @see [getApplication].
     * @param arn The ARN of the application.
     * @return null
     */
    public suspend fun getApplication(arn: String): GetApplicationResult {
        val argument = GetApplicationPlainArgs(
            arn = arn,
        )
        return getApplicationResultToKotlin(getApplicationPlain(argument.toJava()).await())
    }

    /**
     * @see [getApplication].
     * @param argument Builder for [com.pulumi.awsnative.appstream.kotlin.inputs.GetApplicationPlainArgs].
     * @return null
     */
    public suspend fun getApplication(argument: suspend GetApplicationPlainArgsBuilder.() -> Unit): GetApplicationResult {
        val builder = GetApplicationPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getApplicationResultToKotlin(getApplicationPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::AppStream::DirectoryConfig
     * @param argument null
     * @return null
     */
    public suspend fun getDirectoryConfig(argument: GetDirectoryConfigPlainArgs): GetDirectoryConfigResult =
        getDirectoryConfigResultToKotlin(getDirectoryConfigPlain(argument.toJava()).await())

    /**
     * @see [getDirectoryConfig].
     * @param directoryName The fully qualified name of the directory (for example, corp.example.com).
     * @return null
     */
    public suspend fun getDirectoryConfig(directoryName: String): GetDirectoryConfigResult {
        val argument = GetDirectoryConfigPlainArgs(
            directoryName = directoryName,
        )
        return getDirectoryConfigResultToKotlin(getDirectoryConfigPlain(argument.toJava()).await())
    }

    /**
     * @see [getDirectoryConfig].
     * @param argument Builder for [com.pulumi.awsnative.appstream.kotlin.inputs.GetDirectoryConfigPlainArgs].
     * @return null
     */
    public suspend fun getDirectoryConfig(argument: suspend GetDirectoryConfigPlainArgsBuilder.() -> Unit): GetDirectoryConfigResult {
        val builder = GetDirectoryConfigPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getDirectoryConfigResultToKotlin(getDirectoryConfigPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::AppStream::Entitlement
     * @param argument null
     * @return null
     */
    public suspend fun getEntitlement(argument: GetEntitlementPlainArgs): GetEntitlementResult =
        getEntitlementResultToKotlin(getEntitlementPlain(argument.toJava()).await())

    /**
     * @see [getEntitlement].
     * @param name The name of the entitlement.
     * @param stackName The name of the stack.
     * @return null
     */
    public suspend fun getEntitlement(name: String, stackName: String): GetEntitlementResult {
        val argument = GetEntitlementPlainArgs(
            name = name,
            stackName = stackName,
        )
        return getEntitlementResultToKotlin(getEntitlementPlain(argument.toJava()).await())
    }

    /**
     * @see [getEntitlement].
     * @param argument Builder for [com.pulumi.awsnative.appstream.kotlin.inputs.GetEntitlementPlainArgs].
     * @return null
     */
    public suspend fun getEntitlement(argument: suspend GetEntitlementPlainArgsBuilder.() -> Unit): GetEntitlementResult {
        val builder = GetEntitlementPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getEntitlementResultToKotlin(getEntitlementPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::AppStream::ImageBuilder
     * @param argument null
     * @return null
     */
    public suspend fun getImageBuilder(argument: GetImageBuilderPlainArgs): GetImageBuilderResult =
        getImageBuilderResultToKotlin(getImageBuilderPlain(argument.toJava()).await())

    /**
     * @see [getImageBuilder].
     * @param name A unique name for the image builder.
     * @return null
     */
    public suspend fun getImageBuilder(name: String): GetImageBuilderResult {
        val argument = GetImageBuilderPlainArgs(
            name = name,
        )
        return getImageBuilderResultToKotlin(getImageBuilderPlain(argument.toJava()).await())
    }

    /**
     * @see [getImageBuilder].
     * @param argument Builder for [com.pulumi.awsnative.appstream.kotlin.inputs.GetImageBuilderPlainArgs].
     * @return null
     */
    public suspend fun getImageBuilder(argument: suspend GetImageBuilderPlainArgsBuilder.() -> Unit): GetImageBuilderResult {
        val builder = GetImageBuilderPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getImageBuilderResultToKotlin(getImageBuilderPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy