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.azure.monitoring.kotlin.inputs
import com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaArgs.builder
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property caller The email address or Azure Active Directory identifier of the user who performed the operation.
* @property category The category of the operation. Possible values are `Administrative`, `Autoscale`, `Policy`, `Recommendation`, `ResourceHealth`, `Security` and `ServiceHealth`.
* @property level The severity level of the event. Possible values are `Verbose`, `Informational`, `Warning`, `Error`, and `Critical`.
* @property levels A list of severity level of the event. Possible values are `Verbose`, `Informational`, `Warning`, `Error`, and `Critical`.
* > **NOTE:** `level` and `levels` are mutually exclusive.
* @property operationName The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form: `//`.
* @property recommendationCategory The recommendation category of the event. Possible values are `Cost`, `Reliability`, `OperationalExcellence`, `HighAvailability` and `Performance`. It is only allowed when `category` is `Recommendation`.
* @property recommendationImpact The recommendation impact of the event. Possible values are `High`, `Medium` and `Low`. It is only allowed when `category` is `Recommendation`.
* @property recommendationType The recommendation type of the event. It is only allowed when `category` is `Recommendation`.
* @property resourceGroup The name of resource group monitored by the activity log alert.
* @property resourceGroups A list of names of resource groups monitored by the activity log alert.
* > **NOTE:** `resource_group` and `resource_groups` are mutually exclusive.
* @property resourceHealths A block to define fine grain resource health settings.
* @property resourceId The specific resource monitored by the activity log alert. It should be within one of the `scopes`.
* @property resourceIds A list of specific resources monitored by the activity log alert. It should be within one of the `scopes`.
* > **NOTE:** `resource_id` and `resource_ids` are mutually exclusive.
* @property resourceProvider The name of the resource provider monitored by the activity log alert.
* @property resourceProviders A list of names of resource providers monitored by the activity log alert.
* > **NOTE:** `resource_provider` and `resource_providers` are mutually exclusive.
* @property resourceType The resource type monitored by the activity log alert.
* @property resourceTypes A list of resource types monitored by the activity log alert.
* > **NOTE:** `resource_type` and `resource_types` are mutually exclusive.
* @property serviceHealths A block to define fine grain service health settings.
* @property status The status of the event. For example, `Started`, `Failed`, or `Succeeded`.
* @property statuses A list of status of the event. For example, `Started`, `Failed`, or `Succeeded`.
* > **NOTE:** `status` and `statuses` are mutually exclusive.
* @property subStatus The sub status of the event.
* @property subStatuses A list of sub status of the event.
* > **NOTE:** `sub_status` and `sub_statuses` are mutually exclusive.
*/
public data class ActivityLogAlertCriteriaArgs(
public val caller: Output? = null,
public val category: Output,
public val level: Output? = null,
public val levels: Output>? = null,
public val operationName: Output? = null,
public val recommendationCategory: Output? = null,
public val recommendationImpact: Output? = null,
public val recommendationType: Output? = null,
public val resourceGroup: Output? = null,
public val resourceGroups: Output>? = null,
public val resourceHealths: Output>? = null,
public val resourceId: Output? = null,
public val resourceIds: Output>? = null,
public val resourceProvider: Output? = null,
public val resourceProviders: Output>? = null,
public val resourceType: Output? = null,
public val resourceTypes: Output>? = null,
public val serviceHealths: Output>? = null,
public val status: Output? = null,
public val statuses: Output>? = null,
public val subStatus: Output? = null,
public val subStatuses: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaArgs =
com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaArgs.builder()
.caller(caller?.applyValue({ args0 -> args0 }))
.category(category.applyValue({ args0 -> args0 }))
.level(level?.applyValue({ args0 -> args0 }))
.levels(levels?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.operationName(operationName?.applyValue({ args0 -> args0 }))
.recommendationCategory(recommendationCategory?.applyValue({ args0 -> args0 }))
.recommendationImpact(recommendationImpact?.applyValue({ args0 -> args0 }))
.recommendationType(recommendationType?.applyValue({ args0 -> args0 }))
.resourceGroup(resourceGroup?.applyValue({ args0 -> args0 }))
.resourceGroups(resourceGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.resourceHealths(
resourceHealths?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.resourceId(resourceId?.applyValue({ args0 -> args0 }))
.resourceIds(resourceIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.resourceProvider(resourceProvider?.applyValue({ args0 -> args0 }))
.resourceProviders(resourceProviders?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.resourceType(resourceType?.applyValue({ args0 -> args0 }))
.resourceTypes(resourceTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.serviceHealths(
serviceHealths?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.status(status?.applyValue({ args0 -> args0 }))
.statuses(statuses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.subStatus(subStatus?.applyValue({ args0 -> args0 }))
.subStatuses(subStatuses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [ActivityLogAlertCriteriaArgs].
*/
@PulumiTagMarker
public class ActivityLogAlertCriteriaArgsBuilder internal constructor() {
private var caller: Output? = null
private var category: Output? = null
private var level: Output? = null
private var levels: Output>? = null
private var operationName: Output? = null
private var recommendationCategory: Output? = null
private var recommendationImpact: Output? = null
private var recommendationType: Output? = null
private var resourceGroup: Output? = null
private var resourceGroups: Output>? = null
private var resourceHealths: Output>? = null
private var resourceId: Output? = null
private var resourceIds: Output>? = null
private var resourceProvider: Output? = null
private var resourceProviders: Output>? = null
private var resourceType: Output? = null
private var resourceTypes: Output>? = null
private var serviceHealths: Output>? = null
private var status: Output? = null
private var statuses: Output>? = null
private var subStatus: Output? = null
private var subStatuses: Output>? = null
/**
* @param value The email address or Azure Active Directory identifier of the user who performed the operation.
*/
@JvmName("nmfxpqvhtjbcmdre")
public suspend fun caller(`value`: Output) {
this.caller = value
}
/**
* @param value The category of the operation. Possible values are `Administrative`, `Autoscale`, `Policy`, `Recommendation`, `ResourceHealth`, `Security` and `ServiceHealth`.
*/
@JvmName("xcmxyjyndyptcbpf")
public suspend fun category(`value`: Output) {
this.category = value
}
/**
* @param value The severity level of the event. Possible values are `Verbose`, `Informational`, `Warning`, `Error`, and `Critical`.
*/
@JvmName("nboeytgmgdahfogv")
public suspend fun level(`value`: Output) {
this.level = value
}
/**
* @param value A list of severity level of the event. Possible values are `Verbose`, `Informational`, `Warning`, `Error`, and `Critical`.
* > **NOTE:** `level` and `levels` are mutually exclusive.
*/
@JvmName("qjheamwggydnqbmp")
public suspend fun levels(`value`: Output>) {
this.levels = value
}
@JvmName("cghhvvxcvlcwyayv")
public suspend fun levels(vararg values: Output) {
this.levels = Output.all(values.asList())
}
/**
* @param values A list of severity level of the event. Possible values are `Verbose`, `Informational`, `Warning`, `Error`, and `Critical`.
* > **NOTE:** `level` and `levels` are mutually exclusive.
*/
@JvmName("dgivsrjdngdsdaoq")
public suspend fun levels(values: List