Method: Awsum::Ec2#disassociate_address
- Defined in:
- lib/awsum/ec2.rb
#disassociate_address(public_ip) ⇒ Object
Disassociate Address
Will disassociate an allocated elastic ip address from the Instance it’s allocated to
NOTE: You can run this command more than once and it will not return an error.
508 509 510 511 512 513 514 515 516 517 |
# File 'lib/awsum/ec2.rb', line 508 def disassociate_address(public_ip) action = 'DisassociateAddress' params = { 'Action' => action, 'PublicIp' => public_ip } response = send_query_request(params) response.is_a?(Net::HTTPSuccess) end |