/
getRegion.go
38 lines (33 loc) · 1.21 KB
/
getRegion.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
// *** 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 civo
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Retrieves information about the Region that Civo supports,
// with the ability to filter the results.
func GetRegion(ctx *pulumi.Context, args *GetRegionArgs, opts ...pulumi.InvokeOption) (*GetRegionResult, error) {
var rv GetRegionResult
err := ctx.Invoke("civo:index/getRegion:getRegion", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getRegion.
type GetRegionArgs struct {
// Filter the results.
// The `filter` block is documented below.
Filters []GetRegionFilter `pulumi:"filters"`
// Sort the results.
// The `sort` block is documented below.
Sorts []GetRegionSort `pulumi:"sorts"`
}
// A collection of values returned by getRegion.
type GetRegionResult struct {
Filters []GetRegionFilter `pulumi:"filters"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Regions []GetRegionRegion `pulumi:"regions"`
Sorts []GetRegionSort `pulumi:"sorts"`
}