UNPKG

@pulumi/pagerduty

Version:

A Pulumi package for creating and managing pagerduty cloud resources.

58 lines 2.78 kB
"use strict"; // *** 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.getEventOrchestrationGlobalCacheVariableOutput = exports.getEventOrchestrationGlobalCacheVariable = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to get information about a specific [Cache Variable](https://support.pagerduty.com/docs/event-orchestration-variables) for a Global Event Orchestration. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const eventOrchestration = new pagerduty.EventOrchestration("event_orchestration", {name: "Test Event Orchestration"}); * const cacheVariable = pagerduty.getEventOrchestrationGlobalCacheVariableOutput({ * eventOrchestration: eventOrchestration.id, * name: "example_cache_variable", * }); * ``` */ function getEventOrchestrationGlobalCacheVariable(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("pagerduty:index/getEventOrchestrationGlobalCacheVariable:getEventOrchestrationGlobalCacheVariable", { "eventOrchestration": args.eventOrchestration, "id": args.id, "name": args.name, }, opts); } exports.getEventOrchestrationGlobalCacheVariable = getEventOrchestrationGlobalCacheVariable; /** * Use this data source to get information about a specific [Cache Variable](https://support.pagerduty.com/docs/event-orchestration-variables) for a Global Event Orchestration. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const eventOrchestration = new pagerduty.EventOrchestration("event_orchestration", {name: "Test Event Orchestration"}); * const cacheVariable = pagerduty.getEventOrchestrationGlobalCacheVariableOutput({ * eventOrchestration: eventOrchestration.id, * name: "example_cache_variable", * }); * ``` */ function getEventOrchestrationGlobalCacheVariableOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("pagerduty:index/getEventOrchestrationGlobalCacheVariable:getEventOrchestrationGlobalCacheVariable", { "eventOrchestration": args.eventOrchestration, "id": args.id, "name": args.name, }, opts); } exports.getEventOrchestrationGlobalCacheVariableOutput = getEventOrchestrationGlobalCacheVariableOutput; //# sourceMappingURL=getEventOrchestrationGlobalCacheVariable.js.map