Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/boto/vendored/regions/__pycache__/ |
Upload File : |
o ckF[� � @ sZ d Z ddlZddlZddlmZ e�e�ZdZdi iZ G dd� de �ZG dd � d e�ZdS ) z�Resolves 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)� NoRegionErrorz{service}.{region}.{dnsSuffix}� endpointsc @ s0 e Zd ZdZddd�Zdd� 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<string>) A list of possible signature versions, including s3, v4, v2, and s3v4 - protocols: (list<string>) A list of supported protocols (e.g., http, https) - ...: Other keys may be included as well based on the metadata ��NotImplementedError)�self�service_name�region_name� r �?/usr/lib/python3/dist-packages/boto/vendored/regions/regions.py�construct_endpoint s z'BaseEndpointResolver.construct_endpointc C r )z�Lists 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<