File: //lib/python3/dist-packages/awscli/customizations/__pycache__/flatten.cpython-38.pyc
U
<�^!% � @ sF d dl Z d dlmZ e �e�ZdZG dd� de�ZG dd� de�Z dS )� N)�CustomArgument�.c s6 e Zd ZdZd
� fdd� Zedd� �Zdd � Z� ZS )�FlattenedArgumenta)
A custom argument which has been flattened from an existing structure. When
added to the call params it is hydrated back into the structure.
Supports both an object and a list of objects, in which case the flattened
parameters will hydrate a list with a single object in it.
� Nc s8 || _ || _|| _|| _|| _tt| �j|||d� d S )N)�name� help_text�required)�type�
_container� _property�_hydrate�_hydrate_value�superr �__init__) �selfr � container�propr r r ZhydrateZ
hydrate_value�� __class__� �?/usr/lib/python3/dist-packages/awscli/customizations/flatten.pyr s �zFlattenedArgument.__init__c C s | j S �N)r )r r r r �
cli_type_name* s zFlattenedArgument.cli_type_namec C s� | j jj}| j j}| j}t�d�||�� |dk r�| jdkrL|� � dk }n&| jdkr`t
|�}n| jdkrrt|�}| jr�| �|||||� nZ||kr�|dkr�i g||<