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

com.pulumi.awsnative.lookoutmetrics.kotlin.AnomalyDetectorArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@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>) {
        this.metricSetList = Output.all(values)
    }

    /**
     * @param value Configuration options for the AnomalyDetector
     */
    @JvmName("vyjknkpsyhuqjple")
    public suspend fun anomalyDetectorConfig(`value`: AnomalyDetectorConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.anomalyDetectorConfig = mapped
    }

    /**
     * @param argument Configuration options for the AnomalyDetector
     */
    @JvmName("vxitldykohkuypdh")
    public suspend fun anomalyDetectorConfig(argument: suspend AnomalyDetectorConfigArgsBuilder.() -> Unit) {
        val toBeMapped = AnomalyDetectorConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.anomalyDetectorConfig = mapped
    }

    /**
     * @param value A description for the AnomalyDetector.
     */
    @JvmName("koqeaxkkroongunl")
    public suspend fun anomalyDetectorDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.anomalyDetectorDescription = mapped
    }

    /**
     * @param value Name for the Amazon Lookout for Metrics Anomaly Detector
     */
    @JvmName("ciecnmgcfrjjyfqh")
    public suspend fun anomalyDetectorName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.anomalyDetectorName = mapped
    }

    /**
     * @param value KMS key used to encrypt the AnomalyDetector data
     */
    @JvmName("jcefxjuquaqevaws")
    public suspend fun kmsKeyArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyArn = mapped
    }

    /**
     * @param value List of metric sets for anomaly detection
     */
    @JvmName("uogcmvixcgusfuay")
    public suspend fun metricSetList(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metricSetList = mapped
    }

    /**
     * @param argument List of metric sets for anomaly detection
     */
    @JvmName("gsqudtsyvoleqebl")
    public suspend fun metricSetList(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnomalyDetectorMetricSetArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.metricSetList = mapped
    }

    /**
     * @param argument List of metric sets for anomaly detection
     */
    @JvmName("rjvkmdemmshruslm")
    public suspend fun metricSetList(vararg argument: suspend AnomalyDetectorMetricSetArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnomalyDetectorMetricSetArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.metricSetList = mapped
    }

    /**
     * @param argument List of metric sets for anomaly detection
     */
    @JvmName("bhpkfbxtftrixtej")
    public suspend fun metricSetList(argument: suspend AnomalyDetectorMetricSetArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AnomalyDetectorMetricSetArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.metricSetList = mapped
    }

    /**
     * @param values List of metric sets for anomaly detection
     */
    @JvmName("sflfhuokaopcuuqe")
    public suspend fun metricSetList(vararg values: AnomalyDetectorMetricSetArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metricSetList = mapped
    }

    internal fun build(): AnomalyDetectorArgs = AnomalyDetectorArgs(
        anomalyDetectorConfig = anomalyDetectorConfig,
        anomalyDetectorDescription = anomalyDetectorDescription,
        anomalyDetectorName = anomalyDetectorName,
        kmsKeyArn = kmsKeyArn,
        metricSetList = metricSetList,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy