Is it possible to trigger a lambda in AWS with the input being a whole CloudWatch log stream? I have been able to trigger my lambda with a Subscription Filter but this is per log event, so it is triggered multiple times. I'd ideally like my lambda to be triggered only when my application that creates this log stream has finished running and the log stream is not being written to anymore. Otherwise, I'd have to change the code of my application to put everything I need into one log line for the lambda to receive via the Subscription Filter.
My end goal is to have the information I need from the logs be sent in an email via SES. The problem I have is that this information is not logged out all in one log line, but several.