o .&a7@sDddlmZddlmZddlmZddlmZGdddeZdS))emrutils) exceptions)helptext)Commandc @sdeZdZdZdZddejddddd d d d ddd d d d ddddd dddddd gZddZdS)ModifyClusterAttrzmodify-cluster-attributeszSModifies the cluster attributes 'visible-to-all-users' and 'termination-protected'.z cluster-idT)namerequired help_textzvisible-to-all-usersF store_truevisiblez'Change cluster visibility for IAM users)rraction group_namer zno-visible-to-all-usersztermination-protected terminatez$Set termination protection on or offzno-termination-protectedcCs|jr |jr tjddd|jr|jrtjddd|js*|js*|js*|js*t|js0|jrG|jo6|j }|jg|d}t |j d|||jsM|jrd|joS|j }|jg|d}t |j d ||d S) Nz--visible-to-all-usersz--no-visible-to-all-users)option1option2z--termination-protectedz--no-termination-protected) JobFlowIdsVisibleToAllUsersSetVisibleToAllUsers)rTerminationProtectedSetTerminationProtectionr) visible_to_all_usersno_visible_to_all_usersrMutualExclusiveOptionErrortermination_protectedno_termination_protectedMissingClusterAttributesError cluster_idrcall_and_display_response_session)selfargsparsed_globalsr parameters protectedr$S/usr/lib/python3/dist-packages/awscli/customizations/emr/modifyclusterattributes.py_run_main_command)sN     z#ModifyClusterAttr._run_main_commandN) __name__ __module__ __qualname__NAME DESCRIPTIONr CLUSTER_ID ARG_TABLEr&r$r$r$r%rs0 rN)awscli.customizations.emrrrr!awscli.customizations.emr.commandrrr$r$r$r%s