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__/streamingoutputarg.cpython-310.pyc
o

.&�a<�@sDddlmZddlmZdd�Zdd�Zdd�ZGd	d
�d
e�ZdS)�)�Shape)�BaseCLIArgumentcKs,t|�rt|�}t|||dd�|d<dSdS)N�outfile)�response_key�operation_model�session�name)�_has_streaming_output�_get_streaming_argument_name�StreamingOutputArgument)�argument_tablerr�kwargs�streaming_argument_name�r�J/usr/lib/python3/dist-packages/awscli/customizations/streamingoutputarg.py�add_streaming_output_args��rcC�|jS�N)�has_streaming_output��modelrrrr	sr	cCs|jjdS)N�payload)�output_shape�
serializationrrrrr
"sr
c@sveZdZdZdZ	ddd�Zedd��Zedd	��Zed
d��Z	e	j
dd��Z	ed
d��Zdd�Zdd�Z
dd�ZdS)ri�z(Filename where the content will be savedNcCsR||_tdddi�|_|dur|j}||_||_d|_||_d|_||_||_	dS)Nr�type�stringT)
�_namer�argument_model�BUFFER_SIZE�_buffer_size�
_response_key�_output_file�	_required�_operation_model�_session)�selfrrrr�buffer_sizerrr�__init__+s�
z StreamingOutputArgument.__init__cCrr)r�r%rrr�cli_name<sz StreamingOutputArgument.cli_namecCsdS)Nrrr(rrr�
cli_type_nameCsz%StreamingOutputArgument.cli_type_namecCrr�r"r(rrr�requiredG�z StreamingOutputArgument.requiredcCs
||_dSrr+)r%�valuerrrr,Ks
cCrr)�HELPr(rrr�
documentationOr-z%StreamingOutputArgument.documentationcCs|j|j|j|jd�dS)N)�metavar�help)�add_argumentr�py_namer/)r%�parserrrr�
add_to_parserSs
�z%StreamingOutputArgument.add_to_parsercCs8||_|jjj��}|jj}|j�d||f|j�dS)Nzafter-call.%s.%s)	r!r#�
service_model�
service_id�	hyphenizerr$�register�	save_file)r%�
parametersr.r8�operation_namerrr�
add_to_paramsWs��z%StreamingOutputArgument.add_to_paramscKs||j|vrdS||j}|j}t|jd��}|�|�}|r)|�|�|�|�}|sWd�n1s3wY||j=dS)N�wb)r r�openr!�read�write)r%�parsedr
�bodyr&�fp�datarrrr;^s




���z!StreamingOutputArgument.save_filer)�__name__�
__module__�__qualname__rr/r'�propertyr)r*r,�setterr0r6r>r;rrrrr&s$
�




rN)�botocore.modelr�awscli.argumentsrrr	r
rrrrr�<module>s