function shouldCopy()

in src/consumer.js [161:173]


function shouldCopy(evt) {
  let copy = true;
  let lifecycleTag = evt.TagList.find(tag => tag.Key == 'Draco_Lifecycle')
  if (lifecycleTag === undefined) {
    evt.Reason = 'No Draco_Lifecycle tag';
    copy = false;
  }
  else if (lifecycleTag.Value.toLowerCase() == 'ignore') {
    evt.Reason = 'Ignored';
    copy = false;
  }
  return copy;
}