func (a AvailabilityZones) Validate(zoneName string) error {
	for _, az := range a {
		if az.Name() == zoneName {
			if az.Available() {
				return nil
			}
			return errors.Errorf("zone %q is unavailable", zoneName)
		}
	}
	return errors.NotValidf("availability zone %q", zoneName)
}
// Validate checks that a zone with the input name exists and is available
// according to the topology represented by the receiver.
// An error is returned if either of these conditions are not met.
Validate checks that a zone with the input name exists and is available
according to the topology represented by the receiver.
An error is returned if either of these conditions are not met.
// Validate checks that a zone with the input name exists and is available // according to the topology represented by the receiver . // An error is returned if either of these conditions are not met .
func (a AvailabilityZones) Validate(zoneName string) error {
	for _, az := range a {
		if az.Name() == zoneName {
			if az.Available() {
				return nil
			}
			return errors.Errorf("zone %q is unavailable", zoneName)
		}
	}
	return errors.NotValidf("availability zone %q", zoneName)
}
func ( a AvailabilityZones ) Validate ( zoneName string ) error { for _ , az := range a { if az . Name ( ) == zoneName { if az . Available ( ) { return nil } return errors . Errorf ( " " , zoneName ) } } return errors . NotValidf ( " " , zoneName ) }
Validate checks that a zone with the input name exists and is available
according to the topology represented by the receiver.
Validate checks that a zone with the input name exists and is available according to the topology represented by the receiver .