o
    .&ßaR  ã                   @   sH   d dl Z d dlmZ dd„ Zdd„ ZG dd„ deƒZG d	d
„ d
eƒZdS )é    N)ÚCLIArgumentc                 C   s   |   dt¡ d S )Nz@building-argument-table.configservice.put-configuration-recorder)ÚregisterÚextract_recording_group)Úcli© r   ú^/usr/lib/python3/dist-packages/awscli/customizations/configservice/putconfigurationrecorder.pyÚ*register_modify_put_configuration_recorder   s   þr   c                 K   sr   |d }t  |j¡}t  |jjd ¡}|jd= td||jd|  d¡dd�|d< td||jd|  d¡dd�|d< d S )	Nzconfiguration-recorderÚrecordingGroupTÚevent_emitterÚConfigurationRecorder)ÚnameÚargument_modelÚoperation_modelÚis_requiredr
   Úserialized_namezrecording-groupF)ÚcopyÚdeepcopyr   ÚmembersÚConfigurationRecorderArgumentÚ_operation_modelÚget_componentÚRecordingGroupArgument)ÚsessionÚargument_tableÚkwargsÚconfiguration_recorder_argumentÚconfiguration_recorder_modelÚrecording_group_modelr   r   r   r      s4   ÿÿÿ
ú	úr   c                   @   ó   e Zd Zdd„ ZdS )r   c                 C   s@   |d u rd S |   |¡}d|v r|d }| |¡ d S ||d< d S )Nr   )Ú_unpack_argumentÚupdate)ÚselfÚ
parametersÚvalueÚunpackedÚcurrent_valuer   r   r   Úadd_to_params:   s   
z+ConfigurationRecorderArgument.add_to_paramsN©Ú__name__Ú
__module__Ú__qualname__r&   r   r   r   r   r   9   ó    r   c                   @   r   )r   c                 C   sF   |d u rd S |   |¡}d|v r||d d< d S i |d< ||d d< d S )Nr   r	   )r   )r!   r"   r#   r$   r   r   r   r&   F   s   
z$RecordingGroupArgument.add_to_paramsNr'   r   r   r   r   r   E   r+   r   )r   Úawscli.argumentsr   r   r   r   r   r   r   r   r   Ú<module>   s   !