def validate_volume_type(volume_type):
 if (volume_type not in VALID_VOLUME_TYPES):
  raise ValueError(('Elasticsearch Domain VolumeType must be one of: %s' % ', '.join(VALID_VOLUME_TYPES)))
 return volume_type

def validate_volume_type ( volume_type ) : if ( volume_type not in VALID_VOLUME_TYPES ) : raise ValueError ( ( 'Elasticsearch Domain VolumeType must be one of: %s' % ', ' . join ( VALID_VOLUME_TYPES ) ) ) return volume_type
validate volumetype for elasticsearchdomain .