Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
awscli
/
customizations
/
emr
/
File Content:
instancegroupsutils.pyc
� =��Xc @ s? d d l m Z d d l m Z d � Z d � Z d � Z d S( i����( t constants( t exceptionsc C s g } x� | D]� } i } | j � } d | k rB | d | d <n | d | d <| d | d <| d | d <| d j � | d <d | k r� | d | d <t j | d <n t j | d <d | k r� | d | d <n d | k r� | d | d <n | j | � q W| S( s� Helper method that converts --instance-groups option value in create-cluster and add-instance-groups to Amazon Elastic MapReduce InstanceGroupConfig data type. t Namet InstanceGroupTypet InstanceTypet InstanceCountt InstanceRolet BidPricet Markett EbsConfigurationt AutoScalingPolicy( t keyst upperR t SPOTt ON_DEMANDt append( t parsed_instance_groupst instance_groupst instance_groupt ig_configR ( ( sM /tmp/pip-build-uEGWVr/awscli/awscli/customizations/emr/instancegroupsutils.pyt build_instance_groups s( c C sI i } | | d <| | d <| j � | d <| d | d <t j | d <| S( NR R R R R ( R R R ( t instance_typet instance_countt instance_group_typeR ( ( sM /tmp/pip-build-uEGWVr/awscli/awscli/customizations/emr/instancegroupsutils.pyt _build_instance_group4 s c C s� | d k r$ | d k r$ t j � n | d k rT | d k sH | d k rT t j � n | d k rj t | � Sg } t d | d d d d � } | j | � | d k r� t | � d k r� t d | d t | � d d d � } | j | � n | Sd S( NR R i R t MASTERt CORE( t NoneR t"