code: def from_response(cls, response, attrs):
          
          proj = response['Projection']
          index = cls(proj['ProjectionType'], response['IndexName'],
                      attrs[response['KeySchema'][1]['AttributeName']],
                      proj.get('NonKeyAttributes'))
          index.response = response
          return index
docs: Create an index from returned Dynamo data