com.pulumi.awsnative.ce.kotlin.AnomalySubscriptionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ce.kotlin
import com.pulumi.awsnative.ce.AnomalySubscriptionArgs.builder
import com.pulumi.awsnative.ce.kotlin.enums.AnomalySubscriptionFrequency
import com.pulumi.awsnative.ce.kotlin.inputs.AnomalySubscriptionResourceTagArgs
import com.pulumi.awsnative.ce.kotlin.inputs.AnomalySubscriptionResourceTagArgsBuilder
import com.pulumi.awsnative.ce.kotlin.inputs.AnomalySubscriptionSubscriberArgs
import com.pulumi.awsnative.ce.kotlin.inputs.AnomalySubscriptionSubscriberArgsBuilder
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.Double
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. Create subscription to be notified
* ## 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.
* @property frequency The frequency at which anomaly reports are sent over email.
* @property monitorArnList A list of cost anomaly monitors.
* @property resourceTags Tags to assign to subscription.
* @property subscribers A list of subscriber
* @property subscriptionName The name of the subscription.
* @property threshold The dollar value that triggers a notification if the threshold is exceeded.
* @property thresholdExpression An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
*/
public data class AnomalySubscriptionArgs(
public val frequency: Output? = null,
public val monitorArnList: Output>? = null,
public val resourceTags: Output>? = null,
public val subscribers: Output>? = null,
public val subscriptionName: Output? = null,
public val threshold: Output? = null,
public val thresholdExpression: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ce.AnomalySubscriptionArgs =
com.pulumi.awsnative.ce.AnomalySubscriptionArgs.builder()
.frequency(frequency?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.monitorArnList(monitorArnList?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.resourceTags(
resourceTags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.subscribers(
subscribers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.subscriptionName(subscriptionName?.applyValue({ args0 -> args0 }))
.threshold(threshold?.applyValue({ args0 -> args0 }))
.thresholdExpression(thresholdExpression?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AnomalySubscriptionArgs].
*/
@PulumiTagMarker
public class AnomalySubscriptionArgsBuilder internal constructor() {
private var frequency: Output? = null
private var monitorArnList: Output>? = null
private var resourceTags: Output>? = null
private var subscribers: Output>? = null
private var subscriptionName: Output? = null
private var threshold: Output? = null
private var thresholdExpression: Output? = null
/**
* @param value The frequency at which anomaly reports are sent over email.
*/
@JvmName("llipplaekrrwfyak")
public suspend fun frequency(`value`: Output) {
this.frequency = value
}
/**
* @param value A list of cost anomaly monitors.
*/
@JvmName("remdvpeojqluhbhc")
public suspend fun monitorArnList(`value`: Output>) {
this.monitorArnList = value
}
@JvmName("yfkdrafaabvqsohh")
public suspend fun monitorArnList(vararg values: Output) {
this.monitorArnList = Output.all(values.asList())
}
/**
* @param values A list of cost anomaly monitors.
*/
@JvmName("mxryjpwgjfniagxb")
public suspend fun monitorArnList(values: List