⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
boto3
/
__pycache__
/
View File Name :
session.cpython-312.pyc
eQ x d dl Z d dlZd dlZd dlmZ d dlmZmZ d dl Z d dl Z d dlmZm Z ddlmZ G d d Zy) N)Config)DataNotFoundErrorUnknownServiceError)ResourceNotExistsErrorUnknownAPIVersionError )ResourceFactoryc e Zd ZdZ ddZd Zed Zed Zed Z ed Z d Zd Zd Z d Z dd Zd Zd Z ddZ ddZd Zy)Sessiona/ A session stores configuration state and allows you to create service clients and resources. :type aws_access_key_id: string :param aws_access_key_id: AWS access key ID :type aws_secret_access_key: string :param aws_secret_access_key: AWS secret access key :type aws_session_token: string :param aws_session_token: AWS temporary session token :type region_name: string :param region_name: Default region when creating new connections :type botocore_session: botocore.session.Session :param botocore_session: Use this Botocore session instead of creating a new default one. :type profile_name: string :param profile_name: The name of a profile to use. If not given, then the default profile is used. Nc ||| _ n#t j j | _ | j j dk( rdj | j j }| j j r#| j xj d|z z c_ n|| j _ d| j _ t j | j _ || j j d| |s|s|r| j j ||| || j j d| t | j j d | _ | j | j! y )NBotocorezBotocore/{} Boto3profileregion event_emitter)_sessionbotocoresessionget_sessionuser_agent_nameformatuser_agent_versionuser_agent_extraboto3__version__set_config_variableset_credentialsr get_componentresource_factory _setup_loader_register_default_handlers)selfaws_access_key_idaws_secret_access_keyaws_session_tokenregion_namebotocore_sessionprofile_name botocore_infos //usr/lib/python3/dist-packages/boto3/session.py__init__zSession.__init__1 s@ ',DM %,,88:DM ==((J6)00 00M }}-- ..# 2EE.1> .,3DMM)/4/@/@DMM,#MM--iF 59JMM))!#8:K "MM--hD /MM''8! '') c dj | j j t | j j d S )Nz{}(region_name={})r )r __class____name__reprr get_config_variabler# s r+ __repr__zSession.__repr__] s9 #**NN##228<= r- c 6 | j j xs dS )z1 The **read-only** profile name. default)r r r3 s r+ r) zSession.profile_namec s }}$$1 1r- c 8 | j j d S )z0 The **read-only** region name. r )r r2 r3 s r+ r' zSession.region_namej s }}00::r- c 8 | j j d S )z1 The event emitter for a session r )r r r3 s r+ eventszSession.eventsq s }}**?;;r- c . | j j S )zC The profiles available to the session credentials )r available_profilesr3 s r+ r; zSession.available_profilesx s }}///r- c | j j d | _ | j j j t j j t j j t d y)zC Setup loader paths so that we can load resources. data_loaderdataN) r r _loadersearch_pathsappendospathjoindirname__file__r3 s r+ r! zSession._setup_loader sQ }}22=A!!((GGLL2F; r- c 6 | j j S )z Get a list of available services that can be loaded as low-level clients via :py:meth:`Session.client`. :rtype: list :return: List of service names )r get_available_servicesr3 s r+ rH zSession.get_available_services s }}3355r- c : | j j d S )z Get a list of available services that can be loaded as resource clients via :py:meth:`Session.resource`. :rtype: list :return: List of service names resources-1) type_name)r? list_available_servicesr3 s r+ get_available_resourceszSession.get_available_resources s ||33m3LLr- c 6 | j j S )zLists the available partitions :rtype: list :return: Returns a list of partition names (e.g., ["aws", "aws-cn"]) )r get_available_partitionsr3 s r+ rO z Session.get_available_partitions s }}5577r- c > | j j ||| S )a Lists the region and endpoint names of a particular partition. The list of regions returned by this method are regions that are explicitly known by the client to exist and is not comprehensive. A region not returned in this list may still be available for the provided service. :type service_name: string :param service_name: Name of a service to list endpoint for (e.g., s3). :type partition_name: string :param partition_name: Name of the partition to limit endpoints to. (e.g., aws for the public AWS endpoints, aws-cn for AWS China endpoints, aws-us-gov for AWS GovCloud (US) Endpoints, etc.) :type allow_non_regional: bool :param allow_non_regional: Set to True to include endpoints that are not regional endpoints (e.g., s3-external-1, fips-us-gov-west-1, etc). :return: Returns a list of endpoint names (e.g., ["us-east-1"]). )service_namepartition_nameallow_non_regional)r get_available_regions)r# rQ rR rS s r+ rT zSession.get_available_regions s) 2 }}22%)1 3 r- c 6 | j j S )a% Return the :class:`botocore.credentials.Credentials` object associated with this session. If the credentials have not yet been loaded, this will attempt to load them. If they have already been loaded, this will return the cached credentials. )r get_credentialsr3 s r+ rV zSession.get_credentials s }},,..r- c 8 | j j | S )a Lists the partition name of a particular region. :type region_name: string :param region_name: Name of the region to list partition for (e.g., us-east-1). :rtype: string :return: Returns the respective partition name (e.g., aws). )r get_partition_for_region)r# r' s r+ rX z Session.get_partition_for_region s }}55kBBr- c L | j j ||||||||| | S )a Create a low-level service client by name. :type service_name: string :param service_name: The name of a service, e.g. 's3' or 'ec2'. You can get a list of available services via :py:meth:`get_available_services`. :type region_name: string :param region_name: The name of the region associated with the client. A client is associated with a single region. :type api_version: string :param api_version: The API version to use. By default, botocore will use the latest API version when creating a client. You only need to specify this parameter if you want to use a previous API version of the client. :type use_ssl: boolean :param use_ssl: Whether or not to use SSL. By default, SSL is used. Note that not all services support non-ssl connections. :type verify: boolean/string :param verify: Whether or not to verify SSL certificates. By default SSL certificates are verified. You can provide the following values: * False - do not validate SSL certificates. SSL will still be used (unless use_ssl is False), but SSL certificates will not be verified. * path/to/cert/bundle.pem - A filename of the CA cert bundle to uses. You can specify this argument if you want to use a different CA cert bundle than the one used by botocore. :type endpoint_url: string :param endpoint_url: The complete URL to use for the constructed client. Normally, botocore will automatically construct the appropriate URL to use when communicating with a service. You can specify a complete URL (including the "http/https" scheme) to override this behavior. If this value is provided, then ``use_ssl`` is ignored. :type aws_access_key_id: string :param aws_access_key_id: The access key to use when creating the client. This is entirely optional, and if not provided, the credentials configured for the session will automatically be used. You only need to provide this argument if you want to override the credentials used for this specific client. :type aws_secret_access_key: string :param aws_secret_access_key: The secret key to use when creating the client. Same semantics as aws_access_key_id above. :type aws_session_token: string :param aws_session_token: The session token to use when creating the client. Same semantics as aws_access_key_id above. :type config: botocore.client.Config :param config: Advanced client configuration options. If region_name is specified in the client config, its value will take precedence over environment variables and configuration values, but not over a region_name value passed explicitly to the method. See `botocore config documentation
`_ for more details. :return: Service client instance r' api_versionuse_sslverifyendpoint_urlr$ r% r&