Current File : //proc/self/root/usr/lib/python3/dist-packages/botocore/__pycache__/session.cpython-312.pyc |
�
P��e � � �� � 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 ejt e;� Z< G d� d� Z= G d� d� Z> G d� de� Z? G d� d� Z@dd�ZAy)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 � � e Zd ZdZ ej e� ZdZ d@d�Zd� Z d� Z
d� Zd� Zd � Z
d
� Zd� Zd� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zed� � Zd� Zed� � ZdAd�Zd� Z d� Z!d� Z"d� Z#ed� � Z$d � Z%d!� Z&dAd"�Z'd#� Z(d$� Z)d%� Z*d&� Z+dAd'�Z,dAd(�Z-dAd)�Z.dAd*�Z/d+� Z0dBd,�Z1 dCd-�Z2dBd.�Z3 dDd/�Z4 dEd0�Z5d1� Z6d2� Z7d3� Z8d4� Z9d5� Z:d6� Z;d7� Z< dFd8�Z=d9� Z>d:� Z?d;� Z@d<� ZAd=� ZBd>� ZC dGd?�ZDy)H�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)sNc �J � |�t � | _ n|| _ t | j � | _ |r| j | j � d| _ t | _ d| _ d| _ d| _
d| _ d| _ d| _
i | _ |�|| j d<