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

com.pulumi.awsnative.ce.kotlin.AnomalyMonitorArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ce.kotlin

import com.pulumi.awsnative.ce.AnomalyMonitorArgs.builder
import com.pulumi.awsnative.ce.kotlin.enums.AnomalyMonitorMonitorDimension
import com.pulumi.awsnative.ce.kotlin.enums.AnomalyMonitorMonitorType
import com.pulumi.awsnative.ce.kotlin.inputs.AnomalyMonitorResourceTagArgs
import com.pulumi.awsnative.ce.kotlin.inputs.AnomalyMonitorResourceTagArgsBuilder
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

/**
 * AWS Cost Anomaly Detection leverages advanced Machine Learning technologies to identify anomalous spend and root causes, so you can quickly take action. You can use Cost Anomaly Detection by creating monitor.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property monitorDimension The dimensions to evaluate
 * @property monitorName The name of the monitor.
 * @property monitorSpecification The array of `MonitorSpecification` in JSON array format. For instance, you can use `MonitorSpecification` to specify a tag, Cost Category, or linked account for your custom anomaly monitor. For further information, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalymonitor.html#aws-resource-ce-anomalymonitor--examples) section of this page.
 * @property monitorType The possible type values.
 * @property resourceTags Tags to assign to monitor.
 */
public data class AnomalyMonitorArgs(
    public val monitorDimension: Output? = null,
    public val monitorName: Output? = null,
    public val monitorSpecification: Output? = null,
    public val monitorType: Output? = null,
    public val resourceTags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ce.AnomalyMonitorArgs =
        com.pulumi.awsnative.ce.AnomalyMonitorArgs.builder()
            .monitorDimension(monitorDimension?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .monitorName(monitorName?.applyValue({ args0 -> args0 }))
            .monitorSpecification(monitorSpecification?.applyValue({ args0 -> args0 }))
            .monitorType(monitorType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceTags(
                resourceTags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AnomalyMonitorArgs].
 */
@PulumiTagMarker
public class AnomalyMonitorArgsBuilder internal constructor() {
    private var monitorDimension: Output? = null

    private var monitorName: Output? = null

    private var monitorSpecification: Output? = null

    private var monitorType: Output? = null

    private var resourceTags: Output>? = null

    /**
     * @param value The dimensions to evaluate
     */
    @JvmName("yuknplrashehrast")
    public suspend fun monitorDimension(`value`: Output) {
        this.monitorDimension = value
    }

    /**
     * @param value The name of the monitor.
     */
    @JvmName("qsiksidcuthaqdwn")
    public suspend fun monitorName(`value`: Output) {
        this.monitorName = value
    }

    /**
     * @param value The array of `MonitorSpecification` in JSON array format. For instance, you can use `MonitorSpecification` to specify a tag, Cost Category, or linked account for your custom anomaly monitor. For further information, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalymonitor.html#aws-resource-ce-anomalymonitor--examples) section of this page.
     */
    @JvmName("rhrfddentaoimviv")
    public suspend fun monitorSpecification(`value`: Output) {
        this.monitorSpecification = value
    }

    /**
     * @param value The possible type values.
     */
    @JvmName("opwnqpqwgqmutpvo")
    public suspend fun monitorType(`value`: Output) {
        this.monitorType = value
    }

    /**
     * @param value Tags to assign to monitor.
     */
    @JvmName("ndccwhiqshjdbujc")
    public suspend fun resourceTags(`value`: Output>) {
        this.resourceTags = value
    }

    @JvmName("fhisdqlrxicdlssv")
    public suspend fun resourceTags(vararg values: Output) {
        this.resourceTags = Output.all(values.asList())
    }

    /**
     * @param values Tags to assign to monitor.
     */
    @JvmName("vnsrfqcjbpfvrkbg")
    public suspend fun resourceTags(values: List>) {
        this.resourceTags = Output.all(values)
    }

    /**
     * @param value The dimensions to evaluate
     */
    @JvmName("uolmldmuevqyrftm")
    public suspend fun monitorDimension(`value`: AnomalyMonitorMonitorDimension?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monitorDimension = mapped
    }

    /**
     * @param value The name of the monitor.
     */
    @JvmName("ekumejcrmqpfsvin")
    public suspend fun monitorName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monitorName = mapped
    }

    /**
     * @param value The array of `MonitorSpecification` in JSON array format. For instance, you can use `MonitorSpecification` to specify a tag, Cost Category, or linked account for your custom anomaly monitor. For further information, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalymonitor.html#aws-resource-ce-anomalymonitor--examples) section of this page.
     */
    @JvmName("brfnevhddjasnivj")
    public suspend fun monitorSpecification(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monitorSpecification = mapped
    }

    /**
     * @param value The possible type values.
     */
    @JvmName("wbhnnsuokialqbfq")
    public suspend fun monitorType(`value`: AnomalyMonitorMonitorType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monitorType = mapped
    }

    /**
     * @param value Tags to assign to monitor.
     */
    @JvmName("lmkfnefeyipeadvj")
    public suspend fun resourceTags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceTags = mapped
    }

    /**
     * @param argument Tags to assign to monitor.
     */
    @JvmName("yyjyeyrryeqlllos")
    public suspend fun resourceTags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnomalyMonitorResourceTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.resourceTags = mapped
    }

    /**
     * @param argument Tags to assign to monitor.
     */
    @JvmName("wadwoyeklgrlifrt")
    public suspend fun resourceTags(vararg argument: suspend AnomalyMonitorResourceTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnomalyMonitorResourceTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.resourceTags = mapped
    }

    /**
     * @param argument Tags to assign to monitor.
     */
    @JvmName("ejduqoxtmdynftbk")
    public suspend fun resourceTags(argument: suspend AnomalyMonitorResourceTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AnomalyMonitorResourceTagArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.resourceTags = mapped
    }

    /**
     * @param values Tags to assign to monitor.
     */
    @JvmName("kapyidlderkngkdg")
    public suspend fun resourceTags(vararg values: AnomalyMonitorResourceTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceTags = mapped
    }

    internal fun build(): AnomalyMonitorArgs = AnomalyMonitorArgs(
        monitorDimension = monitorDimension,
        monitorName = monitorName,
        monitorSpecification = monitorSpecification,
        monitorType = monitorType,
        resourceTags = resourceTags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy