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

Function isZoneId

util.go:309–311  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

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

Callers 2

TestIsZoneIdFunction · 0.85
lookupZoneFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsZoneIdFunction · 0.68