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/gamelift/__pycache__/getlog.cpython-310.pyc
o

.&�a-�@s@ddlZddlmZddlmZddlmZGdd�de�ZdS)�N)�partial)�urlopen)�BasicCommandc@s4eZdZdZdZdddd�dddd�gZd	d
�ZdS)�GetGameSessionLogCommandzget-game-session-logz2Download a compressed log file for a game session.zgame-session-idTzThe game session ID)�name�required�	help_textzsave-asz5The filename to which the file should be saved (.zip)c	Cs�|jjd|j|j|jd�}|j|jd�}|d}t|�}tj	�
d|j�t|jd��}t
t|jd�d�D]}|�
|�q5Wd�n1sGwYtj	�
d	|j|jf�d
S)N�gamelift)�region_name�endpoint_url�verify)�
GameSessionId�PreSignedUrlz/Downloading log archive for game session %s...
�wbi�z>Successfully downloaded log archive for game session %s to %s
r)�_session�
create_client�regionr�
verify_ssl�get_game_session_log_url�game_session_idr�sys�stdout�write�open�save_as�iterr�read)	�self�args�parsed_globals�client�response�url�contents�f�chunk�r'�G/usr/lib/python3/dist-packages/awscli/customizations/gamelift/getlog.py�	_run_mains4������
��z"GetGameSessionLogCommand._run_mainN)�__name__�
__module__�__qualname__�NAME�DESCRIPTION�	ARG_TABLEr)r'r'r'r(rs���r)r�	functoolsr�
awscli.compatr�awscli.customizations.commandsrrr'r'r'r(�<module>s