Xc@sJddlmZddlmZddlmZdefdYZdS(i(t EC2Request(tArg(t ArgumentErrortReleaseAddressc Bs_eZdZedddddddedd d d dd dd gZdZdZRS(sRelease an elastic IP addresstPublicIptmetavartADDRESStnargst?thelps,[Non-VPC only] address to release (required)s-as--allocation-idtdestt AllocationIdtALLOCsN[VPC only] allocation ID for the address to release (required)cCstj||jjddk rL|jjddk rLtdn|jjddkr|jjddkrtdndS(NRR s;argument -a/--allocation-id: not allowed with an IP addresss8argument -a/--allocation-id or an IP address is required(Rt configuretargstgettNoneR(tself((sI/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/releaseaddress.pyR (s  cCs3|jd|jjd|jjdfGHdS(NRRR (ttabifyRR(Rt_((sI/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/releaseaddress.pyt print_result5s(t__name__t __module__t DESCRIPTIONRtARGSR R(((sI/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/releaseaddress.pyRs  N(teuca2ools.commands.ec2RtrequestbuilderRtrequestbuilder.exceptionsRR(((sI/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/releaseaddress.pyts