@pulumi/pagerduty
Version:
A Pulumi package for creating and managing pagerduty cloud resources.
58 lines • 2.77 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.getEventOrchestrationIntegrationOutput = exports.getEventOrchestrationIntegration = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to get information about a specific [Integration](https://developer.pagerduty.com/api-reference/1c6607db389a8-get-an-integration-for-an-event-orchestration) for an 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 integration = pagerduty.getEventOrchestrationIntegrationOutput({
* eventOrchestration: eventOrchestration.id,
* label: "Test Event Orchestration Default Integration",
* });
* ```
*/
function getEventOrchestrationIntegration(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("pagerduty:index/getEventOrchestrationIntegration:getEventOrchestrationIntegration", {
"eventOrchestration": args.eventOrchestration,
"id": args.id,
"label": args.label,
}, opts);
}
exports.getEventOrchestrationIntegration = getEventOrchestrationIntegration;
/**
* Use this data source to get information about a specific [Integration](https://developer.pagerduty.com/api-reference/1c6607db389a8-get-an-integration-for-an-event-orchestration) for an 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 integration = pagerduty.getEventOrchestrationIntegrationOutput({
* eventOrchestration: eventOrchestration.id,
* label: "Test Event Orchestration Default Integration",
* });
* ```
*/
function getEventOrchestrationIntegrationOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("pagerduty:index/getEventOrchestrationIntegration:getEventOrchestrationIntegration", {
"eventOrchestration": args.eventOrchestration,
"id": args.id,
"label": args.label,
}, opts);
}
exports.getEventOrchestrationIntegrationOutput = getEventOrchestrationIntegrationOutput;
//# sourceMappingURL=getEventOrchestrationIntegration.js.map