UNPKG

@pulumi/pagerduty

Version:

A Pulumi package for creating and managing pagerduty cloud resources.

76 lines (75 loc) 2.2 kB
import * as pulumi from "@pulumi/pulumi"; /** * 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", * }); * ``` */ export declare function getTag(args: GetTagArgs, opts?: pulumi.InvokeOptions): Promise<GetTagResult>; /** * A collection of arguments for invoking getTag. */ export interface GetTagArgs { /** * The label of the tag to find in the PagerDuty API. */ label: string; } /** * A collection of values returned by getTag. */ export interface GetTagResult { /** * The ID of the found team. */ readonly id: string; readonly label: string; } /** * 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", * }); * ``` */ export declare function getTagOutput(args: GetTagOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagResult>; /** * A collection of arguments for invoking getTag. */ export interface GetTagOutputArgs { /** * The label of the tag to find in the PagerDuty API. */ label: pulumi.Input<string>; }