import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog On-Call team routing rules resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const teamRulesTest = new datadog.OnCallTeamRoutingRules("team_rules_test", { * teamId: "00000000-aba2-0000-0000-000000000000", * rules: [ * { * query: "tags.service:test", * actions: [{ * sendSlackMessage: [{ * workspace: "workspace", * channel: "channel", * }], * }], * timeRestrictions: [{ * timeZone: "America/New_York", * restrictions: [{ * endDay: "monday", * endTime: "17:00:00", * startDay: "monday", * startTime: "09:00:00", * }], * }], * }, * { * escalationPolicy: "00000000-aba2-0000-0000-000000000000", * urgency: "dynamic", * }, * ], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import existing onCallTeamRoutingRules * * ```sh * $ pulumi import datadog:index/onCallTeamRoutingRules:OnCallTeamRoutingRules test "b03a07d5-49da-43e9-83b4-5d84969b588b" * ``` */ export declare class OnCallTeamRoutingRules extends pulumi.CustomResource { /** * Get an existing OnCallTeamRoutingRules 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?: OnCallTeamRoutingRulesState, opts?: pulumi.CustomResourceOptions): OnCallTeamRoutingRules; /** * Returns true if the given object is an instance of OnCallTeamRoutingRules. 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 OnCallTeamRoutingRules; /** * List of team routing rules. */ readonly rules: pulumi.Output; /** * ID of the team to associate the routing rules with. */ readonly teamId: pulumi.Output; /** * Create a OnCallTeamRoutingRules 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: OnCallTeamRoutingRulesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OnCallTeamRoutingRules resources. */ export interface OnCallTeamRoutingRulesState { /** * List of team routing rules. */ rules?: pulumi.Input[]>; /** * ID of the team to associate the routing rules with. */ teamId?: pulumi.Input; } /** * The set of arguments for constructing a OnCallTeamRoutingRules resource. */ export interface OnCallTeamRoutingRulesArgs { /** * List of team routing rules. */ rules?: pulumi.Input[]>; /** * ID of the team to associate the routing rules with. */ teamId: pulumi.Input; }