code: func decode(record *Record, event *Event) error {
  	r, err := gzip.NewReader(bytes.NewReader(record.AWSLogs.Data))
  	if err != nil {
  		return err
  	}
  
  	if err = json.NewDecoder(r).Decode(&event); err != nil {
  		return err
  	}
  
  	if err := r.Close(); err != nil {
  		return err
  	}
  
  	return nil
  }
docs: // decode decodes the log payload which is gzipped.