class AWS::EC2::AvailabilityZone
Availability Zone.
@attr_reader [Array<String>] messages Returns a list of messages about the
zone, e.g. :available
.
@attr_reader [Symbol] state Returns the state of the availability
of the availability zone.
@attr_reader [String,nil] region_name Returns the region name
that is available to your account.
to get information about the state of an availability zone
Represents an EC2 availability zone. You can use this class
def self.inflected_name
def self.inflected_name "zone" end
def describe_call_name
def describe_call_name :describe_availability_zones end
def inflected_name
def inflected_name self.class.inflected_name end
def initialize name, options = {}
-
name
(String
) -- The name of the availability zone.
def initialize name, options = {} @name = name if options[:region] options[:region_name] = options[:region].name end super end
def region
-
(Region)
- Returns the region of this availability zone.
def region Region.new(self.region_name, :config => config) end