class AWS::EC2::RegionCollection

def each

Returns:
  • (nil) -

Other tags:
    Yield: - Each region that is available to your account.
def each
  response = filtered_request(:describe_regions)
  response.region_info.each do |r|
    region = Region.new(r.region_name,
                        :endpoint => r.region_endpoint,
                        :config => config)
    yield(region)
  end
  nil
end