com.pulumi.awsnative.codegurureviewer.kotlin.CodegurureviewerFunctions.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.codegurureviewer.kotlin
import com.pulumi.awsnative.codegurureviewer.CodegurureviewerFunctions.getRepositoryAssociationPlain
import com.pulumi.awsnative.codegurureviewer.kotlin.inputs.GetRepositoryAssociationPlainArgs
import com.pulumi.awsnative.codegurureviewer.kotlin.inputs.GetRepositoryAssociationPlainArgsBuilder
import com.pulumi.awsnative.codegurureviewer.kotlin.outputs.GetRepositoryAssociationResult
import com.pulumi.awsnative.codegurureviewer.kotlin.outputs.GetRepositoryAssociationResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
public object CodegurureviewerFunctions {
/**
* This resource schema represents the RepositoryAssociation resource in the Amazon CodeGuru Reviewer service.
* @param argument null
* @return null
*/
public suspend fun getRepositoryAssociation(argument: GetRepositoryAssociationPlainArgs): GetRepositoryAssociationResult =
toKotlin(getRepositoryAssociationPlain(argument.toJava()).await())
/**
* @see [getRepositoryAssociation].
* @param associationArn The Amazon Resource Name (ARN) of the repository association.
* @return null
*/
public suspend fun getRepositoryAssociation(associationArn: String): GetRepositoryAssociationResult {
val argument = GetRepositoryAssociationPlainArgs(
associationArn = associationArn,
)
return toKotlin(getRepositoryAssociationPlain(argument.toJava()).await())
}
/**
* @see [getRepositoryAssociation].
* @param argument Builder for [com.pulumi.awsnative.codegurureviewer.kotlin.inputs.GetRepositoryAssociationPlainArgs].
* @return null
*/
public suspend fun getRepositoryAssociation(argument: suspend GetRepositoryAssociationPlainArgsBuilder.() -> Unit): GetRepositoryAssociationResult {
val builder = GetRepositoryAssociationPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return toKotlin(getRepositoryAssociationPlain(builtArgument.toJava()).await())
}
}