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

com.pulumi.awsnative.codegurureviewer.kotlin.CodegurureviewerFunctions.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: 0.122.0.0
Show newest version
@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())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy