ó ¡ôXc@s_ddlZddlmZmZddlmZddlmZdeefd„ƒYZdS(iÿÿÿÿN(tArgtMutuallyExclusiveArgList(tTabifyingMixin(tAutoScalingRequestt#TerminateInstanceInAutoScalingGroupcBsÂeZdZedddddƒeedddd d d d d ddƒeddd d dd d dddƒƒjƒedddddddƒedddddddejƒgZ d„Z RS(s+Manually terminate an auto-scaling instancet InstanceIdtmetavartINSTANCEthelps*ID of the instance to terminate (required)s-ds--decrement-desired-capacitytactiont store_consttdesttShouldDecrementDesiredCapacitytconstttruesSalso reduce the desired capacity of the auto-scaling group by 1s-Ds--no-decrement-desired-capacitytfalsesªleave the auto-scaling group's desired capacity as-is. A new instance may be launched to compensate for the one being terminated.s --show-longt store_truetroute_tos3show extra info about the instance being terminateds-fs--forcecCs½|d}d|jdƒ|jdƒ|jdƒ|jdƒg}|jdr«|j|jdƒƒ|j|jd ƒƒ|j|jd ƒƒ|j|jd ƒƒn|j|ƒGHdS( NtActivityRt ActivityIdtEndTimet StatusCodetCauset show_longt StatusMessagetProgresst Descriptiont StartTime(tgettargstappendttabify(tselftresulttactivitytbits((sf/usr/lib/python2.7/site-packages/euca2ools/commands/autoscaling/terminateinstanceinautoscalinggroup.pyt print_result8s     N( t__name__t __module__t DESCRIPTIONRRtrequiredtNonetargparsetSUPPRESStARGSR$(((sf/usr/lib/python2.7/site-packages/euca2ools/commands/autoscaling/terminateinstanceinautoscalinggroup.pyR"s    ( R*trequestbuilderRRtrequestbuilder.mixinsRteuca2ools.commands.autoscalingRR(((sf/usr/lib/python2.7/site-packages/euca2ools/commands/autoscaling/terminateinstanceinautoscalinggroup.pyts