Class: AWS::EC2::AvailabilityZone

Inherits:
Resource
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(name, opts = {}) ⇒ AvailabilityZone

Returns a new instance of AvailabilityZone.

Parameters:

  • name (String)

    The name of the availability zone.



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

#nameString (readonly) Also known as: to_s, to_str

Returns the name of the availability zone, e.g. “us-east-1a”.

Returns:

  • (String)

    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

#messagesArray

Returns A list of messages about the Availability Zone.

Returns:

  • (Array)

    A list of messages about the Availability Zone.



53
# File 'lib/aws/ec2/availability_zone.rb', line 53

def messages; end

#regionRegion

Returns The region of this availability zone.

Returns:

  • (Region)

    The region of this availability zone.



39
# File 'lib/aws/ec2/availability_zone.rb', line 39

def region; end

#stateSymbol

Returns The state of the availability zone, e.g. :available.

Returns:

  • (Symbol)

    The state of the availability zone, e.g. :available.



48
# File 'lib/aws/ec2/availability_zone.rb', line 48

def state; end