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

.&�a��@s�ddlZddlZddlZddlmZddlmZddlmZm	Z	e�
e�ZdZ
dd�Zdd	�ZGd
d�de�ZGdd
�d
e	�ZdS)�N)�
check_call)�ignore_user_entered_signals)�ServiceOperation�CLIOperationCaller)z#SessionManagerPlugin is not found. z3Please refer to SessionManager Documentation here: z3http://docs.aws.amazon.com/console/systems-manager/z session-manager-plugin-not-foundcCs|�dt�dS)Nzbuilding-command-table.ssm)�register�add_custom_start_session)�event_handlers�r	�F/usr/lib/python3/dist-packages/awscli/customizations/sessionmanager.py�register_ssm_sessions�rcKs*tdd||�d��d�t|�d�|d<dS)Nz
start-session�ssm�StartSession)�name�parent_name�session�operation_model�operation_caller)�StartSessionCommand�get_service_modelr�StartSessionCaller)r�
command_table�kwargsr	r	r
r$s��rcseZdZ�fdd�Z�ZS)rcstt|���}d|j_|S)N)�superr�create_help_command�_operation_model�output_shape)�self�help_command��	__class__r	r
r1s��z'StartSessionCommand.create_help_command)�__name__�
__module__�__qualname__r�
__classcell__r	r	rr
r/src@seZdZdd�ZdS)rc
Cs|jj||j|j|jd�}|jdi|��}|d}|jj}|jjdur'|jjnd}	|jj}
z)t	��t
dt�|�|d|	t�|�|
g�Wd�WdS1sOwYWdSt
y�}z!|jtjkrxtjddd	�|j|d
�td�t���WYd}~dSd}~ww)N)�region_name�endpoint_url�verify�	SessionId�zsession-manager-pluginr
rz#SessionManagerPlugin is not presentT)�exc_info)r'r	)�_session�
create_client�regionr%�
verify_ssl�
start_session�metar$�profilerr�json�dumps�OSError�errno�ENOENT�logger�debug�terminate_session�
ValueError�join�
ERROR_MESSAGE)r�service_name�operation_name�
parameters�parsed_globals�client�response�
session_idr$�profile_namer%�exr	r	r
�invoke:sJ����
�	�	����zStartSessionCaller.invokeN)r r!r"rEr	r	r	r
r9sr)�loggingr1r4�
subprocessr�
awscli.compatr�awscli.clidriverrr�	getLoggerr r6r;rrrrr	r	r	r
�<module>s