import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Use this resource to create a muting rule for New Relic Alerts incidents. * * > **IMPORTANT!** Version 2.0.0 of the New Relic Terraform Provider introduces some [additional requirements](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/migration_guide_v2) for configuring the provider. *

* Before upgrading to version 2.0.0 or later, it is recommended to upgrade to the most recent 1.x version of the provider and ensure that your environment successfully runs `pulumi preview` without unexpected changes. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const foo = new newrelic.AlertMutingRule("foo", { * name: "Example Muting Rule", * enabled: true, * description: "muting rule test.", * condition: { * conditions: [ * { * attribute: "product", * operator: "EQUALS", * values: ["APM"], * }, * { * attribute: "targetId", * operator: "EQUALS", * values: ["Muted"], * }, * ], * operator: "AND", * }, * schedule: { * startTime: "2021-01-28T15:30:00", * endTime: "2021-01-28T16:30:00", * timeZone: "America/Los_Angeles", * repeat: "WEEKLY", * weeklyRepeatDays: [ * "MONDAY", * "WEDNESDAY", * "FRIDAY", * ], * repeatCount: 42, * }, * actionOnMutingRuleWindowEnded: "CLOSE_ISSUES_ON_INACTIVE", * }); * ``` * * ## Import * * Alert Muting Rules can be imported using a composite ID of `:`, e.g. * * ```sh * $ pulumi import newrelic:index/alertMutingRule:AlertMutingRule foo 538291:6789035 * * ``` */ export declare class AlertMutingRule extends pulumi.CustomResource { /** * Get an existing AlertMutingRule 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?: AlertMutingRuleState, opts?: pulumi.CustomResourceOptions): AlertMutingRule; /** * Returns true if the given object is an instance of AlertMutingRule. 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 AlertMutingRule; /** * The account id of the MutingRule. */ readonly accountId: pulumi.Output; /** * The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`. */ readonly actionOnMutingRuleWindowEnded: pulumi.Output; /** * The condition that defines which incidents to target. See Nested condition blocks below for details. */ readonly condition: pulumi.Output; /** * The description of the MutingRule. */ readonly description: pulumi.Output; /** * Whether the MutingRule is enabled. */ readonly enabled: pulumi.Output; /** * The name of the MutingRule. */ readonly name: pulumi.Output; /** * Specify a schedule for enabling the MutingRule. See Schedule below for details */ readonly schedule: pulumi.Output; /** * Create a AlertMutingRule 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: AlertMutingRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AlertMutingRule resources. */ export interface AlertMutingRuleState { /** * The account id of the MutingRule. */ accountId?: pulumi.Input; /** * The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`. */ actionOnMutingRuleWindowEnded?: pulumi.Input; /** * The condition that defines which incidents to target. See Nested condition blocks below for details. */ condition?: pulumi.Input; /** * The description of the MutingRule. */ description?: pulumi.Input; /** * Whether the MutingRule is enabled. */ enabled?: pulumi.Input; /** * The name of the MutingRule. */ name?: pulumi.Input; /** * Specify a schedule for enabling the MutingRule. See Schedule below for details */ schedule?: pulumi.Input; } /** * The set of arguments for constructing a AlertMutingRule resource. */ export interface AlertMutingRuleArgs { /** * The account id of the MutingRule. */ accountId?: pulumi.Input; /** * The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`. */ actionOnMutingRuleWindowEnded?: pulumi.Input; /** * The condition that defines which incidents to target. See Nested condition blocks below for details. */ condition: pulumi.Input; /** * The description of the MutingRule. */ description?: pulumi.Input; /** * Whether the MutingRule is enabled. */ enabled: pulumi.Input; /** * The name of the MutingRule. */ name?: pulumi.Input; /** * Specify a schedule for enabling the MutingRule. See Schedule below for details */ schedule?: pulumi.Input; } //# sourceMappingURL=alertMutingRule.d.ts.map