All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.monitoring.kotlin.outputs.AlertProcessingRuleActionGroupCondition.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @property alertContext A `alert_context` block as defined above.
 * @property alertRuleId A `alert_rule_id` block as defined above.
 * @property alertRuleName A `alert_rule_name` block as defined above.
 * @property description A `description` block as defined below.
 * @property monitorCondition A `monitor_condition` block as defined below.
 * @property monitorService A `monitor_service` block as defined below.
 * @property severity A `severity` block as defined below.
 * @property signalType A `signal_type` block as defined below.
 * @property targetResource A `target_resource` block as defined below.
 * @property targetResourceGroup A `target_resource_group` block as defined below.
 * @property targetResourceType A `target_resource_type` block as defined below.
 * > **Note:** At least one of the `alert_context`, `alert_rule_id`, `alert_rule_name`, `description`, `monitor_condition`, `monitor_service`, `severity`, `signal_type`, `target_resource`, `target_resource_group`, `target_resource_type` must be specified.
 */
public data class AlertProcessingRuleActionGroupCondition(
    public val alertContext: AlertProcessingRuleActionGroupConditionAlertContext? = null,
    public val alertRuleId: AlertProcessingRuleActionGroupConditionAlertRuleId? = null,
    public val alertRuleName: AlertProcessingRuleActionGroupConditionAlertRuleName? = null,
    public val description: AlertProcessingRuleActionGroupConditionDescription? = null,
    public val monitorCondition: AlertProcessingRuleActionGroupConditionMonitorCondition? = null,
    public val monitorService: AlertProcessingRuleActionGroupConditionMonitorService? = null,
    public val severity: AlertProcessingRuleActionGroupConditionSeverity? = null,
    public val signalType: AlertProcessingRuleActionGroupConditionSignalType? = null,
    public val targetResource: AlertProcessingRuleActionGroupConditionTargetResource? = null,
    public val targetResourceGroup: AlertProcessingRuleActionGroupConditionTargetResourceGroup? =
        null,
    public val targetResourceType: AlertProcessingRuleActionGroupConditionTargetResourceType? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.AlertProcessingRuleActionGroupCondition):
            AlertProcessingRuleActionGroupCondition = AlertProcessingRuleActionGroupCondition(
            alertContext = javaType.alertContext().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AlertProcessingRuleActionGroupConditionAlertContext.Companion.toKotlin(args0)
                })
            }).orElse(null),
            alertRuleId = javaType.alertRuleId().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AlertProcessingRuleActionGroupConditionAlertRuleId.Companion.toKotlin(args0)
                })
            }).orElse(null),
            alertRuleName = javaType.alertRuleName().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AlertProcessingRuleActionGroupConditionAlertRuleName.Companion.toKotlin(args0)
                })
            }).orElse(null),
            description = javaType.description().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AlertProcessingRuleActionGroupConditionDescription.Companion.toKotlin(args0)
                })
            }).orElse(null),
            monitorCondition = javaType.monitorCondition().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AlertProcessingRuleActionGroupConditionMonitorCondition.Companion.toKotlin(args0)
                })
            }).orElse(null),
            monitorService = javaType.monitorService().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AlertProcessingRuleActionGroupConditionMonitorService.Companion.toKotlin(args0)
                })
            }).orElse(null),
            severity = javaType.severity().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AlertProcessingRuleActionGroupConditionSeverity.Companion.toKotlin(args0)
                })
            }).orElse(null),
            signalType = javaType.signalType().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AlertProcessingRuleActionGroupConditionSignalType.Companion.toKotlin(args0)
                })
            }).orElse(null),
            targetResource = javaType.targetResource().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AlertProcessingRuleActionGroupConditionTargetResource.Companion.toKotlin(args0)
                })
            }).orElse(null),
            targetResourceGroup = javaType.targetResourceGroup().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AlertProcessingRuleActionGroupConditionTargetResourceGroup.Companion.toKotlin(args0)
                })
            }).orElse(null),
            targetResourceType = javaType.targetResourceType().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AlertProcessingRuleActionGroupConditionTargetResourceType.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy