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

com.pulumi.azure.sentinel.kotlin.inputs.AlertRuleScheduledIncidentConfigurationGroupingArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.sentinel.kotlin.inputs

import com.pulumi.azure.sentinel.inputs.AlertRuleScheduledIncidentConfigurationGroupingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Enable grouping incidents created from alerts triggered by this Sentinel Scheduled Alert Rule. Defaults to `true`.
 * @property entityMatchingMethod The method used to group incidents. Possible values are `AnyAlert`, `Selected` and `AllEntities`. Defaults to `AnyAlert`.
 * @property groupByAlertDetails
 * @property groupByCustomDetails
 * @property groupByEntities
 * @property lookbackDuration Limit the group to alerts created within the lookback duration (in ISO 8601 duration format). Defaults to `PT5M`.
 * @property reopenClosedIncidents Whether to re-open closed matching incidents? Defaults to `false`.
 */
public data class AlertRuleScheduledIncidentConfigurationGroupingArgs(
    public val enabled: Output? = null,
    public val entityMatchingMethod: Output? = null,
    @Deprecated(
        message = """
  The `group_by_alert_details` property has been superseded by the `by_alert_details` property and
      will be removed in v4.0 of the AzureRM Provider
  """,
    )
    public val groupByAlertDetails: Output>? = null,
    @Deprecated(
        message = """
  The `group_by_custom_details` property has been superseded by the `by_custom_details` property and
      will be removed in v4.0 of the AzureRM Provider
  """,
    )
    public val groupByCustomDetails: Output>? = null,
    @Deprecated(
        message = """
  The `group_by_entities` property has been superseded by the `by_entities` property and will be
      removed in v4.0 of the AzureRM Provider
  """,
    )
    public val groupByEntities: Output>? = null,
    public val lookbackDuration: Output? = null,
    public val reopenClosedIncidents: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.sentinel.inputs.AlertRuleScheduledIncidentConfigurationGroupingArgs =
        com.pulumi.azure.sentinel.inputs.AlertRuleScheduledIncidentConfigurationGroupingArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .entityMatchingMethod(entityMatchingMethod?.applyValue({ args0 -> args0 }))
            .groupByAlertDetails(groupByAlertDetails?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .groupByCustomDetails(groupByCustomDetails?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .groupByEntities(groupByEntities?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .lookbackDuration(lookbackDuration?.applyValue({ args0 -> args0 }))
            .reopenClosedIncidents(reopenClosedIncidents?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AlertRuleScheduledIncidentConfigurationGroupingArgs].
 */
@PulumiTagMarker
public class AlertRuleScheduledIncidentConfigurationGroupingArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var entityMatchingMethod: Output? = null

    private var groupByAlertDetails: Output>? = null

    private var groupByCustomDetails: Output>? = null

    private var groupByEntities: Output>? = null

    private var lookbackDuration: Output? = null

    private var reopenClosedIncidents: Output? = null

    /**
     * @param value Enable grouping incidents created from alerts triggered by this Sentinel Scheduled Alert Rule. Defaults to `true`.
     */
    @JvmName("mqkgrgotlleiqpce")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The method used to group incidents. Possible values are `AnyAlert`, `Selected` and `AllEntities`. Defaults to `AnyAlert`.
     */
    @JvmName("baauuyinomrnybvg")
    public suspend fun entityMatchingMethod(`value`: Output) {
        this.entityMatchingMethod = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The `group_by_alert_details` property has been superseded by the `by_alert_details` property and
      will be removed in v4.0 of the AzureRM Provider
  """,
    )
    @JvmName("ohyugwxhcsmosnyr")
    public suspend fun groupByAlertDetails(`value`: Output>) {
        this.groupByAlertDetails = value
    }

    @JvmName("neggrlmxfthjhknr")
    public suspend fun groupByAlertDetails(vararg values: Output) {
        this.groupByAlertDetails = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @Deprecated(
        message = """
  The `group_by_alert_details` property has been superseded by the `by_alert_details` property and
      will be removed in v4.0 of the AzureRM Provider
  """,
    )
    @JvmName("mjsawjhbbaageoai")
    public suspend fun groupByAlertDetails(values: List>) {
        this.groupByAlertDetails = Output.all(values)
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The `group_by_custom_details` property has been superseded by the `by_custom_details` property and
      will be removed in v4.0 of the AzureRM Provider
  """,
    )
    @JvmName("pcjildajfoskminh")
    public suspend fun groupByCustomDetails(`value`: Output>) {
        this.groupByCustomDetails = value
    }

    @JvmName("huwpwtgvxkxlyhyp")
    public suspend fun groupByCustomDetails(vararg values: Output) {
        this.groupByCustomDetails = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @Deprecated(
        message = """
  The `group_by_custom_details` property has been superseded by the `by_custom_details` property and
      will be removed in v4.0 of the AzureRM Provider
  """,
    )
    @JvmName("ronuhtmkwudnyncr")
    public suspend fun groupByCustomDetails(values: List>) {
        this.groupByCustomDetails = Output.all(values)
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The `group_by_entities` property has been superseded by the `by_entities` property and will be
      removed in v4.0 of the AzureRM Provider
  """,
    )
    @JvmName("cfcqpuqyflqsjsrf")
    public suspend fun groupByEntities(`value`: Output>) {
        this.groupByEntities = value
    }

    @JvmName("ccjmuecfbndcavsi")
    public suspend fun groupByEntities(vararg values: Output) {
        this.groupByEntities = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @Deprecated(
        message = """
  The `group_by_entities` property has been superseded by the `by_entities` property and will be
      removed in v4.0 of the AzureRM Provider
  """,
    )
    @JvmName("fhyodqncxbfsdhse")
    public suspend fun groupByEntities(values: List>) {
        this.groupByEntities = Output.all(values)
    }

    /**
     * @param value Limit the group to alerts created within the lookback duration (in ISO 8601 duration format). Defaults to `PT5M`.
     */
    @JvmName("chaajxcvnanflhhn")
    public suspend fun lookbackDuration(`value`: Output) {
        this.lookbackDuration = value
    }

    /**
     * @param value Whether to re-open closed matching incidents? Defaults to `false`.
     */
    @JvmName("uevmgeutirtoqhvq")
    public suspend fun reopenClosedIncidents(`value`: Output) {
        this.reopenClosedIncidents = value
    }

    /**
     * @param value Enable grouping incidents created from alerts triggered by this Sentinel Scheduled Alert Rule. Defaults to `true`.
     */
    @JvmName("pbiqavjgorapddlh")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The method used to group incidents. Possible values are `AnyAlert`, `Selected` and `AllEntities`. Defaults to `AnyAlert`.
     */
    @JvmName("ddbpucjllptkiyjw")
    public suspend fun entityMatchingMethod(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.entityMatchingMethod = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The `group_by_alert_details` property has been superseded by the `by_alert_details` property and
      will be removed in v4.0 of the AzureRM Provider
  """,
    )
    @JvmName("qskmxrrnkvmycsfg")
    public suspend fun groupByAlertDetails(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupByAlertDetails = mapped
    }

    /**
     * @param values
     */
    @Deprecated(
        message = """
  The `group_by_alert_details` property has been superseded by the `by_alert_details` property and
      will be removed in v4.0 of the AzureRM Provider
  """,
    )
    @JvmName("jgqitqjrqgftemoy")
    public suspend fun groupByAlertDetails(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.groupByAlertDetails = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The `group_by_custom_details` property has been superseded by the `by_custom_details` property and
      will be removed in v4.0 of the AzureRM Provider
  """,
    )
    @JvmName("iagmptsqhvpngvgi")
    public suspend fun groupByCustomDetails(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupByCustomDetails = mapped
    }

    /**
     * @param values
     */
    @Deprecated(
        message = """
  The `group_by_custom_details` property has been superseded by the `by_custom_details` property and
      will be removed in v4.0 of the AzureRM Provider
  """,
    )
    @JvmName("scdoxefdnilxxcdd")
    public suspend fun groupByCustomDetails(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.groupByCustomDetails = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The `group_by_entities` property has been superseded by the `by_entities` property and will be
      removed in v4.0 of the AzureRM Provider
  """,
    )
    @JvmName("ewrgxksdyttucclu")
    public suspend fun groupByEntities(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupByEntities = mapped
    }

    /**
     * @param values
     */
    @Deprecated(
        message = """
  The `group_by_entities` property has been superseded by the `by_entities` property and will be
      removed in v4.0 of the AzureRM Provider
  """,
    )
    @JvmName("adwgmkygbfohiqau")
    public suspend fun groupByEntities(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.groupByEntities = mapped
    }

    /**
     * @param value Limit the group to alerts created within the lookback duration (in ISO 8601 duration format). Defaults to `PT5M`.
     */
    @JvmName("byoxfxaudrgmuqtc")
    public suspend fun lookbackDuration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lookbackDuration = mapped
    }

    /**
     * @param value Whether to re-open closed matching incidents? Defaults to `false`.
     */
    @JvmName("dauhtmcudtuwuggr")
    public suspend fun reopenClosedIncidents(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reopenClosedIncidents = mapped
    }

    internal fun build(): AlertRuleScheduledIncidentConfigurationGroupingArgs =
        AlertRuleScheduledIncidentConfigurationGroupingArgs(
            enabled = enabled,
            entityMatchingMethod = entityMatchingMethod,
            groupByAlertDetails = groupByAlertDetails,
            groupByCustomDetails = groupByCustomDetails,
            groupByEntities = groupByEntities,
            lookbackDuration = lookbackDuration,
            reopenClosedIncidents = reopenClosedIncidents,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy