
com.pulumi.awsnative.licensemanager.kotlin.LicensemanagerFunctions.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.licensemanager.kotlin
import com.pulumi.awsnative.licensemanager.LicensemanagerFunctions.getGrantPlain
import com.pulumi.awsnative.licensemanager.LicensemanagerFunctions.getLicensePlain
import com.pulumi.awsnative.licensemanager.kotlin.inputs.GetGrantPlainArgs
import com.pulumi.awsnative.licensemanager.kotlin.inputs.GetGrantPlainArgsBuilder
import com.pulumi.awsnative.licensemanager.kotlin.inputs.GetLicensePlainArgs
import com.pulumi.awsnative.licensemanager.kotlin.inputs.GetLicensePlainArgsBuilder
import com.pulumi.awsnative.licensemanager.kotlin.outputs.GetGrantResult
import com.pulumi.awsnative.licensemanager.kotlin.outputs.GetLicenseResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.licensemanager.kotlin.outputs.GetGrantResult.Companion.toKotlin as getGrantResultToKotlin
import com.pulumi.awsnative.licensemanager.kotlin.outputs.GetLicenseResult.Companion.toKotlin as getLicenseResultToKotlin
public object LicensemanagerFunctions {
/**
* An example resource schema demonstrating some basic constructs and validation rules.
* @param argument null
* @return null
*/
public suspend fun getGrant(argument: GetGrantPlainArgs): GetGrantResult =
getGrantResultToKotlin(getGrantPlain(argument.toJava()).await())
/**
* @see [getGrant].
* @param grantArn Arn of the grant.
* @return null
*/
public suspend fun getGrant(grantArn: String): GetGrantResult {
val argument = GetGrantPlainArgs(
grantArn = grantArn,
)
return getGrantResultToKotlin(getGrantPlain(argument.toJava()).await())
}
/**
* @see [getGrant].
* @param argument Builder for [com.pulumi.awsnative.licensemanager.kotlin.inputs.GetGrantPlainArgs].
* @return null
*/
public suspend fun getGrant(argument: suspend GetGrantPlainArgsBuilder.() -> Unit): GetGrantResult {
val builder = GetGrantPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getGrantResultToKotlin(getGrantPlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::LicenseManager::License
* @param argument null
* @return null
*/
public suspend fun getLicense(argument: GetLicensePlainArgs): GetLicenseResult =
getLicenseResultToKotlin(getLicensePlain(argument.toJava()).await())
/**
* @see [getLicense].
* @param licenseArn Amazon Resource Name is a unique name for each resource.
* @return null
*/
public suspend fun getLicense(licenseArn: String): GetLicenseResult {
val argument = GetLicensePlainArgs(
licenseArn = licenseArn,
)
return getLicenseResultToKotlin(getLicensePlain(argument.toJava()).await())
}
/**
* @see [getLicense].
* @param argument Builder for [com.pulumi.awsnative.licensemanager.kotlin.inputs.GetLicensePlainArgs].
* @return null
*/
public suspend fun getLicense(argument: suspend GetLicensePlainArgsBuilder.() -> Unit): GetLicenseResult {
val builder = GetLicensePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getLicenseResultToKotlin(getLicensePlain(builtArgument.toJava()).await())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy