UNPKG

pulumi-better-uptime

Version:

A Pulumi provider for managing Better Uptime monitoring, alerting, and incident management resources, dynamically bridged from the Terraform Better Uptime provider with support for monitors, heartbeats, integrations, status pages, and policies.

119 lines (118 loc) 4.18 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; export declare class Policy extends pulumi.CustomResource { /** * Get an existing Policy 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<pulumi.ID>, state?: PolicyState, opts?: pulumi.CustomResourceOptions): Policy; /** * Returns true if the given object is an instance of Policy. 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 Policy; /** * Incident token that can be used for manually reporting incidents. */ readonly incidentToken: pulumi.Output<string>; /** * The name of this Policy. */ readonly name: pulumi.Output<string>; /** * Set this attribute if you want to add this policy to a policy group. */ readonly policyGroupId: pulumi.Output<number>; /** * How many times should the entire policy be repeated if no one acknowledges the incident. */ readonly repeatCount: pulumi.Output<number>; /** * How long in seconds to wait before each repetition. */ readonly repeatDelay: pulumi.Output<number>; /** * An array of escalation policy steps */ readonly steps: pulumi.Output<outputs.PolicyStep[]>; /** * Used to specify the team the resource should be created in when using global tokens. */ readonly teamName: pulumi.Output<string | undefined>; /** * Create a Policy 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: PolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Policy resources. */ export interface PolicyState { /** * Incident token that can be used for manually reporting incidents. */ incidentToken?: pulumi.Input<string>; /** * The name of this Policy. */ name?: pulumi.Input<string>; /** * Set this attribute if you want to add this policy to a policy group. */ policyGroupId?: pulumi.Input<number>; /** * How many times should the entire policy be repeated if no one acknowledges the incident. */ repeatCount?: pulumi.Input<number>; /** * How long in seconds to wait before each repetition. */ repeatDelay?: pulumi.Input<number>; /** * An array of escalation policy steps */ steps?: pulumi.Input<pulumi.Input<inputs.PolicyStep>[]>; /** * Used to specify the team the resource should be created in when using global tokens. */ teamName?: pulumi.Input<string>; } /** * The set of arguments for constructing a Policy resource. */ export interface PolicyArgs { /** * The name of this Policy. */ name?: pulumi.Input<string>; /** * Set this attribute if you want to add this policy to a policy group. */ policyGroupId?: pulumi.Input<number>; /** * How many times should the entire policy be repeated if no one acknowledges the incident. */ repeatCount?: pulumi.Input<number>; /** * How long in seconds to wait before each repetition. */ repeatDelay?: pulumi.Input<number>; /** * An array of escalation policy steps */ steps: pulumi.Input<pulumi.Input<inputs.PolicyStep>[]>; /** * Used to specify the team the resource should be created in when using global tokens. */ teamName?: pulumi.Input<string>; }