File: //lib/python3/dist-packages/awscli/customizations/s3/__pycache__/transferconfig.cpython-310.pyc
o
.&�a� � @ 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 @ sV e Zd Zg d�ZddgZdgZedd� �Zdd� Zd d
� Z dd� Z
d
d� Zdd� ZdS )�
RuntimeConfig)r r r r 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 urt|tj�st|�||<