We recommend using Azure Native.
azure.monitoring.ActionRuleSuppression
Explore with Pulumi AI
Manages a Monitor Action Rule which type is suppression.
!> NOTE: This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use azure.monitoring.AlertProcessingRuleSuppression
resource instead.
Example Usage
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 exampleActionRuleSuppression = new azure.monitoring.ActionRuleSuppression("example", {
name: "example-amar",
resourceGroupName: example.name,
scope: {
type: "ResourceGroup",
resourceIds: [example.id],
},
suppression: {
recurrenceType: "Weekly",
schedule: {
startDateUtc: "2019-01-01T01:02:03Z",
endDateUtc: "2019-01-03T15:02:07Z",
recurrenceWeeklies: [
"Sunday",
"Monday",
"Friday",
"Saturday",
],
},
},
tags: {
foo: "bar",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_action_rule_suppression = azure.monitoring.ActionRuleSuppression("example",
name="example-amar",
resource_group_name=example.name,
scope=azure.monitoring.ActionRuleSuppressionScopeArgs(
type="ResourceGroup",
resource_ids=[example.id],
),
suppression=azure.monitoring.ActionRuleSuppressionSuppressionArgs(
recurrence_type="Weekly",
schedule=azure.monitoring.ActionRuleSuppressionSuppressionScheduleArgs(
start_date_utc="2019-01-01T01:02:03Z",
end_date_utc="2019-01-03T15:02:07Z",
recurrence_weeklies=[
"Sunday",
"Monday",
"Friday",
"Saturday",
],
),
),
tags={
"foo": "bar",
})
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
}
_, err = monitoring.NewActionRuleSuppression(ctx, "example", &monitoring.ActionRuleSuppressionArgs{
Name: pulumi.String("example-amar"),
ResourceGroupName: example.Name,
Scope: &monitoring.ActionRuleSuppressionScopeArgs{
Type: pulumi.String("ResourceGroup"),
ResourceIds: pulumi.StringArray{
example.ID(),
},
},
Suppression: &monitoring.ActionRuleSuppressionSuppressionArgs{
RecurrenceType: pulumi.String("Weekly"),
Schedule: &monitoring.ActionRuleSuppressionSuppressionScheduleArgs{
StartDateUtc: pulumi.String("2019-01-01T01:02:03Z"),
EndDateUtc: pulumi.String("2019-01-03T15:02:07Z"),
RecurrenceWeeklies: pulumi.StringArray{
pulumi.String("Sunday"),
pulumi.String("Monday"),
pulumi.String("Friday"),
pulumi.String("Saturday"),
},
},
},
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
})
if err != nil {
return err
}
return nil
})
}
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 exampleActionRuleSuppression = new Azure.Monitoring.ActionRuleSuppression("example", new()
{
Name = "example-amar",
ResourceGroupName = example.Name,
Scope = new Azure.Monitoring.Inputs.ActionRuleSuppressionScopeArgs
{
Type = "ResourceGroup",
ResourceIds = new[]
{
example.Id,
},
},
Suppression = new Azure.Monitoring.Inputs.ActionRuleSuppressionSuppressionArgs
{
RecurrenceType = "Weekly",
Schedule = new Azure.Monitoring.Inputs.ActionRuleSuppressionSuppressionScheduleArgs
{
StartDateUtc = "2019-01-01T01:02:03Z",
EndDateUtc = "2019-01-03T15:02:07Z",
RecurrenceWeeklies = new[]
{
"Sunday",
"Monday",
"Friday",
"Saturday",
},
},
},
Tags =
{
{ "foo", "bar" },
},
});
});
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleActionRuleSuppression = new ActionRuleSuppression("exampleActionRuleSuppression", ActionRuleSuppressionArgs.builder()
.name("example-amar")
.resourceGroupName(example.name())
.scope(ActionRuleSuppressionScopeArgs.builder()
.type("ResourceGroup")
.resourceIds(example.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());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleActionRuleSuppression:
type: azure:monitoring:ActionRuleSuppression
name: example
properties:
name: example-amar
resourceGroupName: ${example.name}
scope:
type: ResourceGroup
resourceIds:
- ${example.id}
suppression:
recurrenceType: Weekly
schedule:
startDateUtc: 2019-01-01T01:02:03Z
endDateUtc: 2019-01-03T15:02:07Z
recurrenceWeeklies:
- Sunday
- Monday
- Friday
- Saturday
tags:
foo: bar
Create ActionRuleSuppression Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ActionRuleSuppression(name: string, args: ActionRuleSuppressionArgs, opts?: CustomResourceOptions);
@overload
def ActionRuleSuppression(resource_name: str,
args: ActionRuleSuppressionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ActionRuleSuppression(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
suppression: Optional[ActionRuleSuppressionSuppressionArgs] = None,
condition: Optional[ActionRuleSuppressionConditionArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
scope: Optional[ActionRuleSuppressionScopeArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewActionRuleSuppression(ctx *Context, name string, args ActionRuleSuppressionArgs, opts ...ResourceOption) (*ActionRuleSuppression, error)
public ActionRuleSuppression(string name, ActionRuleSuppressionArgs args, CustomResourceOptions? opts = null)
public ActionRuleSuppression(String name, ActionRuleSuppressionArgs args)
public ActionRuleSuppression(String name, ActionRuleSuppressionArgs args, CustomResourceOptions options)
type: azure:monitoring:ActionRuleSuppression
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ActionRuleSuppressionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ActionRuleSuppressionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ActionRuleSuppressionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ActionRuleSuppressionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ActionRuleSuppressionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var actionRuleSuppressionResource = new Azure.Monitoring.ActionRuleSuppression("actionRuleSuppressionResource", new()
{
ResourceGroupName = "string",
Suppression = new Azure.Monitoring.Inputs.ActionRuleSuppressionSuppressionArgs
{
RecurrenceType = "string",
Schedule = new Azure.Monitoring.Inputs.ActionRuleSuppressionSuppressionScheduleArgs
{
EndDateUtc = "string",
StartDateUtc = "string",
RecurrenceMonthlies = new[]
{
0,
},
RecurrenceWeeklies = new[]
{
"string",
},
},
},
Condition = new Azure.Monitoring.Inputs.ActionRuleSuppressionConditionArgs
{
AlertContext = new Azure.Monitoring.Inputs.ActionRuleSuppressionConditionAlertContextArgs
{
Operator = "string",
Values = new[]
{
"string",
},
},
AlertRuleId = new Azure.Monitoring.Inputs.ActionRuleSuppressionConditionAlertRuleIdArgs
{
Operator = "string",
Values = new[]
{
"string",
},
},
Description = new Azure.Monitoring.Inputs.ActionRuleSuppressionConditionDescriptionArgs
{
Operator = "string",
Values = new[]
{
"string",
},
},
Monitor = new Azure.Monitoring.Inputs.ActionRuleSuppressionConditionMonitorArgs
{
Operator = "string",
Values = new[]
{
"string",
},
},
MonitorService = new Azure.Monitoring.Inputs.ActionRuleSuppressionConditionMonitorServiceArgs
{
Operator = "string",
Values = new[]
{
"string",
},
},
Severity = new Azure.Monitoring.Inputs.ActionRuleSuppressionConditionSeverityArgs
{
Operator = "string",
Values = new[]
{
"string",
},
},
TargetResourceType = new Azure.Monitoring.Inputs.ActionRuleSuppressionConditionTargetResourceTypeArgs
{
Operator = "string",
Values = new[]
{
"string",
},
},
},
Description = "string",
Enabled = false,
Name = "string",
Scope = new Azure.Monitoring.Inputs.ActionRuleSuppressionScopeArgs
{
ResourceIds = new[]
{
"string",
},
Type = "string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := monitoring.NewActionRuleSuppression(ctx, "actionRuleSuppressionResource", &monitoring.ActionRuleSuppressionArgs{
ResourceGroupName: pulumi.String("string"),
Suppression: &monitoring.ActionRuleSuppressionSuppressionArgs{
RecurrenceType: pulumi.String("string"),
Schedule: &monitoring.ActionRuleSuppressionSuppressionScheduleArgs{
EndDateUtc: pulumi.String("string"),
StartDateUtc: pulumi.String("string"),
RecurrenceMonthlies: pulumi.IntArray{
pulumi.Int(0),
},
RecurrenceWeeklies: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Condition: &monitoring.ActionRuleSuppressionConditionArgs{
AlertContext: &monitoring.ActionRuleSuppressionConditionAlertContextArgs{
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
AlertRuleId: &monitoring.ActionRuleSuppressionConditionAlertRuleIdArgs{
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
Description: &monitoring.ActionRuleSuppressionConditionDescriptionArgs{
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
Monitor: &monitoring.ActionRuleSuppressionConditionMonitorArgs{
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
MonitorService: &monitoring.ActionRuleSuppressionConditionMonitorServiceArgs{
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
Severity: &monitoring.ActionRuleSuppressionConditionSeverityArgs{
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
TargetResourceType: &monitoring.ActionRuleSuppressionConditionTargetResourceTypeArgs{
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Scope: &monitoring.ActionRuleSuppressionScopeArgs{
ResourceIds: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var actionRuleSuppressionResource = new ActionRuleSuppression("actionRuleSuppressionResource", ActionRuleSuppressionArgs.builder()
.resourceGroupName("string")
.suppression(ActionRuleSuppressionSuppressionArgs.builder()
.recurrenceType("string")
.schedule(ActionRuleSuppressionSuppressionScheduleArgs.builder()
.endDateUtc("string")
.startDateUtc("string")
.recurrenceMonthlies(0)
.recurrenceWeeklies("string")
.build())
.build())
.condition(ActionRuleSuppressionConditionArgs.builder()
.alertContext(ActionRuleSuppressionConditionAlertContextArgs.builder()
.operator("string")
.values("string")
.build())
.alertRuleId(ActionRuleSuppressionConditionAlertRuleIdArgs.builder()
.operator("string")
.values("string")
.build())
.description(ActionRuleSuppressionConditionDescriptionArgs.builder()
.operator("string")
.values("string")
.build())
.monitor(ActionRuleSuppressionConditionMonitorArgs.builder()
.operator("string")
.values("string")
.build())
.monitorService(ActionRuleSuppressionConditionMonitorServiceArgs.builder()
.operator("string")
.values("string")
.build())
.severity(ActionRuleSuppressionConditionSeverityArgs.builder()
.operator("string")
.values("string")
.build())
.targetResourceType(ActionRuleSuppressionConditionTargetResourceTypeArgs.builder()
.operator("string")
.values("string")
.build())
.build())
.description("string")
.enabled(false)
.name("string")
.scope(ActionRuleSuppressionScopeArgs.builder()
.resourceIds("string")
.type("string")
.build())
.tags(Map.of("string", "string"))
.build());
action_rule_suppression_resource = azure.monitoring.ActionRuleSuppression("actionRuleSuppressionResource",
resource_group_name="string",
suppression=azure.monitoring.ActionRuleSuppressionSuppressionArgs(
recurrence_type="string",
schedule=azure.monitoring.ActionRuleSuppressionSuppressionScheduleArgs(
end_date_utc="string",
start_date_utc="string",
recurrence_monthlies=[0],
recurrence_weeklies=["string"],
),
),
condition=azure.monitoring.ActionRuleSuppressionConditionArgs(
alert_context=azure.monitoring.ActionRuleSuppressionConditionAlertContextArgs(
operator="string",
values=["string"],
),
alert_rule_id=azure.monitoring.ActionRuleSuppressionConditionAlertRuleIdArgs(
operator="string",
values=["string"],
),
description=azure.monitoring.ActionRuleSuppressionConditionDescriptionArgs(
operator="string",
values=["string"],
),
monitor=azure.monitoring.ActionRuleSuppressionConditionMonitorArgs(
operator="string",
values=["string"],
),
monitor_service=azure.monitoring.ActionRuleSuppressionConditionMonitorServiceArgs(
operator="string",
values=["string"],
),
severity=azure.monitoring.ActionRuleSuppressionConditionSeverityArgs(
operator="string",
values=["string"],
),
target_resource_type=azure.monitoring.ActionRuleSuppressionConditionTargetResourceTypeArgs(
operator="string",
values=["string"],
),
),
description="string",
enabled=False,
name="string",
scope=azure.monitoring.ActionRuleSuppressionScopeArgs(
resource_ids=["string"],
type="string",
),
tags={
"string": "string",
})
const actionRuleSuppressionResource = new azure.monitoring.ActionRuleSuppression("actionRuleSuppressionResource", {
resourceGroupName: "string",
suppression: {
recurrenceType: "string",
schedule: {
endDateUtc: "string",
startDateUtc: "string",
recurrenceMonthlies: [0],
recurrenceWeeklies: ["string"],
},
},
condition: {
alertContext: {
operator: "string",
values: ["string"],
},
alertRuleId: {
operator: "string",
values: ["string"],
},
description: {
operator: "string",
values: ["string"],
},
monitor: {
operator: "string",
values: ["string"],
},
monitorService: {
operator: "string",
values: ["string"],
},
severity: {
operator: "string",
values: ["string"],
},
targetResourceType: {
operator: "string",
values: ["string"],
},
},
description: "string",
enabled: false,
name: "string",
scope: {
resourceIds: ["string"],
type: "string",
},
tags: {
string: "string",
},
});
type: azure:monitoring:ActionRuleSuppression
properties:
condition:
alertContext:
operator: string
values:
- string
alertRuleId:
operator: string
values:
- string
description:
operator: string
values:
- string
monitor:
operator: string
values:
- string
monitorService:
operator: string
values:
- string
severity:
operator: string
values:
- string
targetResourceType:
operator: string
values:
- string
description: string
enabled: false
name: string
resourceGroupName: string
scope:
resourceIds:
- string
type: string
suppression:
recurrenceType: string
schedule:
endDateUtc: string
recurrenceMonthlies:
- 0
recurrenceWeeklies:
- string
startDateUtc: string
tags:
string: string
ActionRuleSuppression Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ActionRuleSuppression resource accepts the following input properties:
- Resource
Group stringName - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
- Suppression
Action
Rule Suppression Suppression - A
suppression
block as defined below. - Condition
Action
Rule Suppression Condition - A
condition
block as defined below. - Description string
- Specifies a description for the Action Rule.
- Enabled bool
- Is the Action Rule enabled? Defaults to
true
. - Name string
- Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
- Scope
Action
Rule Suppression Scope - A
scope
block as defined below. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Resource
Group stringName - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
- Suppression
Action
Rule Suppression Suppression Args - A
suppression
block as defined below. - Condition
Action
Rule Suppression Condition Args - A
condition
block as defined below. - Description string
- Specifies a description for the Action Rule.
- Enabled bool
- Is the Action Rule enabled? Defaults to
true
. - Name string
- Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
- Scope
Action
Rule Suppression Scope Args - A
scope
block as defined below. - map[string]string
- A mapping of tags to assign to the resource.
- resource
Group StringName - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
- suppression
Action
Rule Suppression Suppression - A
suppression
block as defined below. - condition
Action
Rule Suppression Condition - A
condition
block as defined below. - description String
- Specifies a description for the Action Rule.
- enabled Boolean
- Is the Action Rule enabled? Defaults to
true
. - name String
- Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
- scope
Action
Rule Suppression Scope - A
scope
block as defined below. - Map<String,String>
- A mapping of tags to assign to the resource.
- resource
Group stringName - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
- suppression
Action
Rule Suppression Suppression - A
suppression
block as defined below. - condition
Action
Rule Suppression Condition - A
condition
block as defined below. - description string
- Specifies a description for the Action Rule.
- enabled boolean
- Is the Action Rule enabled? Defaults to
true
. - name string
- Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
- scope
Action
Rule Suppression Scope - A
scope
block as defined below. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- resource_
group_ strname - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
- suppression
Action
Rule Suppression Suppression Args - A
suppression
block as defined below. - condition
Action
Rule Suppression Condition Args - A
condition
block as defined below. - description str
- Specifies a description for the Action Rule.
- enabled bool
- Is the Action Rule enabled? Defaults to
true
. - name str
- Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
- scope
Action
Rule Suppression Scope Args - A
scope
block as defined below. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- resource
Group StringName - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
- suppression Property Map
- A
suppression
block as defined below. - condition Property Map
- A
condition
block as defined below. - description String
- Specifies a description for the Action Rule.
- enabled Boolean
- Is the Action Rule enabled? Defaults to
true
. - name String
- Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
- scope Property Map
- A
scope
block as defined below. - Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ActionRuleSuppression resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ActionRuleSuppression Resource
Get an existing ActionRuleSuppression resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ActionRuleSuppressionState, opts?: CustomResourceOptions): ActionRuleSuppression
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
condition: Optional[ActionRuleSuppressionConditionArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
scope: Optional[ActionRuleSuppressionScopeArgs] = None,
suppression: Optional[ActionRuleSuppressionSuppressionArgs] = None,
tags: Optional[Mapping[str, str]] = None) -> ActionRuleSuppression
func GetActionRuleSuppression(ctx *Context, name string, id IDInput, state *ActionRuleSuppressionState, opts ...ResourceOption) (*ActionRuleSuppression, error)
public static ActionRuleSuppression Get(string name, Input<string> id, ActionRuleSuppressionState? state, CustomResourceOptions? opts = null)
public static ActionRuleSuppression get(String name, Output<String> id, ActionRuleSuppressionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Condition
Action
Rule Suppression Condition - A
condition
block as defined below. - Description string
- Specifies a description for the Action Rule.
- Enabled bool
- Is the Action Rule enabled? Defaults to
true
. - Name string
- Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
- Resource
Group stringName - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
- Scope
Action
Rule Suppression Scope - A
scope
block as defined below. - Suppression
Action
Rule Suppression Suppression - A
suppression
block as defined below. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Condition
Action
Rule Suppression Condition Args - A
condition
block as defined below. - Description string
- Specifies a description for the Action Rule.
- Enabled bool
- Is the Action Rule enabled? Defaults to
true
. - Name string
- Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
- Resource
Group stringName - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
- Scope
Action
Rule Suppression Scope Args - A
scope
block as defined below. - Suppression
Action
Rule Suppression Suppression Args - A
suppression
block as defined below. - map[string]string
- A mapping of tags to assign to the resource.
- condition
Action
Rule Suppression Condition - A
condition
block as defined below. - description String
- Specifies a description for the Action Rule.
- enabled Boolean
- Is the Action Rule enabled? Defaults to
true
. - name String
- Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
- resource
Group StringName - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
- scope
Action
Rule Suppression Scope - A
scope
block as defined below. - suppression
Action
Rule Suppression Suppression - A
suppression
block as defined below. - Map<String,String>
- A mapping of tags to assign to the resource.
- condition
Action
Rule Suppression Condition - A
condition
block as defined below. - description string
- Specifies a description for the Action Rule.
- enabled boolean
- Is the Action Rule enabled? Defaults to
true
. - name string
- Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
- resource
Group stringName - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
- scope
Action
Rule Suppression Scope - A
scope
block as defined below. - suppression
Action
Rule Suppression Suppression - A
suppression
block as defined below. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- condition
Action
Rule Suppression Condition Args - A
condition
block as defined below. - description str
- Specifies a description for the Action Rule.
- enabled bool
- Is the Action Rule enabled? Defaults to
true
. - name str
- Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
- resource_
group_ strname - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
- scope
Action
Rule Suppression Scope Args - A
scope
block as defined below. - suppression
Action
Rule Suppression Suppression Args - A
suppression
block as defined below. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- condition Property Map
- A
condition
block as defined below. - description String
- Specifies a description for the Action Rule.
- enabled Boolean
- Is the Action Rule enabled? Defaults to
true
. - name String
- Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
- resource
Group StringName - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
- scope Property Map
- A
scope
block as defined below. - suppression Property Map
- A
suppression
block as defined below. - Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
ActionRuleSuppressionCondition, ActionRuleSuppressionConditionArgs
- Alert
Context ActionRule Suppression Condition Alert Context - A
alert_context
block as defined below. - Alert
Rule ActionId Rule Suppression Condition Alert Rule Id - A
alert_rule_id
block as defined below. - Description
Action
Rule Suppression Condition Description - A
description
block as defined below. - Monitor
Action
Rule Suppression Condition Monitor - A
monitor
block as defined below. - Monitor
Service ActionRule Suppression Condition Monitor Service - A
monitor_service
block as defined below. - Severity
Action
Rule Suppression Condition Severity - A
severity
block as defined below. - Target
Resource ActionType Rule Suppression Condition Target Resource Type - A
target_resource_type
block as defined below.
- Alert
Context ActionRule Suppression Condition Alert Context - A
alert_context
block as defined below. - Alert
Rule ActionId Rule Suppression Condition Alert Rule Id - A
alert_rule_id
block as defined below. - Description
Action
Rule Suppression Condition Description - A
description
block as defined below. - Monitor
Action
Rule Suppression Condition Monitor - A
monitor
block as defined below. - Monitor
Service ActionRule Suppression Condition Monitor Service - A
monitor_service
block as defined below. - Severity
Action
Rule Suppression Condition Severity - A
severity
block as defined below. - Target
Resource ActionType Rule Suppression Condition Target Resource Type - A
target_resource_type
block as defined below.
- alert
Context ActionRule Suppression Condition Alert Context - A
alert_context
block as defined below. - alert
Rule ActionId Rule Suppression Condition Alert Rule Id - A
alert_rule_id
block as defined below. - description
Action
Rule Suppression Condition Description - A
description
block as defined below. - monitor
Action
Rule Suppression Condition Monitor - A
monitor
block as defined below. - monitor
Service ActionRule Suppression Condition Monitor Service - A
monitor_service
block as defined below. - severity
Action
Rule Suppression Condition Severity - A
severity
block as defined below. - target
Resource ActionType Rule Suppression Condition Target Resource Type - A
target_resource_type
block as defined below.
- alert
Context ActionRule Suppression Condition Alert Context - A
alert_context
block as defined below. - alert
Rule ActionId Rule Suppression Condition Alert Rule Id - A
alert_rule_id
block as defined below. - description
Action
Rule Suppression Condition Description - A
description
block as defined below. - monitor
Action
Rule Suppression Condition Monitor - A
monitor
block as defined below. - monitor
Service ActionRule Suppression Condition Monitor Service - A
monitor_service
block as defined below. - severity
Action
Rule Suppression Condition Severity - A
severity
block as defined below. - target
Resource ActionType Rule Suppression Condition Target Resource Type - A
target_resource_type
block as defined below.
- alert_
context ActionRule Suppression Condition Alert Context - A
alert_context
block as defined below. - alert_
rule_ Actionid Rule Suppression Condition Alert Rule Id - A
alert_rule_id
block as defined below. - description
Action
Rule Suppression Condition Description - A
description
block as defined below. - monitor
Action
Rule Suppression Condition Monitor - A
monitor
block as defined below. - monitor_
service ActionRule Suppression Condition Monitor Service - A
monitor_service
block as defined below. - severity
Action
Rule Suppression Condition Severity - A
severity
block as defined below. - target_
resource_ Actiontype Rule Suppression Condition Target Resource Type - A
target_resource_type
block as defined below.
- alert
Context Property Map - A
alert_context
block as defined below. - alert
Rule Property MapId - A
alert_rule_id
block as defined below. - description Property Map
- A
description
block as defined below. - monitor Property Map
- A
monitor
block as defined below. - monitor
Service Property Map - A
monitor_service
block as defined below. - severity Property Map
- A
severity
block as defined below. - target
Resource Property MapType - A
target_resource_type
block as defined below.
ActionRuleSuppressionConditionAlertContext, ActionRuleSuppressionConditionAlertContextArgs
ActionRuleSuppressionConditionAlertRuleId, ActionRuleSuppressionConditionAlertRuleIdArgs
ActionRuleSuppressionConditionDescription, ActionRuleSuppressionConditionDescriptionArgs
ActionRuleSuppressionConditionMonitor, ActionRuleSuppressionConditionMonitorArgs
ActionRuleSuppressionConditionMonitorService, ActionRuleSuppressionConditionMonitorServiceArgs
- Operator string
- The operator for a given condition. Possible values are
Equals
andNotEquals
. - Values List<string>
- A list of values to match for a given condition. Possible values are
ActivityLog Administrative
,ActivityLog Autoscale
,ActivityLog Policy
,ActivityLog Recommendation
,ActivityLog Security
,Application Insights
,Azure Backup
,Azure Stack Edge
,Azure Stack Hub
,Custom
,Data Box Gateway
,Health Platform
,Log Alerts V2
,Log Analytics
,Platform
,Resource Health
,Smart Detector
andVM Insights - Health
.
- Operator string
- The operator for a given condition. Possible values are
Equals
andNotEquals
. - Values []string
- A list of values to match for a given condition. Possible values are
ActivityLog Administrative
,ActivityLog Autoscale
,ActivityLog Policy
,ActivityLog Recommendation
,ActivityLog Security
,Application Insights
,Azure Backup
,Azure Stack Edge
,Azure Stack Hub
,Custom
,Data Box Gateway
,Health Platform
,Log Alerts V2
,Log Analytics
,Platform
,Resource Health
,Smart Detector
andVM Insights - Health
.
- operator String
- The operator for a given condition. Possible values are
Equals
andNotEquals
. - values List<String>
- A list of values to match for a given condition. Possible values are
ActivityLog Administrative
,ActivityLog Autoscale
,ActivityLog Policy
,ActivityLog Recommendation
,ActivityLog Security
,Application Insights
,Azure Backup
,Azure Stack Edge
,Azure Stack Hub
,Custom
,Data Box Gateway
,Health Platform
,Log Alerts V2
,Log Analytics
,Platform
,Resource Health
,Smart Detector
andVM Insights - Health
.
- operator string
- The operator for a given condition. Possible values are
Equals
andNotEquals
. - values string[]
- A list of values to match for a given condition. Possible values are
ActivityLog Administrative
,ActivityLog Autoscale
,ActivityLog Policy
,ActivityLog Recommendation
,ActivityLog Security
,Application Insights
,Azure Backup
,Azure Stack Edge
,Azure Stack Hub
,Custom
,Data Box Gateway
,Health Platform
,Log Alerts V2
,Log Analytics
,Platform
,Resource Health
,Smart Detector
andVM Insights - Health
.
- operator str
- The operator for a given condition. Possible values are
Equals
andNotEquals
. - values Sequence[str]
- A list of values to match for a given condition. Possible values are
ActivityLog Administrative
,ActivityLog Autoscale
,ActivityLog Policy
,ActivityLog Recommendation
,ActivityLog Security
,Application Insights
,Azure Backup
,Azure Stack Edge
,Azure Stack Hub
,Custom
,Data Box Gateway
,Health Platform
,Log Alerts V2
,Log Analytics
,Platform
,Resource Health
,Smart Detector
andVM Insights - Health
.
- operator String
- The operator for a given condition. Possible values are
Equals
andNotEquals
. - values List<String>
- A list of values to match for a given condition. Possible values are
ActivityLog Administrative
,ActivityLog Autoscale
,ActivityLog Policy
,ActivityLog Recommendation
,ActivityLog Security
,Application Insights
,Azure Backup
,Azure Stack Edge
,Azure Stack Hub
,Custom
,Data Box Gateway
,Health Platform
,Log Alerts V2
,Log Analytics
,Platform
,Resource Health
,Smart Detector
andVM Insights - Health
.
ActionRuleSuppressionConditionSeverity, ActionRuleSuppressionConditionSeverityArgs
ActionRuleSuppressionConditionTargetResourceType, ActionRuleSuppressionConditionTargetResourceTypeArgs
ActionRuleSuppressionScope, ActionRuleSuppressionScopeArgs
- Resource
Ids List<string> - A list of resource IDs of the given scope type which will be the target of action rule.
- Type string
- Specifies the type of target scope. Possible values are
ResourceGroup
andResource
.
- Resource
Ids []string - A list of resource IDs of the given scope type which will be the target of action rule.
- Type string
- Specifies the type of target scope. Possible values are
ResourceGroup
andResource
.
- resource
Ids List<String> - A list of resource IDs of the given scope type which will be the target of action rule.
- type String
- Specifies the type of target scope. Possible values are
ResourceGroup
andResource
.
- resource
Ids string[] - A list of resource IDs of the given scope type which will be the target of action rule.
- type string
- Specifies the type of target scope. Possible values are
ResourceGroup
andResource
.
- resource_
ids Sequence[str] - A list of resource IDs of the given scope type which will be the target of action rule.
- type str
- Specifies the type of target scope. Possible values are
ResourceGroup
andResource
.
- resource
Ids List<String> - A list of resource IDs of the given scope type which will be the target of action rule.
- type String
- Specifies the type of target scope. Possible values are
ResourceGroup
andResource
.
ActionRuleSuppressionSuppression, ActionRuleSuppressionSuppressionArgs
- Recurrence
Type string - Specifies the type of suppression. Possible values are
Always
,Daily
,Monthly
,Once
, andWeekly
. - Schedule
Action
Rule Suppression Suppression Schedule - A
schedule
block as defined below. Required ifrecurrence_type
isDaily
,Monthly
,Once
orWeekly
.
- Recurrence
Type string - Specifies the type of suppression. Possible values are
Always
,Daily
,Monthly
,Once
, andWeekly
. - Schedule
Action
Rule Suppression Suppression Schedule - A
schedule
block as defined below. Required ifrecurrence_type
isDaily
,Monthly
,Once
orWeekly
.
- recurrence
Type String - Specifies the type of suppression. Possible values are
Always
,Daily
,Monthly
,Once
, andWeekly
. - schedule
Action
Rule Suppression Suppression Schedule - A
schedule
block as defined below. Required ifrecurrence_type
isDaily
,Monthly
,Once
orWeekly
.
- recurrence
Type string - Specifies the type of suppression. Possible values are
Always
,Daily
,Monthly
,Once
, andWeekly
. - schedule
Action
Rule Suppression Suppression Schedule - A
schedule
block as defined below. Required ifrecurrence_type
isDaily
,Monthly
,Once
orWeekly
.
- recurrence_
type str - Specifies the type of suppression. Possible values are
Always
,Daily
,Monthly
,Once
, andWeekly
. - schedule
Action
Rule Suppression Suppression Schedule - A
schedule
block as defined below. Required ifrecurrence_type
isDaily
,Monthly
,Once
orWeekly
.
- recurrence
Type String - Specifies the type of suppression. Possible values are
Always
,Daily
,Monthly
,Once
, andWeekly
. - schedule Property Map
- A
schedule
block as defined below. Required ifrecurrence_type
isDaily
,Monthly
,Once
orWeekly
.
ActionRuleSuppressionSuppressionSchedule, ActionRuleSuppressionSuppressionScheduleArgs
- End
Date stringUtc - specifies the recurrence UTC end datetime (Y-m-d'T'H:M:S'Z').
- Start
Date stringUtc - specifies the recurrence UTC start datetime (Y-m-d'T'H:M:S'Z').
- Recurrence
Monthlies List<int> - specifies the list of dayOfMonth to recurrence. Possible values are between
1
-31
. Required ifrecurrence_type
isMonthly
. - Recurrence
Weeklies List<string> - specifies the list of dayOfWeek to recurrence. Possible values are
Sunday
,Monday
,Tuesday
,Wednesday
,Thursday
,Friday
andSaturday
.
- End
Date stringUtc - specifies the recurrence UTC end datetime (Y-m-d'T'H:M:S'Z').
- Start
Date stringUtc - specifies the recurrence UTC start datetime (Y-m-d'T'H:M:S'Z').
- Recurrence
Monthlies []int - specifies the list of dayOfMonth to recurrence. Possible values are between
1
-31
. Required ifrecurrence_type
isMonthly
. - Recurrence
Weeklies []string - specifies the list of dayOfWeek to recurrence. Possible values are
Sunday
,Monday
,Tuesday
,Wednesday
,Thursday
,Friday
andSaturday
.
- end
Date StringUtc - specifies the recurrence UTC end datetime (Y-m-d'T'H:M:S'Z').
- start
Date StringUtc - specifies the recurrence UTC start datetime (Y-m-d'T'H:M:S'Z').
- recurrence
Monthlies List<Integer> - specifies the list of dayOfMonth to recurrence. Possible values are between
1
-31
. Required ifrecurrence_type
isMonthly
. - recurrence
Weeklies List<String> - specifies the list of dayOfWeek to recurrence. Possible values are
Sunday
,Monday
,Tuesday
,Wednesday
,Thursday
,Friday
andSaturday
.
- end
Date stringUtc - specifies the recurrence UTC end datetime (Y-m-d'T'H:M:S'Z').
- start
Date stringUtc - specifies the recurrence UTC start datetime (Y-m-d'T'H:M:S'Z').
- recurrence
Monthlies number[] - specifies the list of dayOfMonth to recurrence. Possible values are between
1
-31
. Required ifrecurrence_type
isMonthly
. - recurrence
Weeklies string[] - specifies the list of dayOfWeek to recurrence. Possible values are
Sunday
,Monday
,Tuesday
,Wednesday
,Thursday
,Friday
andSaturday
.
- end_
date_ strutc - specifies the recurrence UTC end datetime (Y-m-d'T'H:M:S'Z').
- start_
date_ strutc - specifies the recurrence UTC start datetime (Y-m-d'T'H:M:S'Z').
- recurrence_
monthlies Sequence[int] - specifies the list of dayOfMonth to recurrence. Possible values are between
1
-31
. Required ifrecurrence_type
isMonthly
. - recurrence_
weeklies Sequence[str] - specifies the list of dayOfWeek to recurrence. Possible values are
Sunday
,Monday
,Tuesday
,Wednesday
,Thursday
,Friday
andSaturday
.
- end
Date StringUtc - specifies the recurrence UTC end datetime (Y-m-d'T'H:M:S'Z').
- start
Date StringUtc - specifies the recurrence UTC start datetime (Y-m-d'T'H:M:S'Z').
- recurrence
Monthlies List<Number> - specifies the list of dayOfMonth to recurrence. Possible values are between
1
-31
. Required ifrecurrence_type
isMonthly
. - recurrence
Weeklies List<String> - specifies the list of dayOfWeek to recurrence. Possible values are
Sunday
,Monday
,Tuesday
,Wednesday
,Thursday
,Friday
andSaturday
.
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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.