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