def _volume_type_and_iops_for_profile_name(profile_name, size):
 volume_type = None
 iops = None
 try:
  A = EBSMandatoryProfileAttributes.lookupByName(MandatoryProfiles.lookupByValue(profile_name).name).value
 except ValueError:
  pass
 else:
  volume_type = A.volume_type.value
  iops = A.requested_iops(size)
 return (volume_type, iops)

def _volume_type_and_iops_for_profile_name ( profile_name , size ) : volume_type = None iops = None try : A = EBSMandatoryProfileAttributes . lookupByName ( MandatoryProfiles . lookupByValue ( profile_name ) . name ) . value except ValueError : pass else : volume_type = A . volume_type . value iops = A . requested_iops ( size ) return ( volume_type , iops )
determines and returns the volume_type and iops for a boto create_volume call for a given profile_name .