Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
botocore
/
File Content:
config.pyc
� ?��Xc @ s\ d d l Z d d l m Z d d l m Z m Z d d l m Z d e f d � � YZ d S( i����N( t OrderedDict( t DEFAULT_TIMEOUTt MAX_POOL_CONNECTIONS( t InvalidS3AddressingStyleErrort Configc B sq e Z d Z e d d d d d e f d e f d e f d e f d g � Z d � Z d � Z d � Z d � Z RS( s� Advanced configuration for Botocore clients. :type region_name: str :param region_name: The region to use in instantiating the client :type signature_version: str :param signature_version: The signature version when signing requests. :type user_agent: str :param user_agent: The value to use in the User-Agent header. :type user_agent_extra: str :param user_agent_extra: The value to append to the current User-Agent header value. :type connect_timeout: int :param connect_timeout: The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds. :type read_timeout: int :param read_timeout: The time in seconds till a timeout exception is thrown when attempting to read from a connection. The default is 60 seconds. :type parameter_validation: bool :param parameter_validation: Whether parameter validation should occur when serializing requests. The default is True. You can disable parameter validation for performance reasons. Otherwise, it's recommended to leave parameter validation enabled. :type max_pool_connections: int :param max_pool_connections: The maximum number of connections to keep in a connection pool. If this value is not set, the default value of 10 is used. :type s3: dict :param s3: A dictionary of s3 specific configurations. Valid keys are: * 'use_accelerate_endpoint' -- Refers to whether to use the S3 Accelerate endpoint. The value must be a boolean. If True, the client will use the S3 Accelerate endpoint. If the S3 Accelerate endpoint is being used then the addressing style will always be virtual. * 'payload_signing_enabled' -- Refers to whether or not to SHA256 sign sigv4 payloads. By default, this is disabled for streaming uploads (UploadPart and PutObject). * 'addressing_style' -- Refers to the style in which to address s3 endpoints. Values must be a string that equals: * auto -- Addressing style is chosen for user. Depending on the configuration of client, the endpoint may be addressed in the virtual or the path style. Note that this is the default behavior if no style is specified. * virtual -- Addressing style is always virtual. The name of the bucket must be DNS compatible or an exception will be thrown. Endpoints will be addressed as such: mybucket.s3.amazonaws.com * path -- Addressing style is always by path. Endpoints will be addressed as such: s3.amazonaws.com/mybucket t region_namet signature_versiont user_agentt user_agent_extrat connect_timeoutt read_timeoutt parameter_validationt max_pool_connectionst s3c O sx | j | | � | _ t j | j � } | j | j � x* | j � D] \ } } t | | | � qD W| j | j � d S( N( t _record_user_provided_optionst _user_provided_optionst copyt OPTION_DEFAULTSt updatet itemst setattrt _validate_s3_configurationR ( t selft argst kwargst config_varst keyt value( ( s1 /tmp/pip-build-uEGWVr/botocore/botocore/config.pyt __init__b s c C s� t | j � } i } xF | j � D]8 \ } } | | j k rJ | | | <q"