/
getDelegationSet.go
58 lines (53 loc) · 1.66 KB
/
getDelegationSet.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
// *** 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 route53
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// `route53.DelegationSet` provides details about a specific Route 53 Delegation Set.
//
// This data source allows to find a list of name servers associated with a specific delegation set.
//
// ## Example Usage
//
// The following example shows how to get a delegation set from its id.
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/route53"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := route53.LookupDelegationSet(ctx, &route53.LookupDelegationSetArgs{
// Id: "MQWGHCBFAKEID",
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
func LookupDelegationSet(ctx *pulumi.Context, args *LookupDelegationSetArgs, opts ...pulumi.InvokeOption) (*LookupDelegationSetResult, error) {
var rv LookupDelegationSetResult
err := ctx.Invoke("aws:route53/getDelegationSet:getDelegationSet", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getDelegationSet.
type LookupDelegationSetArgs struct {
// The Hosted Zone id of the desired delegation set.
Id string `pulumi:"id"`
}
// A collection of values returned by getDelegationSet.
type LookupDelegationSetResult struct {
CallerReference string `pulumi:"callerReference"`
Id string `pulumi:"id"`
NameServers []string `pulumi:"nameServers"`
}