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

com.pulumi.azure.monitoring.kotlin.AlertProcessingRuleActionGroupArgs.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.monitoring.kotlin

import com.pulumi.azure.monitoring.AlertProcessingRuleActionGroupArgs.builder
import com.pulumi.azure.monitoring.kotlin.inputs.AlertProcessingRuleActionGroupConditionArgs
import com.pulumi.azure.monitoring.kotlin.inputs.AlertProcessingRuleActionGroupConditionArgsBuilder
import com.pulumi.azure.monitoring.kotlin.inputs.AlertProcessingRuleActionGroupScheduleArgs
import com.pulumi.azure.monitoring.kotlin.inputs.AlertProcessingRuleActionGroupScheduleArgsBuilder
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.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages an Alert Processing Rule which apply action group.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleActionGroup = new azure.monitoring.ActionGroup("example", {
 *     name: "example-action-group",
 *     resourceGroupName: example.name,
 *     shortName: "action",
 * });
 * const exampleAlertProcessingRuleActionGroup = new azure.monitoring.AlertProcessingRuleActionGroup("example", {
 *     name: "example",
 *     resourceGroupName: "example",
 *     scopes: [example.id],
 *     addActionGroupIds: [exampleActionGroup.id],
 *     condition: {
 *         targetResourceType: {
 *             operator: "Equals",
 *             values: ["Microsoft.Compute/VirtualMachines"],
 *         },
 *         severity: {
 *             operator: "Equals",
 *             values: [
 *                 "Sev0",
 *                 "Sev1",
 *                 "Sev2",
 *             ],
 *         },
 *     },
 *     schedule: {
 *         effectiveFrom: "2022-01-01T01:02:03",
 *         effectiveUntil: "2022-02-02T01:02:03",
 *         timeZone: "Pacific Standard Time",
 *         recurrence: {
 *             dailies: [{
 *                 startTime: "17:00:00",
 *                 endTime: "09:00:00",
 *             }],
 *             weeklies: [{
 *                 daysOfWeeks: [
 *                     "Saturday",
 *                     "Sunday",
 *                 ],
 *             }],
 *         },
 *     },
 *     tags: {
 *         foo: "bar",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_action_group = azure.monitoring.ActionGroup("example",
 *     name="example-action-group",
 *     resource_group_name=example.name,
 *     short_name="action")
 * example_alert_processing_rule_action_group = azure.monitoring.AlertProcessingRuleActionGroup("example",
 *     name="example",
 *     resource_group_name="example",
 *     scopes=[example.id],
 *     add_action_group_ids=[example_action_group.id],
 *     condition={
 *         "target_resource_type": {
 *             "operator": "Equals",
 *             "values": ["Microsoft.Compute/VirtualMachines"],
 *         },
 *         "severity": {
 *             "operator": "Equals",
 *             "values": [
 *                 "Sev0",
 *                 "Sev1",
 *                 "Sev2",
 *             ],
 *         },
 *     },
 *     schedule={
 *         "effective_from": "2022-01-01T01:02:03",
 *         "effective_until": "2022-02-02T01:02:03",
 *         "time_zone": "Pacific Standard Time",
 *         "recurrence": {
 *             "dailies": [{
 *                 "start_time": "17:00:00",
 *                 "end_time": "09:00:00",
 *             }],
 *             "weeklies": [{
 *                 "days_of_weeks": [
 *                     "Saturday",
 *                     "Sunday",
 *                 ],
 *             }],
 *         },
 *     },
 *     tags={
 *         "foo": "bar",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleActionGroup = new Azure.Monitoring.ActionGroup("example", new()
 *     {
 *         Name = "example-action-group",
 *         ResourceGroupName = example.Name,
 *         ShortName = "action",
 *     });
 *     var exampleAlertProcessingRuleActionGroup = new Azure.Monitoring.AlertProcessingRuleActionGroup("example", new()
 *     {
 *         Name = "example",
 *         ResourceGroupName = "example",
 *         Scopes = new[]
 *         {
 *             example.Id,
 *         },
 *         AddActionGroupIds = new[]
 *         {
 *             exampleActionGroup.Id,
 *         },
 *         Condition = new Azure.Monitoring.Inputs.AlertProcessingRuleActionGroupConditionArgs
 *         {
 *             TargetResourceType = new Azure.Monitoring.Inputs.AlertProcessingRuleActionGroupConditionTargetResourceTypeArgs
 *             {
 *                 Operator = "Equals",
 *                 Values = new[]
 *                 {
 *                     "Microsoft.Compute/VirtualMachines",
 *                 },
 *             },
 *             Severity = new Azure.Monitoring.Inputs.AlertProcessingRuleActionGroupConditionSeverityArgs
 *             {
 *                 Operator = "Equals",
 *                 Values = new[]
 *                 {
 *                     "Sev0",
 *                     "Sev1",
 *                     "Sev2",
 *                 },
 *             },
 *         },
 *         Schedule = new Azure.Monitoring.Inputs.AlertProcessingRuleActionGroupScheduleArgs
 *         {
 *             EffectiveFrom = "2022-01-01T01:02:03",
 *             EffectiveUntil = "2022-02-02T01:02:03",
 *             TimeZone = "Pacific Standard Time",
 *             Recurrence = new Azure.Monitoring.Inputs.AlertProcessingRuleActionGroupScheduleRecurrenceArgs
 *             {
 *                 Dailies = new[]
 *                 {
 *                     new Azure.Monitoring.Inputs.AlertProcessingRuleActionGroupScheduleRecurrenceDailyArgs
 *                     {
 *                         StartTime = "17:00:00",
 *                         EndTime = "09:00:00",
 *                     },
 *                 },
 *                 Weeklies = new[]
 *                 {
 *                     new Azure.Monitoring.Inputs.AlertProcessingRuleActionGroupScheduleRecurrenceWeeklyArgs
 *                     {
 *                         DaysOfWeeks = new[]
 *                         {
 *                             "Saturday",
 *                             "Sunday",
 *                         },
 *                     },
 *                 },
 *             },
 *         },
 *         Tags =
 *         {
 *             { "foo", "bar" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/monitoring"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleActionGroup, err := monitoring.NewActionGroup(ctx, "example", &monitoring.ActionGroupArgs{
 * 			Name:              pulumi.String("example-action-group"),
 * 			ResourceGroupName: example.Name,
 * 			ShortName:         pulumi.String("action"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = monitoring.NewAlertProcessingRuleActionGroup(ctx, "example", &monitoring.AlertProcessingRuleActionGroupArgs{
 * 			Name:              pulumi.String("example"),
 * 			ResourceGroupName: pulumi.String("example"),
 * 			Scopes: pulumi.StringArray{
 * 				example.ID(),
 * 			},
 * 			AddActionGroupIds: pulumi.StringArray{
 * 				exampleActionGroup.ID(),
 * 			},
 * 			Condition: &monitoring.AlertProcessingRuleActionGroupConditionArgs{
 * 				TargetResourceType: &monitoring.AlertProcessingRuleActionGroupConditionTargetResourceTypeArgs{
 * 					Operator: pulumi.String("Equals"),
 * 					Values: pulumi.StringArray{
 * 						pulumi.String("Microsoft.Compute/VirtualMachines"),
 * 					},
 * 				},
 * 				Severity: &monitoring.AlertProcessingRuleActionGroupConditionSeverityArgs{
 * 					Operator: pulumi.String("Equals"),
 * 					Values: pulumi.StringArray{
 * 						pulumi.String("Sev0"),
 * 						pulumi.String("Sev1"),
 * 						pulumi.String("Sev2"),
 * 					},
 * 				},
 * 			},
 * 			Schedule: &monitoring.AlertProcessingRuleActionGroupScheduleArgs{
 * 				EffectiveFrom:  pulumi.String("2022-01-01T01:02:03"),
 * 				EffectiveUntil: pulumi.String("2022-02-02T01:02:03"),
 * 				TimeZone:       pulumi.String("Pacific Standard Time"),
 * 				Recurrence: &monitoring.AlertProcessingRuleActionGroupScheduleRecurrenceArgs{
 * 					Dailies: monitoring.AlertProcessingRuleActionGroupScheduleRecurrenceDailyArray{
 * 						&monitoring.AlertProcessingRuleActionGroupScheduleRecurrenceDailyArgs{
 * 							StartTime: pulumi.String("17:00:00"),
 * 							EndTime:   pulumi.String("09:00:00"),
 * 						},
 * 					},
 * 					Weeklies: monitoring.AlertProcessingRuleActionGroupScheduleRecurrenceWeeklyArray{
 * 						&monitoring.AlertProcessingRuleActionGroupScheduleRecurrenceWeeklyArgs{
 * 							DaysOfWeeks: pulumi.StringArray{
 * 								pulumi.String("Saturday"),
 * 								pulumi.String("Sunday"),
 * 							},
 * 						},
 * 					},
 * 				},
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"foo": pulumi.String("bar"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.monitoring.ActionGroup;
 * import com.pulumi.azure.monitoring.ActionGroupArgs;
 * import com.pulumi.azure.monitoring.AlertProcessingRuleActionGroup;
 * import com.pulumi.azure.monitoring.AlertProcessingRuleActionGroupArgs;
 * import com.pulumi.azure.monitoring.inputs.AlertProcessingRuleActionGroupConditionArgs;
 * import com.pulumi.azure.monitoring.inputs.AlertProcessingRuleActionGroupConditionTargetResourceTypeArgs;
 * import com.pulumi.azure.monitoring.inputs.AlertProcessingRuleActionGroupConditionSeverityArgs;
 * import com.pulumi.azure.monitoring.inputs.AlertProcessingRuleActionGroupScheduleArgs;
 * import com.pulumi.azure.monitoring.inputs.AlertProcessingRuleActionGroupScheduleRecurrenceArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleActionGroup = new ActionGroup("exampleActionGroup", ActionGroupArgs.builder()
 *             .name("example-action-group")
 *             .resourceGroupName(example.name())
 *             .shortName("action")
 *             .build());
 *         var exampleAlertProcessingRuleActionGroup = new AlertProcessingRuleActionGroup("exampleAlertProcessingRuleActionGroup", AlertProcessingRuleActionGroupArgs.builder()
 *             .name("example")
 *             .resourceGroupName("example")
 *             .scopes(example.id())
 *             .addActionGroupIds(exampleActionGroup.id())
 *             .condition(AlertProcessingRuleActionGroupConditionArgs.builder()
 *                 .targetResourceType(AlertProcessingRuleActionGroupConditionTargetResourceTypeArgs.builder()
 *                     .operator("Equals")
 *                     .values("Microsoft.Compute/VirtualMachines")
 *                     .build())
 *                 .severity(AlertProcessingRuleActionGroupConditionSeverityArgs.builder()
 *                     .operator("Equals")
 *                     .values(
 *                         "Sev0",
 *                         "Sev1",
 *                         "Sev2")
 *                     .build())
 *                 .build())
 *             .schedule(AlertProcessingRuleActionGroupScheduleArgs.builder()
 *                 .effectiveFrom("2022-01-01T01:02:03")
 *                 .effectiveUntil("2022-02-02T01:02:03")
 *                 .timeZone("Pacific Standard Time")
 *                 .recurrence(AlertProcessingRuleActionGroupScheduleRecurrenceArgs.builder()
 *                     .dailies(AlertProcessingRuleActionGroupScheduleRecurrenceDailyArgs.builder()
 *                         .startTime("17:00:00")
 *                         .endTime("09:00:00")
 *                         .build())
 *                     .weeklies(AlertProcessingRuleActionGroupScheduleRecurrenceWeeklyArgs.builder()
 *                         .daysOfWeeks(
 *                             "Saturday",
 *                             "Sunday")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .tags(Map.of("foo", "bar"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleActionGroup:
 *     type: azure:monitoring:ActionGroup
 *     name: example
 *     properties:
 *       name: example-action-group
 *       resourceGroupName: ${example.name}
 *       shortName: action
 *   exampleAlertProcessingRuleActionGroup:
 *     type: azure:monitoring:AlertProcessingRuleActionGroup
 *     name: example
 *     properties:
 *       name: example
 *       resourceGroupName: example
 *       scopes:
 *         - ${example.id}
 *       addActionGroupIds:
 *         - ${exampleActionGroup.id}
 *       condition:
 *         targetResourceType:
 *           operator: Equals
 *           values:
 *             - Microsoft.Compute/VirtualMachines
 *         severity:
 *           operator: Equals
 *           values:
 *             - Sev0
 *             - Sev1
 *             - Sev2
 *       schedule:
 *         effectiveFrom: 2022-01-01T01:02:03
 *         effectiveUntil: 2022-02-02T01:02:03
 *         timeZone: Pacific Standard Time
 *         recurrence:
 *           dailies:
 *             - startTime: 17:00:00
 *               endTime: 09:00:00
 *           weeklies:
 *             - daysOfWeeks:
 *                 - Saturday
 *                 - Sunday
 *       tags:
 *         foo: bar
 * ```
 * 
 * ## Import
 * Alert Processing Rules can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:monitoring/alertProcessingRuleActionGroup:AlertProcessingRuleActionGroup example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.AlertsManagement/actionRules/actionRule1
 * ```
 * @property addActionGroupIds Specifies a list of Action Group IDs.
 * @property condition A `condition` block as defined below.
 * @property description Specifies a description for the Alert Processing Rule.
 * @property enabled Should the Alert Processing Rule be enabled? Defaults to `true`.
 * @property name The name which should be used for this Alert Processing Rule. Changing this forces a new Alert Processing Rule to be created.
 * @property resourceGroupName The name of the Resource Group where the Alert Processing Rule should exist. Changing this forces a new Alert Processing Rule to be created.
 * @property schedule A `schedule` block as defined below.
 * @property scopes A list of resource IDs which will be the target of alert processing rule.
 * @property tags A mapping of tags which should be assigned to the Alert Processing Rule.
 */
public data class AlertProcessingRuleActionGroupArgs(
    public val addActionGroupIds: Output>? = null,
    public val condition: Output? = null,
    public val description: Output? = null,
    public val enabled: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val schedule: Output? = null,
    public val scopes: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.AlertProcessingRuleActionGroupArgs =
        com.pulumi.azure.monitoring.AlertProcessingRuleActionGroupArgs.builder()
            .addActionGroupIds(addActionGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .condition(condition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .schedule(schedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .scopes(scopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [AlertProcessingRuleActionGroupArgs].
 */
@PulumiTagMarker
public class AlertProcessingRuleActionGroupArgsBuilder internal constructor() {
    private var addActionGroupIds: Output>? = null

    private var condition: Output? = null

    private var description: Output? = null

    private var enabled: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var schedule: Output? = null

    private var scopes: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value Specifies a list of Action Group IDs.
     */
    @JvmName("painjotqftpyobwy")
    public suspend fun addActionGroupIds(`value`: Output>) {
        this.addActionGroupIds = value
    }

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

    /**
     * @param values Specifies a list of Action Group IDs.
     */
    @JvmName("ucqbwfsinmoiauty")
    public suspend fun addActionGroupIds(values: List>) {
        this.addActionGroupIds = Output.all(values)
    }

    /**
     * @param value A `condition` block as defined below.
     */
    @JvmName("mlvcfxultxqoeuua")
    public suspend fun condition(`value`: Output) {
        this.condition = value
    }

    /**
     * @param value Specifies a description for the Alert Processing Rule.
     */
    @JvmName("sotjdayakaoduops")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Should the Alert Processing Rule be enabled? Defaults to `true`.
     */
    @JvmName("hqtkgcicmaqbnhkv")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The name which should be used for this Alert Processing Rule. Changing this forces a new Alert Processing Rule to be created.
     */
    @JvmName("jnrqwtmspmjddybw")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the Resource Group where the Alert Processing Rule should exist. Changing this forces a new Alert Processing Rule to be created.
     */
    @JvmName("dshbsdwmflupkbou")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A `schedule` block as defined below.
     */
    @JvmName("tmmkbqdfovoyxajo")
    public suspend fun schedule(`value`: Output) {
        this.schedule = value
    }

    /**
     * @param value A list of resource IDs which will be the target of alert processing rule.
     */
    @JvmName("llxeaxneghywjtcc")
    public suspend fun scopes(`value`: Output>) {
        this.scopes = value
    }

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

    /**
     * @param values A list of resource IDs which will be the target of alert processing rule.
     */
    @JvmName("nroykiacshnpdubn")
    public suspend fun scopes(values: List>) {
        this.scopes = Output.all(values)
    }

    /**
     * @param value A mapping of tags which should be assigned to the Alert Processing Rule.
     */
    @JvmName("lillarsefqsphwgd")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Specifies a list of Action Group IDs.
     */
    @JvmName("dhiuoayucbbvfikj")
    public suspend fun addActionGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.addActionGroupIds = mapped
    }

    /**
     * @param values Specifies a list of Action Group IDs.
     */
    @JvmName("yeoxxdshrdhlhkff")
    public suspend fun addActionGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addActionGroupIds = mapped
    }

    /**
     * @param value A `condition` block as defined below.
     */
    @JvmName("egxhguomwwwhvvcl")
    public suspend fun condition(`value`: AlertProcessingRuleActionGroupConditionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.condition = mapped
    }

    /**
     * @param argument A `condition` block as defined below.
     */
    @JvmName("tnajxnakvmpdsjdo")
    public suspend fun condition(argument: suspend AlertProcessingRuleActionGroupConditionArgsBuilder.() -> Unit) {
        val toBeMapped = AlertProcessingRuleActionGroupConditionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.condition = mapped
    }

    /**
     * @param value Specifies a description for the Alert Processing Rule.
     */
    @JvmName("ujettbtpgmdmjvkk")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Should the Alert Processing Rule be enabled? Defaults to `true`.
     */
    @JvmName("wdgleycoxuahmdte")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The name which should be used for this Alert Processing Rule. Changing this forces a new Alert Processing Rule to be created.
     */
    @JvmName("xycxdtoqaigxatqq")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the Resource Group where the Alert Processing Rule should exist. Changing this forces a new Alert Processing Rule to be created.
     */
    @JvmName("isvfclniuycnhvgk")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A `schedule` block as defined below.
     */
    @JvmName("lcmvefvtaengwwln")
    public suspend fun schedule(`value`: AlertProcessingRuleActionGroupScheduleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schedule = mapped
    }

    /**
     * @param argument A `schedule` block as defined below.
     */
    @JvmName("wcpnjviqrefbmojn")
    public suspend fun schedule(argument: suspend AlertProcessingRuleActionGroupScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = AlertProcessingRuleActionGroupScheduleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.schedule = mapped
    }

    /**
     * @param value A list of resource IDs which will be the target of alert processing rule.
     */
    @JvmName("hmkhqlbvcsureuxy")
    public suspend fun scopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param values A list of resource IDs which will be the target of alert processing rule.
     */
    @JvmName("ubtnhlqpbonybopc")
    public suspend fun scopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the Alert Processing Rule.
     */
    @JvmName("prcdkjidpbyglaos")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to the Alert Processing Rule.
     */
    @JvmName("euufhlxmymqonodi")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): AlertProcessingRuleActionGroupArgs = AlertProcessingRuleActionGroupArgs(
        addActionGroupIds = addActionGroupIds,
        condition = condition,
        description = description,
        enabled = enabled,
        name = name,
        resourceGroupName = resourceGroupName,
        schedule = schedule,
        scopes = scopes,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy