com.pulumi.awsnative.lookoutmetrics.kotlin.AnomalyDetectorArgs.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.AnomalyDetectorArgs.builder
import com.pulumi.awsnative.lookoutmetrics.kotlin.inputs.AnomalyDetectorConfigArgs
import com.pulumi.awsnative.lookoutmetrics.kotlin.inputs.AnomalyDetectorConfigArgsBuilder
import com.pulumi.awsnative.lookoutmetrics.kotlin.inputs.AnomalyDetectorMetricSetArgs
import com.pulumi.awsnative.lookoutmetrics.kotlin.inputs.AnomalyDetectorMetricSetArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* An Amazon Lookout for Metrics Detector
* @property anomalyDetectorConfig Configuration options for the AnomalyDetector
* @property anomalyDetectorDescription A description for the AnomalyDetector.
* @property anomalyDetectorName Name for the Amazon Lookout for Metrics Anomaly Detector
* @property kmsKeyArn KMS key used to encrypt the AnomalyDetector data
* @property metricSetList List of metric sets for anomaly detection
*/
public data class AnomalyDetectorArgs(
public val anomalyDetectorConfig: Output? = null,
public val anomalyDetectorDescription: Output? = null,
public val anomalyDetectorName: Output? = null,
public val kmsKeyArn: Output? = null,
public val metricSetList: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lookoutmetrics.AnomalyDetectorArgs =
com.pulumi.awsnative.lookoutmetrics.AnomalyDetectorArgs.builder()
.anomalyDetectorConfig(
anomalyDetectorConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.anomalyDetectorDescription(anomalyDetectorDescription?.applyValue({ args0 -> args0 }))
.anomalyDetectorName(anomalyDetectorName?.applyValue({ args0 -> args0 }))
.kmsKeyArn(kmsKeyArn?.applyValue({ args0 -> args0 }))
.metricSetList(
metricSetList?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [AnomalyDetectorArgs].
*/
@PulumiTagMarker
public class AnomalyDetectorArgsBuilder internal constructor() {
private var anomalyDetectorConfig: Output? = null
private var anomalyDetectorDescription: Output? = null
private var anomalyDetectorName: Output? = null
private var kmsKeyArn: Output? = null
private var metricSetList: Output>? = null
/**
* @param value Configuration options for the AnomalyDetector
*/
@JvmName("rrbrlufjsxvevxrm")
public suspend fun anomalyDetectorConfig(`value`: Output) {
this.anomalyDetectorConfig = value
}
/**
* @param value A description for the AnomalyDetector.
*/
@JvmName("glfcxlmwxajkayvr")
public suspend fun anomalyDetectorDescription(`value`: Output) {
this.anomalyDetectorDescription = value
}
/**
* @param value Name for the Amazon Lookout for Metrics Anomaly Detector
*/
@JvmName("wgfjfckgcktnwfan")
public suspend fun anomalyDetectorName(`value`: Output) {
this.anomalyDetectorName = value
}
/**
* @param value KMS key used to encrypt the AnomalyDetector data
*/
@JvmName("nguhcpmpfutfnwfu")
public suspend fun kmsKeyArn(`value`: Output) {
this.kmsKeyArn = value
}
/**
* @param value List of metric sets for anomaly detection
*/
@JvmName("mefxohwptuwqixow")
public suspend fun metricSetList(`value`: Output>) {
this.metricSetList = value
}
@JvmName("qxnafbummdccreou")
public suspend fun metricSetList(vararg values: Output) {
this.metricSetList = Output.all(values.asList())
}
/**
* @param values List of metric sets for anomaly detection
*/
@JvmName("axrlvjcaylfwywph")
public suspend fun metricSetList(values: List