import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * *Note: If you are an advanced alert routing user, you should use the Alert Routes resource/data source instead of this one. If you don't know whether you are an advanced alert routing user, please contact Rootly customer support.* * * ## Example Usage * * ## Import * * rootly.AlertRoutingRule can be imported using the `import` command. * * ```sh * $ pulumi import rootly:index/alertRoutingRule:AlertRoutingRule primary a816421c-6ceb-481a-87c4-585e47451f24 * ``` * * Or using an `import` block. * * Locate the resource id in the web app, or retrieve it by listing resources through the API if it's not visible in the web app. * * HCL can be generated from the import block using the `-generate-config-out` flag. * * ```sh * pulumi preview -generate-config-out=generated.tf * ``` */ export declare class AlertRoutingRule extends pulumi.CustomResource { /** * Get an existing AlertRoutingRule 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?: AlertRoutingRuleState, opts?: pulumi.CustomResourceOptions): AlertRoutingRule; /** * Returns true if the given object is an instance of AlertRoutingRule. 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 AlertRoutingRule; /** * The ID of the alerts source */ readonly alertsSourceId: pulumi.Output; /** * The condition groups for the alert routing rule */ readonly conditionGroups: pulumi.Output; /** * The type of condition for the alert routing rule. Value must be one of `all`, `any`. */ readonly conditionType: pulumi.Output; /** * The conditions for the alert routing rule */ readonly conditions: pulumi.Output; /** * The destinations for the alert routing rule */ readonly destination: pulumi.Output; readonly enabled: pulumi.Output; /** * The name of the alert routing rule */ readonly name: pulumi.Output; /** * The position of the alert routing rule for ordering evaluation */ readonly position: pulumi.Output; /** * Create a AlertRoutingRule 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: AlertRoutingRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AlertRoutingRule resources. */ export interface AlertRoutingRuleState { /** * The ID of the alerts source */ alertsSourceId?: pulumi.Input; /** * The condition groups for the alert routing rule */ conditionGroups?: pulumi.Input[] | undefined>; /** * The type of condition for the alert routing rule. Value must be one of `all`, `any`. */ conditionType?: pulumi.Input; /** * The conditions for the alert routing rule */ conditions?: pulumi.Input[] | undefined>; /** * The destinations for the alert routing rule */ destination?: pulumi.Input; enabled?: pulumi.Input; /** * The name of the alert routing rule */ name?: pulumi.Input; /** * The position of the alert routing rule for ordering evaluation */ position?: pulumi.Input; } /** * The set of arguments for constructing a AlertRoutingRule resource. */ export interface AlertRoutingRuleArgs { /** * The ID of the alerts source */ alertsSourceId: pulumi.Input; /** * The condition groups for the alert routing rule */ conditionGroups?: pulumi.Input[] | undefined>; /** * The type of condition for the alert routing rule. Value must be one of `all`, `any`. */ conditionType?: pulumi.Input; /** * The conditions for the alert routing rule */ conditions?: pulumi.Input[] | undefined>; /** * The destinations for the alert routing rule */ destination: pulumi.Input; enabled?: pulumi.Input; /** * The name of the alert routing rule */ name?: pulumi.Input; /** * The position of the alert routing rule for ordering evaluation */ position?: pulumi.Input; } //# sourceMappingURL=alertRoutingRule.d.ts.map