/
getZone.go
47 lines (42 loc) · 1.82 KB
/
getZone.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
// *** 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! ***
// nolint: lll
package dns
import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// Use this data source to access information about an existing DNS Zone.
//
// > This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/d/dns_zone.html.markdown.
func LookupZone(ctx *pulumi.Context, args *LookupZoneArgs, opts ...pulumi.InvokeOption) (*LookupZoneResult, error) {
var rv LookupZoneResult
err := ctx.Invoke("azure:dns/getZone:getZone", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getZone.
type LookupZoneArgs struct {
// The name of the DNS Zone.
Name string `pulumi:"name"`
// The Name of the Resource Group where the DNS Zone exists.
// If the Name of the Resource Group is not provided, the first DNS Zone from the list of DNS Zones
// in your subscription that matches `name` will be returned.
ResourceGroupName *string `pulumi:"resourceGroupName"`
}
// A collection of values returned by getZone.
type LookupZoneResult struct {
// id is the provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Maximum number of Records in the zone.
MaxNumberOfRecordSets int `pulumi:"maxNumberOfRecordSets"`
Name string `pulumi:"name"`
// A list of values that make up the NS record for the zone.
NameServers []string `pulumi:"nameServers"`
// The number of records already in the zone.
NumberOfRecordSets int `pulumi:"numberOfRecordSets"`
ResourceGroupName string `pulumi:"resourceGroupName"`
// A mapping of tags to assign to the EventHub Namespace.
Tags map[string]string `pulumi:"tags"`
}