UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

88 lines (87 loc) 3.04 kB
import * as pulumi from "@pulumi/pulumi"; /** * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/escalation_chains/) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const myTeam = grafana.oss.getTeam({ * name: "my team", * }); * const myTeamGetTeam = myTeam.then(myTeam => grafana.onCall.getTeam({ * name: myTeam.name, * })); * const _default = new grafana.oncall.EscalationChain("default", { * name: "default", * teamId: myTeamGetTeam.then(myTeamGetTeam => myTeamGetTeam.id), * }); * ``` * * ## Import * * ```sh * terraform import grafana_oncall_escalation_chain.name "{{ id }}" * ``` */ export declare class EscalationChain extends pulumi.CustomResource { /** * Get an existing EscalationChain 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?: EscalationChainState, opts?: pulumi.CustomResourceOptions): EscalationChain; /** * Returns true if the given object is an instance of EscalationChain. 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 EscalationChain; /** * The name of the escalation chain. */ readonly name: pulumi.Output<string>; /** * The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource). */ readonly teamId: pulumi.Output<string | undefined>; /** * Create a EscalationChain 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?: EscalationChainArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EscalationChain resources. */ export interface EscalationChainState { /** * The name of the escalation chain. */ name?: pulumi.Input<string>; /** * The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource). */ teamId?: pulumi.Input<string>; } /** * The set of arguments for constructing a EscalationChain resource. */ export interface EscalationChainArgs { /** * The name of the escalation chain. */ name?: pulumi.Input<string>; /** * The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource). */ teamId?: pulumi.Input<string>; }