File: //lib/python3/dist-packages/awscli/customizations/s3/__pycache__/transferconfig.cpython-38.pyc
U
<�^� � @ s` d dl mZ d dlmZ d dlmZ dddddd�ZG d d
� d
e�ZG dd� de �Z
d
d� ZdS )� )�TransferConfig)�human_readable_to_bytes)�sixi � �
i� N)�multipart_threshold�multipart_chunksize�max_concurrent_requests�max_queue_size�
max_bandwidthc @ s e Zd ZdS )�InvalidConfigErrorN)�__name__�
__module__�__qualname__� r r �I/usr/lib/python3/dist-packages/awscli/customizations/s3/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 �� S �N)�DEFAULTS�copyr r r r �defaults) s zRuntimeConfig.defaultsc K s8 t �� }|r|�|� | �|� | �|� | �|� |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: | j D ].}|�|�}|d k rt|tj�st|�||<