⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
botocore
/
__pycache__
/
View File Name :
regions.cpython-310.pyc
o <&a8 @ sb d Z ddlZddlZddlmZmZmZ eeZ dZ di iZG dd deZ G dd d e ZdS ) zResolves regions and endpoints. This module implements endpoint resolution, including resolving endpoints for a given service and region and resolving the available endpoints for a service in a specific AWS partition. N) NoRegionErrorUnknownRegionErrorEndpointVariantErrorz{service}.{region}.{dnsSuffix} endpointsc @ s0 e Zd ZdZdddZdd Z dd d ZdS ) BaseEndpointResolverz3Resolves regions and endpoints. Must be subclassed.Nc C t )a7 Resolves an endpoint for a service and region combination. :type service_name: string :param service_name: Name of the service to resolve an endpoint for (e.g., s3) :type region_name: string :param region_name: Region/endpoint name to resolve (e.g., us-east-1) if no region is provided, the first found partition-wide endpoint will be used if available. :rtype: dict :return: Returns a dict containing the following keys: - partition: (string, required) Resolved partition name - endpointName: (string, required) Resolved endpoint name - hostname: (string, required) Hostname to use for this endpoint - sslCommonName: (string) sslCommonName to use for this endpoint. - credentialScope: (dict) Signature version 4 credential scope - region: (string) region name override when signing. - service: (string) service name override when signing. - signatureVersions: (list
) A list of possible signature versions, including s3, v4, v2, and s3v4 - protocols: (list
) A list of supported protocols (e.g., http, https) - ...: Other keys may be included as well based on the metadata NotImplementedError)selfservice_nameregion_name r 2/usr/lib/python3/dist-packages/botocore/regions.pyconstruct_endpoint! s z'BaseEndpointResolver.construct_endpointc C r )zLists the partitions available to the endpoint resolver. :return: Returns a list of partition names (e.g., ["aws", "aws-cn"]). r )r r r r get_available_partitions> s z-BaseEndpointResolver.get_available_partitionsawsFc C r )a Lists the endpoint names of a particular partition. :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"]). r )r r partition_nameallow_non_regionalr r r get_available_endpointsE s z,BaseEndpointResolver.get_available_endpointsN)r F)__name__ __module____qualname____doc__r r r r r r r r s r c @ s e Zd ZdZddgZdd Zd%ddZd d Z d&d dZ d'ddZ d(ddZ dd Z d)ddZdd Z dd Zdd Zdd Zdd Zd!d" Zd#d$ ZdS )*EndpointResolverz7Resolves endpoints based on partition endpoint metadatazaws-isoz aws-iso-bc C s d|vrt d|| _dS )zA :param endpoint_data: A dict of partition data. partitionsz%Missing "partitions" in endpoint dataN) ValueError_endpoint_data)r endpoint_datar r r __init___ s zEndpointResolver.__init__r c C sB | j d D ]}|d |krq|d }||vrq|| d S d S )Nr partitionservicesr )r )r r r r r! r r r get_service_endpoints_datag s z+EndpointResolver.get_service_endpoints_datac C s&