def validate_memory_size(memory_value):
 memory_value = int(positive_integer(memory_value))
 if (memory_value not in MEMORY_VALUES):
  raise ValueError(('Lambda Function memory size must be one of:\n %s' % ', '.join((str(mb) for mb in MEMORY_VALUES))))
 return memory_value

def validate_memory_size ( memory_value ) : memory_value = int ( positive_integer ( memory_value ) ) if ( memory_value not in MEMORY_VALUES ) : raise ValueError ( ( 'Lambda Function memory size must be one of:\n %s' % ', ' . join ( ( str ( mb ) for mb in MEMORY_VALUES ) ) ) ) return memory_value
validate memory size for lambda function .