Class AWS::EC2::ElasticIp
In: lib/aws/ec2/elastic_ip.rb
Parent: Resource

@attr_reader [String,nil] instance_id Returns the instance id if

  assigned to an EC2 instance, nil otherwise.

Methods

External Aliases

public_ip -> ip_address

Attributes

public_ip  [R]  @return [String] The public IP address.

Public Class methods

Protected Class methods

Public Instance methods

@return [Boolean] Returns true if this IP address is attached to

  an EC2 instance.
attached?()

Alias for associated?

Releases the elastic IP address.

(For non-VPC elastic ips) Releasing an IP address automatically disassociates it from any instance it‘s associated with.

@return [nil]

Disassociates this elastic IP address from an EC2 instance. Raises an exception if this elastic IP is not currently associated with an instance. @return [nil]

@return [Instance,nil] If associated, returns the {Instance} this

  elastic IP address is associated to, nil otherwise.
release()

Alias for delete

@return [String] Returns the public IP address

Protected Instance methods

[Validate]