o ckF[@s ddlmZGdddeZdS)) EC2ObjectcsTeZdZdZdfdd ZddZddZdd d ZeZdd d Z dddZ Z S)Addressa Represents an EC2 Elastic IP Address :ivar public_ip: The Elastic IP address. :ivar instance_id: The instance the address is associated with (if any). :ivar domain: Indicates whether the address is a EC2 address or a VPC address (standard|vpc). :ivar allocation_id: The allocation ID for the address (VPC addresses only). :ivar association_id: The association ID for the address (VPC addresses only). :ivar network_interface_id: The network interface (if any) that the address is associated with (VPC addresses only). :ivar network_interface_owner_id: The owner IID (VPC addresses only). :ivar private_ip_address: The private IP address associated with the Elastic IP address (VPC addresses only). NcsJtt||||_||_||_d|_d|_d|_d|_ d|_ d|_ dS)N) superr__init__ connection public_ip instance_iddomain allocation_idassociation_idnetwork_interface_idnetwork_interface_owner_idprivate_ip_address)selfrrr __class__2/usr/lib/python3/dist-packages/boto/ec2/address.pyr(s zAddress.__init__cCs d|jS)Nz Address:%s)r)rrrr__repr__4s zAddress.__repr__cCs|dkr ||_dS|dkr||_dS|dkr||_dS|dkr$||_dS|dkr-||_dS|dkr6||_dS|dkr?||_dS|dkrH||_dSt|||dS) NpublicIp instanceIdr allocationId associationIdnetworkInterfaceIdnetworkInterfaceOwnerIdprivateIpAddress) rrr r r r r rsetattr)rnamevaluerrrr endElement7s"        zAddress.endElementFcC*|jr |jj|j|dS|jj|j|dS)zz Free up this Elastic IP address. :see: :meth:`boto.ec2.connection.EC2Connection.release_address` )r dry_runrr!)r rrelease_addressrrr!rrrreleaseKszAddress.releasec Cs>|jr|jj||j|j||||dS|jj||j||||dS)z Associate this Elastic IP address with a currently running instance. :see: :meth:`boto.ec2.connection.EC2Connection.associate_address` )rrr r rallow_reassociationr!)rrr rr&r!)r rassociate_addressr)rrr rr&r!rrr associate\s$ zAddress.associatecCr )z Disassociate this Elastic IP address from a currently running instance. :see: :meth:`boto.ec2.connection.EC2Connection.disassociate_address` )r r!r")r rdisassociate_addressrr$rrr disassociatetszAddress.disassociate)NNN)F)NNNFF) __name__ __module__ __qualname____doc__rrrr%deleter(r* __classcell__rrrrrs    rN)boto.ec2.ec2objectrrrrrrs