com.pulumi.awsnative.ce.kotlin.AnomalyMonitorArgs.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.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