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

Function deleteZone

commands.go:130–139  ·  view source on GitHub ↗
(ctx context.Context, name string, purge bool)

Source from the content-addressed store, hash-verified

128}
129
130func deleteZone(ctx context.Context, name string, purge bool) {
131 zone := lookupZone(ctx, name)
132 if purge {
133 purgeZoneRecords(ctx, zone, false)
134 }
135 req := route53.DeleteHostedZoneInput{Id: zone.Id}
136 _, err := r53.DeleteHostedZone(ctx, &req)
137 fatalIfErr(err)
138 fmt.Printf("Deleted zone: '%s' ID: '%s'\n", *zone.Name, *zone.Id)
139}
140
141func listZones(ctx context.Context, formatter Formatter) {
142 zones := make(chan *route53types.HostedZone)

Callers 1

MainFunction · 0.85

Calls 3

lookupZoneFunction · 0.85
purgeZoneRecordsFunction · 0.85
fatalIfErrFunction · 0.70

Tested by

no test coverage detected