import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog On-Call escalation policy resource. This can be used to create and manage Datadog On-Call escalation policies. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const policyTest = new datadog.OnCallEscalationPolicy("policy_test", { * name: "Policy Name", * resolvePageOnPolicyEnd: true, * retries: 3, * steps: [{ * assignment: "round-robin", * escalateAfterSeconds: 300, * targets: [ * { * team: "00000000-aba2-0000-0000-000000000000", * }, * { * user: "00000000-aba2-0000-0000-000000000000", * }, * { * schedule: "00000000-aba2-0000-0000-000000000000", * }, * ], * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import an existing onCallEscalationPolicy * * ```sh * $ pulumi import datadog:index/onCallEscalationPolicy:OnCallEscalationPolicy policy_test "b03a07d5-49da-43e9-83b4-5d84969b588b" * ``` */ export declare class OnCallEscalationPolicy extends pulumi.CustomResource { /** * Get an existing OnCallEscalationPolicy 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?: OnCallEscalationPolicyState, opts?: pulumi.CustomResourceOptions): OnCallEscalationPolicy; /** * Returns true if the given object is an instance of OnCallEscalationPolicy. 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 OnCallEscalationPolicy; /** * A human-readable name for the escalation policy. */ readonly name: pulumi.Output; /** * If true, pages will be automatically resolved if unacknowledged after the final step. Defaults to `false`. */ readonly resolvePageOnPolicyEnd: pulumi.Output; /** * If set, policy will be retried this many times after the final step. Must be in the range 0-10. Value must be between 0 and 10. Defaults to `0`. */ readonly retries: pulumi.Output; /** * List of steps for the escalation policy. */ readonly steps: pulumi.Output; /** * A list of team ids associated with the escalation policy. */ readonly teams: pulumi.Output; /** * Create a OnCallEscalationPolicy 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: OnCallEscalationPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OnCallEscalationPolicy resources. */ export interface OnCallEscalationPolicyState { /** * A human-readable name for the escalation policy. */ name?: pulumi.Input; /** * If true, pages will be automatically resolved if unacknowledged after the final step. Defaults to `false`. */ resolvePageOnPolicyEnd?: pulumi.Input; /** * If set, policy will be retried this many times after the final step. Must be in the range 0-10. Value must be between 0 and 10. Defaults to `0`. */ retries?: pulumi.Input; /** * List of steps for the escalation policy. */ steps?: pulumi.Input[]>; /** * A list of team ids associated with the escalation policy. */ teams?: pulumi.Input[]>; } /** * The set of arguments for constructing a OnCallEscalationPolicy resource. */ export interface OnCallEscalationPolicyArgs { /** * A human-readable name for the escalation policy. */ name: pulumi.Input; /** * If true, pages will be automatically resolved if unacknowledged after the final step. Defaults to `false`. */ resolvePageOnPolicyEnd?: pulumi.Input; /** * If set, policy will be retried this many times after the final step. Must be in the range 0-10. Value must be between 0 and 10. Defaults to `0`. */ retries?: pulumi.Input; /** * List of steps for the escalation policy. */ steps: pulumi.Input[]>; /** * A list of team ids associated with the escalation policy. */ teams?: pulumi.Input[]>; }