o .&aK @sFdZddlZddlmZeeZddZGdddeZ dd Z dS) z Remove deprecated commands -------------------------- This customization removes commands that are either deprecated or not yet fully supported. N)partialcCsbt|}|jdgdd|jdddgd|jdgdd|jd d gd|jd d gddS) Nzbuilding-command-table.ses)zdelete-verified-email-addresszlist-verified-email-addresseszverify-email-address)on_eventremove_commandszbuilding-command-table.ec2zimport-instancez import-volumezbuilding-command-table.emr)z run-job-flowzdescribe-job-flowszadd-job-flow-stepszterminate-job-flowszlist-bootstrap-actionszlist-instance-groupszset-termination-protectionzset-visible-to-all-userszbuilding-command-table.kinesiszsubscribe-to-shardz$building-command-table.lexv2-runtimezstart-conversation)CommandRemoverremove) event_handler cmd_removerr @/usr/lib/python3/dist-packages/awscli/customizations/removals.pyregister_removalss  r c@s$eZdZddZddZddZdS)rcCs ||_dSN)_events)selfeventsr r r __init__1s zCommandRemover.__init__cCs|j|||dSr )r register_create_remover)rrrr r r r4szCommandRemover.removecCs tt|dS)N)commands_to_remove)r_remove_commands)rrr r r r8s zCommandRemover._create_removerN)__name__ __module__ __qualname__rrrr r r r r0s rc KsB|D]}z td|||=Wqtytd|YqwdS)NzRemoving operation: %sz4Attempting to delete command that does not exist: %s)LOGdebugKeyErrorwarning) command_tablerkwargscommandr r r r<s   r) __doc__logging functoolsr getLoggerrrr objectrrr r r r s