o .&ßa³ ã@s$ddlmZddlmZdd„ZdS)é)Ú constants)Ú exceptionscCsøg}|D]u}i}| ¡}d|vr|d|d<n|d|d<|d|d<d|vr-|d|d<d|vr7|d|d<d|vrPd|vrJ|dD]}| ¡}qC|d|d<d|vrt|d}i|d<d|vrh|d|dd<d|vrt|d|dd<| |¡q|S) z™ Helper method that converts --instance-fleets option value in create-cluster to Amazon Elastic MapReduce InstanceFleetConfig data type. ÚNameÚInstanceFleetTypeÚTargetOnDemandCapacityÚTargetSpotCapacityÚInstanceTypeConfigsÚLaunchSpecificationsÚSpotSpecificationÚOnDemandSpecification)ÚkeysÚappend)Úparsed_instance_fleetsÚinstance_fleetsÚinstance_fleetÚinstance_fleet_configr Úinstance_type_configÚinstance_type_config_keysÚ'instanceFleetProvisioningSpecifications©rúO/usr/lib/python3/dist-packages/awscli/customizations/emr/instancefleetsutils.pyÚ"validate_and_build_instance_fleetss8        ÿ ÿ rN)Úawscli.customizations.emrrrrrrrrÚs