com.pulumi.awsnative.oam.kotlin.OamFunctions.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.oam.kotlin
import com.pulumi.awsnative.oam.OamFunctions.getLinkPlain
import com.pulumi.awsnative.oam.OamFunctions.getSinkPlain
import com.pulumi.awsnative.oam.kotlin.inputs.GetLinkPlainArgs
import com.pulumi.awsnative.oam.kotlin.inputs.GetLinkPlainArgsBuilder
import com.pulumi.awsnative.oam.kotlin.inputs.GetSinkPlainArgs
import com.pulumi.awsnative.oam.kotlin.inputs.GetSinkPlainArgsBuilder
import com.pulumi.awsnative.oam.kotlin.outputs.GetLinkResult
import com.pulumi.awsnative.oam.kotlin.outputs.GetSinkResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.oam.kotlin.outputs.GetLinkResult.Companion.toKotlin as getLinkResultToKotlin
import com.pulumi.awsnative.oam.kotlin.outputs.GetSinkResult.Companion.toKotlin as getSinkResultToKotlin
public object OamFunctions {
/**
* Definition of AWS::Oam::Link Resource Type
* @param argument null
* @return null
*/
public suspend fun getLink(argument: GetLinkPlainArgs): GetLinkResult =
getLinkResultToKotlin(getLinkPlain(argument.toJava()).await())
/**
* @see [getLink].
* @param arn The ARN of the link. For example, `arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789`
* @return null
*/
public suspend fun getLink(arn: String): GetLinkResult {
val argument = GetLinkPlainArgs(
arn = arn,
)
return getLinkResultToKotlin(getLinkPlain(argument.toJava()).await())
}
/**
* @see [getLink].
* @param argument Builder for [com.pulumi.awsnative.oam.kotlin.inputs.GetLinkPlainArgs].
* @return null
*/
public suspend fun getLink(argument: suspend GetLinkPlainArgsBuilder.() -> Unit): GetLinkResult {
val builder = GetLinkPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getLinkResultToKotlin(getLinkPlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::Oam::Sink
* @param argument null
* @return null
*/
public suspend fun getSink(argument: GetSinkPlainArgs): GetSinkResult =
getSinkResultToKotlin(getSinkPlain(argument.toJava()).await())
/**
* @see [getSink].
* @param arn The Amazon resource name (ARN) of the ObservabilityAccessManager Sink
* @return null
*/
public suspend fun getSink(arn: String): GetSinkResult {
val argument = GetSinkPlainArgs(
arn = arn,
)
return getSinkResultToKotlin(getSinkPlain(argument.toJava()).await())
}
/**
* @see [getSink].
* @param argument Builder for [com.pulumi.awsnative.oam.kotlin.inputs.GetSinkPlainArgs].
* @return null
*/
public suspend fun getSink(argument: suspend GetSinkPlainArgsBuilder.() -> Unit): GetSinkResult {
val builder = GetSinkPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getSinkResultToKotlin(getSinkPlain(builtArgument.toJava()).await())
}
}