import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Alert Processing Rule which suppress notifications. * * ## Example Usage * * ```typescript * 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 exampleAlertProcessingRuleSuppression = new azure.monitoring.AlertProcessingRuleSuppression("example", { * name: "example", * resourceGroupName: "example", * scopes: [example.id], * condition: { * targetResourceType: { * operator: "Equals", * values: ["Microsoft.Compute/VirtualMachines"], * }, * severity: { * operator: "Equals", * values: [ * "Sev0", * "Sev1", * "Sev2", * ], * }, * }, * schedule: { * effectiveFrom: "2022-01-01T01:02:03", * effectiveUntil: "2022-02-02T01:02:03", * timeZone: "Pacific Standard Time", * recurrence: { * dailies: [{ * startTime: "17:00:00", * endTime: "09:00:00", * }], * weeklies: [{ * daysOfWeeks: [ * "Saturday", * "Sunday", * ], * }], * }, * }, * tags: { * foo: "bar", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.AlertsManagement` - 2021-08-08 * * ## Import * * Alert Processing Rules can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:monitoring/alertProcessingRuleSuppression:AlertProcessingRuleSuppression example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.AlertsManagement/actionRules/actionRule1 * ``` */ export declare class AlertProcessingRuleSuppression extends pulumi.CustomResource { /** * Get an existing AlertProcessingRuleSuppression resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AlertProcessingRuleSuppressionState, opts?: pulumi.CustomResourceOptions): AlertProcessingRuleSuppression; /** * Returns true if the given object is an instance of AlertProcessingRuleSuppression. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AlertProcessingRuleSuppression; /** * A `condition` block as defined below. */ readonly condition: pulumi.Output; /** * Specifies a description for the Alert Processing Rule. */ readonly description: pulumi.Output; /** * Should the Alert Processing Rule be enabled? Defaults to `true`. */ readonly enabled: pulumi.Output; /** * The name which should be used for this Alert Processing Rule. Changing this forces a new Alert Processing Rule to be created. */ readonly name: pulumi.Output; /** * The name of the Resource Group where the Alert Processing Rule should exist. Changing this forces a new Alert Processing Rule to be created. */ readonly resourceGroupName: pulumi.Output; /** * A `schedule` block as defined below. */ readonly schedule: pulumi.Output; /** * A list of resource IDs which will be the target of Alert Processing Rule. */ readonly scopes: pulumi.Output; /** * A mapping of tags which should be assigned to the Alert Processing Rule. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a AlertProcessingRuleSuppression resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AlertProcessingRuleSuppressionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AlertProcessingRuleSuppression resources. */ export interface AlertProcessingRuleSuppressionState { /** * A `condition` block as defined below. */ condition?: pulumi.Input; /** * Specifies a description for the Alert Processing Rule. */ description?: pulumi.Input; /** * Should the Alert Processing Rule be enabled? Defaults to `true`. */ enabled?: pulumi.Input; /** * The name which should be used for this Alert Processing Rule. Changing this forces a new Alert Processing Rule to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Alert Processing Rule should exist. Changing this forces a new Alert Processing Rule to be created. */ resourceGroupName?: pulumi.Input; /** * A `schedule` block as defined below. */ schedule?: pulumi.Input; /** * A list of resource IDs which will be the target of Alert Processing Rule. */ scopes?: pulumi.Input[]>; /** * A mapping of tags which should be assigned to the Alert Processing Rule. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a AlertProcessingRuleSuppression resource. */ export interface AlertProcessingRuleSuppressionArgs { /** * A `condition` block as defined below. */ condition?: pulumi.Input; /** * Specifies a description for the Alert Processing Rule. */ description?: pulumi.Input; /** * Should the Alert Processing Rule be enabled? Defaults to `true`. */ enabled?: pulumi.Input; /** * The name which should be used for this Alert Processing Rule. Changing this forces a new Alert Processing Rule to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Alert Processing Rule should exist. Changing this forces a new Alert Processing Rule to be created. */ resourceGroupName: pulumi.Input; /** * A `schedule` block as defined below. */ schedule?: pulumi.Input; /** * A list of resource IDs which will be the target of Alert Processing Rule. */ scopes: pulumi.Input[]>; /** * A mapping of tags which should be assigned to the Alert Processing Rule. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }