Skip to content

Instantly share code, notes, and snippets.

@matthew-harper
Created February 17, 2020 13:13
Show Gist options
  • Save matthew-harper/6bffc0b40e11370da262bd4316f94ea5 to your computer and use it in GitHub Desktop.
Save matthew-harper/6bffc0b40e11370da262bd4316f94ea5 to your computer and use it in GitHub Desktop.
python list comprehension to filter cloudtrail events
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