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

com.pulumi.awsnative.rum.kotlin.RumFunctions.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.rum.kotlin

import com.pulumi.awsnative.rum.RumFunctions.getAppMonitorPlain
import com.pulumi.awsnative.rum.kotlin.inputs.GetAppMonitorPlainArgs
import com.pulumi.awsnative.rum.kotlin.inputs.GetAppMonitorPlainArgsBuilder
import com.pulumi.awsnative.rum.kotlin.outputs.GetAppMonitorResult
import com.pulumi.awsnative.rum.kotlin.outputs.GetAppMonitorResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object RumFunctions {
    /**
     * Resource Type definition for AWS::RUM::AppMonitor
     * @param argument null
     * @return null
     */
    public suspend fun getAppMonitor(argument: GetAppMonitorPlainArgs): GetAppMonitorResult =
        toKotlin(getAppMonitorPlain(argument.toJava()).await())

    /**
     * @see [getAppMonitor].
     * @param name A name for the app monitor
     * @return null
     */
    public suspend fun getAppMonitor(name: String): GetAppMonitorResult {
        val argument = GetAppMonitorPlainArgs(
            name = name,
        )
        return toKotlin(getAppMonitorPlain(argument.toJava()).await())
    }

    /**
     * @see [getAppMonitor].
     * @param argument Builder for [com.pulumi.awsnative.rum.kotlin.inputs.GetAppMonitorPlainArgs].
     * @return null
     */
    public suspend fun getAppMonitor(argument: suspend GetAppMonitorPlainArgsBuilder.() -> Unit): GetAppMonitorResult {
        val builder = GetAppMonitorPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getAppMonitorPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy