Cleanup function that is used to cleanup resources when a middleware returns early. Each Powertools for AWS middleware that needs to perform cleanup operations will store a cleanup function with this signature in the request.internal object.
request.internal
middleware/cleanupMiddlewares.cleanupMiddlewares
Cleanup function that is used to cleanup resources when a middleware returns early. Each Powertools for AWS middleware that needs to perform cleanup operations will store a cleanup function with this signature in the
request.internal
object.