UNPKG

@pulumi/pagerduty

Version:

A Pulumi package for creating and managing pagerduty cloud resources.

96 lines (95 loc) 3.72 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to get information as a list about specific Global [Event Orchestrations](https://developer.pagerduty.com/api-reference/7ba0fe7bdb26a-list-event-orchestrations) filtered by a Regular Expression provided. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const tfOrchA = new pagerduty.EventOrchestration("tf_orch_a", {name: "Test Event A Orchestration"}); * const tfOrchB = new pagerduty.EventOrchestration("tf_orch_b", {name: "Test Event B Orchestration"}); * const tfMyMonitor = pagerduty.getEventOrchestrations({ * nameFilter: ".*Orchestration$", * }); * const cacheVar = new pagerduty.EventOrchestrationGlobalCacheVariable("cache_var", { * eventOrchestration: tfMyMonitor.then(tfMyMonitor => tfMyMonitor.eventOrchestrations?.[0]?.id), * name: "recent_host", * conditions: [{ * expression: "event.source exists", * }], * configuration: { * type: "recent_value", * source: "event.source", * regex: ".*", * }, * }); * ``` */ export declare function getEventOrchestrations(args: GetEventOrchestrationsArgs, opts?: pulumi.InvokeOptions): Promise<GetEventOrchestrationsResult>; /** * A collection of arguments for invoking getEventOrchestrations. */ export interface GetEventOrchestrationsArgs { /** * The regex name of Global Event Orchestrations to find in the PagerDuty API. */ nameFilter: string; } /** * A collection of values returned by getEventOrchestrations. */ export interface GetEventOrchestrationsResult { /** * The list of the Event Orchestrations with a name that matches the `nameFilter` argument. */ readonly eventOrchestrations: outputs.GetEventOrchestrationsEventOrchestration[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The regex supplied to find the list of Global Event Orchestrations */ readonly nameFilter: string; } /** * Use this data source to get information as a list about specific Global [Event Orchestrations](https://developer.pagerduty.com/api-reference/7ba0fe7bdb26a-list-event-orchestrations) filtered by a Regular Expression provided. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const tfOrchA = new pagerduty.EventOrchestration("tf_orch_a", {name: "Test Event A Orchestration"}); * const tfOrchB = new pagerduty.EventOrchestration("tf_orch_b", {name: "Test Event B Orchestration"}); * const tfMyMonitor = pagerduty.getEventOrchestrations({ * nameFilter: ".*Orchestration$", * }); * const cacheVar = new pagerduty.EventOrchestrationGlobalCacheVariable("cache_var", { * eventOrchestration: tfMyMonitor.then(tfMyMonitor => tfMyMonitor.eventOrchestrations?.[0]?.id), * name: "recent_host", * conditions: [{ * expression: "event.source exists", * }], * configuration: { * type: "recent_value", * source: "event.source", * regex: ".*", * }, * }); * ``` */ export declare function getEventOrchestrationsOutput(args: GetEventOrchestrationsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEventOrchestrationsResult>; /** * A collection of arguments for invoking getEventOrchestrations. */ export interface GetEventOrchestrationsOutputArgs { /** * The regex name of Global Event Orchestrations to find in the PagerDuty API. */ nameFilter: pulumi.Input<string>; }