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