ActionRuleSuppression

class ActionRuleSuppression : KotlinCustomResource

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

Properties

Link copied to clipboard

A condition block as defined below.

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

Specifies a description for the Action Rule.

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

Is the Action Rule enabled? Defaults to true.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>