stream-events.js
function isDynamoDBEventNameValid(recordOrEventName) {
  const eventName = recordOrEventName.eventName ? recordOrEventName.eventName : recordOrEventName;
  return eventName === DynamoDBEventName.INSERT || eventName === DynamoDBEventName.MODIFY || eventName === DynamoDBEventName.REMOVE;
}
function isDynamoDBEventNameValid(recordOrEventName) {
  const eventName = recordOrEventName.eventName ? recordOrEventName.eventName : recordOrEventName;
  return eventName === DynamoDBEventName.INSERT || eventName === DynamoDBEventName.MODIFY || eventName === DynamoDBEventName.REMOVE;
}
function isDynamoDBEventNameValid ( recordOrEventName ) { const eventName = recordOrEventName . eventName ? recordOrEventName . eventName : recordOrEventName ; return eventName === DynamoDBEventName . INSERT || eventName === DynamoDBEventName . MODIFY || eventName === DynamoDBEventName . REMOVE ; }
Returns true if the given DynamoDB event name OR given DynamoDB stream event record's eventName is valid; false otherwise
@param {string|DynamoDBEventRecord} recordOrEventName - a DynamoDB event name OR DynamoDB stream event record
@returns {boolean} true if valid; false otherwise
Returns true if the given DynamoDB event name OR given DynamoDB stream event record s eventName is valid ; false otherwise