public interface EventFilter
AWSCloudTrailProcessingExecutor
to determine
whether or not to process a record.
If filterEvent(CloudTrailEvent)
returns false
, then the event is not sent to the
EventsProcessor
for further processing.
Modifier and Type | Method and Description |
---|---|
boolean |
filterEvent(CloudTrailEvent event)
A callback method used to filter a
CloudTrailEvent prior to process. |
boolean filterEvent(CloudTrailEvent event) throws CallbackException
CloudTrailEvent
prior to process.
For performance, the event object is not a copy; you should only filter the event here, not change its contents.
event
- The CloudTrailEvent
to filter.true
If the event should be processed by the EventsProcessor
.CallbackException
- If an error occurs while filtering.