ActionRuleActionGroup

class ActionRuleActionGroup : KotlinCustomResource

Manages a Monitor Action Rule which type is action group. !>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.AlertProcessingRuleActionGroup 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.ActionGroup;
import com.pulumi.azure.monitoring.ActionGroupArgs;
import com.pulumi.azure.monitoring.ActionRuleActionGroup;
import com.pulumi.azure.monitoring.ActionRuleActionGroupArgs;
import com.pulumi.azure.monitoring.inputs.ActionRuleActionGroupScopeArgs;
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 exampleActionGroup = new ActionGroup("exampleActionGroup", ActionGroupArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.shortName("example")
.build());
var exampleActionRuleActionGroup = new ActionRuleActionGroup("exampleActionRuleActionGroup", ActionRuleActionGroupArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.actionGroupId(exampleActionGroup.id())
.scope(ActionRuleActionGroupScopeArgs.builder()
.type("ResourceGroup")
.resourceIds(exampleResourceGroup.id())
.build())
.tags(Map.of("foo", "bar"))
.build());
}
}

Import

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

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

Properties

Link copied to clipboard
val actionGroupId: Output<String>

Specifies the resource id of monitor action group.

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
val tags: Output<Map<String, String>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>