o
    .&ßaK  ã                   @   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)Úevent_handlerÚcmd_remover© r	   ú@/usr/lib/python3/dist-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)Úcommand_tabler   ÚkwargsÚcommandr	   r	   r
   r   <   s   
ÿÿür   )Ú__doc__ÚloggingÚ	functoolsr   Ú	getLoggerr   r   r   Úobjectr   r   r	   r	   r	   r
   Ú<module>   s   
