/
getVpcEndpointZones.go
66 lines (61 loc) · 2.03 KB
/
getVpcEndpointZones.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
// *** 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"
)
// This data source provides the Privatelink Vpc Endpoint Zones of the current Alibaba Cloud user.
//
// > **NOTE:** Available in v1.111.0+.
//
// ## Example Usage
//
// Basic Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/privatelink"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// example, err := privatelink.GetVpcEndpointZones(ctx, &privatelink.GetVpcEndpointZonesArgs{
// EndpointId: "ep-gw8boxxxxx",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("firstPrivatelinkVpcEndpointZoneId", example.Zones[0].Id)
// return nil
// })
// }
// ```
func GetVpcEndpointZones(ctx *pulumi.Context, args *GetVpcEndpointZonesArgs, opts ...pulumi.InvokeOption) (*GetVpcEndpointZonesResult, error) {
var rv GetVpcEndpointZonesResult
err := ctx.Invoke("alicloud:privatelink/getVpcEndpointZones:getVpcEndpointZones", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getVpcEndpointZones.
type GetVpcEndpointZonesArgs struct {
// The ID of the Vpc Endpoint.
EndpointId string `pulumi:"endpointId"`
OutputFile *string `pulumi:"outputFile"`
// The Status of Vpc Endpoint Zone..
Status *string `pulumi:"status"`
}
// A collection of values returned by getVpcEndpointZones.
type GetVpcEndpointZonesResult struct {
EndpointId string `pulumi:"endpointId"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Ids []string `pulumi:"ids"`
OutputFile *string `pulumi:"outputFile"`
Status *string `pulumi:"status"`
Zones []GetVpcEndpointZonesZone `pulumi:"zones"`
}