MCPcopy Create free account
hub / github.com/barnybug/cli53 / createReusableDelegationSet

Function createReusableDelegationSet

commands.go:44–59  ·  view source on GitHub ↗
(ctx context.Context, zoneId string)

Source from the content-addressed store, hash-verified

42}
43
44func createReusableDelegationSet(ctx context.Context, zoneId string) {
45 callerReference := uniqueReference()
46 req := route53.CreateReusableDelegationSetInput{
47 CallerReference: &callerReference,
48 }
49 if zoneId != "" {
50 req.HostedZoneId = &zoneId
51 }
52 resp, err := r53.CreateReusableDelegationSet(ctx, &req)
53 fatalIfErr(err)
54 ds := resp.DelegationSet
55 fmt.Printf("Created reusable delegation set ID: '%s'\n", *ds.Id)
56 for _, ns := range ds.NameServers {
57 fmt.Printf("Nameserver: %s\n", ns)
58 }
59}
60
61func listReusableDelegationSets(ctx context.Context) {
62 req := route53.ListReusableDelegationSetsInput{}

Callers 1

MainFunction · 0.85

Calls 2

uniqueReferenceFunction · 0.70
fatalIfErrFunction · 0.70

Tested by

no test coverage detected