/
getService.go
76 lines (71 loc) · 3.21 KB
/
getService.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// *** 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 privatelink
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Use this data source to access information about an existing Private Link Service.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/privatelink"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// example, err := privatelink.GetService(ctx, &privatelink.GetServiceArgs{
// Name: "myPrivateLinkService",
// ResourceGroupName: "PrivateLinkServiceRG",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("privateLinkServiceId", example.Id)
// return nil
// })
// }
// ```
func GetService(ctx *pulumi.Context, args *GetServiceArgs, opts ...pulumi.InvokeOption) (*GetServiceResult, error) {
var rv GetServiceResult
err := ctx.Invoke("azure:privatelink/getService:getService", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getService.
type GetServiceArgs struct {
// The name of the private link service.
Name string `pulumi:"name"`
// The name of the resource group in which the private link service resides.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// A collection of values returned by getService.
type GetServiceResult struct {
// The alias is a globally unique name for your private link service which Azure generates for you. Your can use this alias to request a connection to your private link service.
Alias string `pulumi:"alias"`
// The list of subscription(s) globally unique identifiers that will be auto approved to use the private link service.
AutoApprovalSubscriptionIds []string `pulumi:"autoApprovalSubscriptionIds"`
// Does the Private Link Service support the Proxy Protocol?
EnableProxyProtocol bool `pulumi:"enableProxyProtocol"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// The list of Standard Load Balancer(SLB) resource IDs. The Private Link service is tied to the frontend IP address of a SLB. All traffic destined for the private link service will reach the frontend of the SLB. You can configure SLB rules to direct this traffic to appropriate backend pools where your applications are running.
LoadBalancerFrontendIpConfigurationIds []string `pulumi:"loadBalancerFrontendIpConfigurationIds"`
// The supported Azure location where the resource exists.
Location string `pulumi:"location"`
// The name of private link service NAT IP configuration.
Name string `pulumi:"name"`
// The `natIpConfiguration` block as defined below.
NatIpConfigurations []GetServiceNatIpConfiguration `pulumi:"natIpConfigurations"`
ResourceGroupName string `pulumi:"resourceGroupName"`
// A mapping of tags to assign to the resource.
Tags map[string]string `pulumi:"tags"`
// The list of subscription(s) globally unique identifiers(GUID) that will be able to see the private link service.
VisibilitySubscriptionIds []string `pulumi:"visibilitySubscriptionIds"`
}