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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin.inputs
import com.pulumi.azurenative.insights.inputs.AlertRuleAnyOfOrLeafConditionArgs.builder
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 Activity Log Alert rule condition that is met when all its member conditions are met.
* Each condition can be of one of the following types:
* __Important__: Each type has its unique subset of properties. Properties from different types CANNOT exist in one condition.
* * __Leaf Condition -__ must contain 'field' and either 'equals' or 'containsAny'.
* _Please note, 'anyOf' should __not__ be set in a Leaf Condition._
* * __AnyOf Condition -__ must contain __only__ 'anyOf' (which is an array of Leaf Conditions).
* _Please note, 'field', 'equals' and 'containsAny' should __not__ be set in an AnyOf Condition._
* @property anyOf An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
* @property containsAny The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
* @property equals The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
* @property field The name of the Activity Log event's field that this condition will examine.
* The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
*/
public data class AlertRuleAnyOfOrLeafConditionArgs(
public val anyOf: Output>? = null,
public val containsAny: Output>? = null,
public val equals: Output? = null,
public val `field`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.inputs.AlertRuleAnyOfOrLeafConditionArgs =
com.pulumi.azurenative.insights.inputs.AlertRuleAnyOfOrLeafConditionArgs.builder()
.anyOf(anyOf?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.containsAny(containsAny?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.equals_(equals?.applyValue({ args0 -> args0 }))
.`field`(`field`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AlertRuleAnyOfOrLeafConditionArgs].
*/
@PulumiTagMarker
public class AlertRuleAnyOfOrLeafConditionArgsBuilder internal constructor() {
private var anyOf: Output>? = null
private var containsAny: Output>? = null
private var equals: Output? = null
private var `field`: Output? = null
/**
* @param value An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
*/
@JvmName("mqkuppsjyvyqgbye")
public suspend fun anyOf(`value`: Output>) {
this.anyOf = value
}
@JvmName("wuyvegokjjmanoog")
public suspend fun anyOf(vararg values: Output) {
this.anyOf = Output.all(values.asList())
}
/**
* @param values An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
*/
@JvmName("fxkfgjhooqvrwdlu")
public suspend fun anyOf(values: List