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

com.pulumi.awsnative.ram.kotlin.RamFunctions.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.ram.kotlin

import com.pulumi.awsnative.ram.RamFunctions.getPermissionPlain
import com.pulumi.awsnative.ram.kotlin.inputs.GetPermissionPlainArgs
import com.pulumi.awsnative.ram.kotlin.inputs.GetPermissionPlainArgsBuilder
import com.pulumi.awsnative.ram.kotlin.outputs.GetPermissionResult
import com.pulumi.awsnative.ram.kotlin.outputs.GetPermissionResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object RamFunctions {
    /**
     * Resource type definition for AWS::RAM::Permission
     * @param argument null
     * @return null
     */
    public suspend fun getPermission(argument: GetPermissionPlainArgs): GetPermissionResult =
        toKotlin(getPermissionPlain(argument.toJava()).await())

    /**
     * @see [getPermission].
     * @param arn The Amazon Resource Name (ARN) of the new permission.
     * @return null
     */
    public suspend fun getPermission(arn: String): GetPermissionResult {
        val argument = GetPermissionPlainArgs(
            arn = arn,
        )
        return toKotlin(getPermissionPlain(argument.toJava()).await())
    }

    /**
     * @see [getPermission].
     * @param argument Builder for [com.pulumi.awsnative.ram.kotlin.inputs.GetPermissionPlainArgs].
     * @return null
     */
    public suspend fun getPermission(argument: suspend GetPermissionPlainArgsBuilder.() -> Unit): GetPermissionResult {
        val builder = GetPermissionPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getPermissionPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy