def validate_storage_type(storage_type):
 if (storage_type not in VALID_STORAGE_TYPES):
  raise ValueError(('DBInstance StorageType must be one of: %s' % ', '.join(VALID_STORAGE_TYPES)))
 return storage_type

def validate_storage_type ( storage_type ) : if ( storage_type not in VALID_STORAGE_TYPES ) : raise ValueError ( ( 'DBInstance StorageType must be one of: %s' % ', ' . join ( VALID_STORAGE_TYPES ) ) ) return storage_type
validate storagetype for dbinstance .