Class: AWS::EC2::AvailabilityZoneCollection
- Inherits:
-
Collection
- Object
- Collection
- AWS::EC2::AvailabilityZoneCollection
- Defined in:
- lib/aws/ec2/availability_zone_collection.rb
Overview
Represents all EC2 availability zones that are currently available to your account.
Instance Method Summary collapse
-
#each(&block) ⇒ nil
Yields each of the EC2 availability zones.
Instance Method Details
#each(&block) ⇒ nil
Yields each of the EC2 availability zones.
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/aws/ec2/availability_zone_collection.rb', line 26 def each &block resp = filtered_request(:describe_availability_zones) resp.availability_zone_info.each do |az| zone = AvailabilityZone.new(az.zone_name, :region => Region.new(az.region_name, :config => config), :config => config ) yield(zone) end nil end |