
com.pulumi.awsnative.lookoutmetrics.kotlin.LookoutmetricsFunctions.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.lookoutmetrics.kotlin
import com.pulumi.awsnative.lookoutmetrics.LookoutmetricsFunctions.getAlertPlain
import com.pulumi.awsnative.lookoutmetrics.LookoutmetricsFunctions.getAnomalyDetectorPlain
import com.pulumi.awsnative.lookoutmetrics.kotlin.inputs.GetAlertPlainArgs
import com.pulumi.awsnative.lookoutmetrics.kotlin.inputs.GetAlertPlainArgsBuilder
import com.pulumi.awsnative.lookoutmetrics.kotlin.inputs.GetAnomalyDetectorPlainArgs
import com.pulumi.awsnative.lookoutmetrics.kotlin.inputs.GetAnomalyDetectorPlainArgsBuilder
import com.pulumi.awsnative.lookoutmetrics.kotlin.outputs.GetAlertResult
import com.pulumi.awsnative.lookoutmetrics.kotlin.outputs.GetAnomalyDetectorResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.lookoutmetrics.kotlin.outputs.GetAlertResult.Companion.toKotlin as getAlertResultToKotlin
import com.pulumi.awsnative.lookoutmetrics.kotlin.outputs.GetAnomalyDetectorResult.Companion.toKotlin as getAnomalyDetectorResultToKotlin
public object LookoutmetricsFunctions {
/**
* Resource Type definition for AWS::LookoutMetrics::Alert
* @param argument null
* @return null
*/
public suspend fun getAlert(argument: GetAlertPlainArgs): GetAlertResult =
getAlertResultToKotlin(getAlertPlain(argument.toJava()).await())
/**
* @see [getAlert].
* @param arn ARN assigned to the alert.
* @return null
*/
public suspend fun getAlert(arn: String): GetAlertResult {
val argument = GetAlertPlainArgs(
arn = arn,
)
return getAlertResultToKotlin(getAlertPlain(argument.toJava()).await())
}
/**
* @see [getAlert].
* @param argument Builder for [com.pulumi.awsnative.lookoutmetrics.kotlin.inputs.GetAlertPlainArgs].
* @return null
*/
public suspend fun getAlert(argument: suspend GetAlertPlainArgsBuilder.() -> Unit): GetAlertResult {
val builder = GetAlertPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getAlertResultToKotlin(getAlertPlain(builtArgument.toJava()).await())
}
/**
* An Amazon Lookout for Metrics Detector
* @param argument null
* @return null
*/
public suspend fun getAnomalyDetector(argument: GetAnomalyDetectorPlainArgs): GetAnomalyDetectorResult =
getAnomalyDetectorResultToKotlin(getAnomalyDetectorPlain(argument.toJava()).await())
/**
* @see [getAnomalyDetector].
* @param arn The Amazon Resource Name (ARN) of the detector. For example, `arn:aws:lookoutmetrics:us-east-2:123456789012:AnomalyDetector:my-detector`
* @return null
*/
public suspend fun getAnomalyDetector(arn: String): GetAnomalyDetectorResult {
val argument = GetAnomalyDetectorPlainArgs(
arn = arn,
)
return getAnomalyDetectorResultToKotlin(getAnomalyDetectorPlain(argument.toJava()).await())
}
/**
* @see [getAnomalyDetector].
* @param argument Builder for [com.pulumi.awsnative.lookoutmetrics.kotlin.inputs.GetAnomalyDetectorPlainArgs].
* @return null
*/
public suspend fun getAnomalyDetector(argument: suspend GetAnomalyDetectorPlainArgsBuilder.() -> Unit): GetAnomalyDetectorResult {
val builder = GetAnomalyDetectorPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getAnomalyDetectorResultToKotlin(getAnomalyDetectorPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy