code: function _validateStreamEventRecord(record) {
    if (!record || typeof record !== 'object') {
      throw new Error(`Invalid stream event record (${record}) - record must be a non-null object`);
    }
    if (!record.eventID) {
      throw new Error(`Missing eventID property for stream event record (${record.eventID})`);
    }
    if (!record.eventSourceARN) {
      throw new Error(`Missing eventSourceARN property for stream event record (${record.eventID})`);
    }
    if (!record.eventSource) {
      throw new Error(`Missing eventSource property for stream event record (${record.eventID})`);
    }
    if (!record.eventName) {
      throw new Error(`Missing eventName property for stream event record (${record.eventID})`);
    }
  }
docs: Validates the given stream event record and raises an error if the record fails to meet any of the following criteria:
  1. It must be a non-null object
  2. It must contain a defined eventID;
  3. It must contain a defined eventSourceARN;
  4. It must contain a defined eventSource;
  
  @param {AnyStreamEventRecord|*} record - a Kinesis or DynamoDB stream event record
  @throws {Error} if the record is invalid