File: //home/arjun/projects/env/lib/python3.10/site-packages/botocore/__pycache__/session.cpython-310.pyc
o
*we � � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddl Zddl
ZddlZddlmZm
Z
mZmZmZmZmZmZmZ ddlmZmZ ddlmZmZmZmZmZmZmZ ddl m!Z! ddl"m#Z#m$Z$m%Z%m&Z&m'Z' ddl(m)Z)m*Z*m+Z+ dd l,m-Z- dd
l.m/Z/ ddl0m1Z1 ddl2m3Z3 dd
l4m5Z5 ddl6m7Z7m8Z8m9Z9 ddlmZ e�:e;�Z<G dd� d�Z=G dd� d�Z>G dd� de�Z?G dd� d�Z@ddd�ZAdS )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)�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 @ sL e Zd ZdZe�e�ZdZ d�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�Z1 d�dXdY�Z2d�dZd[�Z3 \d�d]d^�Z4 \d�d_d`�Z5dadb� Z6dcdd� Z7dedf� Z8dgdh� Z9didj� Z:dkdl� Z;dmdn� Z< d�dodp�Z=dqdr� Z>dsdt� Z?dudv� Z@dwdx� ZAdydz� ZBd{d|� ZC \d�d~d�ZDdS )��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� |du r t � | _n|| _t| j�| _|r| �| j� d| _t| _d| _d| _ d| _
d| _d| _d| _
i | _|dur>|| jd<