com.pulumi.awsnative.codeartifact.kotlin.CodeartifactFunctions.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.codeartifact.kotlin
import com.pulumi.awsnative.codeartifact.CodeartifactFunctions.getDomainPlain
import com.pulumi.awsnative.codeartifact.CodeartifactFunctions.getPackageGroupPlain
import com.pulumi.awsnative.codeartifact.CodeartifactFunctions.getRepositoryPlain
import com.pulumi.awsnative.codeartifact.kotlin.inputs.GetDomainPlainArgs
import com.pulumi.awsnative.codeartifact.kotlin.inputs.GetDomainPlainArgsBuilder
import com.pulumi.awsnative.codeartifact.kotlin.inputs.GetPackageGroupPlainArgs
import com.pulumi.awsnative.codeartifact.kotlin.inputs.GetPackageGroupPlainArgsBuilder
import com.pulumi.awsnative.codeartifact.kotlin.inputs.GetRepositoryPlainArgs
import com.pulumi.awsnative.codeartifact.kotlin.inputs.GetRepositoryPlainArgsBuilder
import com.pulumi.awsnative.codeartifact.kotlin.outputs.GetDomainResult
import com.pulumi.awsnative.codeartifact.kotlin.outputs.GetPackageGroupResult
import com.pulumi.awsnative.codeartifact.kotlin.outputs.GetRepositoryResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.codeartifact.kotlin.outputs.GetDomainResult.Companion.toKotlin as getDomainResultToKotlin
import com.pulumi.awsnative.codeartifact.kotlin.outputs.GetPackageGroupResult.Companion.toKotlin as getPackageGroupResultToKotlin
import com.pulumi.awsnative.codeartifact.kotlin.outputs.GetRepositoryResult.Companion.toKotlin as getRepositoryResultToKotlin
public object CodeartifactFunctions {
/**
* The resource schema to create a CodeArtifact domain.
* @param argument null
* @return null
*/
public suspend fun getDomain(argument: GetDomainPlainArgs): GetDomainResult =
getDomainResultToKotlin(getDomainPlain(argument.toJava()).await())
/**
* @see [getDomain].
* @param arn The ARN of the domain.
* @return null
*/
public suspend fun getDomain(arn: String): GetDomainResult {
val argument = GetDomainPlainArgs(
arn = arn,
)
return getDomainResultToKotlin(getDomainPlain(argument.toJava()).await())
}
/**
* @see [getDomain].
* @param argument Builder for [com.pulumi.awsnative.codeartifact.kotlin.inputs.GetDomainPlainArgs].
* @return null
*/
public suspend fun getDomain(argument: suspend GetDomainPlainArgsBuilder.() -> Unit): GetDomainResult {
val builder = GetDomainPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getDomainResultToKotlin(getDomainPlain(builtArgument.toJava()).await())
}
/**
* The resource schema to create a CodeArtifact package group.
* @param argument null
* @return null
*/
public suspend fun getPackageGroup(argument: GetPackageGroupPlainArgs): GetPackageGroupResult =
getPackageGroupResultToKotlin(getPackageGroupPlain(argument.toJava()).await())
/**
* @see [getPackageGroup].
* @param arn The ARN of the package group.
* @return null
*/
public suspend fun getPackageGroup(arn: String): GetPackageGroupResult {
val argument = GetPackageGroupPlainArgs(
arn = arn,
)
return getPackageGroupResultToKotlin(getPackageGroupPlain(argument.toJava()).await())
}
/**
* @see [getPackageGroup].
* @param argument Builder for [com.pulumi.awsnative.codeartifact.kotlin.inputs.GetPackageGroupPlainArgs].
* @return null
*/
public suspend fun getPackageGroup(argument: suspend GetPackageGroupPlainArgsBuilder.() -> Unit): GetPackageGroupResult {
val builder = GetPackageGroupPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getPackageGroupResultToKotlin(getPackageGroupPlain(builtArgument.toJava()).await())
}
/**
* The resource schema to create a CodeArtifact repository.
* @param argument null
* @return null
*/
public suspend fun getRepository(argument: GetRepositoryPlainArgs): GetRepositoryResult =
getRepositoryResultToKotlin(getRepositoryPlain(argument.toJava()).await())
/**
* @see [getRepository].
* @param arn The ARN of the repository.
* @return null
*/
public suspend fun getRepository(arn: String): GetRepositoryResult {
val argument = GetRepositoryPlainArgs(
arn = arn,
)
return getRepositoryResultToKotlin(getRepositoryPlain(argument.toJava()).await())
}
/**
* @see [getRepository].
* @param argument Builder for [com.pulumi.awsnative.codeartifact.kotlin.inputs.GetRepositoryPlainArgs].
* @return null
*/
public suspend fun getRepository(argument: suspend GetRepositoryPlainArgsBuilder.() -> Unit): GetRepositoryResult {
val builder = GetRepositoryPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getRepositoryResultToKotlin(getRepositoryPlain(builtArgument.toJava()).await())
}
}