ActionRuleSuppressionArgs

data class ActionRuleSuppressionArgs(val condition: Output<ActionRuleSuppressionConditionArgs>? = null, val description: Output<String>? = null, val enabled: Output<Boolean>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scope: Output<ActionRuleSuppressionScopeArgs>? = null, val suppression: Output<ActionRuleSuppressionSuppressionArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ActionRuleSuppressionArgs>

Manages a Monitor Action Rule which type is suppression. !>NOTE: This resource has been deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use azure.monitoring.AlertProcessingRuleSuppression resource instead.

Example Usage

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.ActionRuleSuppression;
import com.pulumi.azure.monitoring.ActionRuleSuppressionArgs;
import com.pulumi.azure.monitoring.inputs.ActionRuleSuppressionScopeArgs;
import com.pulumi.azure.monitoring.inputs.ActionRuleSuppressionSuppressionArgs;
import com.pulumi.azure.monitoring.inputs.ActionRuleSuppressionSuppressionScheduleArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleActionRuleSuppression = new ActionRuleSuppression("exampleActionRuleSuppression", ActionRuleSuppressionArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.scope(ActionRuleSuppressionScopeArgs.builder()
.type("ResourceGroup")
.resourceIds(exampleResourceGroup.id())
.build())
.suppression(ActionRuleSuppressionSuppressionArgs.builder()
.recurrenceType("Weekly")
.schedule(ActionRuleSuppressionSuppressionScheduleArgs.builder()
.startDateUtc("2019-01-01T01:02:03Z")
.endDateUtc("2019-01-03T15:02:07Z")
.recurrenceWeeklies(
"Sunday",
"Monday",
"Friday",
"Saturday")
.build())
.build())
.tags(Map.of("foo", "bar"))
.build());
}
}

Import

Monitor Action Rule can be imported using the resource id, e.g.

$ pulumi import azure:monitoring/actionRuleSuppression:ActionRuleSuppression example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AlertsManagement/actionRules/actionRule1

Constructors

Link copied to clipboard
fun ActionRuleSuppressionArgs(condition: Output<ActionRuleSuppressionConditionArgs>? = null, description: Output<String>? = null, enabled: Output<Boolean>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, scope: Output<ActionRuleSuppressionScopeArgs>? = null, suppression: Output<ActionRuleSuppressionSuppressionArgs>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ActionRuleSuppressionArgs

Properties

Link copied to clipboard

A condition block as defined below.

Link copied to clipboard
val description: Output<String>? = null

Specifies a description for the Action Rule.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Is the Action Rule enabled? Defaults to true.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.

Link copied to clipboard

A scope block as defined below.

Link copied to clipboard

A suppression block as defined below.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.