-
Notifications
You must be signed in to change notification settings - Fork 2
/
getPriority.go
34 lines (29 loc) · 1.22 KB
/
getPriority.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// *** 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! ***
package pagerduty
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Use this data source to get information about a specific [priority](https://developer.pagerduty.com/api-reference/reference/REST/openapiv3.json/paths/~1priorities/get) that you can use for other PagerDuty resources.
func GetPriority(ctx *pulumi.Context, args *GetPriorityArgs, opts ...pulumi.InvokeOption) (*GetPriorityResult, error) {
var rv GetPriorityResult
err := ctx.Invoke("pagerduty:index/getPriority:getPriority", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getPriority.
type GetPriorityArgs struct {
// The name of the priority to find in the PagerDuty API.
Name string `pulumi:"name"`
}
// A collection of values returned by getPriority.
type GetPriorityResult struct {
// A description of the found priority.
Description string `pulumi:"description"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// The name of the found priority.
Name string `pulumi:"name"`
}