(s string)
| 307 | var reZoneId = regexp.MustCompile("^(/hostedzone/)?Z[A-Z0-9]{9,}$") |
| 308 | |
| 309 | func isZoneId(s string) bool { |
| 310 | return reZoneId.MatchString(s) |
| 311 | } |
| 312 | |
| 313 | func lookupZone(ctx context.Context, nameOrId string) *route53types.HostedZone { |
| 314 | if isZoneId(nameOrId) { |
no outgoing calls