File: //lib/python3/dist-packages/awscli/customizations/__pycache__/removals.cpython-310.pyc
o
.&�aK � @ sF d Z ddlZddlmZ e�e�Zdd� ZG dd� de�Z dd � Z
dS )
z�
Remove deprecated commands
--------------------------
This customization removes commands that are either deprecated or not
yet fully supported.
� N)�partialc C sb t | �}|jdg d�d� |jdddgd� |jdg d�d� |jd d
gd� |jddgd� d S )
Nzbuilding-command-table.ses)zdelete-verified-email-addresszlist-verified-email-addresseszverify-email-address)�on_event�remove_commandszbuilding-command-table.ec2zimport-instancez
import-volumezbuilding-command-table.emr)zrun-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)�CommandRemover�remove)�
event_handler�cmd_remover� r �@/usr/lib/python3/dist-packages/awscli/customizations/removals.py�register_removals s ����
�r c @ s$ e Zd Zdd� Zdd� Zdd� ZdS )r c C s
|| _ d S �N)�_events)�self�eventsr r r
�__init__1 s
zCommandRemover.__init__c C s | j �|| �|�� d S r )r
�register�_create_remover)r r r r r r
r 4 s �zCommandRemover.removec C s t t|d�S )N)�commands_to_remove)r �_remove_commands)r r r r r
r 8 s zCommandRemover._create_removerN)�__name__�
__module__�__qualname__r r r r r r r
r 0 s r c K sB |D ]}zt �d|� | |= W q ty t �d|� Y qw d S )NzRemoving operation: %sz4Attempting to delete command that does not exist: %s)�LOG�debug�KeyError�warning)�
command_tabler �kwargs�commandr r r
r <