import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog MonitorNotificationRule resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const teamCheckoutNotificationRule = new datadog.MonitorNotificationRule("team_checkout_notification_rule", { * name: "Route alerts from checkout team", * recipients: [ * "slack-checkout-ops", * "jira-checkout", * ], * filter: [{ * tags: ["team:payment"], * }], * }); * const teamPaymentNotificationRule = new datadog.MonitorNotificationRule("team_payment_notification_rule", { * name: "Routing logic for team payment", * filter: [{ * scope: "team:payment AND NOT env:dev AND service:(payment-processing OR payment-gateway)", * }], * conditionalRecipients: [{ * conditions: [ * { * scope: "priority:p1", * recipients: [ * "oncall-payment", * "slack-payment", * ], * }, * { * scope: "priority:p5", * recipients: ["slack-payment"], * }, * ], * fallbackRecipients: ["slack-payment"], * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/monitorNotificationRule:MonitorNotificationRule new_list "00e000000-0000-1234-0000-000000000000" * ``` */ export declare class MonitorNotificationRule extends pulumi.CustomResource { /** * Get an existing MonitorNotificationRule 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?: MonitorNotificationRuleState, opts?: pulumi.CustomResourceOptions): MonitorNotificationRule; /** * Returns true if the given object is an instance of MonitorNotificationRule. 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 MonitorNotificationRule; /** * Use conditional recipients to define different recipients for different situations. Cannot be used with `recipients`. */ readonly conditionalRecipients: pulumi.Output; /** * Specifies the matching criteria for monitor notifications. */ readonly filter: pulumi.Output; /** * The name of the monitor notification rule. */ readonly name: pulumi.Output; /** * List of recipients to notify. Cannot be used with `conditionalRecipients`. */ readonly recipients: pulumi.Output; /** * Create a MonitorNotificationRule 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: MonitorNotificationRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MonitorNotificationRule resources. */ export interface MonitorNotificationRuleState { /** * Use conditional recipients to define different recipients for different situations. Cannot be used with `recipients`. */ conditionalRecipients?: pulumi.Input; /** * Specifies the matching criteria for monitor notifications. */ filter?: pulumi.Input; /** * The name of the monitor notification rule. */ name?: pulumi.Input; /** * List of recipients to notify. Cannot be used with `conditionalRecipients`. */ recipients?: pulumi.Input[]>; } /** * The set of arguments for constructing a MonitorNotificationRule resource. */ export interface MonitorNotificationRuleArgs { /** * Use conditional recipients to define different recipients for different situations. Cannot be used with `recipients`. */ conditionalRecipients?: pulumi.Input; /** * Specifies the matching criteria for monitor notifications. */ filter: pulumi.Input; /** * The name of the monitor notification rule. */ name: pulumi.Input; /** * List of recipients to notify. Cannot be used with `conditionalRecipients`. */ recipients?: pulumi.Input[]>; }