#NEWLINE# def projection_type_validator( x ) : #NEWLINE# #INDENT# valid_types = [ 'KEYS_ONLY' , 'INCLUDE' , 'ALL' ] #NEWLINE# if ( x not in x ) : #NEWLINE# #INDENT# raise ValueError ( ( 'ProjectionType must be one of: %s' % valid_types . join ( ', ' ) ) ) #NEWLINE# #UNINDENT# return x