File: //opt/cppython/lib/python3.8/site-packages/botocore/__pycache__/session.cpython-38.pyc
U
KD�g1� � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddl Zddl
ZddlZddlmZm
Z
mZmZmZmZmZmZmZ ddlmZmZ ddlmZmZmZmZmZmZmZ ddl m!Z!m"Z" ddl#m$Z$ ddl%m&Z&m'Z'm(Z(m)Z)m*Z* dd l+m,Z,m-Z-m.Z. dd
l/m0Z0 ddl1m2Z2 ddl3m4Z4 dd
l5m6Z6 ddl7m8Z8 ddl9m:Z:m;Z;m<Z< ddlmZ e�=e>�Z?G dd� d�Z@G dd� d�ZAG dd� de�ZBG dd� d�ZCddd�ZDdS )zV
This module contains the main interface to the botocore package, the
Session object.
� N) �UNSIGNED�__version__�handlers�invoke_initializers�
monitoring�paginate�retryhandler� translate�waiter)�HAS_CRT�MutableMapping)�!BOTOCORE_DEFAUT_SESSION_VARIABLES�ConfigChainFactory�ConfiguredEndpointProvider�ConfigValueStore�DefaultConfigResolver�SmartDefaultsConfigStoreFactory�&create_botocore_default_config_mapping)�get_context�with_current_context)�ClientExceptionsFactory)�ConfigNotFound�InvalidDefaultsMode�PartialCredentialsError�ProfileNotFound�UnknownServiceError)�EventAliaser�HierarchicalEmitter�first_non_none_response)�
create_loader)�ServiceModel)�ResponseParserFactory)�EndpointResolver)�UserAgentString)�
EVENT_ALIASES�IMDSRegionProvider�validate_region_name)r c @ s4 e Zd ZdZe�e�ZdZd�dd�Zdd� Z d d
� Z
dd� Zd
d� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zed+d,� �Zd-d.� Zed/d0� �Zd�d1d2�Zd3d4� Z d5d6� Z!d7d8� Z"d9d:� Z#ed;d<� �Z$d=d>� Z%d?d@� Z&d�dAdB�Z'dCdD� Z(dEdF� Z)dGdH� Z*dIdJ� Z+d�dKdL�Z,d�dMdN�Z-d�dOdP�Z.d�dQdR�Z/dSdT� Z0d�dVdW�Z1d�dXdY�Z2d�dZd[�Z3d�d]d^�Z4d�d_d`�Z5dadb� Z6dcdd� Z7dedf� Z8dgdh� Z9didj� Z:dkdl� Z;dmdn� Z<e=� d�dodp��Z>dqdr� Z?dsdt� Z@dudv� ZAdwdx� ZBdydz� ZCd{d|� ZDd�d~d�ZEd�d�� ZFdS )��Sessionae
The Session object collects together useful functionality
from `botocore` as well as important data such as configuration
information and credentials into a single, easy-to-use object.
:ivar available_profiles: A list of profiles defined in the config
file associated with this session.
:ivar profile: The current profile.
z4%(asctime)s - %(name)s - %(levelname)s - %(message)sNTc C s� |dkrt � | _n|| _t| j�| _|r4| �| j� d| _t| _d| _d| _ d| _
d| _d| _d| _
i | _|dk r||| jd<