File: //lib/python3.6/site-packages/awscli/customizations/s3/__pycache__/transferconfig.cpython-36.pyc
3
�T_� � @ s` d dl mZ d dlmZ d dlmZ ddddd d
�ZG dd� de�ZG d
d� de �Z
dd� Zd S )� )�TransferConfig)�human_readable_to_bytes)�six� i � �
i� N)�multipart_threshold�multipart_chunksize�max_concurrent_requests�max_queue_size�
max_bandwidthc @ s e Zd ZdS )�InvalidConfigErrorN)�__name__�
__module__�__qualname__� r r �$/usr/lib/python3.6/transferconfig.pyr
s r
c @ s\ e Zd ZdddddgZddgZdgZedd� �Zdd � Zd
d� Z dd
� Z
dd� Zdd� ZdS )�
RuntimeConfigr r r
r r c C s t j� S )N)�DEFAULTS�copyr r r r �defaults) s zRuntimeConfig.defaultsc K s8 t j� }|r|j|� | j|� | j|� | j|� |S )aj Create and convert a runtime config dictionary.
This method will merge and convert S3 runtime configuration
data into a single dictionary that can then be passed to classes
that use this runtime config.
:param kwargs: Any key in the ``DEFAULTS`` dict.
:return: A dictionary of the merged and converted values.
)r r �update�_convert_human_readable_sizes�_convert_human_readable_rates�_validate_config)�self�kwargs�runtime_configr r r �build_config- s
zRuntimeConfig.build_configc C s@ x:| j D ]0}|j|�}|d k rt|tj� rt|�||<