aws / aws-lambda-python-runtime-interface-client

Apache License 2.0
255 stars 72 forks source link

feature: be able to disable lambda_unhandled_exception_warning_message #140

Open packplusplus opened 2 months ago

packplusplus commented 2 months ago

Issue #, if available: https://github.com/aws/aws-lambda-python-runtime-interface-client/issues/139

Description of changes: Make the appearance of the lambda_unhandled_exception_warning_message optional. It is excessively long, and there are cases (like an api gateway authorizer) where you MUST use an unhandled exception to get information back to a client (See: https://stackoverflow.com/questions/64909861/how-to-return-401-from-aws-lambda-authorizer-without-raising-an-exception).

Target (OCI, Managed Runtime, both):

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.