UNPKG

@pulumi/pagerduty

Version:

A Pulumi package for creating and managing pagerduty cloud resources.

66 lines 2.27 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.getTagOutput = exports.getTag = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to get information about a specific [tag](https://developer.pagerduty.com/api-reference/b3A6Mjc0ODIxNw-list-tags) that you can use to assign to users, teams, and escalation_policies. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const me = pagerduty.getUser({ * email: "me@example.com", * }); * const devops = pagerduty.getTag({ * label: "devops", * }); * const foo = new pagerduty.TagAssignment("foo", { * tagId: devops.then(devops => devops.id), * entityId: me.then(me => me.id), * entityType: "users", * }); * ``` */ function getTag(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("pagerduty:index/getTag:getTag", { "label": args.label, }, opts); } exports.getTag = getTag; /** * Use this data source to get information about a specific [tag](https://developer.pagerduty.com/api-reference/b3A6Mjc0ODIxNw-list-tags) that you can use to assign to users, teams, and escalation_policies. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const me = pagerduty.getUser({ * email: "me@example.com", * }); * const devops = pagerduty.getTag({ * label: "devops", * }); * const foo = new pagerduty.TagAssignment("foo", { * tagId: devops.then(devops => devops.id), * entityId: me.then(me => me.id), * entityType: "users", * }); * ``` */ function getTagOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("pagerduty:index/getTag:getTag", { "label": args.label, }, opts); } exports.getTagOutput = getTagOutput; //# sourceMappingURL=getTag.js.map