@pulumi/pagerduty
Version:
A Pulumi package for creating and managing pagerduty cloud resources.
114 lines • 4.6 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* [Event Orchestrations](https://support.pagerduty.com/docs/event-orchestration) allow you define a set of Event Rules, so that when you ingest events using the Orchestration's Routing Key your events will be routed to the correct Global and/or Service Orchestration, based on the event's content.
*
* ## Example of configuring an Event Orchestration
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const engineering = new pagerduty.Team("engineering", {name: "Engineering"});
* const myMonitor = new pagerduty.EventOrchestration("my_monitor", {
* name: "My Monitoring Orchestration",
* description: "Send events to a pair of services",
* team: engineering.id,
* });
* ```
*
* ## Import
*
* EventOrchestrations can be imported using the `id`, e.g.
*
* ```sh
* $ pulumi import pagerduty:index/eventOrchestration:EventOrchestration main 19acac92-027a-4ea0-b06c-bbf516519601
* ```
*/
export declare class EventOrchestration extends pulumi.CustomResource {
/**
* Get an existing EventOrchestration 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?: EventOrchestrationState, opts?: pulumi.CustomResourceOptions): EventOrchestration;
/**
* Returns true if the given object is an instance of EventOrchestration. 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 EventOrchestration;
/**
* A human-friendly description of the Event Orchestration.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* A list of integrations for the Event Orchestration.
*/
readonly integrations: pulumi.Output<outputs.EventOrchestrationIntegration[]>;
/**
* Name of the Event Orchestration.
*/
readonly name: pulumi.Output<string>;
readonly routes: pulumi.Output<number>;
/**
* ID of the team that owns the Event Orchestration. If none is specified, only admins have access.
*/
readonly team: pulumi.Output<string | undefined>;
/**
* Create a EventOrchestration 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?: EventOrchestrationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering EventOrchestration resources.
*/
export interface EventOrchestrationState {
/**
* A human-friendly description of the Event Orchestration.
*/
description?: pulumi.Input<string | undefined>;
/**
* A list of integrations for the Event Orchestration.
*/
integrations?: pulumi.Input<pulumi.Input<inputs.EventOrchestrationIntegration>[] | undefined>;
/**
* Name of the Event Orchestration.
*/
name?: pulumi.Input<string | undefined>;
routes?: pulumi.Input<number | undefined>;
/**
* ID of the team that owns the Event Orchestration. If none is specified, only admins have access.
*/
team?: pulumi.Input<string | undefined>;
}
/**
* The set of arguments for constructing a EventOrchestration resource.
*/
export interface EventOrchestrationArgs {
/**
* A human-friendly description of the Event Orchestration.
*/
description?: pulumi.Input<string | undefined>;
/**
* A list of integrations for the Event Orchestration.
*/
integrations?: pulumi.Input<pulumi.Input<inputs.EventOrchestrationIntegration>[] | undefined>;
/**
* Name of the Event Orchestration.
*/
name?: pulumi.Input<string | undefined>;
/**
* ID of the team that owns the Event Orchestration. If none is specified, only admins have access.
*/
team?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=eventOrchestration.d.ts.map