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

com.pulumi.awsnative.greengrassv2.kotlin.Greengrassv2Functions.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.greengrassv2.kotlin

import com.pulumi.awsnative.greengrassv2.Greengrassv2Functions.getComponentVersionPlain
import com.pulumi.awsnative.greengrassv2.Greengrassv2Functions.getDeploymentPlain
import com.pulumi.awsnative.greengrassv2.kotlin.inputs.GetComponentVersionPlainArgs
import com.pulumi.awsnative.greengrassv2.kotlin.inputs.GetComponentVersionPlainArgsBuilder
import com.pulumi.awsnative.greengrassv2.kotlin.inputs.GetDeploymentPlainArgs
import com.pulumi.awsnative.greengrassv2.kotlin.inputs.GetDeploymentPlainArgsBuilder
import com.pulumi.awsnative.greengrassv2.kotlin.outputs.GetComponentVersionResult
import com.pulumi.awsnative.greengrassv2.kotlin.outputs.GetDeploymentResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.greengrassv2.kotlin.outputs.GetComponentVersionResult.Companion.toKotlin as getComponentVersionResultToKotlin
import com.pulumi.awsnative.greengrassv2.kotlin.outputs.GetDeploymentResult.Companion.toKotlin as getDeploymentResultToKotlin

public object Greengrassv2Functions {
    /**
     * Resource for Greengrass component version.
     * @param argument null
     * @return null
     */
    public suspend fun getComponentVersion(argument: GetComponentVersionPlainArgs): GetComponentVersionResult =
        getComponentVersionResultToKotlin(getComponentVersionPlain(argument.toJava()).await())

    /**
     * @see [getComponentVersion].
     * @param arn The ARN of the component version.
     * @return null
     */
    public suspend fun getComponentVersion(arn: String): GetComponentVersionResult {
        val argument = GetComponentVersionPlainArgs(
            arn = arn,
        )
        return getComponentVersionResultToKotlin(getComponentVersionPlain(argument.toJava()).await())
    }

    /**
     * @see [getComponentVersion].
     * @param argument Builder for [com.pulumi.awsnative.greengrassv2.kotlin.inputs.GetComponentVersionPlainArgs].
     * @return null
     */
    public suspend fun getComponentVersion(argument: suspend GetComponentVersionPlainArgsBuilder.() -> Unit): GetComponentVersionResult {
        val builder = GetComponentVersionPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getComponentVersionResultToKotlin(getComponentVersionPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource for Greengrass V2 deployment.
     * @param argument null
     * @return null
     */
    public suspend fun getDeployment(argument: GetDeploymentPlainArgs): GetDeploymentResult =
        getDeploymentResultToKotlin(getDeploymentPlain(argument.toJava()).await())

    /**
     * @see [getDeployment].
     * @param deploymentId The ID of the deployment.
     * @return null
     */
    public suspend fun getDeployment(deploymentId: String): GetDeploymentResult {
        val argument = GetDeploymentPlainArgs(
            deploymentId = deploymentId,
        )
        return getDeploymentResultToKotlin(getDeploymentPlain(argument.toJava()).await())
    }

    /**
     * @see [getDeployment].
     * @param argument Builder for [com.pulumi.awsnative.greengrassv2.kotlin.inputs.GetDeploymentPlainArgs].
     * @return null
     */
    public suspend fun getDeployment(argument: suspend GetDeploymentPlainArgsBuilder.() -> Unit): GetDeploymentResult {
        val builder = GetDeploymentPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getDeploymentResultToKotlin(getDeploymentPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy