HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/awscli/customizations/__pycache__/rekognition.cpython-310.pyc
o

.&�a�
�@sdddlZddlmZdZdZdddd�Zd	d
�ZGdd�de�ZGd
d�de�Z	dd�Z
dd�ZdS)�N)�CustomArgumentz�<p>The content of the image to be uploaded. To specify the content of a local file use the fileb:// prefix. Example: fileb://image.png</p>z=<p>To specify a local file use <code>--%s</code> instead.</p>zsource-image-bytesztarget-image-byteszimage-bytes)zcompare-faces.source-imagezcompare-faces.target-imagez*.imagecCs<t��D]\}}|�dd�\}}|�d|t||��qdS)N�.�z&building-argument-table.rekognition.%s)�FILE_PARAMETER_UPDATES�items�rsplit�register�ImageArgUpdater)�cli�target�	new_param�	operation�	old_param�r�C/usr/lib/python3/dist-packages/awscli/customizations/rekognition.py�"register_rekognition_detect_labels!s
��rc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
r	cCs||_||_dS�N)�
_source_param�
_new_param)�self�source_paramrrrr�__init__)s
zImageArgUpdater.__init__cKs$|�|�sdS|�||j|j�dSr)�
_valid_target�
_update_paramrr)r�session�argument_table�kwargsrrr�__call__-s


�zImageArgUpdater.__call__cCs@|j|vr||j}|j}|j�d�}|dur|jdkrdSdS)N�Bytes�blobTF)r�argument_model�members�get�	type_name)rr�param�input_model�bytes_memberrrrr3s

zImageArgUpdater._valid_targetcCs<t||tdd�||<d||_t|}||j|7_dS)Nr)�	help_text�
cli_type_nameF)�
ImageArgument�IMAGE_FILE_DOCSTRING�required�IMAGE_DOCSTRING_ADDENDUM�
documentation)rrrr�doc_addendumrrrr?s
�
zImageArgUpdater._update_paramN)�__name__�
__module__�__qualname__rrrrrrrrr	(s
r	cs$eZdZ�fdd�Zdd�Z�ZS)r)cs&tt|�j|fi|��t|�|_dSr)�superr)r�reverse_xform_name�_parameter_to_overwrite)r�namerr��	__class__rrrIszImageArgument.__init__cCsB|durdSd|i}|�|j�r||j�|�dS|||j<dS)Nr)r"r4�update)r�
parameters�value�image_file_paramrrr�
add_to_paramsMszImageArgument.add_to_params)r/r0r1rr<�
__classcell__rrr6rr)Hsr)cCs|�d��d���S)Nr�-)�group�lstrip�upper)�matchrrr�_upperWsrCcCst�dt|�S)Nz(^.|-.))�re�subrC)r5rrrr3[sr3)rD�awscli.argumentsrr*r,rr�objectr	r)rCr3rrrr�<module>s�