Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.azurenative.costmanagement.kotlin.inputs
import com.pulumi.azurenative.costmanagement.inputs.NotificationArgs.builder
import com.pulumi.azurenative.costmanagement.kotlin.enums.BudgetNotificationOperatorType
import com.pulumi.azurenative.costmanagement.kotlin.enums.CultureCode
import com.pulumi.azurenative.costmanagement.kotlin.enums.Frequency
import com.pulumi.azurenative.costmanagement.kotlin.enums.ThresholdType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The notification associated with a budget.
* Supported for CategoryType(s): Cost, ReservationUtilization.
* @property contactEmails Email addresses to send the notification to when the threshold is breached. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
* Supported for CategoryType(s): Cost, ReservationUtilization.
* @property contactGroups Subscription or Resource Group scopes only. Action groups to send the notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id.
* Supported for CategoryType(s): Cost.
* @property contactRoles Subscription or Resource Group scopes only. Contact roles to send the notification to when the threshold is breached.
* Supported for CategoryType(s): Cost.
* @property enabled The notification is enabled or not.
* Supported for CategoryType(s): Cost, ReservationUtilization.
* @property frequency Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days).
* Supported for CategoryType(s): ReservationUtilization.
* @property locale Language in which the recipient will receive the notification,
* Supported for CategoryType(s): Cost, ReservationUtilization.
* @property operator The comparison operator.
* Supported for CategoryType(s): Cost, ReservationUtilization.
* Supported operators for **CategoryType: Cost**
* - GreaterThan
* - GreaterThanOrEqualTo
* Supported operators for **CategoryType: ReservationUtilization**
* - LessThan
* @property threshold Threshold value associated with a notification. It is always percent with a maximum of 2 decimal places.
* Supported for CategoryType(s): Cost, ReservationUtilization.
* **CategoryType: Cost** - Must be between 0 and 1000. Notification is sent when the cost exceeded the threshold.
* **CategoryType: ReservationUtilization** - Must be between 0 and 100. Notification is sent when a reservation has a utilization percentage below the threshold.
* @property thresholdType The type of threshold.
* Supported for CategoryType(s): Cost.
*/
public data class NotificationArgs(
public val contactEmails: Output>,
public val contactGroups: Output>? = null,
public val contactRoles: Output>? = null,
public val enabled: Output,
public val frequency: Output>? = null,
public val locale: Output>? = null,
public val `operator`: Output>,
public val threshold: Output,
public val thresholdType: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.costmanagement.inputs.NotificationArgs =
com.pulumi.azurenative.costmanagement.inputs.NotificationArgs.builder()
.contactEmails(contactEmails.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.contactGroups(contactGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.contactRoles(contactRoles?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.enabled(enabled.applyValue({ args0 -> args0 }))
.frequency(
frequency?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.locale(
locale?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.`operator`(
`operator`.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.threshold(threshold.applyValue({ args0 -> args0 }))
.thresholdType(
thresholdType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [NotificationArgs].
*/
@PulumiTagMarker
public class NotificationArgsBuilder internal constructor() {
private var contactEmails: Output>? = null
private var contactGroups: Output>? = null
private var contactRoles: Output>? = null
private var enabled: Output? = null
private var frequency: Output>? = null
private var locale: Output>? = null
private var `operator`: Output>? = null
private var threshold: Output? = null
private var thresholdType: Output>? = null
/**
* @param value Email addresses to send the notification to when the threshold is breached. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
* Supported for CategoryType(s): Cost, ReservationUtilization.
*/
@JvmName("ebkbgaeenmuyeuou")
public suspend fun contactEmails(`value`: Output>) {
this.contactEmails = value
}
@JvmName("bsgvoaxdlelqvrkx")
public suspend fun contactEmails(vararg values: Output) {
this.contactEmails = Output.all(values.asList())
}
/**
* @param values Email addresses to send the notification to when the threshold is breached. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
* Supported for CategoryType(s): Cost, ReservationUtilization.
*/
@JvmName("nkapnlivtocktgqe")
public suspend fun contactEmails(values: List