UNPKG

@pulumi/pagerduty

Version:

A Pulumi package for creating and managing pagerduty cloud resources.

103 lines (102 loc) 3.37 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const foo = new pagerduty.Team("foo", {name: "Engineering (Seattle)"}); * const fooRuleset = new pagerduty.Ruleset("foo", { * name: "Primary Ruleset", * team: { * id: foo.id, * }, * }); * ``` * * ## Import * * Rulesets can be imported using the `id`, e.g. * * ```sh * $ pulumi import pagerduty:index/ruleset:Ruleset main 19acac92-027a-4ea0-b06c-bbf516519601 * ``` */ export declare class Ruleset extends pulumi.CustomResource { /** * Get an existing Ruleset 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?: RulesetState, opts?: pulumi.CustomResourceOptions): Ruleset; /** * Returns true if the given object is an instance of Ruleset. 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 Ruleset; /** * Name of the ruleset. */ readonly name: pulumi.Output<string>; /** * Routing keys routed to this ruleset. */ readonly routingKeys: pulumi.Output<string[]>; /** * Reference to the team that owns the ruleset. If none is specified, only admins have access. */ readonly team: pulumi.Output<outputs.RulesetTeam | undefined>; /** * Type of ruleset. Currently, only sets to `global`. */ readonly type: pulumi.Output<string>; /** * Create a Ruleset 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?: RulesetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Ruleset resources. */ export interface RulesetState { /** * Name of the ruleset. */ name?: pulumi.Input<string>; /** * Routing keys routed to this ruleset. */ routingKeys?: pulumi.Input<pulumi.Input<string>[]>; /** * Reference to the team that owns the ruleset. If none is specified, only admins have access. */ team?: pulumi.Input<inputs.RulesetTeam>; /** * Type of ruleset. Currently, only sets to `global`. */ type?: pulumi.Input<string>; } /** * The set of arguments for constructing a Ruleset resource. */ export interface RulesetArgs { /** * Name of the ruleset. */ name?: pulumi.Input<string>; /** * Reference to the team that owns the ruleset. If none is specified, only admins have access. */ team?: pulumi.Input<inputs.RulesetTeam>; }