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

com.pulumi.awsnative.codebuild.kotlin.CodebuildFunctions.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.codebuild.kotlin

import com.pulumi.awsnative.codebuild.CodebuildFunctions.getFleetPlain
import com.pulumi.awsnative.codebuild.kotlin.inputs.GetFleetPlainArgs
import com.pulumi.awsnative.codebuild.kotlin.inputs.GetFleetPlainArgsBuilder
import com.pulumi.awsnative.codebuild.kotlin.outputs.GetFleetResult
import com.pulumi.awsnative.codebuild.kotlin.outputs.GetFleetResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object CodebuildFunctions {
    /**
     * Resource Type definition for AWS::CodeBuild::Fleet
     * @param argument null
     * @return null
     */
    public suspend fun getFleet(argument: GetFleetPlainArgs): GetFleetResult =
        toKotlin(getFleetPlain(argument.toJava()).await())

    /**
     * @see [getFleet].
     * @param arn The ARN of the compute fleet.
     * @return null
     */
    public suspend fun getFleet(arn: String): GetFleetResult {
        val argument = GetFleetPlainArgs(
            arn = arn,
        )
        return toKotlin(getFleetPlain(argument.toJava()).await())
    }

    /**
     * @see [getFleet].
     * @param argument Builder for [com.pulumi.awsnative.codebuild.kotlin.inputs.GetFleetPlainArgs].
     * @return null
     */
    public suspend fun getFleet(argument: suspend GetFleetPlainArgsBuilder.() -> Unit): GetFleetResult {
        val builder = GetFleetPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getFleetPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy