/
getVendor.go
34 lines (29 loc) · 1.24 KB
/
getVendor.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/v3/go/pulumi"
)
// Use this data source to get information about a specific [vendor](https://developer.pagerduty.com/api-reference/reference/REST/openapiv3.json/paths/~1vendors/get) that you can use for a service integration (e.g Amazon Cloudwatch, Splunk, Datadog).
func GetVendor(ctx *pulumi.Context, args *GetVendorArgs, opts ...pulumi.InvokeOption) (*GetVendorResult, error) {
var rv GetVendorResult
err := ctx.Invoke("pagerduty:index/getVendor:getVendor", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getVendor.
type GetVendorArgs struct {
// The vendor name to use to find a vendor in the PagerDuty API.
Name string `pulumi:"name"`
}
// A collection of values returned by getVendor.
type GetVendorResult struct {
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// The short name of the found vendor.
Name string `pulumi:"name"`
// The generic service type for this vendor.
Type string `pulumi:"type"`
}