Class AWS::EC2::RegionCollection
In: lib/aws/ec2/region_collection.rb
Parent: Collection

Represents all the regions available to your account.

@example Getting a map of endpoints by region name

  ec2.regions.inject({}) { |m, r| m[r.name] = r.endpoint; m }

Methods

[]   each   member_class  

Public Instance methods

@return [Region] The region identified by the given name

  (e.g. "us-east-1").

@yield [Region] Each region that is available to your account. @return [nil]

Protected Instance methods

[Validate]