UNPKG

@lbrlabs/pulumi-grafana

Version:

A Pulumi package for creating and managing grafana.

81 lines (80 loc) 3.32 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 "@lbrlabs/pulumi-grafana"; * * const _default = new grafana.OncallEscalationChain("default", {}, { * provider: grafana.oncall, * }); * ``` * * ## Import * * ```sh * $ pulumi import grafana:index/oncallEscalationChain:OncallEscalationChain escalation_chain_name {{escalation_chain_id}} * ``` */ export declare class OncallEscalationChain extends pulumi.CustomResource { /** * Get an existing OncallEscalationChain 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?: OncallEscalationChainState, opts?: pulumi.CustomResourceOptions): OncallEscalationChain; /** * Returns true if the given object is an instance of OncallEscalationChain. 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 OncallEscalationChain; /** * The name of the escalation chain. */ readonly name: pulumi.Output<string>; /** * The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource. */ readonly teamId: pulumi.Output<string | undefined>; /** * Create a OncallEscalationChain 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?: OncallEscalationChainArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OncallEscalationChain resources. */ export interface OncallEscalationChainState { /** * The name of the escalation chain. */ name?: pulumi.Input<string>; /** * The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource. */ teamId?: pulumi.Input<string>; } /** * The set of arguments for constructing a OncallEscalationChain resource. */ export interface OncallEscalationChainArgs { /** * The name of the escalation chain. */ name?: pulumi.Input<string>; /** * The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource. */ teamId?: pulumi.Input<string>; }