lib/ec2/right_ec2.rb
# Release an elastic IP address associated with your account.
# Options: :public_ip, :allocation_id.
# Returns +true+ or an exception.
#
#  ec2.release_address(:public_ip => '75.101.154.140') #=> true
#
Release an elastic IP address associated with your account.


Release an elastic IP address associated with your account .
def release_address(options = {})
      request_hash = {}
      request_hash['PublicIp']     = options[:public_ip]     unless options[:public_ip].right_blank?
      request_hash['AllocationId'] = options[:allocation_id] unless options[:allocation_id].right_blank?
      link = generate_request("ReleaseAddress", request_hash)
      request_info(link, RightBoolResponseParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
def release_address ( options = { } ) request_hash = { } request_hash [ 'PublicIp' ] = options [ :public_ip ] unless options [ :public_ip ] . right_blank? request_hash [ 'AllocationId' ] = options [ :allocation_id ] unless options [ :allocation_id ] . right_blank? link = generate_request ( "ReleaseAddress" , request_hash ) request_info ( link , RightBoolResponseParser . new ( :logger => @logger ) ) rescue Exception on_exception end
Release an elastic IP address associated with your account.
Release an elastic IP address associated with your account .
options
<not_specific>