o
    !dK                     @   sF   d Z ddlZddlmZ eeZdd ZG dd deZ	dd	 Z
dS )
z
Remove deprecated commands
--------------------------

This customization removes commands that are either deprecated or not
yet fully supported.

    N)partialc                 C   sb   t | }|jdg dd |jdddgd |jdg dd |jd	d
gd |jddgd d S )Nzbuilding-command-table.ses)zdelete-verified-email-addresszlist-verified-email-addresseszverify-email-address)on_eventremove_commandszbuilding-command-table.ec2zimport-instancezimport-volumezbuilding-command-table.emr)zrun-job-flowzdescribe-job-flowszadd-job-flow-stepszterminate-job-flowszlist-bootstrap-actionszlist-instance-groupszset-termination-protectionzset-visible-to-all-userszbuilding-command-table.kinesiszsubscribe-to-shardz$building-command-table.lexv2-runtimezstart-conversation)CommandRemoverremove)Zevent_handlerZcmd_remover r   Busr/lib/python3.10/site-packages/awscli/customizations/removals.pyregister_removals   s    
r	   c                   @   s$   e Zd Zdd Zdd Zdd ZdS )r   c                 C   s
   || _ d S N)_events)selfeventsr   r   r   __init__1   s   
zCommandRemover.__init__c                 C   s   | j || | d S r
   )r   register_create_remover)r   r   r   r   r   r   r   4   s   zCommandRemover.removec                 C   s   t t|dS )N)commands_to_remove)r   _remove_commands)r   r   r   r   r   r   8   s   zCommandRemover._create_removerN)__name__
__module____qualname__r   r   r   r   r   r   r   r   0   s    r   c              	   K   sB   |D ]}zt d| | |= W q ty   t d| Y qw d S )NzRemoving operation: %sz4Attempting to delete command that does not exist: %s)LOGdebugKeyErrorwarning)Zcommand_tabler   kwargscommandr   r   r   r   <   s   
r   )__doc__logging	functoolsr   	getLoggerr   r   r	   objectr   r   r   r   r   r   <module>   s   
