code: function validateKinesisStreamEventRecord(record) {
    _validateStreamEventRecord(record);
  
    if (record.eventSource !== "aws:kinesis") {
      throw new Error(`Unexpected eventSource (${record.eventSource}) on Kinesis stream event record (${record.eventID})`)
    }
    _validateKinesisStreamEventRecord(record);
  }
docs: Validates the given Kinesis stream event record and raises an error if the record fails to meet any of the following criteria:
  1. It must be a valid stream event record according to {@linkcode _validateStreamEventRecord};
  2. It must be a Kinesis stream event record (i.e. must contain an eventSource of "aws:kinesis"); and
  3. It must contain kinesis and kinesis.data properties.
  
  @param {KinesisEventRecord|*} record - a Kinesis stream event record
  @throws {Error} if the record is invalid