Created
February 17, 2020 13:13
-
-
Save matthew-harper/6bffc0b40e11370da262bd4316f94ea5 to your computer and use it in GitHub Desktop.
python list comprehension to filter cloudtrail events
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output_dict = [record for record in event_json['Records'] if filter_user_events(record)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment