@pulumi/pagerduty
Version:
A Pulumi package for creating and managing pagerduty cloud resources.
104 lines • 4.17 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEventOrchestrationServiceCacheVariableOutput = exports.getEventOrchestrationServiceCacheVariable = 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 Service Event Orchestration.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const engineering = new pagerduty.Team("engineering", {name: "Engineering"});
* const example = new pagerduty.User("example", {
* name: "Earline Greenholt",
* email: "125.greenholt.earline@graham.name",
* teams: [engineering.id],
* });
* const exampleEscalationPolicy = new pagerduty.EscalationPolicy("example", {
* name: "Engineering Escalation Policy",
* numLoops: 2,
* rules: [{
* escalationDelayInMinutes: 10,
* targets: [{
* type: "user",
* id: example.id,
* }],
* }],
* });
* const service = new pagerduty.Service("service", {
* name: "My Web App",
* autoResolveTimeout: "14400",
* acknowledgementTimeout: "600",
* escalationPolicy: exampleEscalationPolicy.id,
* alertCreation: "create_alerts_and_incidents",
* });
* const cacheVariable = pagerduty.getEventOrchestrationServiceCacheVariableOutput({
* service: service.id,
* name: "example_cache_variable",
* });
* ```
*/
function getEventOrchestrationServiceCacheVariable(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("pagerduty:index/getEventOrchestrationServiceCacheVariable:getEventOrchestrationServiceCacheVariable", {
"id": args.id,
"name": args.name,
"service": args.service,
}, opts);
}
exports.getEventOrchestrationServiceCacheVariable = getEventOrchestrationServiceCacheVariable;
/**
* Use this data source to get information about a specific [Cache Variable](https://support.pagerduty.com/docs/event-orchestration-variables) for a Service Event Orchestration.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const engineering = new pagerduty.Team("engineering", {name: "Engineering"});
* const example = new pagerduty.User("example", {
* name: "Earline Greenholt",
* email: "125.greenholt.earline@graham.name",
* teams: [engineering.id],
* });
* const exampleEscalationPolicy = new pagerduty.EscalationPolicy("example", {
* name: "Engineering Escalation Policy",
* numLoops: 2,
* rules: [{
* escalationDelayInMinutes: 10,
* targets: [{
* type: "user",
* id: example.id,
* }],
* }],
* });
* const service = new pagerduty.Service("service", {
* name: "My Web App",
* autoResolveTimeout: "14400",
* acknowledgementTimeout: "600",
* escalationPolicy: exampleEscalationPolicy.id,
* alertCreation: "create_alerts_and_incidents",
* });
* const cacheVariable = pagerduty.getEventOrchestrationServiceCacheVariableOutput({
* service: service.id,
* name: "example_cache_variable",
* });
* ```
*/
function getEventOrchestrationServiceCacheVariableOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("pagerduty:index/getEventOrchestrationServiceCacheVariable:getEventOrchestrationServiceCacheVariable", {
"id": args.id,
"name": args.name,
"service": args.service,
}, opts);
}
exports.getEventOrchestrationServiceCacheVariableOutput = getEventOrchestrationServiceCacheVariableOutput;
//# sourceMappingURL=getEventOrchestrationServiceCacheVariable.js.map