(ctx context.Context, zoneId string)
| 42 | } |
| 43 | |
| 44 | func 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 | |
| 61 | func listReusableDelegationSets(ctx context.Context) { |
| 62 | req := route53.ListReusableDelegationSetsInput{} |
no test coverage detected