@pulumi/pagerduty
Version:
A Pulumi package for creating and managing pagerduty cloud resources.
92 lines • 3.56 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEventOrchestrationOutput = exports.getEventOrchestration = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to get information about a specific Global [Event Orchestration](https://developer.pagerduty.com/api-reference/7ba0fe7bdb26a-list-event-orchestrations)
*
* ## 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 Orchestration"});
* const tfMyMonitor = pagerduty.getEventOrchestrationOutput({
* name: tfOrchA.name,
* });
* const unrouted = new pagerduty.EventOrchestrationUnrouted("unrouted", {
* eventOrchestration: tfMyMonitor.apply(tfMyMonitor => tfMyMonitor.id),
* catchAll: {
* actions: {
* severity: "info",
* },
* },
* sets: [{
* id: "start",
* rules: [{
* actions: {
* extractions: [{
* target: "event.custom_details.integration_type",
* template: tfMyMonitor.apply(tfMyMonitor => tfMyMonitor.integrationDetail?.[0]?.parameters?.[0]?.type),
* }],
* },
* }],
* }],
* });
* ```
*/
function getEventOrchestration(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("pagerduty:index/getEventOrchestration:getEventOrchestration", {
"integrationDetail": args.integrationDetail,
"name": args.name,
}, opts);
}
exports.getEventOrchestration = getEventOrchestration;
/**
* Use this data source to get information about a specific Global [Event Orchestration](https://developer.pagerduty.com/api-reference/7ba0fe7bdb26a-list-event-orchestrations)
*
* ## 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 Orchestration"});
* const tfMyMonitor = pagerduty.getEventOrchestrationOutput({
* name: tfOrchA.name,
* });
* const unrouted = new pagerduty.EventOrchestrationUnrouted("unrouted", {
* eventOrchestration: tfMyMonitor.apply(tfMyMonitor => tfMyMonitor.id),
* catchAll: {
* actions: {
* severity: "info",
* },
* },
* sets: [{
* id: "start",
* rules: [{
* actions: {
* extractions: [{
* target: "event.custom_details.integration_type",
* template: tfMyMonitor.apply(tfMyMonitor => tfMyMonitor.integrationDetail?.[0]?.parameters?.[0]?.type),
* }],
* },
* }],
* }],
* });
* ```
*/
function getEventOrchestrationOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("pagerduty:index/getEventOrchestration:getEventOrchestration", {
"integrationDetail": args.integrationDetail,
"name": args.name,
}, opts);
}
exports.getEventOrchestrationOutput = getEventOrchestrationOutput;
//# sourceMappingURL=getEventOrchestration.js.map