Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
botocore
/
File Content:
regions.pyc
� ?��Xc @ s� d Z d d l Z d d l Z d d l m Z e j e � Z d Z i i d 6Z d e f d � � YZ d e f d � � YZ d S( s� 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. i����N( t NoRegionErrors {service}.{region}.{dnsSuffix}t endpointst BaseEndpointResolverc B s2 e Z d Z d d � Z d � Z d e d � Z RS( s3 Resolves regions and endpoints. Must be subclassed.c C s t � d S( s7 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 N( t NotImplementedError( t selft service_namet region_name( ( s2 /tmp/pip-build-uEGWVr/botocore/botocore/regions.pyt construct_endpoint s c C s t � d S( s� Lists the partitions available to the endpoint resolver. :return: Returns a list of partition names (e.g., ["aws", "aws-cn"]). N( R ( R ( ( s2 /tmp/pip-build-uEGWVr/botocore/botocore/regions.pyt get_available_partitions<