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

com.pulumi.awsnative.internetmonitor.kotlin.InternetmonitorFunctions.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.internetmonitor.kotlin

import com.pulumi.awsnative.internetmonitor.InternetmonitorFunctions.getMonitorPlain
import com.pulumi.awsnative.internetmonitor.kotlin.inputs.GetMonitorPlainArgs
import com.pulumi.awsnative.internetmonitor.kotlin.inputs.GetMonitorPlainArgsBuilder
import com.pulumi.awsnative.internetmonitor.kotlin.outputs.GetMonitorResult
import com.pulumi.awsnative.internetmonitor.kotlin.outputs.GetMonitorResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object InternetmonitorFunctions {
    /**
     * Represents a monitor, which defines the monitoring boundaries for measurements that Internet Monitor publishes information about for an application
     * @param argument null
     * @return null
     */
    public suspend fun getMonitor(argument: GetMonitorPlainArgs): GetMonitorResult =
        toKotlin(getMonitorPlain(argument.toJava()).await())

    /**
     * @see [getMonitor].
     * @param monitorName The name of the monitor. A monitor name can contain only alphanumeric characters, dashes (-), periods (.), and underscores (_).
     * @return null
     */
    public suspend fun getMonitor(monitorName: String): GetMonitorResult {
        val argument = GetMonitorPlainArgs(
            monitorName = monitorName,
        )
        return toKotlin(getMonitorPlain(argument.toJava()).await())
    }

    /**
     * @see [getMonitor].
     * @param argument Builder for [com.pulumi.awsnative.internetmonitor.kotlin.inputs.GetMonitorPlainArgs].
     * @return null
     */
    public suspend fun getMonitor(argument: suspend GetMonitorPlainArgsBuilder.() -> Unit): GetMonitorResult {
        val builder = GetMonitorPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getMonitorPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy