ActionRuleActionGroupArgs

data class ActionRuleActionGroupArgs(val actionGroupId: Output<String>? = null, val condition: Output<ActionRuleActionGroupConditionArgs>? = null, val description: Output<String>? = null, val enabled: Output<Boolean>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scope: Output<ActionRuleActionGroupScopeArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ActionRuleActionGroupArgs>

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

Constructors

Link copied to clipboard
fun ActionRuleActionGroupArgs(actionGroupId: Output<String>? = null, condition: Output<ActionRuleActionGroupConditionArgs>? = null, description: Output<String>? = null, enabled: Output<Boolean>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, scope: Output<ActionRuleActionGroupScopeArgs>? = null, tags: Output<Map<String, String>>? = null)

Functions

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

Properties

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

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

A mapping of tags to assign to the resource.