@pulumi/pagerduty
Version:
A Pulumi package for creating and managing pagerduty cloud resources.
82 lines • 2.67 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.getStandardsResourcesScoresOutput = exports.getStandardsResourcesScores = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to get information about the [scores for the standards for
* many resources][1].
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const foo = pagerduty.getService({
* name: "foo",
* });
* const bar = pagerduty.getService({
* name: "bar",
* });
* const baz = pagerduty.getService({
* name: "baz",
* });
* const scores = Promise.all([foo, bar, baz]).then(([foo, bar, baz]) => pagerduty.getStandardsResourcesScores({
* resourceType: "technical_services",
* ids: [
* foo.id,
* bar.id,
* baz.id,
* ],
* }));
* ```
*/
function getStandardsResourcesScores(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("pagerduty:index/getStandardsResourcesScores:getStandardsResourcesScores", {
"ids": args.ids,
"resourceType": args.resourceType,
}, opts);
}
exports.getStandardsResourcesScores = getStandardsResourcesScores;
/**
* Use this data source to get information about the [scores for the standards for
* many resources][1].
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const foo = pagerduty.getService({
* name: "foo",
* });
* const bar = pagerduty.getService({
* name: "bar",
* });
* const baz = pagerduty.getService({
* name: "baz",
* });
* const scores = Promise.all([foo, bar, baz]).then(([foo, bar, baz]) => pagerduty.getStandardsResourcesScores({
* resourceType: "technical_services",
* ids: [
* foo.id,
* bar.id,
* baz.id,
* ],
* }));
* ```
*/
function getStandardsResourcesScoresOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("pagerduty:index/getStandardsResourcesScores:getStandardsResourcesScores", {
"ids": args.ids,
"resourceType": args.resourceType,
}, opts);
}
exports.getStandardsResourcesScoresOutput = getStandardsResourcesScoresOutput;
//# sourceMappingURL=getStandardsResourcesScores.js.map