Class: AWS::EC2::AvailabilityZone
- Inherits:
-
Resource
- Object
- Resource
- AWS::EC2::AvailabilityZone
- Defined in:
- lib/aws/ec2/availability_zone.rb
Overview
Represents an EC2 availability zone. You can use this class to get information about the state of an availability zone that is available to your account.
Instance Attribute Summary collapse
-
#name ⇒ String
(also: #to_s, #to_str)
readonly
Returns the name of the availability zone, e.g.
Instance Method Summary collapse
-
#initialize(name, opts = {}) ⇒ AvailabilityZone
constructor
A new instance of AvailabilityZone.
-
#messages ⇒ Array
A list of messages about the Availability Zone.
-
#region ⇒ Region
The region of this availability zone.
-
#state ⇒ Symbol
The state of the availability zone, e.g.
Constructor Details
#initialize(name, opts = {}) ⇒ AvailabilityZone
Returns a new instance of AvailabilityZone.
32 33 34 35 36 |
# File 'lib/aws/ec2/availability_zone.rb', line 32 def initialize(name, opts = {}) @name = name @region = opts[:region] super(opts) end |
Instance Attribute Details
#name ⇒ String (readonly) Also known as: to_s, to_str
Returns the name of the availability zone, e.g. “us-east-1a”.
26 27 28 |
# File 'lib/aws/ec2/availability_zone.rb', line 26 def name @name end |
Instance Method Details
#messages ⇒ Array
Returns A list of messages about the Availability Zone.
53 |
# File 'lib/aws/ec2/availability_zone.rb', line 53 def ; end |
#region ⇒ Region
Returns The region of this availability zone.
39 |
# File 'lib/aws/ec2/availability_zone.rb', line 39 def region; end |
#state ⇒ Symbol
Returns The state of the availability zone, e.g. :available
.
48 |
# File 'lib/aws/ec2/availability_zone.rb', line 48 def state; end |