def validate_engine(engine):
 if (engine not in VALID_DB_ENGINES):
  raise ValueError(('DBInstance Engine must be one of: %s' % ', '.join(VALID_DB_ENGINES)))
 return engine

def validate_engine ( engine ) : if ( engine not in VALID_DB_ENGINES ) : raise ValueError ( ( 'DBInstance Engine must be one of: %s' % ', ' . join ( VALID_DB_ENGINES ) ) ) return engine
validate database engine for dbinstance .