Chat GPT:
Rather than filtering events within your Python code, you could make use of AWS CloudTrail’s built-in event filtering capabilities. This could reduce the number of events that your lambda function needs to process, and might reduce costs and increase performance.
Chat GPT: Rather than filtering events within your Python code, you could make use of AWS CloudTrail’s built-in event filtering capabilities. This could reduce the number of events that your lambda function needs to process, and might reduce costs and increase performance.
See if it is possible and makes sense.